aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-03-03 12:16:15 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-03-03 12:16:15 +0100
commitc99517a738c0adabee933f9bbcd5988beaf4c9c6 (patch)
tree60c6e7845ff9cc2357b963146d47d2748d4bdbe6
parentLinux: getrandom syscall number is always available (diff)
downloadglibc-c99517a738c0adabee933f9bbcd5988beaf4c9c6.tar.gz
glibc-c99517a738c0adabee933f9bbcd5988beaf4c9c6.tar.bz2
glibc-c99517a738c0adabee933f9bbcd5988beaf4c9c6.zip
Linux: rt_sigqueueinfo syscall number is always available
Due to the built-in tables, __NR_rt_sigqueueinfo is always defined. sysdeps/pthread/time_routines.c is not updated because it is shared with Hurd. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-rw-r--r--sysdeps/unix/sysv/linux/aio_sigqueue.c5
-rw-r--r--sysdeps/unix/sysv/linux/gai_sigqueue.c5
2 files changed, 0 insertions, 10 deletions
diff --git a/sysdeps/unix/sysv/linux/aio_sigqueue.c b/sysdeps/unix/sysv/linux/aio_sigqueue.c
index 5f00582578..2c5a79bef6 100644
--- a/sysdeps/unix/sysv/linux/aio_sigqueue.c
+++ b/sysdeps/unix/sysv/linux/aio_sigqueue.c
@@ -26,8 +26,6 @@
#include <aio_misc.h>
-#ifdef __NR_rt_sigqueueinfo
-
/* Return any pending signal or wait for one for the given time. */
int
__aio_sigqueue (int sig, const union sigval val, pid_t caller_pid)
@@ -46,6 +44,3 @@ __aio_sigqueue (int sig, const union sigval val, pid_t caller_pid)
return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, sig, &info);
}
-#else
-# include <rt/aio_sigqueue.c>
-#endif
diff --git a/sysdeps/unix/sysv/linux/gai_sigqueue.c b/sysdeps/unix/sysv/linux/gai_sigqueue.c
index e8b65a7d67..e4d7260743 100644
--- a/sysdeps/unix/sysv/linux/gai_sigqueue.c
+++ b/sysdeps/unix/sysv/linux/gai_sigqueue.c
@@ -26,8 +26,6 @@
#include "gai_misc.h"
-#ifdef __NR_rt_sigqueueinfo
-
/* Return any pending signal or wait for one for the given time. */
int
__gai_sigqueue (int sig, const union sigval val, pid_t caller_pid)
@@ -46,6 +44,3 @@ __gai_sigqueue (int sig, const union sigval val, pid_t caller_pid)
return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, sig, &info);
}
-#else
-# include <resolv/gai_sigqueue.c>
-#endif