OSDN Git Service

(split) LDP: Update draft and release (from the previous commit)
[linuxjm/LDP_man-pages.git] / release / man2 / setpgid.2
index cd2d2ba..d3ecef1 100644 (file)
@@ -60,7 +60,7 @@
 .\" 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 書式
@@ -95,9 +95,11 @@ _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
 .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 ||
@@ -125,13 +127,27 @@ POSIX.1 バージョンの \fBgetpgrp\fP()  は引き数を一つもとらず、
 
 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
 が適切に設定される。
@@ -195,6 +211,6 @@ control) の実装のための プロセスグループを作成するのに使
 \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/ に書かれている。