summaryrefslogtreecommitdiff
path: root/include/sys/reboot.h
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-05-22 14:19:16 +0000
committerWaldemar Brodkorb <wbx@openadk.org>2017-05-22 23:41:00 +0200
commit383122dd2e2fb78854ed420c5e819a3007b4f256 (patch)
tree2dcc1a566532a5610ec40381336298404c41200b /include/sys/reboot.h
parent54a08ba03939797447a482bb791d3bbba90ca121 (diff)
include/sys/reboot.h: add constants RB_SW_SUSPEND and RB_KEXEC
This syncs up <sys/reboot.h> with the GNU C library, see their commit 1a09dc56. These constants are needed by init systems like openrc. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'include/sys/reboot.h')
-rw-r--r--include/sys/reboot.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/sys/reboot.h b/include/sys/reboot.h
index bc685aebb..fafd2fb0c 100644
--- a/include/sys/reboot.h
+++ b/include/sys/reboot.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -38,6 +38,12 @@
/* Stop system and switch power off if possible. */
#define RB_POWER_OFF 0x4321fedc
+/* Suspend system using software suspend. */
+#define RB_SW_SUSPEND 0xd000fce2
+
+/* Reboot system into new kernel. */
+#define RB_KEXEC 0x45584543
+
__BEGIN_DECLS
/* Reboot or halt the system. */