]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/kernel-features.h
Use execveat syscall in fexecve (bug 22134)
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / kernel-features.h
index 8961e4dd78ce1229ccf0d8f706cec32631d3d690..2e1fe6597a11d76eb5ba564cdb189bedfa3210cc 100644 (file)
 /* Support for SysV IPC through wired syscalls.  All supported architectures
    either support ipc syscall and/or all the ipc correspondent syscalls.  */
 #define __ASSUME_DIRECT_SYSVIPC_SYSCALLS       1
+
+/* Support for p{read,write}v2 was added in 4.6.  However Linux default
+   implementation does not assume the __ASSUME_* and instead use a fallback
+   implementation based on p{read,write}v and returning an error for
+   non supported flags.  */
+
+/* Support for the execveat syscall was added in 3.19.  */
+#if __LINUX_KERNEL_VERSION >= 0x031300
+# define __ASSUME_EXECVEAT     1
+#endif