about summary refs log tree commit diff
path: root/libof-iterator.mk
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-05-11 22:23:34 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-05-11 22:23:34 +0200
commit6fcb0272f76721a45e33061404120907e8c5dae4 (patch)
treeb1dc10d4e881641a3294e36fd096d362ad5824ef /libof-iterator.mk
parent978e8ac39f8ba2d694031e521511da1ae803ccfc (diff)
downloadglibc-6fcb0272f76721a45e33061404120907e8c5dae4.tar.gz
glibc-6fcb0272f76721a45e33061404120907e8c5dae4.tar.xz
glibc-6fcb0272f76721a45e33061404120907e8c5dae4.zip
Linux: Enhance glibcsyscalls.py to support listing system calls
The script can now be called to query the definition status of
system call numbers across all architectures, like this:

$ python3 sysdeps/unix/sysv/linux/glibcsyscalls.py query-syscall sync_file_range sync_file_range2
sync_file_range:
  defined: aarch64 alpha csky hppa i386 ia64 m68k microblaze mips/mips32 mips/mips64/n32 mips/mips64/n64 nios2 riscv/rv64 s390/s390-32 s390/s390-64 sh sparc/sparc32 sparc/sparc64 x86_64/64 x86_64/x32
  undefined: arm powerpc/powerpc32 powerpc/powerpc64
sync_file_range2:
  defined: arm powerpc/powerpc32 powerpc/powerpc64
  undefined: aarch64 alpha csky hppa i386 ia64 m68k microblaze mips/mips32 mips/mips64/n32 mips/mips64/n64 nios2 riscv/rv64 s390/s390-32 s390/s390-64 sh sparc/sparc32 sparc/sparc64 x86_64/64 x86_64/x32

This command lists the headers containing the system call numbers:

$ python3 sysdeps/unix/sysv/linux/glibcsyscalls.py list-headers

The argument parser code is based on a suggestion from Adhemerval Zanella.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'libof-iterator.mk')
0 files changed, 0 insertions, 0 deletions