getuid(2)
NAME
getuid, getgid, geteuid, getegid − get user and group identity
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 current process. The real user ID identifies the person who is logged in.
The geteuid system call returns the effective user ID. The effective user ID determines his access permission at the moment and is useful to programs which operate using the set user ID mode (allows them to find out who invoked them).
RETURN VALUE
The getgid system call returns the real group ID. The getegid system call returns the effective group ID.
SEE ALSO
ASSEMBLER
(getuid = 24.)
sys getuid
(real user ID in r0, effective user ID in r1)
(getgid = 47.)
sys getgid
(real group ID in r0, effective group ID in r1)