diff options
author | Val Packett <val@packett.cool> | 2023-05-07 04:11:03 -0300 |
---|---|---|
committer | Val Packett <val@packett.cool> | 2023-05-07 04:25:03 -0300 |
commit | d596cdf62ba846a7d7ecb9cefd5e265c59cbf2c1 (patch) | |
tree | ac9fc492c515e4b54a46ce3b234b0c27d11127d2 /src/unix/bsd/freebsdlike/mod.rs | |
parent | c461e304db322c53e8d0b28ae9192e9075b54a03 (diff) | |
download | rust-libc-d596cdf62ba846a7d7ecb9cefd5e265c59cbf2c1.tar.gz |
freebsdlike: add reboot
Diffstat (limited to 'src/unix/bsd/freebsdlike/mod.rs')
-rw-r--r-- | src/unix/bsd/freebsdlike/mod.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs index d89d5f8ffe..f328f0dd76 100644 --- a/src/unix/bsd/freebsdlike/mod.rs +++ b/src/unix/bsd/freebsdlike/mod.rs @@ -1441,6 +1441,24 @@ pub const KENV_DUMP: ::c_int = 3; pub const KENV_MNAMELEN: ::c_int = 128; pub const KENV_MVALLEN: ::c_int = 128; +pub const RB_ASKNAME: ::c_int = 0x001; +pub const RB_SINGLE: ::c_int = 0x002; +pub const RB_NOSYNC: ::c_int = 0x004; +pub const RB_HALT: ::c_int = 0x008; +pub const RB_INITNAME: ::c_int = 0x010; +pub const RB_DFLTROOT: ::c_int = 0x020; +pub const RB_KDB: ::c_int = 0x040; +pub const RB_RDONLY: ::c_int = 0x080; +pub const RB_DUMP: ::c_int = 0x100; +pub const RB_MINIROOT: ::c_int = 0x200; +pub const RB_VERBOSE: ::c_int = 0x800; +pub const RB_SERIAL: ::c_int = 0x1000; +pub const RB_CDROM: ::c_int = 0x2000; +pub const RB_POWEROFF: ::c_int = 0x4000; +pub const RB_GDB: ::c_int = 0x8000; +pub const RB_MUTE: ::c_int = 0x10000; +pub const RB_SELFTEST: ::c_int = 0x20000; + safe_f! { pub {const} fn WIFCONTINUED(status: ::c_int) -> bool { status == 0x13 @@ -1751,6 +1769,7 @@ extern "C" { value: *mut ::c_char, len: ::c_int, ) -> ::c_int; + pub fn reboot(howto: ::c_int) -> ::c_int; } #[link(name = "rt")] |