Rev | Line | |
---|
[9] | 1 | .\" Copyright (c) 1983 Regents of the University of California.
|
---|
| 2 | .\" All rights reserved. The Berkeley software License Agreement
|
---|
| 3 | .\" specifies the terms and conditions for redistribution.
|
---|
| 4 | .\"
|
---|
| 5 | .\" @(#)getgid.2 6.2 (Berkeley) 1/7/86
|
---|
| 6 | .\"
|
---|
| 7 | .TH GETGID 2 "January 7, 1986"
|
---|
| 8 | .UC 5
|
---|
| 9 | .SH NAME
|
---|
| 10 | getgid, getegid \- get group identity
|
---|
| 11 | .SH SYNOPSIS
|
---|
| 12 | .nf
|
---|
| 13 | .ft B
|
---|
| 14 | #include <sys/types.h>
|
---|
| 15 | #include <unistd.h>
|
---|
| 16 |
|
---|
| 17 | gid_t getgid(void)
|
---|
| 18 | gid_t getegid(void)
|
---|
| 19 | .fi
|
---|
| 20 | .SH DESCRIPTION
|
---|
| 21 | .B Getgid
|
---|
| 22 | returns the real group ID of the current process,
|
---|
| 23 | .B getegid
|
---|
| 24 | the effective group ID.
|
---|
| 25 | .PP
|
---|
| 26 | The real group ID is specified at login time.
|
---|
| 27 | .PP
|
---|
| 28 | The effective group ID is more transient, and determines
|
---|
| 29 | additional access permission during execution of a
|
---|
| 30 | ``set-group-ID'' process, and it is for such processes
|
---|
| 31 | that \fBgetgid\fP is most useful.
|
---|
| 32 | .SH "SEE ALSO"
|
---|
| 33 | .BR getuid (2),
|
---|
| 34 | .BR setgid (2).
|
---|
Note:
See
TracBrowser
for help on using the repository browser.