2 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
7 #include <sys/syscall.h>
10 #include <sys/resource.h>
14 /* libc_hidden_proto(wait4) */
16 /* Wait for a child to exit. When one does, put its status in *STAT_LOC and
17 * return its process ID. For errors return (pid_t) -1. If USAGE is not nil,
18 * store information about the child's resource usage (as a `struct rusage')
19 * there. If the WUNTRACED bit is set in OPTIONS, return status for stopped
20 * children; otherwise don't. */
21 pid_t wait3 (__WAIT_STATUS stat_loc, int options, struct rusage * usage)
23 return wait4 (WAIT_ANY, stat_loc, options, usage);