diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-09 00:04:59 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-09 00:04:59 +0000 |
commit | afa6ffdbf8a2e31d648c8860fd172d1b047650cd (patch) | |
tree | e7a14db629e71e640e95d4c69adf35c300429d36 /libc/sysdeps/linux/common/sigsuspend.c | |
parent | 5c22f74b31742b3117f6ce55210eeba28b167933 (diff) |
sig* hidden versions, make __rt_sig* static inline
Diffstat (limited to 'libc/sysdeps/linux/common/sigsuspend.c')
-rw-r--r-- | libc/sysdeps/linux/common/sigsuspend.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/libc/sysdeps/linux/common/sigsuspend.c b/libc/sysdeps/linux/common/sigsuspend.c index 878cadd3e..be69c62c2 100644 --- a/libc/sysdeps/linux/common/sigsuspend.c +++ b/libc/sysdeps/linux/common/sigsuspend.c @@ -13,22 +13,20 @@ #ifdef __NR_rt_sigsuspend #define __NR___rt_sigsuspend __NR_rt_sigsuspend -_syscall2(int, __rt_sigsuspend, const sigset_t *, mask, size_t, size); +static inline _syscall2(int, __rt_sigsuspend, const sigset_t *, mask, size_t, size); -int sigsuspend(const sigset_t * mask) +int attribute_hidden __sigsuspend(const sigset_t * mask) { return __rt_sigsuspend(mask, _NSIG / 8); } - #else - -#define __NR___sigsuspend __NR_sigsuspend -_syscall3(int, __sigsuspend, int, a, unsigned long int, b, +#define __NR___syscall_sigsuspend __NR_sigsuspend +static inline _syscall3(int, __syscall_sigsuspend, int, a, unsigned long int, b, unsigned long int, c); -int sigsuspend(const sigset_t * set) +int attribute_hidden __sigsuspend(const sigset_t * set) { - return __sigsuspend(0, 0, set->__val[0]); + return __syscall_sigsuspend(0, 0, set->__val[0]); } - #endif +strong_alias(__sigsuspend,sigsuspend) |