diff options
author | bors <bors@rust-lang.org> | 2023-04-22 09:32:14 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-04-22 09:32:14 +0000 |
commit | fc51b8b69af739b2ea0756de65d333975d386981 (patch) | |
tree | 6701fd99b092c74e55220121c8fe3753e9f5fea9 | |
parent | c2f0f7115157603c6c375e8e9b3fee7003b69d73 (diff) | |
parent | 6446dad69846d5854f292617c85af91d5f34f648 (diff) | |
download | rust-libc-fc51b8b69af739b2ea0756de65d333975d386981.tar.gz |
Auto merge of #3214 - devnexen:redox_further_missing_calls, r=JohnTitor
redox adding few calls.
-rw-r--r-- | src/unix/redox/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs index dec47c610b..ccd3d779fa 100644 --- a/src/unix/redox/mod.rs +++ b/src/unix/redox/mod.rs @@ -47,6 +47,7 @@ pub type speed_t = u32; pub type suseconds_t = ::c_int; pub type tcflag_t = u32; pub type time_t = ::c_longlong; +pub type id_t = ::c_uint; #[cfg_attr(feature = "extra_traits", derive(Debug))] pub enum timezone {} @@ -1104,6 +1105,15 @@ extern "C" { // strings.h pub fn explicit_bzero(p: *mut ::c_void, len: ::size_t); + + pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int; + pub fn setpriority(which: ::c_int, who: ::id_t, prio: ::c_int) -> ::c_int; + + pub fn getsubopt( + optionp: *mut *mut c_char, + tokens: *const *mut c_char, + valuep: *mut *mut c_char, + ) -> ::c_int; } cfg_if! { |