GETGID(2) COMMAND REFERENCE GETGID(2)
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 in
gid. Getegid returns the effective group ID in egid.
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 getgid is
most useful.
RETURN VALUE
Getgid returns the real group ID of the current process in
gid. Getegid returns the effective group ID in egid.
SEE ALSO
getuid(2), setregid(2), setgid(3c).
Printed 10/17/86 1
%%index%%
na:72,72;
sy:144,376;
de:520,631;
rv:1151,334;
se:1485,165;
%%index%%000000000093