1 /* vi: set sw=4 ts=4: */
3 * sigsuspend() for uClibc
5 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
7 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
13 extern __typeof(sigsuspend) __libc_sigsuspend;
15 #ifdef __NR_rt_sigsuspend
16 # define __NR___rt_sigsuspend __NR_rt_sigsuspend
17 static inline _syscall2(int, __rt_sigsuspend, const sigset_t *, mask, size_t, size);
19 int __libc_sigsuspend(const sigset_t * mask)
21 return __rt_sigsuspend(mask, _NSIG / 8);
24 # define __NR___syscall_sigsuspend __NR_sigsuspend
25 static inline _syscall3(int, __syscall_sigsuspend, int, a, unsigned long int, b,
26 unsigned long int, c);
28 int __libc_sigsuspend(const sigset_t * set)
30 return __syscall_sigsuspend(0, 0, set->__val[0]);
33 libc_hidden_proto(sigsuspend)
34 weak_alias(__libc_sigsuspend,sigsuspend)
35 libc_hidden_weak(sigsuspend)