summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/__rt_sigwaitinfo.c
blob: ad1a7a89042f4ce403a6a3c99a43fea943dafc6b (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
25
/* vi: set sw=4 ts=4: */
/*
 * __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