<bits/syscall.h>: Use an arch-independent system call list on Linux
commit2dba5ce7b8115d6a2789bf279892263621088e74
authorFlorian Weimer <fweimer@redhat.com>
Mon, 28 Aug 2017 09:31:23 +0000 (28 11:31 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 28 Aug 2017 09:58:52 +0000 (28 11:58 +0200)
tree14d4eea70f46985b3fdcfd0d20d5263b128402e2
parent5f3b183d198b39ca993a41aadb02bddd9fde078d
<bits/syscall.h>: Use an arch-independent system call list on Linux

This commit changes the way the list of SYS_* system call macros is
created on Linux.  glibc now contains a list of all known system
calls, and the generated <bits/syscall.h> file defines the SYS_ macro
only if the correspnding __NR_ macro is defined by the kernel headers.

As a result, glibc does not have to be rebuilt to pick up system calls
if the glibc sources already know about them.  This means that glibc
can be built with older kernel headers, and if the installed kernel
headers are upgraded afterwards, additional SYS_ macros become
available as long as glibc has a record for those system calls.
ChangeLog
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/filter-nr-syscalls.awk [new file with mode: 0644]
sysdeps/unix/sysv/linux/gen-syscall-h.awk [new file with mode: 0644]
sysdeps/unix/sysv/linux/syscall-names.list [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-syscall-list.sh [new file with mode: 0644]