platform_bionic/libc/tools
Martijn Coenen 0c6de75a45 genfunctosyscallnrs: maps bionic functions to syscall numbers.
Bionic maps typical C functions like setresuid() to a syscall,
depending on the architecture used. This tool generates a .h
file that maps all bionic functions in SYSCALLS.txt to the
syscall number used on a particular architecture. It can then
be used to generate correct seccomp policy at runtime.

Example output in func_to_syscall_nrs.h:

Bug: 111434506
Test: manually inspect func_to_syscall_nrs.h
Change-Id: I8bc5c1cb17a2e7b5c534b2e0496411f2d419ad86
2019-01-19 09:09:30 +01:00
..
check-symbols-glibc.py Merge "Be more specific about POSIX obsolescence." 2017-10-20 16:50:28 +00:00
check-symbols.py Use env to invoke python 2017-08-31 15:11:50 -07:00
generate-NOTICE.py Update to FreeBSD libm r336665. 2018-07-24 10:36:00 -07:00
genfunctosyscallnrs.py genfunctosyscallnrs: maps bionic functions to syscall numbers. 2019-01-19 09:09:30 +01:00
genseccomp.py seccomp: Generate the policy files at compile time 2018-08-06 11:10:25 -07:00
genserv.py Remove some dead script code and fix a script comment. 2013-03-25 14:09:52 -07:00
gensyscalls.py Add lp32 and lp64 shorthands to SYSCALLS.TXT. 2018-11-09 13:57:34 -08:00
ndk_missing_symbols.py Add a basic NDK compatibility library. 2015-01-21 18:12:15 -08:00
posix-2013.txt Add support for listing missing POSIX 2013 symbols. 2014-11-05 16:54:53 -08:00
pylintrc Add pylintrc. 2016-08-02 15:15:09 -07:00
symbols.py Add a basic NDK compatibility library. 2015-01-21 18:12:15 -08:00
test_genseccomp.py Add seccomp blacklist, and exclude swap functions 2017-04-12 19:34:33 +00:00