getgid(2)
DESCRIPTION
Returns the calling process's real group ID.
SYNOPSIS
long getgid(void);
RETURN VALUE
- Returns the real GID, or -ESRCH when no current process exists.
ERRORS
-ESRCH- There is no current process.
NOTES
The value is inherited across fork and spawn.