From 5dc92a12ae51bf95bb436ce4dc29cda2f8cdca0a Mon Sep 17 00:00:00 2001 From: David Carlier Date: Mon, 26 Sep 2022 13:33:01 +0100 Subject: [PATCH] CPU_SETSIZE constant to dragonflybsd. --- libc-test/semver/dragonfly.txt | 1 + src/unix/bsd/freebsdlike/dragonfly/mod.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libc-test/semver/dragonfly.txt b/libc-test/semver/dragonfly.txt index 448b4fb4f4bc6..e56441640b813 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 2935534f0d6a9..418ac3dc802c2 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;