getgid(2) - Linux man page

Name

getgid, getegid - get group identity

Synopsis

#include <unistd.h>
#include <sys/types.h>

gid_t getgid(void);
gid_t getegid(void);

Description

getgid() returns the real group ID of the current process.

getegid() returns the effective group ID of the current process.

Errors

These functions are always successful.

Conforming to

POSIX.1-2001, 4.3BSD

See Also

setgid(2), setregid(2)

Referenced By

awk(1), credentials(7), getgroups(2), mksh(1), ps(1), setreuid(2), syscalls(2)