Skip to content

Commit 22c42a6

Browse files
committed
Auto merge of #2339 - rtzoeller:freebsdlike_sched_setparam, r=Amanieu
Add sched_get/setparam for FreeBSD and DragonFlyBSD FreeBSD and DragonFlyBSD support `sched_getparam()` and `sched_setparam()` with the same signature as NetBSD.
2 parents ecead08 + 3c17b02 commit 22c42a6

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,10 +1358,12 @@ regfree
13581358
regmatch_t
13591359
regoff_t
13601360
rtprio
1361+
sched_getparam
13611362
sched_getscheduler
13621363
sched_get_priority_max
13631364
sched_get_priority_min
13641365
sched_param
1366+
sched_setparam
13651367
sched_setscheduler
13661368
seekdir
13671369
sem

libc-test/semver/freebsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,10 +1625,12 @@ regoff_t
16251625
rtprio
16261626
rtprio_thread
16271627
sallocx
1628+
sched_getparam
16281629
sched_getscheduler
16291630
sched_get_priority_max
16301631
sched_get_priority_min
16311632
sched_param
1633+
sched_setparam
16321634
sched_setscheduler
16331635
sdallocx
16341636
seekdir

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,8 @@ extern "C" {
15541554
-> ::ssize_t;
15551555
pub fn querylocale(mask: ::c_int, loc: ::locale_t) -> *const ::c_char;
15561556
pub fn rtprio(function: ::c_int, pid: ::pid_t, rtp: *mut rtprio) -> ::c_int;
1557+
pub fn sched_getparam(pid: ::pid_t, param: *mut sched_param) -> ::c_int;
1558+
pub fn sched_setparam(pid: ::pid_t, param: *const sched_param) -> ::c_int;
15571559
pub fn sched_getscheduler(pid: ::pid_t) -> ::c_int;
15581560
pub fn sched_setscheduler(
15591561
pid: ::pid_t,

0 commit comments

Comments
 (0)