diff options
author | ed <ed@FreeBSD.org> | 2014-04-04 19:53:45 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2014-04-04 19:53:45 +0000 |
commit | bf6556bd2d016cf48e5267923d1c46d16533f9a2 (patch) | |
tree | 51c91cf0a1c968643f9fc1af53a9a313476cca0a /lib | |
parent | 34954ea5f5abef9d5fc8e3f99e6bbd98132f1923 (diff) | |
download | FreeBSD-src-bf6556bd2d016cf48e5267923d1c46d16533f9a2.zip FreeBSD-src-bf6556bd2d016cf48e5267923d1c46d16533f9a2.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/pdfork.2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/pdfork.2 b/lib/libc/sys/pdfork.2 index 8fb1f85..87f2c8c 100644 --- a/lib/libc/sys/pdfork.2 +++ b/lib/libc/sys/pdfork.2 @@ -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" |