diff options
author | David Carlier <devnexen@gmail.com> | 2023-04-21 20:43:40 +0100 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2023-04-22 06:36:54 +0100 |
commit | 6446dad69846d5854f292617c85af91d5f34f648 (patch) | |
tree | 4a02e39b1fbccb6ee9178b9d899d38057d81d319 /src | |
parent | e4cccf92421e5a8a2bf56fed9bd4278eda1f7907 (diff) | |
download | rust-libc-6446dad69846d5854f292617c85af91d5f34f648.tar.gz |
redox adding few calls.
Diffstat (limited to 'src')
-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! { |