Go to the previous, next section.

getegid and getgid

SYNOPSIS

gid_t getgid(void);

gid_t getegid(void);

DESCRIPTION

getgid returns the real gid of the current task. getegid returns the effective gid of the current task. The real gid is the gid of the user that started the task, the effective gid, on the other hand, is the gid of the executable file if the sgid bit is set.

RETURN VALUE

getgid: the real gid.

getegid: the effective gid.

Go to the previous, next section.