getuid(2)
NAME
getuid, geteuid, getgid, getegid − get real and effective user and 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.
getuid returns the effective user ID of the calling process.
getuid returns the real group ID of the calling process.
getuid returns the effective group ID of the calling process.
SEE ALSO
CX/UX Programmer’s Reference Manual