Skip to content

Commit fc51b8b

Browse files
committed
Auto merge of #3214 - devnexen:redox_further_missing_calls, r=JohnTitor
redox adding few calls.
2 parents c2f0f71 + 6446dad commit fc51b8b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/unix/redox/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ pub type speed_t = u32;
4747
pub type suseconds_t = ::c_int;
4848
pub type tcflag_t = u32;
4949
pub type time_t = ::c_longlong;
50+
pub type id_t = ::c_uint;
5051

5152
#[cfg_attr(feature = "extra_traits", derive(Debug))]
5253
pub enum timezone {}
@@ -1104,6 +1105,15 @@ extern "C" {
11041105

11051106
// strings.h
11061107
pub fn explicit_bzero(p: *mut ::c_void, len: ::size_t);
1108+
1109+
pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int;
1110+
pub fn setpriority(which: ::c_int, who: ::id_t, prio: ::c_int) -> ::c_int;
1111+
1112+
pub fn getsubopt(
1113+
optionp: *mut *mut c_char,
1114+
tokens: *const *mut c_char,
1115+
valuep: *mut *mut c_char,
1116+
) -> ::c_int;
11071117
}
11081118

11091119
cfg_if! {

0 commit comments

Comments
 (0)