File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,13 @@ pub const LOG_NFACILITIES: ::c_int = 24;
462
462
463
463
pub const SEM_FAILED : * mut :: sem_t = 0 as * mut sem_t ;
464
464
465
+ pub const RB_AUTOBOOT : :: c_int = 0x01234567 ;
466
+ pub const RB_HALT_SYSTEM : :: c_int = 0xcdef0123 ;
467
+ pub const RB_ENABLE_CAD : :: c_int = 0x89abcdef ;
468
+ pub const RB_DISABLE_CAD : :: c_int = 0 ;
469
+ pub const RB_POWER_OFF : :: c_int = 0x4321fedc ;
470
+ pub const RB_SW_SUSPEND : :: c_int = 0xd000fce2 ;
471
+ pub const RB_KEXEC : :: c_int = 0x45584543 ;
465
472
466
473
f ! {
467
474
pub fn CPU_ZERO ( cpuset: & mut cpu_set_t) -> ( ) {
@@ -634,6 +641,7 @@ extern {
634
641
remote_iov : * const :: iovec ,
635
642
riovcnt : :: c_ulong ,
636
643
flags : :: c_ulong ) -> isize ;
644
+ pub fn reboot ( how_to : :: c_int ) -> :: c_int ;
637
645
638
646
// Not available now on Android
639
647
pub fn mkfifoat ( dirfd : :: c_int , pathname : * const :: c_char ,
Original file line number Diff line number Diff line change @@ -666,14 +666,6 @@ pub const PIPE_BUF: usize = 4096;
666
666
667
667
pub const SI_LOAD_SHIFT : :: c_uint = 16 ;
668
668
669
- pub const RB_AUTOBOOT : :: c_int = 0x01234567 ;
670
- pub const RB_HALT_SYSTEM : :: c_int = 0xcdef0123 ;
671
- pub const RB_ENABLE_CAD : :: c_int = 0x89abcdef ;
672
- pub const RB_DISABLE_CAD : :: c_int = 0 ;
673
- pub const RB_POWER_OFF : :: c_int = 0x4321fedc ;
674
- pub const RB_SW_SUSPEND : :: c_int = 0xd000fce2 ;
675
- pub const RB_KEXEC : :: c_int = 0x45584543 ;
676
-
677
669
f ! {
678
670
pub fn FD_CLR ( fd: :: c_int, set: * mut fd_set) -> ( ) {
679
671
let fd = fd as usize ;
@@ -868,7 +860,6 @@ extern {
868
860
linkpath : * const :: c_char ) -> :: c_int ;
869
861
pub fn unlinkat ( dirfd : :: c_int , pathname : * const :: c_char ,
870
862
flags : :: c_int ) -> :: c_int ;
871
- pub fn reboot ( how_to : :: c_int ) -> :: c_int ;
872
863
}
873
864
874
865
cfg_if ! {
You can’t perform that action at this time.
0 commit comments