Auto merge of #2263 - devnexen:netbsd_sched_param, r=JohnTitor

netbsd: sched_param api addition
This commit is contained in:
bors 2021-06-30 22:15:57 +00:00
commit a273a07005
2 changed files with 10 additions and 0 deletions

View File

@ -1232,6 +1232,9 @@ regexec
regfree
regmatch_t
regoff_t
sched_getparam
sched_param
sched_setparam
secure_path
seekdir
sem

View File

@ -447,6 +447,10 @@ s! {
pub af_name: [::c_char; 16],
af_arg: [[::c_char; 10]; 24],
}
pub struct sched_param {
pub sched_priority: ::c_int,
}
}
s_no_extra_traits! {
@ -2170,6 +2174,9 @@ extern "C" {
newsize: ::size_t,
flags: ::c_int,
) -> *mut ::c_void;
pub fn sched_setparam(pid: ::pid_t, param: *const sched_param) -> ::c_int;
pub fn sched_getparam(pid: ::pid_t, param: *mut sched_param) -> ::c_int;
}
#[link(name = "util")]