summaryrefslogtreecommitdiff
path: root/tools/include/nolibc/sys.h
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2025-05-15 22:57:50 +0300
committerThomas Weißschuh <linux@weissschuh.net>2025-05-21 16:32:20 +0300
commit2efb9050909f1fc0db39b2600bada8341ebc56c3 (patch)
tree48de08ad4b3b958e2c8e113923189a5885ee0343 /tools/include/nolibc/sys.h
parent3edd5365f99eeff38c5d31d9809afa6231e6de2d (diff)
downloadlinux-2efb9050909f1fc0db39b2600bada8341ebc56c3.tar.xz
tools/nolibc: move reboot() to sys/reboot.h
This is the location regular userspace expects this definition. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Acked-by: Willy Tarreau <w@1wt.eu> Link: https://lore.kernel.org/r/20250515-nolibc-sys-v1-4-74f82eea3b59@weissschuh.net
Diffstat (limited to 'tools/include/nolibc/sys.h')
-rw-r--r--tools/include/nolibc/sys.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h
index a17fe98968a2..6c89dd0316dd 100644
--- a/tools/include/nolibc/sys.h
+++ b/tools/include/nolibc/sys.h
@@ -731,24 +731,6 @@ ssize_t read(int fd, void *buf, size_t count)
/*
- * int reboot(int cmd);
- * <cmd> is among LINUX_REBOOT_CMD_*
- */
-
-static __attribute__((unused))
-ssize_t sys_reboot(int magic1, int magic2, int cmd, void *arg)
-{
- return my_syscall4(__NR_reboot, magic1, magic2, cmd, arg);
-}
-
-static __attribute__((unused))
-int reboot(int cmd)
-{
- return __sysret(sys_reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, 0));
-}
-
-
-/*
* int getrlimit(int resource, struct rlimit *rlim);
* int setrlimit(int resource, const struct rlimit *rlim);
*/