summaryrefslogtreecommitdiff
path: root/src/unix/bsd/mod.rs
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2021-08-12 11:58:10 -0500
committerRyan Zoeller <rtzoeller@rtzoeller.com>2021-08-12 11:58:10 -0500
commitb68bd77e3130115a5312d856ce881e0ec8533b0e (patch)
tree326ae62361c022f35e02a75edb8acf7acf0a7187 /src/unix/bsd/mod.rs
parent3af2448130c80902449704c3fc4799fb9e52af7a (diff)
downloadrust-libc-b68bd77e3130115a5312d856ce881e0ec8533b0e.tar.gz
sched_get_priority_max/min apply to all BSDs and Solaris
Diffstat (limited to 'src/unix/bsd/mod.rs')
-rw-r--r--src/unix/bsd/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs
index df4cd40c3a..9326b60da1 100644
--- a/src/unix/bsd/mod.rs
+++ b/src/unix/bsd/mod.rs
@@ -767,6 +767,8 @@ extern "C" {
)]
pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int;
pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int;
+ pub fn sched_get_priority_min(policy: ::c_int) -> ::c_int;
+ pub fn sched_get_priority_max(policy: ::c_int) -> ::c_int;
pub fn sem_unlink(name: *const ::c_char) -> ::c_int;
#[cfg_attr(target_os = "netbsd", link_name = "__getpwnam_r50")]
pub fn getpwnam_r(