Skip to content

Commit e1eb972

Browse files
committed
Auto merge of #2331 - rtzoeller:sched_get_priority_limits, r=Amanieu
sched_get_priority_max/min apply to all BSDs and Solaris `sched_get_priority_max()` and `sched_get_priority_min()` apply to all the BSDs as Solaris-like operating systems. Applying to all Unix-like OSes failed due to emscripten, among possibly others.
2 parents e1b07eb + b68bd77 commit e1eb972

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
@@ -4083,8 +4083,6 @@ extern "C" {
40834083
policy: ::c_int,
40844084
param: *const sched_param,
40854085
) -> ::c_int;
4086-
pub fn sched_get_priority_min(policy: ::c_int) -> ::c_int;
4087-
pub fn sched_get_priority_max(policy: ::c_int) -> ::c_int;
40884086
pub fn thread_policy_set(
40894087
thread: thread_t,
40904088
flavor: thread_policy_flavor_t,

src/unix/bsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,8 @@ extern "C" {
768768
)]
769769
pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int;
770770
pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int;
771+
pub fn sched_get_priority_min(policy: ::c_int) -> ::c_int;
772+
pub fn sched_get_priority_max(policy: ::c_int) -> ::c_int;
771773
pub fn sem_unlink(name: *const ::c_char) -> ::c_int;
772774
#[cfg_attr(target_os = "netbsd", link_name = "__getpwnam_r50")]
773775
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)