diff options
author | 2009-07-28 12:27:03 +0000 | |
---|---|---|
committer | 2009-07-28 12:27:03 +0000 | |
commit | 771b22e5d4ad0912f24bffd7e46286d6a15fbf9c (patch) | |
tree | 09a1dfde26e03e05ab5bdb1cf30c5249d67f28ed | |
parent | timeout_add -> timeout_add_msec (diff) | |
download | wireguard-openbsd-771b22e5d4ad0912f24bffd7e46286d6a15fbf9c.tar.xz wireguard-openbsd-771b22e5d4ad0912f24bffd7e46286d6a15fbf9c.zip |
document rnewprocp; based on a diff from Vladimir Kirillov
help/ok art
-rw-r--r-- | share/man/man9/fork1.9 | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/share/man/man9/fork1.9 b/share/man/man9/fork1.9 index 4cc12b2ed8c..8d927e698e4 100644 --- a/share/man/man9/fork1.9 +++ b/share/man/man9/fork1.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fork1.9,v 1.11 2008/06/26 05:42:08 ray Exp $ +.\" $OpenBSD: fork1.9,v 1.12 2009/07/28 12:27:03 jmc Exp $ .\" $NetBSD: fork1.9,v 1.3 1999/03/16 00:40:47 garbled Exp $ .\" .\" Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: June 26 2008 $ +.Dd $Mdocdate: July 28 2009 $ .Dt FORK1 9 .Os .Sh NAME @@ -39,7 +39,17 @@ .Fd #include <sys/types.h> .Fd #include <sys/proc.h> .Ft int -.Fn "fork1" "struct proc *p1" "int exitsig" "int flags" "void *stack" "size_t stacksize" "void (*func)(void *)" "void *arg" "register_t *retval" +.Fo "fork1" +.Fa "struct proc *p1" +.Fa "int exitsig" +.Fa "int flags" +.Fa "void *stack" +.Fa "size_t stacksize" +.Fa "void (*func)(void *)" +.Fa "void *arg" +.Fa "register_t *retval" +.Fa "struct proc **rnewprocp" +.Fc .Sh DESCRIPTION .Fn fork1 creates a new process out of @@ -141,6 +151,9 @@ is not .Dv NULL , it is the argument to the previous function. It defaults to a pointer to the new process. +.Pp +The newly created process is returned through +.Fa *rnewprocp . .Sh RETURN VALUES Upon successful completion of the fork operation, .Fn fork1 |