public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/zack/no-nested-includes] Update kernel-features.h files for Linux 5.1.
@ 2019-05-26 16:34 Zack Weinberg
  0 siblings, 0 replies; only message in thread
From: Zack Weinberg @ 2019-05-26 16:34 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5f161b2398fc610ebcc65591155faacfa32a2e03

commit 5f161b2398fc610ebcc65591155faacfa32a2e03
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu May 16 20:03:39 2019 +0000

    Update kernel-features.h files for Linux 5.1.
    
    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.

Diff:
---
 ChangeLog                                       | 10 ++++++++++
 sysdeps/unix/sysv/linux/alpha/kernel-features.h |  8 +++++---
 sysdeps/unix/sysv/linux/ia64/kernel-features.h  |  6 ++++--
 sysdeps/unix/sysv/linux/sh/kernel-features.h    |  6 ++++--
 4 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index cb02026..a46b64f 100644
--- 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
diff --git a/sysdeps/unix/sysv/linux/alpha/kernel-features.h b/sysdeps/unix/sysv/linux/alpha/kernel-features.h
index f3298b2..4a5d029 100644
--- a/sysdeps/unix/sysv/linux/alpha/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/alpha/kernel-features.h
@@ -22,9 +22,11 @@
 
 #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
diff --git a/sysdeps/unix/sysv/linux/ia64/kernel-features.h b/sysdeps/unix/sysv/linux/ia64/kernel-features.h
index 0f4948b..3339479 100644
--- a/sysdeps/unix/sysv/linux/ia64/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/ia64/kernel-features.h
@@ -26,8 +26,10 @@
 #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
diff --git a/sysdeps/unix/sysv/linux/sh/kernel-features.h b/sysdeps/unix/sysv/linux/sh/kernel-features.h
index 767df72..b11a5cb 100644
--- a/sysdeps/unix/sysv/linux/sh/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/sh/kernel-features.h
@@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-26 16:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-26 16:34 [glibc/zack/no-nested-includes] Update kernel-features.h files for Linux 5.1 Zack Weinberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).