linux-yocto/tools/include/nolibc
Benjamin Berg 5bfe033a1b tools/nolibc/stdio: let perror work when NOLIBC_IGNORE_ERRNO is set
[ Upstream commit c485ca3aff2442adea4c08ceb5183e671ebed22a ]

There is no errno variable when NOLIBC_IGNORE_ERRNO is defined. As such,
simply print the message with "unknown error" rather than the integer
value of errno.

Fixes: acab7bcdb1 ("tools/nolibc/stdio: add perror() to report the errno value")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-12-18 13:54:50 +01:00
..
.gitignore
arch-aarch64.h
arch-arm.h
arch-i386.h
arch-loongarch.h
arch-mips.h
arch-powerpc.h
arch-riscv.h
arch-s390.h
arch-x86_64.h
arch.h
compiler.h
crt.h
ctype.h
errno.h
Makefile
nolibc.h
signal.h
stackprotector.h
std.h tools/nolibc: make time_t robust if __kernel_old_time_t is missing in host headers 2025-10-15 12:00:02 +02:00
stdarg.h
stdbool.h
stdint.h
stdio.h tools/nolibc/stdio: let perror work when NOLIBC_IGNORE_ERRNO is set 2025-12-18 13:54:50 +01:00
stdlib.h
string.h
sys.h
time.h
types.h
unistd.h