aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

commit 10117af2a95b8d45112f85fc0ae50a9062134afc
parent b676f70cbe66e13d7c9e9cf30f6e95b615f853a9
Author: xplshn <anto@xplshn.com.ar>
Date:   Tue, 24 Nov 2026 14:54:40 -0300

halt: no linux gate

Diffstat:
Mcmd/pseudo/halt.c | 13+------------
1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/cmd/pseudo/halt.c b/cmd/pseudo/halt.c @@ -1,12 +1,7 @@ /* see LICENSE file for copyright and license details */ -#if FEATURE_LINUX_SYSCALL -#ifndef _DEFAULT_SOURCE -#define _DEFAULT_SOURCE -#endif #ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE 500 -#endif +#define _XOPEN_SOURCE 500 /* sync */ #endif #include <stdio.h> @@ -48,11 +43,7 @@ main(int argc, char *argv[]) if (argc > 0) usage(); -#if FEATURE_LINUX_SYSCALL sync(); -#else - eprintf("halt: support not built\n"); -#endif if (pflag && rflag) usage(); @@ -62,9 +53,7 @@ main(int argc, char *argv[]) if (rflag) how = REBOOT_RESTART; -#if FEATURE_LINUX_SYSCALL if (machine_reboot(how) < 0) eprintf("reboot:"); -#endif return 0; }