GETUID(2)
NAME
getuid, geteuid, getgid, getegid − get real user, effective user, real group, and effective group IDs
SYNOPSIS
#include <sys/types.h>
uid_t getuid ()
uid_t geteuid ()
gid_t getgid ()
gid_t getegid ()
DESCRIPTION
Getuid returns the real-user-ID of the calling process.
Geteuid returns the effective-user-ID of the calling process.
Getgid returns the real-group-ID of the calling process.
Getegid returns the effective-group-ID of the calling process.
There is no way to ascertain the saved-user-ID or saved-group-ID of a process.
SEE ALSO
STANDARDS CONFORMANCE
getuid: SVID2, XPG2, XPG3, POSIX.1, FIPS 151-1
getegid: SVID2, XPG2, XPG3, POSIX.1, FIPS 151-1
geteuid: SVID2, XPG2, XPG3, POSIX.1, FIPS 151-1
getgid: SVID2, XPG2, XPG3, POSIX.1, FIPS 151-1
Hewlett-Packard Company — HP-UX Release 7.0: Sept 1989