.th getgid IV 4/21/86
.sh NAME
getgid  -  get group identifications
.sh SYNOPSIS
getgid( )
.ft R
.sh DESCRIPTION
Getgid returns a word, the low byte of which contains the real
group ID of the current process.  The high byte contains the effective
group ID of the current process.  The real group ID identifies the
group of the person who is logged in, in contrast to the effective
group ID, which determines his access permission at the moment.  It is
thus useful to programs which operate using the ``set group ID'' mode,
to find out who invoked them.
.sh "SEE ALSO"
None.
.sh DIAGNOSTICS
None.
.sh KSOS
KSOS group IDs are 16 bits each, but are mapped into 8 bits
by using only the low order byte.
