]> 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 76053b5451e743c5988996580781e304bea7a263..2e1fe6597a11d76eb5ba564cdb189bedfa3210cc 100644 (file)
 #define __ASSUME_PREADV        1
 #define __ASSUME_PWRITEV       1
 
-/* statfs fills in f_flags since 2.6.36.  */
-#if __LINUX_KERNEL_VERSION >= 0x020624
-# define __ASSUME_STATFS_F_FLAGS       1
-#endif
-
 /* Support for sendmmsg functionality was added in 3.0.  */
 #define __ASSUME_SENDMMSG      1
 
 /* 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