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 21, 2023
1 parent e4cccf9 commit 8cdf397
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/unix/redox/mod.rs
Expand Up @@ -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! {
Expand Down

0 comments on commit 8cdf397

Please sign in to comment.