GETGID(2) — SYSTEM CALLS
NAME
getgid, getegid − get group identity
SYNOPSIS
gid = getgid()
int gid;
egid = getegid()
int egid;
DESCRIPTION
getgid() returns the real group ID of the current process, getegid() the effective group ID.
The real GID is specified at login time.
The effective GID is more transient, and determines additional access permission during execution of a “setGID” process, and it is for such processes that getgid() is most useful.
SEE ALSO
getuid(2), setregid(2), setuid(3)
Sun Release 4.0 — Last change: 27 January 1988