getuid(2) getuid(2)
NAME
getuid, geteuid, getgid, getegid - get user/group IDs
SYNOPSIS
#include <sys/types.h>
#include <unistd.h>
uidt getuid(void);
uidt geteuid(void);
gidt getgid(void);
gidt getegid(void);
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.
SEE ALSO
setuid(2).
Page 1 Reliant UNIX 5.44 Printed 11/98