.\" Updated 2007-09-25, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.64
.\" Updated 2010-04-23, Akihiro MOTOKI, LDP v3.24
.\"
-.TH SETPGID 2 2013\-07\-31 Linux "Linux Programmer's Manual"
+.TH SETPGID 2 2014\-01\-07 Linux "Linux Programmer's Manual"
.SH 名前
setpgid, getpgid, setpgrp, getpgrp \- プロセスグループの設定/取得を行う
.SH 書式
.nf
_SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
+.br
+ || /* Since glibc 2.19: */ _BSD_SOURCE
.fi
.sp
-\fBsetpgrp\fP()\ (BSD), \fBgetpgrp\fP()\ (BSD):
+\fBsetpgrp\fP()\ (BSD), \fBgetpgrp\fP()\ (BSD) [before glibc 2.19]:
.nf
_BSD_SOURCE &&
!\ (_POSIX_SOURCE || _POSIX_C_SOURCE || _XOPEN_SOURCE ||
System V バージョンの \fBsetpgrp\fP() は引き数を一つもとらず、 \fIsetpgid(0,\ 0)\fP と等価である。
+The BSD\-specific \fBsetpgrp\fP() call, which takes arguments \fIpid\fP and
+\fIpgid\fP, is is a wrapper function that calls
+
+ setpgid(pid, pgid)
+
.\" The true BSD setpgrp() system call differs in allowing the PGID
.\" to be set to arbitrary values, rather than being restricted to
.\" PGIDs in the same session.
-BSD 仕様の \fBsetpgrp\fP() は \fIpid\fP と \fIpgid\fP を引き数にとり、 \fIsetpgid(pid, pgid)\fP
-と等価である。
+Since glibc 2.19, the BSD\-specific \fBsetpgrp\fP() function is no longer
+exposed by \fI<unistd.h>\fP; calls should be replaced with the
+\fBsetpgid\fP() call shown above.
+
+The BSD\-specific \fBgetpgrp\fP() call, which takes a single \fIpid\fP argument,
+is a wrapper function that calls
+
+ getpgid(pid)
-BSD 仕様の \fBgetpgrp\fP() は \fIpid\fP だけを引き数にとり、 \fIgetpgid(pid)\fP と等価である。
+Since glibc 2.19, the BSD\-specific \fBgetpgrp\fP() function is no longer
+exposed by \fI<unistd.h>\fP; calls should be replaced with calls to the
+POSIX.1 \fBgetpgrp\fP() which takes no arguments (if the intent is to obtain
+the caller's PGID), or with the \fBgetpgid\fP() call shown above.
.SH 返り値
\fBsetpgid\fP() と \fBsetpgrp\fP() は成功した場合、ゼロを返す。エラーの場合は \-1 を返し、 \fIerrno\fP
が適切に設定される。
\fBgetuid\fP(2), \fBsetsid\fP(2), \fBtcgetpgrp\fP(3), \fBtcsetpgrp\fP(3), \fBtermios\fP(3),
\fBcredentials\fP(7)
.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.63 の一部
である。プロジェクトの説明とバグ報告に関する情報は
http://www.kernel.org/doc/man\-pages/ に書かれている。