File: getsid.2

package info (click to toggle)
manpages-fr 0.8-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,760 kB
  • ctags: 4
  • sloc: makefile: 57; sh: 8
file content (51 lines) | stat: -rw-r--r-- 1,801 bytes parent folder | download | duplicates (2)
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
.\" 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., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.\" Traduction 14/10/1996 par Christophe Blaess (ccb@club-internet.fr)
.\" mj 10/12/1997 (LDP man-pages 1.18)
.\" mj 21/09/1998 (LDP man-pages 1.20)
.TH GETSID 2 "21 Septembre 1998" "Linux" "Manuel du programmeur Linux"
.SH NOM
getsid \- Obtenir l'identifiant de session.
.SH SYNOPSIS
.B #include <unistd.h>
.sp
.BI "pid_t getsid(pid_t" " pid" );
.SH DESCRIPTION
.B getsid(0)
renvoie l'identifiant de session du processus appelant.
.BI getsid( p )
renvoie l'identifiant de session du processus de PID 
.IR p .
.SH ERREURS
En cas d'erreur, \-1 est renvoy.
La seule erreur possible est
.BR ESRCH , 
quand il n'y a pas de processus de PID numro
.I p.
.SH "CONFORMIT"
SVr4 qui dcrit une condition d'erreur EPERM supplmentaire.
.SH "VOIR AUSSI"
.BR setsid (2).

.SH TRADUCTION
Christophe Blaess, 1997.