OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / 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 .\"*******************************************************************
26 .\"
27 .\" This file was generated with po4a. Translate the source file.
28 .\"
29 .\"*******************************************************************
30 .TH GETGID 2 2010\-11\-22 Linux "Linux Programmer's Manual"
31 .SH 名前
32 getgid, getegid \- グループ ID を得る
33 .SH 書式
34 \fB#include <unistd.h>\fP
35 .br
36 \fB#include <sys/types.h>\fP
37 .sp
38 \fBgid_t getgid(void);\fP
39 .br
40 \fBgid_t getegid(void);\fP
41 .SH 説明
42 \fBgetgid\fP()  は呼び出し元のプロセスの実グループ ID を返す。
43
44 \fBgetegid\fP()  は呼び出し元のプロセスの実効グループ ID を返す。
45 .SH エラー
46 これらの関数は常に成功する。
47 .SH 準拠
48 POSIX.1\-2001, 4.3BSD.
49 .SH 注意
50 元々の Linux の \fBgetgid\fP() と \fBgetegid\fP() システムコールは
51 16 ビットのグループ ID だけに対応していた。
52 その後、Linux 2.4 で、32 ビットの ID に対応した
53 \fBgetgid32\fP() と \fBgetegid32\fP() が追加された。
54 glibc の \fBgetgid\fP() と \fBgetegid\fP() のラッパー関数は
55 カーネルバージョンによるこの違いを吸収している。
56 .SH 関連項目
57 \fBgetresgid\fP(2), \fBsetgid\fP(2), \fBsetregid\fP(2), \fBcredentials\fP(7)