diff options
Diffstat (limited to 'libc/sysdeps/linux/common/sigprocmask.c')
| -rw-r--r-- | libc/sysdeps/linux/common/sigprocmask.c | 25 | 
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 | 
