Go to the previous, next section.
gid_t getgid(void);
gid_t getegid(void);
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.
getgid
: the real gid.
getegid
: the effective gid.
Go to the previous, next section.