diff options
author | bors <bors@rust-lang.org> | 2022-09-28 10:32:43 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2022-09-28 10:32:43 +0000 |
commit | 6c9122930fde2a46756c949c26a6683e0440eac4 (patch) | |
tree | 68dbb642e3b89eaa58f44b8e233db22a5dcfda80 | |
parent | 183820f6330d3d7a107632dfc87ef38212046b69 (diff) | |
parent | 5dc92a12ae51bf95bb436ce4dc29cda2f8cdca0a (diff) | |
download | rust-libc-6c9122930fde2a46756c949c26a6683e0440eac4.tar.gz |
Auto merge of #2925 - devnexen:cpuset_size_dfbsd, r=JohnTitor
CPU_SETSIZE constant to dragonflybsd.
-rw-r--r-- | libc-test/semver/dragonfly.txt | 1 | ||||
-rw-r--r-- | src/unix/bsd/freebsdlike/dragonfly/mod.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libc-test/semver/dragonfly.txt b/libc-test/semver/dragonfly.txt index 448b4fb4f4..e56441640b 100644 --- a/libc-test/semver/dragonfly.txt +++ b/libc-test/semver/dragonfly.txt @@ -145,6 +145,7 @@ CODESET CPU_CLR CPU_ISSET CPU_SET +CPU_SETSIZE CPU_ZERO CPUCTL_RSMSR CPUCTL_WRMSR diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs index 2935534f0d..418ac3dc80 100644 --- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs +++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs @@ -1066,6 +1066,8 @@ pub const CPUCTL_MSRSBIT: ::c_int = 0xc0106305; pub const CPUCTL_MSRCBIT: ::c_int = 0xc0106306; pub const CPUCTL_CPUID_COUNT: ::c_int = 0xc0106307; +pub const CPU_SETSIZE: ::size_t = ::mem::size_of::<::cpumask_t>() * 8; + pub const EVFILT_READ: i16 = -1; pub const EVFILT_WRITE: i16 = -2; pub const EVFILT_AIO: i16 = -3; |