OSDN Git Service

a78babc685ee8fb514cf898be9136d5dbddd2145
[linuxjm/LDP_man-pages.git] / original / man2 / getgid.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .TH GETGID 2 1993-07-23 "Linux" "Linux Programmer's Manual"
26 .SH NAME
27 getgid, getegid \- get group identity
28 .SH SYNOPSIS
29 .B #include <unistd.h>
30 .br
31 .B #include <sys/types.h>
32 .sp
33 .B gid_t getgid(void);
34 .br
35 .B gid_t getegid(void);
36 .SH DESCRIPTION
37 .BR getgid ()
38 returns the real group ID of the calling process.
39
40 .BR getegid ()
41 returns the effective group ID of the calling process.
42 .SH ERRORS
43 These functions are always successful.
44 .SH "CONFORMING TO"
45 POSIX.1-2001, 4.3BSD.
46 .SH "SEE ALSO"
47 .BR getresgid (2),
48 .BR setgid (2),
49 .BR setregid (2),
50 .BR credentials (7)