]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/waitpid.c
Update
[l4.git] / l4 / pkg / l4re-core / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / common / waitpid.c
1 /* vi: set sw=4 ts=4: */
2 /*
3  * Copyright (C) 2006 Steven J. Hill <sjhill@realitydiluted.com>
4  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
5  *
6  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
7  */
8
9 #include <sys/wait.h>
10 #include <cancel.h>
11
12 pid_t __NC(waitpid)(pid_t pid, int *wait_stat, int options)
13 {
14 #if 1 /* kernel/exit.c says to avoid waitpid syscall */
15         return __wait4_nocancel(pid, wait_stat, options, NULL);
16 #else
17         return INLINE_SYSCALL(waitpid, 3, pid, wait_stat, options);
18 #endif
19 }
20 CANCELLABLE_SYSCALL(pid_t, waitpid, (pid_t pid, int *wait_stat, int options), (pid, wait_stat, options))
21 lt_libc_hidden(waitpid)