aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/pdfork.2
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2014-04-04 19:53:45 +0000
committerEd Schouten <ed@FreeBSD.org>2014-04-04 19:53:45 +0000
commit2ad6bba714eab3be422578189acf79f1514c5690 (patch)
tree51c91cf0a1c968643f9fc1af53a9a313476cca0a /lib/libc/sys/pdfork.2
parente69ba7c7082e69b022377c991bc0f31b6f50faf5 (diff)
downloadsrc-2ad6bba714eab3be422578189acf79f1514c5690.tar.gz
src-2ad6bba714eab3be422578189acf79f1514c5690.zip
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.
Notes
Notes: svn path=/head/; revision=264136
Diffstat (limited to 'lib/libc/sys/pdfork.2')
-rw-r--r--lib/libc/sys/pdfork.24
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/pdfork.2 b/lib/libc/sys/pdfork.2
index 8fb1f8564035..87f2c8cd8e31 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"