diff options
author | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2021-09-25 22:48:26 -0500 |
---|---|---|
committer | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2021-09-25 22:48:26 -0500 |
commit | 29851994b64a58759b5c9cc618a6162b7970fdf8 (patch) | |
tree | 79b834979980dc79acc709383c9b4655198fb293 | |
parent | 199e39efa632b9b58e7486974d5184762dd756b2 (diff) | |
download | rust-libc-29851994b64a58759b5c9cc618a6162b7970fdf8.tar.gz |
DragonFlyBSD supports sched_getcpu()
-rw-r--r-- | src/unix/bsd/freebsdlike/dragonfly/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs index 7536a222e3..4b99038784 100644 --- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs +++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs @@ -1390,6 +1390,7 @@ extern "C" { pub fn sched_getaffinity(pid: ::pid_t, cpusetsize: ::size_t, mask: *mut cpu_set_t) -> ::c_int; pub fn sched_setaffinity(pid: ::pid_t, cpusetsize: ::size_t, mask: *const cpu_set_t) -> ::c_int; + pub fn sched_getcpu() -> ::c_int; pub fn setproctitle(fmt: *const ::c_char, ...); pub fn shmget(key: ::key_t, size: ::size_t, shmflg: ::c_int) -> ::c_int; |