diff options
| author | 2026-04-05 11:06:25 +0200 | |
|---|---|---|
| committer | 2026-04-07 09:27:07 +0200 | |
| commit | 2eb64b936d3b6332ae44bbf91277f912be5597e2 (patch) | |
| tree | 2fdd762a025fae411bc8bb2572a7beb66c447d6f /include/linux/bcma/ssh:/git@git.zx2c4.com | |
| parent | tools/nolibc: move the call to __sysret() into syscall() (diff) | |
tools/nolibc: add the _syscall() macro
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
Diffstat (limited to 'include/linux/bcma/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
