linux/tools/include/nolibc/sys
Thomas Weißschuh c503c3deb9 tools/nolibc: cast pointers returned from system calls through integers
Currently all system call wrappers return 'long' integers which can be
directly cast to 'void *' if the returned value is actually a pointer.
An upcoming change will change the system call wrappers to sometimes
return 'long long' which can not be cast to a pointer directly.

Add explicit cast through 'long' to prepare for this.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260418-nolibc-largefile-v1-3-b91f0775bac3@weissschuh.net
2026-04-27 20:08:54 +02:00
..
auxv.h tools/nolibc: add option to disable runtime 2025-10-29 16:29:16 +01:00
ioctl.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
mman.h tools/nolibc: cast pointers returned from system calls through integers 2026-04-27 20:08:54 +02:00
mount.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
prctl.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
ptrace.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
random.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
reboot.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
resource.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
select.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
stat.h tools/nolibc: use makedev() in fstatat() 2026-04-04 10:29:07 +02:00
syscall.h tools/nolibc: add the _syscall() macro 2026-04-07 09:27:07 +02:00
sysmacros.h tools/nolibc: handle all major and minor numbers in makedev() and friends 2026-04-04 10:29:02 +02:00
time.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
timerfd.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
types.h tools/nolibc: add sys/types.h shim 2025-04-19 14:22:29 +02:00
uio.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
utsname.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
wait.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00