[PATCH v2 00/13] Sync Linux definitions up to Linux 7.1
Adhemerval Zanella
adhemerval.zanella@linaro.org
Fri Jul 3 14:46:26 GMT 2026
This patchset updates the Linux-specific glibc headers, syscall lists, and
constant tests to match the definitions introduced up to Linux 7.1.
Kernel-internal or clone3-only definitions that glibc does not export
(PIDFD_AUTOKILL, the high CLONE_/UNSHARE_EMPTY_MNTNS flags, STATMOUNT_BY_FD,
the PR_CFI_/PR_RSEQ_SLICE_* prctls) are intentionally left out.
I checking the build-many-glibc.py on aarch64-linux-gnu, armv-linux-gnueabihf,
loongarch64-linux-gnuf64, powerpc64le-linux-gnu, s390x-linux-gnu, and
x86_64-linux-gnu. I am still re-building other ABIs with the updated
kernel headers.
Changes from v1:
* Add the pre-6.18 definitions above (AArch64 HWCAP, IPPROTO_AGGFRAG,
AT_RENAME_, TCP_RTO_/TCP_DELACK_MAX_US).
* Regenerate arch-syscall.h (adds clone3 on sparc and memfd_secret on
loongarch, wired up in 7.0) and update build-many-glibcs.py to 7.1.
* Squash the per-file changes into a single commit each.
Adhemerval Zanella (13):
Add new constants from Linux 6.12, 6.18 and 6.19 to bits/fcntl-linux.h
Add RWF_NOSIGNAL from Linux 6.18 to bits/uio-ext.h
Add new AArch64 HWCAP definitions from Linux 6.14, 6.18 and 7.0 to
bits/hwcap.h
Add new LoongArch HWCAP definitions from Linux 7.0 and 7.1 to
bits/hwcap.h
Update PIDFD_* constants for Linux 7.1
Add SCHED_GETATTR_FLAG_DL_DYNAMIC from Linux 7.1 to bits/sched.h
Add OPEN_TREE_NAMESPACE and FSMOUNT_NAMESPACE to sys/mount.h
Add IPPROTO_AGGFRAG from Linux 6.14 to netinet/in.h
netinet/tcp.h: Sync with Linux 6.15 and fix struct tcp_info tail
Add NT_RISCV_USER_CFI from Linux 7.0 to elf.h
Update syscall lists for Linux 7.1
Update kernel version to 7.1 in header constant tests
build-many-glibcs.py: Update Linux kernel version to 7.1
elf/elf.h | 1 +
inet/netinet/in.h | 2 ++
scripts/build-many-glibcs.py | 2 +-
sysdeps/gnu/netinet/tcp.h | 27 +++++++++++++++++--
.../unix/sysv/linux/aarch64/arch-syscall.h | 2 ++
sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h | 17 ++++++++++++
sysdeps/unix/sysv/linux/alpha/arch-syscall.h | 2 ++
sysdeps/unix/sysv/linux/arc/arch-syscall.h | 2 ++
sysdeps/unix/sysv/linux/arm/arch-syscall.h | 2 ++
sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 8 ++++++
sysdeps/unix/sysv/linux/bits/sched.h | 3 +++
sysdeps/unix/sysv/linux/bits/uio-ext.h | 1 +
sysdeps/unix/sysv/linux/csky/arch-syscall.h | 2 ++
sysdeps/unix/sysv/linux/hppa/arch-syscall.h | 2 ++
sysdeps/unix/sysv/linux/i386/arch-syscall.h | 2 ++
.../unix/sysv/linux/loongarch/bits/hwcap.h | 2 ++
.../sysv/linux/loongarch/ilp32/arch-syscall.h | 3 +++
.../sysv/linux/loongarch/lp64/arch-syscall.h | 3 +++
sysdeps/unix/sysv/linux/m68k/arch-syscall.h | 2 ++
.../unix/sysv/linux/microblaze/arch-syscall.h | 2 ++
.../sysv/linux/mips/mips32/arch-syscall.h | 2 ++
.../sysv/linux/mips/mips64/n32/arch-syscall.h | 2 ++
.../sysv/linux/mips/mips64/n64/arch-syscall.h | 2 ++
sysdeps/unix/sysv/linux/or1k/arch-syscall.h | 2 ++
.../linux/powerpc/powerpc32/arch-syscall.h | 2 ++
.../linux/powerpc/powerpc64/arch-syscall.h | 2 ++
.../unix/sysv/linux/riscv/rv32/arch-syscall.h | 2 ++
.../unix/sysv/linux/riscv/rv64/arch-syscall.h | 2 ++
sysdeps/unix/sysv/linux/s390/arch-syscall.h | 2 ++
sysdeps/unix/sysv/linux/sh/arch-syscall.h | 2 ++
.../sysv/linux/sparc/sparc32/arch-syscall.h | 3 +++
.../sysv/linux/sparc/sparc64/arch-syscall.h | 3 +++
sysdeps/unix/sysv/linux/sys/mount.h | 6 +++++
sysdeps/unix/sysv/linux/sys/pidfd.h | 17 +++++++++++-
sysdeps/unix/sysv/linux/syscall-names.list | 7 +++--
sysdeps/unix/sysv/linux/tst-mman-consts.py | 2 +-
sysdeps/unix/sysv/linux/tst-mount-consts.py | 4 +--
sysdeps/unix/sysv/linux/tst-openat2-consts.py | 4 +--
sysdeps/unix/sysv/linux/tst-pidfd-consts.py | 2 +-
sysdeps/unix/sysv/linux/tst-sched-consts.py | 2 +-
.../unix/sysv/linux/x86_64/64/arch-syscall.h | 3 +++
.../unix/sysv/linux/x86_64/x32/arch-syscall.h | 3 +++
42 files changed, 150 insertions(+), 13 deletions(-)
--
2.43.0
More information about the Libc-alpha
mailing list