setgid(3)
DESCRIPTION
Sets the process real and effective group IDs to gid.
SYNOPSIS
#include <unistd.h> int setgid(gid_t gid);
RETURN VALUE
- Returns zero, or -1 and sets errno.
ERRORS
-EINVAL- Gid cannot be represented by the direct ABI.
-EPERM- The requested transition is not allowed for the current effective GID.
-ESRCH- The calling process does not exist.
NOTES
Supplementary groups are unchanged.