search for: eed0a46

Displaying 2 results from an estimated 2 matches for "eed0a46".

Did you mean: eec0a42
2017 May 22
0
[PATCH] Add support for reboot syscall argument
...call is available as __reboot(). */ -int reboot(int flag) +int reboot(int flag, void *arg) { - return __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, flag, NULL); + return __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, flag, arg); } diff --git a/usr/utils/halt.c b/usr/utils/halt.c index eed0a46..c15b42a 100644 --- a/usr/utils/halt.c +++ b/usr/utils/halt.c @@ -6,7 +6,7 @@ static __noreturn usage(void) { - static char mesg[] = "Usage: {halt|reboot|poweroff} [-n]\n"; + static char mesg[] = "Usage: {halt|reboot|poweroff} [-n] [reboot-arg]\n"; write(2, mesg, sizeof(me...
2019 Jan 18
0
[klibc:master] Add support for reboot syscall argument
...call is available as __reboot(). */ -int reboot(int flag) +int reboot(int flag, void *arg) { - return __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, flag, NULL); + return __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, flag, arg); } diff --git a/usr/utils/halt.c b/usr/utils/halt.c index eed0a46..368f095 100644 --- a/usr/utils/halt.c +++ b/usr/utils/halt.c @@ -6,7 +6,7 @@ static __noreturn usage(void) { - static char mesg[] = "Usage: {halt|reboot|poweroff} [-n]\n"; + static char mesg[] = "Usage: {halt|reboot|poweroff} [-n] [reboot-arg]\n"; write(2, mesg, sizeof(me...