OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man2 / getgid.2
index a5053a1..a04a648 100644 (file)
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
 .\"
-.\" Japanese Version Copyright (c) 1997 SUTO, Mitsuaki
-.\"         all rights reserved.
-.\" Translated Thu Jun 26 20:27:59 JST 1997
-.\"         by SUTO, Mitsuaki <suto@av.crl.sony.co.jp>
+.\"*******************************************************************
 .\"
-.TH GETGID 2 1993-07-23 "Linux" "Linux Programmer's Manual"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH GETGID 2 2010\-11\-22 Linux "Linux Programmer's Manual"
 .SH 名前
 getgid, getegid \- グループ ID を得る
 .SH 書式
-.B #include <unistd.h>
+\fB#include <unistd.h>\fP
 .br
-.B #include <sys/types.h>
+\fB#include <sys/types.h>\fP
 .sp
-.B gid_t getgid(void);
+\fBgid_t getgid(void);\fP
 .br
-.B gid_t getegid(void);
+\fBgid_t getegid(void);\fP
 .SH 説明
-.BR getgid ()
-は呼び出し元のプロセスの実グループ ID を返す。
+\fBgetgid\fP()  は呼び出し元のプロセスの実グループ ID を返す。
 
-.BR getegid ()
-は呼び出し元のプロセスの実効グループ ID を返す。
+\fBgetegid\fP()  は呼び出し元のプロセスの実効グループ ID を返す。
 .SH エラー
 これらの関数は常に成功する。
 .SH 準拠
-POSIX.1-2001, 4.3BSD.
+POSIX.1\-2001, 4.3BSD.
+.SH 注意
+元々の Linux の \fBgetgid\fP() と \fBgetegid\fP() システムコールは
+16 ビットのグループ ID だけに対応していた。
+その後、Linux 2.4 で、32 ビットの ID に対応した
+\fBgetgid32\fP() と \fBgetegid32\fP() が追加された。
+glibc の \fBgetgid\fP() と \fBgetegid\fP() のラッパー関数は
+カーネルバージョンによるこの違いを吸収している。
 .SH 関連項目
-.BR getresgid (2),
-.BR setgid (2),
-.BR setregid (2),
-.BR credentials (7)
+\fBgetresgid\fP(2), \fBsetgid\fP(2), \fBsetregid\fP(2), \fBcredentials\fP(7)