mirror of
https://gitee.com/openharmony/third_party_rust_libc
synced 2024-10-07 05:33:48 +00:00
Auto merge of #2263 - devnexen:netbsd_sched_param, r=JohnTitor
netbsd: sched_param api addition
This commit is contained in:
commit
a273a07005
@ -1232,6 +1232,9 @@ regexec
|
||||
regfree
|
||||
regmatch_t
|
||||
regoff_t
|
||||
sched_getparam
|
||||
sched_param
|
||||
sched_setparam
|
||||
secure_path
|
||||
seekdir
|
||||
sem
|
||||
|
@ -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")]
|
||||
|
Loading…
Reference in New Issue
Block a user