]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(Process Completion): Move wait4 here from BSD compat section.
authorRoland McGrath <roland@gnu.org>
Thu, 20 Oct 1994 01:16:18 +0000 (01:16 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 20 Oct 1994 01:16:18 +0000 (01:16 +0000)
manual/process.texi

index 565ea6de0f76bb085084626c2e772f3bdcc6b72a..4b76f9d72c51f0a1ed0bcdd3f6ce1404cee47367 100644 (file)
@@ -549,6 +549,19 @@ waitpid (-1, &status, 0)
 @end smallexample
 @end deftypefun
 
+@comment sys/wait.h
+@comment BSD
+@deftypefun pid_t wait4 (pid_t @var{pid}, int *@var{status-ptr}, int @var{options}, struct rusage *@var{usage})
+If @var{usage} is a null pointer, @code{wait4} is equivalent to
+@code{waitpid (@var{pid}, @var{status-ptr}, @var{options})}.
+
+If @var{usage} is not null, @code{wait4} stores usage figures for the
+child process in @code{*@var{rusage}} (but only if the child has
+terminated, not if it has stopped).  @xref{Resource Usage}.
+
+This function is a BSD extension.
+@end deftypefun
+
 Here's an example of how to use @code{waitpid} to get the status from
 all child processes that have terminated, without ever waiting.  This
 function is designed to be a handler for @code{SIGCHLD}, the signal that
@@ -680,6 +693,9 @@ Instead of accessing these members directly, you should use the
 equivalent macros.
 @end deftp
 
+The @code{wait3} function is the predecessor to @code{wait4}, which is
+more flexible.  @code{wait3} is now obsolete.
+
 @comment sys/wait.h
 @comment BSD
 @deftypefun pid_t wait3 (union wait *@var{status-ptr}, int @var{options}, struct rusage *@var{usage})
@@ -691,17 +707,6 @@ child process in @code{*@var{rusage}} (but only if the child has
 terminated, not if it has stopped).  @xref{Resource Usage}.
 @end deftypefun
 
-@comment sys/wait.h
-@comment BSD
-@deftypefun pid_t wait4 (pid_t @var{pid}, union wait *@var{status-ptr}, int @var{options}, struct rusage *@var{usage})
-If @var{usage} is a null pointer, @code{wait4} is equivalent to
-@code{waitpid (@var{pid}, @var{status-ptr}, @var{options})}.
-
-If @var{usage} is not null, @code{wait4} stores usage figures for the
-child process in @code{*@var{rusage}} (but only if the child has
-terminated, not if it has stopped).  @xref{Resource Usage}.
-@end deftypefun
-
 @node Process Creation Example
 @section Process Creation Example