Skip to content

Commit

Permalink
Auto merge of #3214 - devnexen:redox_further_missing_calls, r=JohnTitor
Browse files Browse the repository at this point in the history
redox adding few calls.
  • Loading branch information
bors committed Apr 22, 2023
2 parents c2f0f71 + 6446dad commit fc51b8b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/unix/redox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down Expand Up @@ -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! {
Expand Down

0 comments on commit fc51b8b

Please sign in to comment.