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) {
12771277 "sys/mount.h" ,
12781278 "sys/procctl.h" ,
12791279 "sys/ptrace.h" ,
1280+ "sys/reboot.h" ,
12801281 "sys/resource.h" ,
12811282 "sys/rtprio.h" ,
12821283 "sys/sched.h" ,
@@ -1993,6 +1994,7 @@ fn test_freebsd(target: &str) {
19931994 "sys/ptrace.h" ,
19941995 "sys/queue.h" ,
19951996 "sys/random.h" ,
1997+ "sys/reboot.h" ,
19961998 "sys/resource.h" ,
19971999 "sys/rtprio.h" ,
19982000 "sys/sem.h" ,
Original file line number Diff line number Diff line change @@ -802,6 +802,25 @@ Q_SETQUOTA
802802Q_SYNC
803803RADIXCHAR
804804RAND_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
805824REG_ASSERT
806825REG_ATOI
807826REG_BACKR
Original file line number Diff line number Diff line change @@ -1034,6 +1034,28 @@ Q_SETQUOTA
10341034Q_SYNC
10351035RADIXCHAR
10361036RAND_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
10371059REG_ASSERT
10381060REG_ATOI
10391061REG_BACKR
Original file line number Diff line number Diff line change @@ -1519,6 +1519,9 @@ pub const MAXCOMLEN: usize = 16;
15191519pub const MAXLOGNAME : usize = 33 ;
15201520pub const NGROUPS : usize = 16 ;
15211521
1522+ pub const RB_PAUSE : :: c_int = 0x40000 ;
1523+ pub const RB_VIDEO : :: c_int = 0x20000000 ;
1524+
15221525const_fn ! {
15231526 { const } fn _CMSG_ALIGN( n: usize ) -> usize {
15241527 ( 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;
46834683pub const KENV_DUMP_LOADER : :: c_int = 4 ;
46844684pub const KENV_DUMP_STATIC : :: c_int = 5 ;
46854685
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+
46864692cfg_if ! {
46874693 if #[ cfg( libc_const_extern_fn) ] {
46884694 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;
14411441pub const KENV_MNAMELEN : :: c_int = 128 ;
14421442pub const KENV_MVALLEN : :: c_int = 128 ;
14431443
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+
14441462safe_f ! {
14451463 pub { const } fn WIFCONTINUED ( status: :: c_int) -> bool {
14461464 status == 0x13
@@ -1751,6 +1769,7 @@ extern "C" {
17511769 value : * mut :: c_char ,
17521770 len : :: c_int ,
17531771 ) -> :: c_int ;
1772+ pub fn reboot ( howto : :: c_int ) -> :: c_int ;
17541773}
17551774
17561775#[ link( name = "rt" ) ]
You can’t perform that action at this time.
0 commit comments