source: trunk/minix/man/man2/getgid.2@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 839 bytes
Line 
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
10getgid, getegid \- get group identity
11.SH SYNOPSIS
12.nf
13.ft B
14#include <sys/types.h>
15#include <unistd.h>
16
17gid_t getgid(void)
18gid_t getegid(void)
19.fi
20.SH DESCRIPTION
21.B Getgid
22returns the real group ID of the current process,
23.B getegid
24the effective group ID.
25.PP
26The real group ID is specified at login time.
27.PP
28The effective group ID is more transient, and determines
29additional access permission during execution of a
30``set-group-ID'' process, and it is for such processes
31that \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.