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. A user may be a member of up to eight groups, as discussed in getgroups(2). 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 getgroups(2), getuid(2), setregid(2), and setgid(3c). Printed 4/6/89 1
%%index%% na:288,88; sy:376,567; de:943,893; rv:1836,466; se:2302,230; %%index%%000000000094