getuid(2) System Calls Manual getuid(2)
NAME
getuid, geteuid, getgid, getegid - get real user, effective user, real group, and effective group IDs
SYNOPSIS
DESCRIPTION
The following functions return the information indicated:
Real-user- ID of the calling process.
Effective-user- ID of the calling process.
Real-group- ID of the calling process.
Effective-group- ID of the calling process.
No means is available for ascertaining the saved-user-ID or saved-group-ID of a process.
SEE ALSO
setuid(2).
STANDARDS CONFORMANCE
getuid(2)