summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2009-07-28 12:27:04 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2009-07-28 12:27:04 +0000
commit9963ff308cdd1676bb45c9397316a6a0827459ed (patch)
tree1b466b0cdb9255223ac7b20a94f9ef813b359ef6 /share/man
parent72a0952d01abce4754962721df9fdf34d3337312 (diff)
document rnewprocp; based on a diff from Vladimir Kirillov
help/ok art
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/fork1.919
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