GETUID(S) UNIX System V GETUID(S)
Name
getuid, geteuid, getgid, getegid - get real user, effective
user, real group, and effective group IDs
Syntax
unsigned short getuid ()
unsigned short geteuid ()
unsigned short getgid ()
unsigned short getegid ()
Description
The getuid system call returns the real user ID of the
calling process.
The geteuid system call returns the effective user ID of the
calling process.
The getgid system call returns the real group ID of the
calling process.
The getegid system call returns the effective group ID of
the calling process.
See Also
intro(S), setuid(S)
Standards Conformance
getegid, geteuid, getgid and getuid are conformant with:
AT&T SVID Issue 2, Select Code 307-127;
The X/Open Portability Guide II of January 1987;
IEEE POSIX Std 1003.1-1988 with C Standard Language-
Dependent System Support;
and NIST FIPS 151-1.
(printed 6/20/89)