mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 16:59:27 +02:00
The standard syscall() function or macro uses the libc return value convention. Errors returned from the kernel as negative values are stored in errno and -1 is returned. Users who want to avoid using errno don't have a way to call raw syscalls and check the returned error. Add a new macro _syscall() which works like the standard syscall() but passes through the return value from the kernel unchanged. The naming scheme and return values match the named _sys_foo() system call wrappers already part of nolibc. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Acked-by: Willy Tarreau <w@1wt.eu> Link: https://patch.msgid.link/20260405-nolibc-syscall-v1-3-e5b12bc63211@weissschuh.net |
||
|---|---|---|
| .. | ||
| auxv.h | ||
| ioctl.h | ||
| mman.h | ||
| mount.h | ||
| prctl.h | ||
| ptrace.h | ||
| random.h | ||
| reboot.h | ||
| resource.h | ||
| select.h | ||
| stat.h | ||
| syscall.h | ||
| sysmacros.h | ||
| time.h | ||
| timerfd.h | ||
| types.h | ||
| uio.h | ||
| utsname.h | ||
| wait.h | ||