summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/sigprocmask.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-08 05:02:08 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-08 05:02:08 +0000
commit99aa495ff35864383680f9773b3cb44040acca08 (patch)
treeb56aebc8e61c8323f75a205df7c902374597132a /libc/sysdeps/linux/common/sigprocmask.c
parenta25d5bd4971bb460bd87c684d066fd58359faf32 (diff)
downloaduClibc-alpine-99aa495ff35864383680f9773b3cb44040acca08.tar.bz2
uClibc-alpine-99aa495ff35864383680f9773b3cb44040acca08.tar.xz
NPTL changes for signal handling, getpid, sleep, raise and a few things
for new librt code. Also cleaned up the makefiles.
Diffstat (limited to 'libc/sysdeps/linux/common/sigprocmask.c')
-rw-r--r--libc/sysdeps/linux/common/sigprocmask.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/libc/sysdeps/linux/common/sigprocmask.c b/libc/sysdeps/linux/common/sigprocmask.c
index 3f42b09b8..c555bb51b 100644
--- a/libc/sysdeps/linux/common/sigprocmask.c
+++ b/libc/sysdeps/linux/common/sigprocmask.c
@@ -15,6 +15,7 @@
#ifdef __NR_rt_sigprocmask
#define __NR___rt_sigprocmask __NR_rt_sigprocmask
+static inline
_syscall4(int, __rt_sigprocmask, int, how, const sigset_t *, set,
sigset_t *, oldset, size_t, size);
@@ -42,18 +43,6 @@ int __sigprocmask(int how, const sigset_t * set, sigset_t * oldset)
}
#endif
- if (set &&
-#if (SIG_BLOCK == 0) && (SIG_UNBLOCK == 1) && (SIG_SETMASK == 2)
- (((unsigned int) how) > 2)
-#else
-#warning "compile time assumption violated.. slow path..."
- ((how != SIG_BLOCK) && (how != SIG_UNBLOCK)
- && (how != SIG_SETMASK))
-#endif
- ) {
- __set_errno(EINVAL);
- return -1;
- }
return __rt_sigprocmask(how, set, oldset, _NSIG / 8);
}
@@ -89,18 +78,6 @@ int __sigprocmask(int how, const sigset_t * set, sigset_t * oldset)
}
#endif
- if (set &&
-#if (SIG_BLOCK == 0) && (SIG_UNBLOCK == 1) && (SIG_SETMASK == 2)
- (((unsigned int) how) > 2)
-#else
-#warning "compile time assumption violated.. slow path..."
- ((how != SIG_BLOCK) && (how != SIG_UNBLOCK)
- && (how != SIG_SETMASK))
-#endif
- ) {
- __set_errno(EINVAL);
- return -1;
- }
return (__syscall_sigprocmask(how, set, oldset));
}
#endif