getuid, geteuid, getgid, getegid
Purpose
Gets the real user, effective user, real group, and
effective group IDs.
Syntax
unsigned short getuid ( ) unsigned short getgid ( )
unsigned short geteuid ( ) 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.
Related Information
In this book: "setuid, setgid."