wait (SunOS) wait (SunOS)
NAME
wait, waitpid, wait3, wait4 - Waits for a child process to stop or ter‐
minate
SUN OS SYNOPSIS
#include <sys/wait.h>
pid_t wait (
int ∗status_location );
pid_t waitpid (
int process_id,
int ∗status_location,
int options );
#include <sys/time.h>
#include <sys/resource.h>
pid_t wait3 (
int *status_location,
int options,
struct rusage *resource_usage );
pid_t wait4 (
int process_id
int *status_location,
int options,
struct rusage *resource_usage );
DIGITAL UNIX SYNOPSIS
#include <sys/types.h>
#include <sys/wait.h>
pid_t wait (
int ∗status_location );
pid_t waitpid (
pid_t process_id,
int ∗status_location,
int options );
#include <sys/resource.h>
pid_t wait3 (
union wait *status_location,
int options,
struct rusage *resource_usage );
pid_t wait4 (
pid_t process_id
union wait *status_location,
int options,
struct rusage *resource_usage );
PARAMETERS
Points to a location that contains the termination status of the child
process as defined in the <sys/wait.h> header file. Specifies the
child process or set of child processes. Modifies the behavior of the
function. The flags for the options parameter are defined in the
DESCRIPTION section. Specifies the location of a structure that will
contain the resource utilization information for child processes that
have terminated.
DIFFERENCES
The functions wait() and waitpid() require both sys/types.h and
sys/wait.h header files.
The functions wait3() and wait4() requires sys/types.h, sys/wait.h and
sys/resource.h header files
The data-types for waitpid(), wait3() and wait4() have changed.
RELATED INFORMATION
Digital UNIX Functions:
wait(2) delim off
wait (SunOS)