summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/__rt_sigwaitinfo.c
blob: d2d176a642edfb19a34e37c72c093dfb7e2643c8 (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>

#ifdef __NR_rt_sigtimedwait
# 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