mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Correct return type of pdfork(2).
The pdfork(2) man page states: "pdfork() returns a PID, 0 or -1, as fork(2) does." As it returns a PID, the return type should obviously be pid_t. As int and pid_t have the same size on all architectures, this change does not affect the ABI in any way.
This commit is contained in:
parent
e69ba7c708
commit
2ad6bba714
2 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@
|
|||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd August 28, 2013
|
||||
.Dd April 4, 2014
|
||||
.Dt PDFORK 2
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
.Lb libc
|
||||
.Sh SYNOPSIS
|
||||
.In sys/procdesc.h
|
||||
.Ft int
|
||||
.Ft pid_t
|
||||
.Fn pdfork "int *fdp" "int flags"
|
||||
.Ft int
|
||||
.Fn pdgetpid "int fd" "pid_t *pidp"
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ void procdesc_reap(struct proc *);
|
|||
* Process descriptor system calls.
|
||||
*/
|
||||
struct rusage;
|
||||
int pdfork(int *, int);
|
||||
pid_t pdfork(int *, int);
|
||||
int pdkill(int, int);
|
||||
int pdgetpid(int, pid_t *);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue