aboutsummaryrefslogtreecommitdiff
path: root/man/man3/wait.3
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2020-12-18 09:13:34 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2020-12-18 09:13:34 +0100
commit94c521bf102a74aec7e1a5c3a9ef5eaa968d4e14 (patch)
treead1ad80ee9a4e0ae97451c94a7cf455d3068951b /man/man3/wait.3
parent7cda34cf34f3afbd3f2000aa5e2b59ddc319f0f2 (diff)
parent2991442aef1cf020ffde43673433ee97ef322a53 (diff)
downloadplan9port-94c521bf102a74aec7e1a5c3a9ef5eaa968d4e14.tar.gz
plan9port-94c521bf102a74aec7e1a5c3a9ef5eaa968d4e14.tar.bz2
plan9port-94c521bf102a74aec7e1a5c3a9ef5eaa968d4e14.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'man/man3/wait.3')
-rw-r--r--man/man3/wait.316
1 files changed, 8 insertions, 8 deletions
diff --git a/man/man3/wait.3 b/man/man3/wait.3
index 28d5d731..889ccd1f 100644
--- a/man/man3/wait.3
+++ b/man/man3/wait.3
@@ -29,9 +29,9 @@ int awaitfor(int pid, char *s, int n)
.SH DESCRIPTION
.I Wait
causes a process to wait for any child process (see
-.IR fork (2)
+.MR fork (2)
and
-.IR rfork (3))
+.MR rfork (3) )
to exit.
It returns a
.B Waitmsg
@@ -62,7 +62,7 @@ the time spent in system calls, and the child's elapsed real time,
all in units of milliseconds.
.B Msg
contains the message that the child specified in
-.IR exits (3).
+.MR exits (3) .
For a normal exit,
.B msg[0]
is zero,
@@ -78,7 +78,7 @@ returns immediately, with return value nil.
The
.B Waitmsg
structure is allocated by
-.IR malloc (3)
+.MR malloc (3)
and should be freed after use.
For programs that only need the pid of the exiting program,
.I waitpid
@@ -114,7 +114,7 @@ The filled-in buffer
may be parsed (after appending a NUL) using
.IR tokenize
(see
-.IR getfields (3));
+.MR getfields (3) );
the resulting fields are, in order, pid, the three times, and the exit string,
which will be
.B ''
@@ -139,8 +139,8 @@ returns
.PP
.B \*9/src/lib9/await.c
.SH "SEE ALSO"
-.IR rfork (3),
-.IR exits (3),
+.MR rfork (3) ,
+.MR exits (3) ,
.SH DIAGNOSTICS
These routines set
.IR errstr .
@@ -156,4 +156,4 @@ are preprocessor macros defined as
and
.IR p9waitfor ;
see
-.IR intro (3).
+.MR intro (3) .