BSD 4_2 development
[unix-history] / usr / man / man2 / getgid.2
CommitLineData
3fb466ea
C
1.TH GETGID 2 "12 February 1983"
2.UC 4
3.SH NAME
4getgid, getegid \- get group identity
5.SH SYNOPSIS
6.nf
7.ft B
8gid = getgid()
9int gid;
10.PP
11.ft B
12egid = getegid()
13int egid;
14.fi
15.SH DESCRIPTION
16.I Getgid
17returns the real group ID of the current process,
18.I getegid
19the effective group ID.
20.PP
21The real group ID is specified at login time.
22.PP
23The effective group ID is more transient, and determines
24additional access permission during execution of a
25``set-group-ID'' process, and it is for such processes
26that \fIgetgid\fP is most useful.
27.SH "SEE ALSO"
28getuid(2), setregid(2), setgid(3)