File: getsid.2

package info (click to toggle)
manpages-ja 0.5.0.0.20080615-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 20,508 kB
  • ctags: 1
  • sloc: sh: 13,690; perl: 157; makefile: 114
file content (88 lines) | stat: -rw-r--r-- 2,527 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.\" Copyright (C) 1996 Andries Brouwer (aeb@cwi.nl)
.\"
.\" 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, write to the Free
.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
.\" USA.
.\"
.\" 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>
.\"
.\"WORD:	session			å
.\"WORD:	process			ץ
.\"
.TH GETSID 2 2007-07-26 "Linux" "Linux Programmer's Manual"
.SH ̾
getsid \- å ID 롣
.SH 
.B #include <unistd.h>
.sp
.BI "pid_t getsid(pid_t" " pid" );
.sp
.in -4n
glibc εǽޥ׷
.RB ( feature_test_macros (7)
):
.in
.sp
.BR getsid ():
_XOPEN_SOURCE\ >=\ 500
.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 
SVr4, POSIX.1-2001
.SH 
Linux 
.B EPERM
֤ʤ
.LP
Linux Ǥϡ1.3.44 ʹߤˤΥƥॳ뤬롣
libc Ǥб 5.2.19 ʹߤǤ롣
.SH Ϣ
.BR getpgid (2),
.BR setsid (2),
.BR credentials (7)