getgid(3)

DESCRIPTION

Returns the calling process's real group ID.

SYNOPSIS

#include <unistd.h>

gid_t getgid(void);

RETURN VALUE

  • Returns the real 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 value is inherited by fork and spawn.