From 8cdf397659e0ef93cf3b67c3826c43509a7e6355 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs index dec47c610bafd..c65ebd53fc7e7 100644 --- a/src/unix/redox/mod.rs +++ b/src/unix/redox/mod.rs @@ -1104,6 +1104,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! {