aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/hppa/kernel-features.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2017-09-06 17:29:29 +0200
committerAndreas Schwab <schwab@suse.de>2017-09-19 16:19:14 +0200
commit43ffc53a352a67672210c9dd4959f6c6b7407e60 (patch)
treefb92e7e211583667cd6ffcff331e167eccffb9e7 /sysdeps/unix/sysv/linux/hppa/kernel-features.h
parenta5dcc87e77cf711bca320e8506a4d4fef25bf4f4 (diff)
downloadglibc-43ffc53a352a67672210c9dd4959f6c6b7407e60.zip
glibc-43ffc53a352a67672210c9dd4959f6c6b7407e60.tar.gz
glibc-43ffc53a352a67672210c9dd4959f6c6b7407e60.tar.bz2
Use execveat syscall in fexecve (bug 22134)
By using execveat we no longer depend on /proc. The execveat syscall was introduced in 3.19, except for a few late comers.
Diffstat (limited to 'sysdeps/unix/sysv/linux/hppa/kernel-features.h')
-rw-r--r--sysdeps/unix/sysv/linux/hppa/kernel-features.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/hppa/kernel-features.h b/sysdeps/unix/sysv/linux/hppa/kernel-features.h
index 0e73a5c..f25a840 100644
--- a/sysdeps/unix/sysv/linux/hppa/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/hppa/kernel-features.h
@@ -27,3 +27,8 @@
#define __ASSUME_RECV_SYSCALL 1
#define __ASSUME_SEND_SYSCALL 1
+
+/* Support for the execveat syscall was added in 4.0. */
+#if __LINUX_KERNEL_VERSION < 0x040000
+# undef __ASSUME_EXECVEAT
+#endif