getgid(2) — System Calls
NAME
getgid, getegid − Gets the process group IDs
SYNOPSIS
#include <sys/types.h>
gid_t getgid ( void );
gid_t getegid ( void );
DESCRIPTION
The getgid() function returns the real group ID of the calling process.
The getegid() function returns the effective group ID of the calling process.
The real group ID is specified at login time. The effective group ID is more transient, and determines additional access permission during execution of a “set-group-ID” process. It is for such processes that the getgid() function is most useful.
NOTES
AES Support Level:
Full use
RETURN VALUES
The getgid() and getegid() functions return the requested group ID. They are always successful.
RELATED INFORMATION
Functions: getgroups(2), initgroups(3), setgroups(2), setregid(2)
Commands: groups(1)