On Thu, 6 Dec 2018, Maciej W. Rozycki wrote:
On Thu, 6 Dec 2018, Joseph Myers wrote:
I believe this file is used by the glibc build process to retrieve syscall numbers for glibc's own use as well for <sys/syscall.h>. Has the change been verified not to break this process?
Cc-ing libc-alpha@sourceware.org for information and possible further input.
I'm not sure what "this file" is. The glibc build uses the installed <asm/unistd.h> (the results of #including it, not any other kind of processing the file).
So how are `SYS_<name>' macros generated that land in <bits/syscall.h>?
By gen-syscall-h.awk, which generates #ifdef conditionals for each possible __NR_* name (as listed in syscall-names.list in glibc).