linux/tools/include/nolibc
Willy Tarreau a7604ba149 tools/nolibc/sys: make open() take a vararg on the 3rd argument
Let's pass a vararg to open() so that it remains compatible with existing
code. The arg is only dereferenced when flags contain O_CREAT. The function
is generally not inlined anymore, causing an extra call (total 16 extra
bytes) but it's still optimized for constant propagation, limiting the
excess to no more than 16 bytes in practice when open() is called without
O_CREAT, and ~40 with O_CREAT, which remains reasonable.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
2022-04-20 17:05:44 -07:00
..
arch-aarch64.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
arch-arm.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
arch-i386.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
arch-mips.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
arch-riscv.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
arch-x86_64.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
arch.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
ctype.h tools/nolibc/ctype: add the missing is* functions 2022-04-20 17:05:43 -07:00
nolibc.h tools/nolibc/stdio: add a minimal set of stdio functions 2022-04-20 17:05:44 -07:00
std.h tools/nolibc/std: move the standard type definitions to std.h 2022-04-20 17:05:33 -07:00
stdio.h tools/nolibc/stdio: add perror() to report the errno value 2022-04-20 17:05:44 -07:00
stdlib.h tools/nolibc/stdlib: add utoh() and u64toh() 2022-04-20 17:05:44 -07:00
string.h tools/nolibc/string: split the string functions into string.h 2022-04-20 17:05:43 -07:00
sys.h tools/nolibc/sys: make open() take a vararg on the 3rd argument 2022-04-20 17:05:44 -07:00
types.h tools/nolibc/types: define EXIT_SUCCESS and EXIT_FAILURE 2022-04-20 17:05:44 -07:00