Skip to content

Commit

Permalink
redox adding few calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Apr 22, 2023
1 parent e4cccf9 commit 6446dad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/unix/redox/mod.rs
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 6446dad

Please sign in to comment.