summaryrefslogtreecommitdiff
path: root/lib/libc/sys/rfork.2
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-06-05 04:47:43 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-06-05 04:47:43 +0000
commitb770acff37c9a862b04d7c262e6707d1f9416026 (patch)
tree80e86c277a70de5e0437ffb9ca88b1b1428609dc /lib/libc/sys/rfork.2
parent62904c50d3efc697f9b77565763bb45eb60c6607 (diff)
use .Tn instead of .Em for logical/bitwise OR + AND
Diffstat (limited to 'lib/libc/sys/rfork.2')
-rw-r--r--lib/libc/sys/rfork.228
1 files changed, 16 insertions, 12 deletions
diff --git a/lib/libc/sys/rfork.2 b/lib/libc/sys/rfork.2
index 332f4dedae9..0b2a0062086 100644
--- a/lib/libc/sys/rfork.2
+++ b/lib/libc/sys/rfork.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rfork.2,v 1.11 1999/05/16 19:55:35 alex Exp $
+.\" $OpenBSD: rfork.2,v 1.12 1999/06/05 04:47:42 aaron Exp $
.\"
.\" This manual page is taken directly from Plan9, and modified to
.\" describe the actual OpenBSD implementation. Permission for
@@ -30,29 +30,33 @@ the open file descriptor table (which, when shared, permits processes
to open and close files for other processes),
and open files.
.Fa flags
-is the logical OR of some subset of
+is the logical
+.Tn OR
+of some subset of
.Bl -tag -width "RFCNAMEG" -compact -offset indent
-.It RFPROC
+.It Dv RFPROC
If set a new process is created; otherwise changes affect the
current process.
The current implementation requires this flag to always be set.
-.It RFNOWAIT
+.It Dv RFNOWAIT
If set, the child process will be dissociated from the parent. Upon
exit the child will not leave a status for the parent to collect.
See
.Xr wait 2 .
-.It RFNAMEG, RFCNAMEG, RFENVG, RFCENVG, RFNOTEG
+.It Xo Dv RFNAMEG , Dv RFCNAMEG ,
+.Dv RFENVG , Dv RFCENVG , Dv RFNOTEG
+.Xc
These are Plan 9 specific flags, and not implemented.
-.It RFFDG
+.It Dv RFFDG
If set, the invoker's file descriptor table (see
-.Xr intro 2
-) is copied; otherwise the two processes share a
+.Xr intro 2 )
+is copied; otherwise the two processes share a
single table.
-.It RFCFDG
+.It Dv RFCFDG
If set, the new process starts with a clean file descriptor table.
Is mutually exclusive with
.Dv RFFDG .
-.It RFMEM
+.It Dv RFMEM
If set, the kernel will force sharing of the entire address space.
The child
will then inherit all the shared segments the parent process owns. Other segment
@@ -70,13 +74,13 @@ If
.Dv RFPROC
is set, the
value returned in the parent process
-is the process id
+is the process ID
of the child process; the value returned in the child is zero.
Without
.Dv RFPROC ,
the return value is zero.
Process ids range from 1 to the maximum integer
-.Ft ( int )
+.Li int
value.
.Fn rfork
will sleep, if necessary, until required process resources are available.