tools/nolibc: don't define new syscall number
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 17 Sep 2023 15:36:18 +0000 (17:36 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Thu, 12 Oct 2023 19:14:12 +0000 (21:14 +0200)
commite7b28f2516a6aec54e2aa1485e4806e8d8431815
tree98ab9d25fc5622d9a2f34253d752000eeeaa3947
parent535b70c143dcca0e236c35cc32fac17a18697764
tools/nolibc: don't define new syscall number

All symbols created by nolibc are also visible to user code.
Syscall constants are expected to come from the kernel headers and
should not be made up by nolibc.

Refactor the logic to avoid defining syscall numbers.
Also the new code is easier to understand.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20230917-nolibc-syscall-nr-v2-3-03863d509b9a@weissschuh.net
tools/include/nolibc/sys.h