summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/__rt_sigwaitinfo.c
blob: 7830b2e2cfc4484cd4dc586b8af2d31c4f0a43a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * __rt_sigwaitinfo() for uClibc
 *
 * Copyright (C) 2006 by Steven Hill <sjhill@realitydiluted.com>
 * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
 *
 * GNU Library General Public License (LGPL) version 2 or later.
 */

#include <sys/syscall.h>

#if defined(__NR_rt_sigtimedwait) || (defined(__UCLIBC_USE_TIME64__) && defined(__NR_rt_sigtimedwait_time64))
# define __need_NULL
# include <stddef.h>
# include <signal.h>
# include <cancel.h>

int sigwaitinfo(const sigset_t *set, siginfo_t *info)
{
	return sigtimedwait(set, info, NULL);
}
/* cancellation handled by sigtimedwait, noop on uClibc */
LIBC_CANCEL_HANDLED();
#endif