int getgid()
int getegid()
#include <sys/types.h>
gid_t getgid()
gid_t getegid()
getgid() returns the real group ID of the current process. getegid() returns the effective group ID of the current process.
The GID is specified at login time by the group field in the /etc/passwd database (see passwd.5
The effective GID is more transient, and determines additional access permission during execution of a setGID process, and it is for such processes that getegid() is most useful.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97