Files
KirkOS/user/include/mlibc/sysdeps/ironclad/generic/reboot.cpp
T
kaguya 9a9b91c940 user: implement mlibc as the libc, finally.
It's finally done..

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
2026-05-02 03:31:49 -04:00

10 lines
160 B
C++

#include <errno.h>
#include <sys/reboot.h>
#include <sys/syscall.h>
int reboot(int what) {
int ret, errno;
SYSCALL2(SYSCALL_REBOOT, what, 0);
return ret;
}