Skip to content

Commit

Permalink
Add more constants to Linux <sys/reboot.h>
Browse files Browse the repository at this point in the history
2012-05-23  Andreas Jaeger  <aj@suse.de>
	    Maximilian Attems  <max@stro.at>

	* sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND,
	RB_KEXEC):
	New macros.
  • Loading branch information
Andreas Jaeger committed May 23, 2012
1 parent 1c87aba commit 1a09dc5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2012-05-23 Andreas Jaeger <aj@suse.de>
Maximilian Attems <max@stro.at>

* sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
New macros.

2012-05-23 H.J. Lu <hongjiu.lu@intel.com>

* sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
Expand Down
8 changes: 7 additions & 1 deletion sysdeps/unix/sysv/linux/sys/reboot.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
/* Copyright (C) 1996-2012 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
Expand Down Expand Up @@ -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. */
Expand Down

0 comments on commit 1a09dc5

Please sign in to comment.