OSDN Git Service

Retire LDP man-pages repository
[linuxjm/LDP_man-pages.git] / draft / man2 / getsid.2
diff --git a/draft/man2/getsid.2 b/draft/man2/getsid.2
deleted file mode 100644 (file)
index 798d6ab..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-.\" 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
-.\" the License, or (at your option) any later version.
-.\"
-.\" The GNU General Public License's references to "object code"
-.\" and "executables" are to be interpreted as the output of any
-.\" document formatting or typesetting system, including
-.\" intermediate and printed output.
-.\"
-.\" This manual is distributed in the hope that it will be useful,
-.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
-.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-.\" 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, 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
-.\"*******************************************************************
-.\"
-.\" This file was generated with po4a. Translate the source file.
-.\"
-.\"*******************************************************************
-.\"
-.\" 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>
-.\"
-.TH GETSID 2 2010\-09\-26 Linux "Linux Programmer's Manual"
-.SH 名前
-getsid \- セッション ID を取得する。
-.SH 書式
-\fB#include <unistd.h>\fP
-.sp
-\fBpid_t getsid(pid_t\fP\fI pid\fP\fB);\fP
-.sp
-.in -4n
-glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
-.in
-.sp
-.ad l
-.PD 0
-\fBgetsid\fP():
-.RS 4
-_XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
-.br
-|| /* glibc 2.12 以降: */ _POSIX_C_SOURCE\ >=\ 200809L
-.RE
-.PD
-.ad
-.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.
-このシステムコールは 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.79 の一部
-である。プロジェクトの説明とバグ報告に関する情報は
-http://www.kernel.org/doc/man\-pages/ に書かれている。