getegid(3)

DESCRIPTION

Returns the calling process's effective group ID.

SYNOPSIS

#include <unistd.h>

gid_t getegid(void);

RETURN VALUE

  • Returns the effective GID. A syscall failure is reported as the unsigned conversion of the negative result by this wrapper.

ERRORS

No userspace argument is invalid.

NOTES

The effective GID selects group permission bits.