getprivname Subroutine

Purpose

Converts a privilege bit into a readable string.

Library

Security Library (libc.a)

Syntax

#include <userpriv.h>
#include <sys/priv.h>

char *getprivname(int priv)

Description

The getprivname subroutine converts a given privilege bit specified by the priv parameter into a readable string.

Parameters

Item Description
priv Specifies the privilege to be converted.

Return Values

The getprivname subroutine returns one of the following values:
Item Description
character string The privilege is valid.
NULL The privilege is not valid.

Errors

No errno value is set.