@@ -1830,6 +1830,25 @@ pub const LC_ALL_MASK: ::c_int = (1 << _LC_LAST) - 2;
18301830
18311831pub const LC_GLOBAL_LOCALE : :: locale_t = -1isize as :: locale_t ;
18321832
1833+ // sys/reboot.h
1834+ pub const RB_ASKNAME : :: c_int = 0x00001 ;
1835+ pub const RB_SINGLE : :: c_int = 0x00002 ;
1836+ pub const RB_NOSYNC : :: c_int = 0x00004 ;
1837+ pub const RB_HALT : :: c_int = 0x00008 ;
1838+ pub const RB_INITNAME : :: c_int = 0x00010 ;
1839+ pub const RB_KDB : :: c_int = 0x00040 ;
1840+ pub const RB_RDONLY : :: c_int = 0x00080 ;
1841+ pub const RB_DUMP : :: c_int = 0x00100 ;
1842+ pub const RB_MINIROOT : :: c_int = 0x00200 ;
1843+ pub const RB_CONFIG : :: c_int = 0x00400 ;
1844+ pub const RB_TIMEBAD : :: c_int = 0x00800 ;
1845+ pub const RB_POWERDOWN : :: c_int = 0x01000 ;
1846+ pub const RB_SERCONS : :: c_int = 0x02000 ;
1847+ pub const RB_USERREQ : :: c_int = 0x04000 ;
1848+ pub const RB_RESET : :: c_int = 0x08000 ;
1849+ pub const RB_GOODRANDOM : :: c_int = 0x10000 ;
1850+ pub const RB_UNHIBERNATE : :: c_int = 0x20000 ;
1851+
18331852const_fn ! {
18341853 { const } fn _ALIGN( p: usize ) -> usize {
18351854 ( p + _ALIGNBYTES) & !_ALIGNBYTES
@@ -2057,6 +2076,8 @@ extern "C" {
20572076 ) -> :: c_int ;
20582077
20592078 pub fn mimmutable ( addr : * mut :: c_void , len : :: size_t ) -> :: c_int ;
2079+
2080+ pub fn reboot ( mode : :: c_int ) -> :: c_int ;
20602081}
20612082
20622083#[ link( name = "execinfo" ) ]
0 commit comments