|
|
1.1 root 1: .TH GETGID 2 "12 February 1983"
2: .UC 4
3: .SH NAME
4: getgid, getegid \- get group identity
5: .SH SYNOPSIS
6: .nf
7: .ft B
8: gid = getgid()
9: int gid;
10: .PP
11: .ft B
12: egid = getegid()
13: int egid;
14: .fi
15: .SH DESCRIPTION
16: .I Getgid
17: returns the real group ID of the current process,
18: .I getegid
19: the effective group ID.
20: .PP
21: The real group ID is specified at login time.
22: .PP
23: The effective group ID is more transient, and determines
24: additional access permission during execution of a
25: ``set-group-ID'' process, and it is for such processes
26: that \fIgetgid\fP is most useful.
27: .SH "SEE ALSO"
28: getuid(2), setregid(2), setgid(3)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.