mirror of https://github.com/mkerrisk/man-pages
fork.2, getsid.2, setpgid.2, setsid.2: Include <sys/types.h> in SYNOPSIS for pid_t
vfork(2), getpid(2) and others which return pid_t already do this. mtk: Additional info from Ahmad: <unistd.h> defines 'pid_t', but only dependent on certain FTMs beng defined. Cc: linux-man@vger.kernel.org Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
42cfb3552b
commit
cc94f6aa19
|
@ -40,6 +40,8 @@
|
||||||
.SH NAME
|
.SH NAME
|
||||||
fork \- create a child process
|
fork \- create a child process
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
.B #include <sys/types.h>
|
||||||
|
.br
|
||||||
.B #include <unistd.h>
|
.B #include <unistd.h>
|
||||||
.PP
|
.PP
|
||||||
.B pid_t fork(void);
|
.B pid_t fork(void);
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
.SH NAME
|
.SH NAME
|
||||||
getsid \- get session ID
|
getsid \- get session ID
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
.B #include <sys/types.h>
|
||||||
|
.br
|
||||||
.B #include <unistd.h>
|
.B #include <unistd.h>
|
||||||
.PP
|
.PP
|
||||||
.BI "pid_t getsid(pid_t" " pid" );
|
.BI "pid_t getsid(pid_t" " pid" );
|
||||||
|
|
|
@ -49,6 +49,8 @@
|
||||||
.SH NAME
|
.SH NAME
|
||||||
setpgid, getpgid, setpgrp, getpgrp \- set/get process group
|
setpgid, getpgid, setpgrp, getpgrp \- set/get process group
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
.B #include <sys/types.h>
|
||||||
|
.br
|
||||||
.B #include <unistd.h>
|
.B #include <unistd.h>
|
||||||
.PP
|
.PP
|
||||||
.BI "int setpgid(pid_t " pid ", pid_t " pgid );
|
.BI "int setpgid(pid_t " pid ", pid_t " pgid );
|
||||||
|
|
|
@ -33,6 +33,8 @@
|
||||||
setsid \- creates a session and sets the process group ID
|
setsid \- creates a session and sets the process group ID
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.ad l
|
.ad l
|
||||||
|
.B #include <sys/types.h>
|
||||||
|
.br
|
||||||
.B #include <unistd.h>
|
.B #include <unistd.h>
|
||||||
.PP
|
.PP
|
||||||
.B pid_t setsid(void);
|
.B pid_t setsid(void);
|
||||||
|
|
Loading…
Reference in New Issue