getuid(S) 6 January 1993 getuid(S) Name getuid, geteuid, getgid, getegid - get real user, effective user, real group, and effective group IDs Syntax cc . . . -lc unsigned short getuid () unsigned short geteuid () unsigned short getgid () unsigned short getegid () Description The getuid routine returns the real user ID of the calling process. The geteuid routine returns the effective user ID of the calling process. The getgid routine returns the real group ID of the calling process. The getegid routine returns the effective group ID of the calling pro- cess. Diagnostics These routines are always successful and therefore no errors defined. See also setuid(S) Standards conformance getegid, geteuid, getgid and getuid are conformant with: AT&T SVID Issue 2; X/Open Portability Guide, Issue 3, 1989; IEEE POSIX Std 1003.1-1990 System Application Program Interface (API) [C Language] (ISO/IEC 9945-1); and NIST FIPS 151-1.