@@ -1434,6 +1434,31 @@ pub const SHM_RND: ::c_int = 0o20000;
1434
1434
pub const SHM_R : :: c_int = 0o400 ;
1435
1435
pub const SHM_W : :: c_int = 0o200 ;
1436
1436
1437
+ pub const KENV_GET : :: c_int = 0 ;
1438
+ pub const KENV_SET : :: c_int = 1 ;
1439
+ pub const KENV_UNSET : :: c_int = 2 ;
1440
+ pub const KENV_DUMP : :: c_int = 3 ;
1441
+ pub const KENV_MNAMELEN : :: c_int = 128 ;
1442
+ pub const KENV_MVALLEN : :: c_int = 128 ;
1443
+
1444
+ pub const RB_ASKNAME : :: c_int = 0x001 ;
1445
+ pub const RB_SINGLE : :: c_int = 0x002 ;
1446
+ pub const RB_NOSYNC : :: c_int = 0x004 ;
1447
+ pub const RB_HALT : :: c_int = 0x008 ;
1448
+ pub const RB_INITNAME : :: c_int = 0x010 ;
1449
+ pub const RB_DFLTROOT : :: c_int = 0x020 ;
1450
+ pub const RB_KDB : :: c_int = 0x040 ;
1451
+ pub const RB_RDONLY : :: c_int = 0x080 ;
1452
+ pub const RB_DUMP : :: c_int = 0x100 ;
1453
+ pub const RB_MINIROOT : :: c_int = 0x200 ;
1454
+ pub const RB_VERBOSE : :: c_int = 0x800 ;
1455
+ pub const RB_SERIAL : :: c_int = 0x1000 ;
1456
+ pub const RB_CDROM : :: c_int = 0x2000 ;
1457
+ pub const RB_POWEROFF : :: c_int = 0x4000 ;
1458
+ pub const RB_GDB : :: c_int = 0x8000 ;
1459
+ pub const RB_MUTE : :: c_int = 0x10000 ;
1460
+ pub const RB_SELFTEST : :: c_int = 0x20000 ;
1461
+
1437
1462
safe_f ! {
1438
1463
pub { const } fn WIFCONTINUED ( status: :: c_int) -> bool {
1439
1464
status == 0x13
@@ -1737,6 +1762,14 @@ extern "C" {
1737
1762
pub fn eui64_hostton ( hostname : * const :: c_char , id : * mut eui64 ) -> :: c_int ;
1738
1763
1739
1764
pub fn eaccess ( path : * const :: c_char , mode : :: c_int ) -> :: c_int ;
1765
+
1766
+ pub fn kenv (
1767
+ action : :: c_int ,
1768
+ name : * const :: c_char ,
1769
+ value : * mut :: c_char ,
1770
+ len : :: c_int ,
1771
+ ) -> :: c_int ;
1772
+ pub fn reboot ( howto : :: c_int ) -> :: c_int ;
1740
1773
}
1741
1774
1742
1775
#[ link( name = "rt" ) ]
0 commit comments