summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/sigpending.c
blob: 285e2e995319cc68f0e1faaff922b4494a0459fa (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
26
/*
 * sigpending() for uClibc
 *
 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

#include <sys/syscall.h>

#if defined __USE_POSIX
#include <signal.h>
#undef sigpending

#ifdef __NR_rt_sigpending
# define __NR___rt_sigpending __NR_rt_sigpending
static __inline__ _syscall2(int, __rt_sigpending, sigset_t *, set, size_t, size)

int sigpending(sigset_t * set)
{
	return __rt_sigpending(set, __SYSCALL_SIGSET_T_SIZE);
}
#else
_syscall1(int, sigpending, sigset_t *, set)
#endif
#endif