X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=release%2Fman3%2Fgetgrnam.3;h=de47adaeb2129fe2fd209af9ef8dabfc3977b32d;hb=bb92023e2caf6dc30bd3a8f07877ec870c853e23;hp=763e8e27b7d02d3e98ccd27e036dc7cfc7c50771;hpb=4fa3e54b837e5814a4598ec901d77446bf5cb9b3;p=linuxjm%2FLDP_man-pages.git diff --git a/release/man3/getgrnam.3 b/release/man3/getgrnam.3 index 763e8e27..de47adae 100644 --- a/release/man3/getgrnam.3 +++ b/release/man3/getgrnam.3 @@ -1,5 +1,6 @@ .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" +.\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. @@ -19,6 +20,7 @@ .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. +.\" %%%LICENSE_END .\" .\" References consulted: .\" Linux libc source code @@ -33,7 +35,7 @@ .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* -.TH GETGRNAM 3 2010\-10\-21 "" "Linux Programmer's Manual" +.TH GETGRNAM 3 2012\-04\-23 "" "Linux Programmer's Manual" .SH 名前 getgrnam, getgrnam_r, getgrgid, getgrgid_r \- グループファイルエントリの取り出し .SH 書式 @@ -95,8 +97,13 @@ struct group { \fI*gbufp\fP には結果へのポインタが格納される。エントリが見つからなかった 場合やエラーが発生した場合には \fI*result\fP には NULL が入る。 .PP -\fIbuf\fP に最大必要なサイズは、 \fBsysconf\fP(3) に引き数 \fB_SC_GETGR_R_SIZE_MAX\fP -を指定して実行することで分かる。 +呼び出し + + sysconf(_SC_GETGR_R_SIZE_MAX) + +は、 \fIerrno\fP を変更せずに \-1 を返すか、 \fIbuf\fP の初期サイズの推奨値を +返す。(このサイズが小さすぎる場合、呼び出しは \fBERANGE\fP で失敗し、この +場合には呼び出し側はバッファを大きくしてから再度呼び出すことができる。) .SH 返り値 \fBgetgrnam\fP() と \fBgetgrgid\fP() 関数は、 \fIgroup\fP 構造体へのポインタを返す。 マッチするエントリが見つからなかった場合や、 エラーが発生した場合は NULL を返す。 エラーが起こった場合、 \fIerrno\fP が適切に設定される。 @@ -155,3 +162,7 @@ SVr4, 4.3BSD, POSIX.1\-2001. .SH 関連項目 \fBendgrent\fP(3), \fBfgetgrent\fP(3), \fBgetgrent\fP(3), \fBgetpwnam\fP(3), \fBsetgrent\fP(3), \fBgroup\fP(5) +.SH この文書について +この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部 +である。プロジェクトの説明とバグ報告に関する情報は +http://www.kernel.org/doc/man\-pages/ に書かれている。