Manual Page Result
0
Command: getluid | Section: 3 | Source: Digital UNIX | File: getluid.3.gz
getluid(3) Library Functions Manual getluid(3)
NAME
getluid, setluid - Get or set the login UID (Enhanced Security)
LIBRARY
Security Library - libsecurity.a and libsecurity.so
SYNOPSIS
#include <prot.h>
uid_t getluid();
#include <prot.h>
int setluid(uid);
PARAMETERS
uid An integer representing the user ID being requested.
DESCRIPTION
The function gets the system's the login UID associated with the
process. If it has not been set yet, return an error.
The function sets the system's login UID for this process and all its
descendants. Once set, it cannot be reset.
RETURN VALUES
The function returns the actual UID on success and a -1 for failure.
The function returns 0 for success and -1 for failure.
RELATED INFORMATION
Security
delim off
getluid(3)