summaryrefslogtreecommitdiffstats
path: root/system_cmds/reboot.tproj
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-05-12 16:08:47 -0400
committerCameron Katri <me@cameronkatri.com>2021-05-12 16:08:47 -0400
commit68311c8bb2e7f974b5b91ad61f85980f432f2d7f (patch)
treed4a9ed409ebadc06c878142757ac2fd0fb5456af /system_cmds/reboot.tproj
parent31cccc89092a6431196810f7fc29a49e51aecfa6 (diff)
downloadapple_cmds-68311c8bb2e7f974b5b91ad61f85980f432f2d7f.tar.gz
apple_cmds-68311c8bb2e7f974b5b91ad61f85980f432f2d7f.tar.zst
apple_cmds-68311c8bb2e7f974b5b91ad61f85980f432f2d7f.zip
system_cmds: shutdown may not work
Diffstat (limited to 'system_cmds/reboot.tproj')
-rw-r--r--system_cmds/reboot.tproj/Makefile6
-rw-r--r--system_cmds/reboot.tproj/reboot.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/system_cmds/reboot.tproj/Makefile b/system_cmds/reboot.tproj/Makefile
new file mode 100644
index 0000000..d36639a
--- /dev/null
+++ b/system_cmds/reboot.tproj/Makefile
@@ -0,0 +1,6 @@
+PROG= reboot
+MAN= reboot.8
+
+BINDIR=/sbin
+
+.include <bsd.prog.mk>
diff --git a/system_cmds/reboot.tproj/reboot.c b/system_cmds/reboot.tproj/reboot.c
index 5478704..ce9a019 100644
--- a/system_cmds/reboot.tproj/reboot.c
+++ b/system_cmds/reboot.tproj/reboot.c
@@ -74,6 +74,8 @@ __unused static const char rcsid[] =
#include <sys/time.h>
#endif
+int reboot3(int);
+
void usage(void);
u_int get_pageins(void);
#if defined(__APPLE__) && !(TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)