Skip to content

Commit b68bd77

Browse files
committed
sched_get_priority_max/min apply to all BSDs and Solaris
1 parent 3af2448 commit b68bd77

File tree

7 files changed

+12
-2
lines changed

7 files changed

+12
-2
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,8 @@ regmatch_t
13591359
regoff_t
13601360
rtprio
13611361
sched_getscheduler
1362+
sched_get_priority_max
1363+
sched_get_priority_min
13621364
sched_param
13631365
sched_setscheduler
13641366
seekdir

libc-test/semver/freebsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,6 +1626,8 @@ rtprio
16261626
rtprio_thread
16271627
sallocx
16281628
sched_getscheduler
1629+
sched_get_priority_max
1630+
sched_get_priority_min
16291631
sched_param
16301632
sched_setscheduler
16311633
sdallocx

libc-test/semver/netbsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,8 @@ regfree
12651265
regmatch_t
12661266
regoff_t
12671267
sched_getparam
1268+
sched_get_priority_max
1269+
sched_get_priority_min
12681270
sched_param
12691271
sched_setparam
12701272
secure_path

libc-test/semver/openbsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,8 @@ regexec
10401040
regfree
10411041
regmatch_t
10421042
regoff_t
1043+
sched_get_priority_max
1044+
sched_get_priority_min
10431045
seekdir
10441046
sem
10451047
sem_close

src/unix/bsd/apple/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4037,8 +4037,6 @@ extern "C" {
40374037
policy: ::c_int,
40384038
param: *const sched_param,
40394039
) -> ::c_int;
4040-
pub fn sched_get_priority_min(policy: ::c_int) -> ::c_int;
4041-
pub fn sched_get_priority_max(policy: ::c_int) -> ::c_int;
40424040
pub fn thread_policy_set(
40434041
thread: thread_t,
40444042
flavor: thread_policy_flavor_t,

src/unix/bsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ extern "C" {
767767
)]
768768
pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int;
769769
pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int;
770+
pub fn sched_get_priority_min(policy: ::c_int) -> ::c_int;
771+
pub fn sched_get_priority_max(policy: ::c_int) -> ::c_int;
770772
pub fn sem_unlink(name: *const ::c_char) -> ::c_int;
771773
#[cfg_attr(target_os = "netbsd", link_name = "__getpwnam_r50")]
772774
pub fn getpwnam_r(

src/unix/solarish/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2510,6 +2510,8 @@ extern "C" {
25102510
pub fn sem_open(name: *const ::c_char, oflag: ::c_int, ...) -> *mut sem_t;
25112511
pub fn getgrnam(name: *const ::c_char) -> *mut ::group;
25122512
pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int;
2513+
pub fn sched_get_priority_min(policy: ::c_int) -> ::c_int;
2514+
pub fn sched_get_priority_max(policy: ::c_int) -> ::c_int;
25132515
pub fn sem_unlink(name: *const ::c_char) -> ::c_int;
25142516
pub fn daemon(nochdir: ::c_int, noclose: ::c_int) -> ::c_int;
25152517
#[cfg_attr(

0 commit comments

Comments
 (0)