1 /* vi: set sw=4 ts=4: */
2 /*
3  * __rt_sigwaitinfo() for uClibc
4  *
5  * Copyright (C) 2006 by Steven Hill <sjhill@realitydiluted.com>
6  * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
7  *
8  * GNU Library General Public License (LGPL) version 2 or later.
9  */
10 
11 #include <sys/syscall.h>
12 
13 #ifdef __NR_rt_sigtimedwait
14 # define __need_NULL
15 # include <stddef.h>
16 # include <signal.h>
17 # include <cancel.h>
18 
sigwaitinfo(const sigset_t * set,siginfo_t * info)19 int sigwaitinfo(const sigset_t *set, siginfo_t *info)
20 {
21 	return sigtimedwait(set, info, NULL);
22 }
23 /* cancellation handled by sigtimedwait, noop on uClibc */
24 LIBC_CANCEL_HANDLED();
25 #endif
26