diff options
author | Joseph Myers <joseph@codesourcery.com> | 2019-05-16 20:03:39 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2019-05-16 20:03:39 +0000 |
commit | 5f161b2398fc610ebcc65591155faacfa32a2e03 (patch) | |
tree | 4fd7a319809faaca9c622a94eeac8829cc6fd3c2 /sysdeps/unix/sysv/linux/sh/kernel-features.h | |
parent | ec255a97a22c0b46c111ff0f10be2beb9b5d9224 (diff) | |
download | glibc-5f161b2398fc610ebcc65591155faacfa32a2e03.tar.gz glibc-5f161b2398fc610ebcc65591155faacfa32a2e03.tar.xz glibc-5f161b2398fc610ebcc65591155faacfa32a2e03.zip |
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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sh/kernel-features.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/sh/kernel-features.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/sh/kernel-features.h b/sysdeps/unix/sysv/linux/sh/kernel-features.h index 767df721b8..b11a5cb544 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 |