]> sourceware.org Git - glibc.git/commitdiff
Update kernel-features.h files for Linux 5.1.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 16 May 2019 20:03:39 +0000 (20:03 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 16 May 2019 20:03:39 +0000 (20:03 +0000)
Linux 5.1 adds missing syscalls to the syscall table for many Linux
kernel architectures.  This patch updates the kernel-features.h
headers accordingly.  __ASSUME_DIRECT_SYSVIPC_SYSCALLS is not updated
because of the differences between new and old syscalls described in
<https://sourceware.org/ml/libc-alpha/2019-05/msg00235.html>.  The
statfs64 structure used by alpha matches what the new kernel syscalls
use.

Tested with build-many-glibcs.py.

* sysdeps/unix/sysv/linux/alpha/kernel-features.h
(__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
0x050100].
* sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
Likewise.
* sysdeps/unix/sysv/linux/sh/kernel-features.h
(__ASSUME_STATX): Likewise.

ChangeLog
sysdeps/unix/sysv/linux/alpha/kernel-features.h
sysdeps/unix/sysv/linux/ia64/kernel-features.h
sysdeps/unix/sysv/linux/sh/kernel-features.h

index cb020262d97e99d4a6f4b2509721fbef2c78bb5e..a46b64ffb5805840a27641bbd9ec723df0f59e7f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2019-05-16  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/alpha/kernel-features.h
+       (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
+       0x050100].
+       * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
+       Likewise.
+       * sysdeps/unix/sysv/linux/sh/kernel-features.h
+       (__ASSUME_STATX): Likewise.
+
 2019-05-16  Florian Weimer  <fweimer@redhat.com>
 
        * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
index f3298b234e765d4a87dce6589b2260a83727324c..4a5d029c1d7d96e4c3e48d8c85e406fa6060f2b8 100644 (file)
 
 #include_next <kernel-features.h>
 
-/* There never has been support for fstat64.  */
-#undef __ASSUME_STATFS64
-#define __ASSUME_STATFS64 0
+/* Support for statfs64 was added in 5.1.  */
+#if __LINUX_KERNEL_VERSION < 0x050100
+# undef __ASSUME_STATFS64
+# define __ASSUME_STATFS64 0
+#endif
 
 /* Alpha used to define SysV ipc shmat syscall with a different name.  */
 #ifndef __NR_shmat
index 0f4948b8e08ff82c834cadc90152d13b2e68c67f..333947931d3bb715fa5a8f983040c9e57a16fae5 100644 (file)
 #define __ASSUME_SEND_SYSCALL          1
 #define __ASSUME_ACCEPT4_SYSCALL       1
 
-/* No statx system call on ia64 yet.  */
-#undef __ASSUME_STATX
+/* Support for statx was added in 5.1.  */
+#if __LINUX_KERNEL_VERSION < 0x050100
+# undef __ASSUME_STATX
+#endif
 
 #undef __ASSUME_CLONE_DEFAULT
 #define __ASSUME_CLONE2
index 767df721b8b65767c7f6df9f1df4481ef57bb81d..b11a5cb54417a72739776eeaef67dfafe31b06ed 100644 (file)
@@ -52,7 +52,9 @@
 # undef __ASSUME_COPY_FILE_RANGE
 #endif
 
-/* sh does not support the statx system call.  */
-#undef __ASSUME_STATX
+/* sh does not support the statx system call before 5.1.  */
+#if __LINUX_KERNEL_VERSION < 0x050100
+# undef __ASSUME_STATX
+#endif
 
 #endif
This page took 0.076062 seconds and 5 git commands to generate.