OSDN Git Service

(split) LDP: Update releases based on LDP 3.52 release
[linuxjm/LDP_man-pages.git] / release / man2 / getsid.2
index 1441006..ef80a5b 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (C) 1996 Andries Brouwer (aeb@cwi.nl)
 .\"
+.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
 .\" This is free documentation; you can redistribute it and/or
 .\" modify it under the terms of the GNU General Public License as
 .\" published by the Free Software Foundation; either version 2 of
 .\" GNU General Public License for more details.
 .\"
 .\" You should have received a copy of the GNU General Public
-.\" License along with this manual; if not, write to the Free
-.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
-.\" USA.
+.\" License along with this manual; if not, see
+.\" <http://www.gnu.org/licenses/>.
+.\" %%%LICENSE_END
 .\"
 .\" Modified Thu Oct 31 14:18:40 1996 by Eric S. Raymond <esr@y\thyrsus.com>
 .\" Modified 2001-12-17, aeb
+.\"*******************************************************************
 .\"
-.\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
-.\"         all rights reserved.
-.\" Translated Thu Dec 11 23:36:57 JST 1997
-.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
-.\" Updated Thu Jan 17 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
+.\" This file was generated with po4a. Translate the source file.
 .\"
-.\"WORD:       session                 ¥»¥Ã¥·¥ç¥ó
-.\"WORD:       process                 ¥×¥í¥»¥¹
-.\"
-.TH GETSID 2 2010-09-26 "Linux" "Linux Programmer's Manual"
-.SH Ì¾Á°
-getsid \- ¥»¥Ã¥·¥ç¥ó ID ¤ò¼èÆÀ¤¹¤ë¡£
-.SH ½ñ¼°
-.B #include <unistd.h>
+.\"*******************************************************************
+.TH GETSID 2 2010\-09\-26 Linux "Linux Programmer's Manual"
+.SH 名前
+getsid \- セッション ID を取得する。
+.SH 書式
+\fB#include <unistd.h>\fP
 .sp
-.BI "pid_t getsid(pid_t" " pid" );
+\fBpid_t getsid(pid_t\fP\fI pid\fP\fB);\fP
 .sp
 .in -4n
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
-.RB ( feature_test_macros (7)
-»²¾È):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
 .in
 .sp
 .ad l
 .PD 0
-.BR getsid ():
+\fBgetsid\fP():
 .RS 4
-_XOPEN_SOURCE\ >=\ 500 ||
-_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
+_XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
 .br
-|| /* glibc 2.12 °Ê¹ß: */ _POSIX_C_SOURCE\ >=\ 200809L
+|| /* glibc 2.12 以降: */ _POSIX_C_SOURCE\ >=\ 200809L
 .RE
 .PD
 .ad
-.SH ÀâÌÀ
-.I getsid(0)
-¤Ï¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤Î¥»¥Ã¥·¥ç¥ó ID ¤òÊÖ¤¹¡£
-.I getsid(p)
-¤Ï¥×¥í¥»¥¹ ID
-.I p 
-¤ò»ý¤Ä¥×¥í¥»¥¹¤Î¥»¥Ã¥·¥ç¥ó ID ¤òÊÖ¤¹
-(¥×¥í¥»¥¹¤Î¥»¥Ã¥·¥ç¥ó ID ¤Ï ¥»¥Ã¥·¥ç¥ó¥ê¡¼¥À¡¼¤Î¥×¥í¥»¥¹¥°¥ë¡¼¥× ID ¤Ç¤¢¤ë)¡£
-.SH ÊÖ¤êÃÍ
-À®¸ù¤¹¤ë¤È¡¢¥»¥Ã¥·¥ç¥ó ID ¤¬ÊÖ¤µ¤ì¤ë¡£
-¥¨¥é¡¼¤Î¾ì¹ç¡¢\fI(pid_t) \-1\fP ¤¬ÊÖ¤µ¤ì¡¢
-.I errno
-¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
-.SH ¥¨¥é¡¼
-.TP
-.B EPERM
-¥×¥í¥»¥¹ ID
-.I p
-¤Î¥×¥í¥»¥¹¤Ï¸ºß¤¹¤ë¤¬¡¢¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤ÈƱ¤¸¥»¥Ã¥·¥ç¥ó¤Ç¤Ï¤Ê¤¯¡¢
-¤µ¤é¤Ë¼ÂÁõ¤¬¤³¤Î¾õÂÖ¤ò¥¨¥é¡¼¤ÈȽÃǤ·¤¿¾ì¹ç¡£
-.TP
-.B ESRCH
-¥×¥í¥»¥¹ ID ¤¬
-.I p
-¤Î¥×¥í¥»¥¹¤¬¤Ê¤¤¡£
-.SH ¥Ð¡¼¥¸¥ç¥ó
-¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï Linux ¥Ð¡¼¥¸¥ç¥ó 2.0 °Ê¹ß¤ÇÍøÍѲÄǽ¤Ç¤¢¤ë¡£
+.SH 説明
+\fIgetsid(0)\fP は呼び出し元のプロセスのセッション ID を返す。 \fIgetsid(p)\fP はプロセス ID \fIp\fP
+を持つプロセスのセッション ID を返す (プロセスのセッション ID は セッションリーダーのプロセスグループ ID である)。
+.SH 返り値
+成功すると、セッション ID が返される。 エラーの場合、\fI(pid_t) \-1\fP が返され、 \fIerrno\fP が適切に設定される。
+.SH エラー
+.TP 
+\fBEPERM\fP
+プロセス ID \fIp\fP のプロセスは存在するが、呼び出し元のプロセスと同じセッションではなく、 さらに実装がこの状態をエラーと判断した場合。
+.TP 
+\fBESRCH\fP
+プロセス ID が \fIp\fP のプロセスがない。
+.SH バージョン
 .\" Linux has this system call since Linux 1.3.44.
 .\" There is libc support since libc 5.2.19.
-.SH ½àµò
-SVr4, POSIX.1-2001
-.SH Ãí°Õ
-Linux ¤Ï
-.B EPERM
-¤òÊÖ¤µ¤Ê¤¤¡£
-.SH ´ØÏ¢¹àÌÜ
-.BR getpgid (2),
-.BR setsid (2),
-.BR credentials (7)
+このシステムコールは Linux バージョン 2.0 以降で利用可能である。
+.SH 準拠
+SVr4, POSIX.1\-2001.
+.SH 注意
+Linux は \fBEPERM\fP を返さない。
+.SH 関連項目
+\fBgetpgid\fP(2), \fBsetsid\fP(2), \fBcredentials\fP(7)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。