diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/signalfd.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/signalfd.c | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/sysdeps/unix/sysv/linux/signalfd.c b/sysdeps/unix/sysv/linux/signalfd.c index ba64dad801..a0422bec1c 100644 --- a/sysdeps/unix/sysv/linux/signalfd.c +++ b/sysdeps/unix/sysv/linux/signalfd.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2007-2016 Free Software Foundation, Inc. +/* Copyright (C) 2007-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,34 +19,10 @@ #include <signal.h> #include <sys/signalfd.h> #include <sysdep.h> -#include <kernel-features.h> int signalfd (int fd, const sigset_t *mask, int flags) { -#ifdef __NR_signalfd4 - int res = INLINE_SYSCALL (signalfd4, 4, fd, mask, _NSIG / 8, flags); -# ifndef __ASSUME_SIGNALFD4 - if (res != -1 || errno != ENOSYS) -# endif - return res; -#endif - -#ifndef __ASSUME_SIGNALFD4 - /* The old system call has no flag parameter which is bad. So we have - to wait until we have to support to pass additional values to the - kernel (sys_indirect) before implementing setting flags like - O_NONBLOCK etc. */ - if (flags != 0) - return INLINE_SYSCALL_ERROR_RETURN_VALUE (EINVAL); - -# ifdef __NR_signalfd - return INLINE_SYSCALL (signalfd, 3, fd, mask, _NSIG / 8); -# else - return INLINE_SYSCALL_ERROR_RETURN_VALUE (ENOSYS); -# endif -#elif !defined __NR_signalfd4 -# error "__ASSUME_SIGNALFD4 defined but not __NR_signalfd4" -#endif + return INLINE_SYSCALL (signalfd4, 4, fd, mask, _NSIG / 8, flags); } |