getuid - get a real user ID
#include <sys/types.h> #include <unistd.h> uid_t getuid (void);
The getuid() function returns the real user ID of the calling process.
The getuid() function is always successful and no return value is reserved to indicate the error.
No errors are defined.
None.
None.
None.
geteuid(), getgid(), setuid(), <sys/types.h>, <unistd.h>.
Derived from Issue 1 of the SVID.