[Glibc-bsd-commits] r2390 - trunk/glibc-ports/kfreebsd/sys

Aurelien Jarno aurel32 at alioth.debian.org
Sun Apr 5 21:53:25 UTC 2009


Author: aurel32
Date: 2009-04-05 21:53:25 +0000 (Sun, 05 Apr 2009)
New Revision: 2390

Modified:
   trunk/glibc-ports/kfreebsd/sys/reboot.h
Log:
glibc: add a reboot() function to match Linux version



Modified: trunk/glibc-ports/kfreebsd/sys/reboot.h
===================================================================
--- trunk/glibc-ports/kfreebsd/sys/reboot.h	2009-04-05 21:50:52 UTC (rev 2389)
+++ trunk/glibc-ports/kfreebsd/sys/reboot.h	2009-04-05 21:53:25 UTC (rev 2390)
@@ -31,8 +31,10 @@
  */
 
 #ifndef _SYS_REBOOT_H_
-#define	_SYS_REBOOT_H_
+#define	_SYS_REBOOT_H_	1
 
+#include <features.h>
+
 /*
  * Arguments to reboot system call.  These are passed to
  * the boot program and on to init.
@@ -63,4 +65,11 @@
 
 #define	RB_BOOTINFO	0x80000000	/* have `struct bootinfo *' arg */
 
+__BEGIN_DECLS
+
+/* Reboot or halt the system.  */
+extern int reboot (int __howto) __THROW;
+
+__END_DECLS
+
 #endif




More information about the Glibc-bsd-commits mailing list