diff options
author | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2021-08-13 18:37:46 -0500 |
---|---|---|
committer | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2021-08-13 18:37:46 -0500 |
commit | 3c17b02bbec9a2db73cff14b225f3627bf07ac0a (patch) | |
tree | 5654691111e8de56f5f0db8e8b599dd79b312c12 | |
parent | 538c403c2e7751f3f0688c176f733a13e1574d95 (diff) | |
download | rust-libc-3c17b02bbec9a2db73cff14b225f3627bf07ac0a.tar.gz |
Add sched_get/setparam for FreeBSD and DragonFlyBSD
-rw-r--r-- | libc-test/semver/dragonfly.txt | 2 | ||||
-rw-r--r-- | libc-test/semver/freebsd.txt | 2 | ||||
-rw-r--r-- | src/unix/bsd/freebsdlike/mod.rs | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/libc-test/semver/dragonfly.txt b/libc-test/semver/dragonfly.txt index b035661d59..e2ae4664b3 100644 --- a/libc-test/semver/dragonfly.txt +++ b/libc-test/semver/dragonfly.txt @@ -1358,10 +1358,12 @@ regfree regmatch_t regoff_t rtprio +sched_getparam sched_getscheduler sched_get_priority_max sched_get_priority_min sched_param +sched_setparam sched_setscheduler seekdir sem diff --git a/libc-test/semver/freebsd.txt b/libc-test/semver/freebsd.txt index 5a1bd74bb4..c5a4164ac4 100644 --- a/libc-test/semver/freebsd.txt +++ b/libc-test/semver/freebsd.txt @@ -1625,10 +1625,12 @@ regoff_t rtprio rtprio_thread sallocx +sched_getparam sched_getscheduler sched_get_priority_max sched_get_priority_min sched_param +sched_setparam sched_setscheduler sdallocx seekdir diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs index bed49c907e..7407b8b6ac 100644 --- a/src/unix/bsd/freebsdlike/mod.rs +++ b/src/unix/bsd/freebsdlike/mod.rs @@ -1554,6 +1554,8 @@ extern "C" { -> ::ssize_t; pub fn querylocale(mask: ::c_int, loc: ::locale_t) -> *const ::c_char; pub fn rtprio(function: ::c_int, pid: ::pid_t, rtp: *mut rtprio) -> ::c_int; + pub fn sched_getparam(pid: ::pid_t, param: *mut sched_param) -> ::c_int; + pub fn sched_setparam(pid: ::pid_t, param: *const sched_param) -> ::c_int; pub fn sched_getscheduler(pid: ::pid_t) -> ::c_int; pub fn sched_setscheduler( pid: ::pid_t, |