OSDN Git Service

Last portion of libc_hidden_proto removal.
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / common / wait3.c
1 /*
2  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
3  *
4  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
5  */
6
7 #include <sys/syscall.h>
8 #include <sys/types.h>
9 #include <sys/wait.h>
10 #include <sys/resource.h>
11
12 #if defined __USE_BSD
13
14 /* libc_hidden_proto(wait4) */
15
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)
22 {
23       return wait4 (WAIT_ANY, stat_loc, options, usage);
24 }
25 #endif