From 6446dad69846d5854f292617c85af91d5f34f648 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 21 Apr 2023 20:43:40 +0100 Subject: [PATCH] redox adding few calls. --- src/unix/redox/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs index dec47c610bafd..ccd3d779fa6bb 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! {