tools/nolibc/types: split syscall-specific definitions into their own files
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Feb 2022 16:23:16 +0000 (17:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:48:55 +0000 (11:48 +0100)
commit8591e788bea3d98a3bd4cd5e8392bff38ada01c0
tree962c8a1ca23e9a09c3b8c9472d947607fe3c8107
parent4fceecdeaa8a88e668243db8f2a072b65b257f4c
tools/nolibc/types: split syscall-specific definitions into their own files

[ Upstream commit cc7a492ad0a076dff5cb4281b1516676d7924fcf ]

The macros and type definitions used by a number of syscalls were moved
to types.h where they will be easier to maintain. A few of them
are arch-specific and must not be moved there (e.g. O_*, sys_stat_struct).
A warning about them was placed at the top of the file.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Stable-dep-of: 184177c3d6e0 ("tools/nolibc: restore mips branch ordering in the _start block")
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/include/nolibc/nolibc.h
tools/include/nolibc/types.h [new file with mode: 0644]