Skip to content

Commit 8b05ed7

Browse files
committed
Auto merge of #2670 - devnexen:fbsd_dfbsd_sched_upd, r=Amanieu
bsd sched api update
2 parents d5f6f7a + b1b4745 commit 8b05ed7

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,7 @@ sched_getscheduler
14231423
sched_get_priority_max
14241424
sched_get_priority_min
14251425
sched_param
1426+
sched_rr_get_interval
14261427
sched_setparam
14271428
sched_setscheduler
14281429
seekdir

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,6 +1740,7 @@ sched_getscheduler
17401740
sched_get_priority_max
17411741
sched_get_priority_min
17421742
sched_param
1743+
sched_rr_get_interval
17431744
sched_setparam
17441745
sched_setscheduler
17451746
sdallocx

libc-test/semver/netbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,6 +1389,7 @@ sched_getscheduler
13891389
sched_get_priority_max
13901390
sched_get_priority_min
13911391
sched_param
1392+
sched_rr_get_interval
13921393
sched_setparam
13931394
sched_setscheduler
13941395
secure_path

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,6 +1601,7 @@ extern "C" {
16011601
-> ::ssize_t;
16021602
pub fn querylocale(mask: ::c_int, loc: ::locale_t) -> *const ::c_char;
16031603
pub fn rtprio(function: ::c_int, pid: ::pid_t, rtp: *mut rtprio) -> ::c_int;
1604+
pub fn sched_rr_get_interval(pid: ::pid_t, t: *mut ::timespec) -> ::c_int;
16041605
pub fn sched_getparam(pid: ::pid_t, param: *mut sched_param) -> ::c_int;
16051606
pub fn sched_setparam(pid: ::pid_t, param: *const sched_param) -> ::c_int;
16061607
pub fn sched_getscheduler(pid: ::pid_t) -> ::c_int;

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2515,6 +2515,7 @@ extern "C" {
25152515
flags: ::c_int,
25162516
) -> *mut ::c_void;
25172517

2518+
pub fn sched_rr_get_interval(pid: ::pid_t, t: *mut ::timespec) -> ::c_int;
25182519
pub fn sched_setparam(pid: ::pid_t, param: *const sched_param) -> ::c_int;
25192520
pub fn sched_getparam(pid: ::pid_t, param: *mut sched_param) -> ::c_int;
25202521
pub fn sched_getscheduler(pid: ::pid_t) -> ::c_int;

0 commit comments

Comments
 (0)