diff options
| author | Zhangjin Wu <[email protected]> | 2023-07-07 22:56:59 +0800 |
|---|---|---|
| committer | Willy Tarreau <[email protected]> | 2023-08-23 04:38:02 +0200 |
| commit | 6591be4a73feb955a107c70c7e5b621a97a2eb4b (patch) | |
| tree | 7c90f1c723fca70f7009cd15b2783e38ed332efb /tools/perf/scripts/python | |
| parent | 6d1970e1efc8696bc8c4b8d36c9680882cb2c849 (diff) | |
tools/nolibc: __sysret: support syscalls who return a pointer
No official reference states the errno range, here aligns with musl and
glibc and uses [-MAX_ERRNO, -1] instead of all negative ones.
- musl: src/internal/syscall_ret.c
- glibc: sysdeps/unix/sysv/linux/sysdep.h
The MAX_ERRNO used by musl and glibc is 4095, just like the one nolibc
defined in tools/include/nolibc/errno.h.
Suggested-by: Willy Tarreau <[email protected]>
Link: https://lore.kernel.org/lkml/ZKKdD%[email protected]/
Suggested-by: David Laight <[email protected]>
Link: https://lore.kernel.org/linux-riscv/[email protected]/
Signed-off-by: Zhangjin Wu <[email protected]>
Signed-off-by: Willy Tarreau <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions