File tree Expand file tree Collapse file tree 6 files changed +71
-0
lines changed Expand file tree Collapse file tree 6 files changed +71
-0
lines changed Original file line number Diff line number Diff line change @@ -1277,6 +1277,7 @@ fn test_dragonflybsd(target: &str) {
1277
1277
"sys/mount.h" ,
1278
1278
"sys/procctl.h" ,
1279
1279
"sys/ptrace.h" ,
1280
+ "sys/reboot.h" ,
1280
1281
"sys/resource.h" ,
1281
1282
"sys/rtprio.h" ,
1282
1283
"sys/sched.h" ,
@@ -1993,6 +1994,7 @@ fn test_freebsd(target: &str) {
1993
1994
"sys/ptrace.h" ,
1994
1995
"sys/queue.h" ,
1995
1996
"sys/random.h" ,
1997
+ "sys/reboot.h" ,
1996
1998
"sys/resource.h" ,
1997
1999
"sys/rtprio.h" ,
1998
2000
"sys/sem.h" ,
Original file line number Diff line number Diff line change @@ -802,6 +802,25 @@ Q_SETQUOTA
802
802
Q_SYNC
803
803
RADIXCHAR
804
804
RAND_MAX
805
+ RB_ASKNAME
806
+ RB_SINGLE
807
+ RB_NOSYNC
808
+ RB_HALT
809
+ RB_INITNAME
810
+ RB_DFLTROOT
811
+ RB_KDB
812
+ RB_RDONLY
813
+ RB_DUMP
814
+ RB_MINIROOT
815
+ RB_VERBOSE
816
+ RB_SERIAL
817
+ RB_CDROM
818
+ RB_POWEROFF
819
+ RB_GDB
820
+ RB_MUTE
821
+ RB_SELFTEST
822
+ RB_PAUSE
823
+ RB_VIDEO
805
824
REG_ASSERT
806
825
REG_ATOI
807
826
REG_BACKR
Original file line number Diff line number Diff line change @@ -1034,6 +1034,28 @@ Q_SETQUOTA
1034
1034
Q_SYNC
1035
1035
RADIXCHAR
1036
1036
RAND_MAX
1037
+ RB_ASKNAME
1038
+ RB_SINGLE
1039
+ RB_NOSYNC
1040
+ RB_HALT
1041
+ RB_INITNAME
1042
+ RB_DFLTROOT
1043
+ RB_KDB
1044
+ RB_RDONLY
1045
+ RB_DUMP
1046
+ RB_MINIROOT
1047
+ RB_VERBOSE
1048
+ RB_SERIAL
1049
+ RB_CDROM
1050
+ RB_POWEROFF
1051
+ RB_GDB
1052
+ RB_MUTE
1053
+ RB_SELFTEST
1054
+ RB_PAUSE
1055
+ RB_REROOT
1056
+ RB_POWERCYCLE
1057
+ RB_PROBE
1058
+ RB_MULTIPLE
1037
1059
REG_ASSERT
1038
1060
REG_ATOI
1039
1061
REG_BACKR
Original file line number Diff line number Diff line change @@ -1519,6 +1519,9 @@ pub const MAXCOMLEN: usize = 16;
1519
1519
pub const MAXLOGNAME : usize = 33 ;
1520
1520
pub const NGROUPS : usize = 16 ;
1521
1521
1522
+ pub const RB_PAUSE : :: c_int = 0x40000 ;
1523
+ pub const RB_VIDEO : :: c_int = 0x20000000 ;
1524
+
1522
1525
const_fn ! {
1523
1526
{ const } fn _CMSG_ALIGN( n: usize ) -> usize {
1524
1527
( n + ( :: mem:: size_of:: <:: c_long>( ) - 1 ) ) & !( :: mem:: size_of:: <:: c_long>( ) - 1 )
Original file line number Diff line number Diff line change @@ -4683,6 +4683,12 @@ pub const SCTP_STREAM_CHANGE_FAILED: ::c_int = 0x0008;
4683
4683
pub const KENV_DUMP_LOADER : :: c_int = 4 ;
4684
4684
pub const KENV_DUMP_STATIC : :: c_int = 5 ;
4685
4685
4686
+ pub const RB_PAUSE : :: c_int = 0x100000 ;
4687
+ pub const RB_REROOT : :: c_int = 0x200000 ;
4688
+ pub const RB_POWERCYCLE : :: c_int = 0x400000 ;
4689
+ pub const RB_PROBE : :: c_int = 0x10000000 ;
4690
+ pub const RB_MULTIPLE : :: c_int = 0x20000000 ;
4691
+
4686
4692
cfg_if ! {
4687
4693
if #[ cfg( libc_const_extern_fn) ] {
4688
4694
pub const fn MAP_ALIGNED ( a: :: c_int) -> :: c_int {
Original file line number Diff line number Diff line change @@ -1441,6 +1441,24 @@ pub const KENV_DUMP: ::c_int = 3;
1441
1441
pub const KENV_MNAMELEN : :: c_int = 128 ;
1442
1442
pub const KENV_MVALLEN : :: c_int = 128 ;
1443
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
+
1444
1462
safe_f ! {
1445
1463
pub { const } fn WIFCONTINUED ( status: :: c_int) -> bool {
1446
1464
status == 0x13
@@ -1751,6 +1769,7 @@ extern "C" {
1751
1769
value : * mut :: c_char ,
1752
1770
len : :: c_int ,
1753
1771
) -> :: c_int ;
1772
+ pub fn reboot ( howto : :: c_int ) -> :: c_int ;
1754
1773
}
1755
1774
1756
1775
#[ link( name = "rt" ) ]
You can’t perform that action at this time.
0 commit comments