| Click this button to go to the index for this section. |
getluid(3)
NAME
getluid, setluid - Get or set the login UID (Enhanced Security)LIBRARY
Security Library - libsecurity.a and libsecurity.soSYNOPSIS
#include <prot.h> uid_t getluid(); #include <prot.h> int setluid(uid);PARAMETERS
uid An integer representing the user ID being requested.DESCRIPTION
The getluid() function gets the system's the login UID associated with the process. If it has not been set yet, return an error. The setluid() function sets the system's login UID for this process and all its descendants. Once set, it cannot be reset.RETURN VALUES
The getluid() function returns the actual UID on success and a -1 for failure. The setluid() function returns 0 for success and -1 for failure.RELATED INFORMATION
Security