GETUID(3) Library Functions Manual GETUID(3)
NAME
getuid — get a
real user ID
SYNOPSIS
#include <sys/types.h> #include <unistd.h> uid_t getuid (void);
DESCRIPTION
The getuid() function returns the real user ID of the calling process.
RETURN VALUE
The getuid() function is always successful and no return value is reserved to indicate the error.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
geteuid(3) , getgid(3) , setuid(3) , <sys/types.h> , <unistd.h> .
DERIVATION
Derived from Issue 1 of the SVID.
February 1997 posix.fail