Skip to content

Commit

Permalink
Auto merge of #2925 - devnexen:cpuset_size_dfbsd, r=JohnTitor
Browse files Browse the repository at this point in the history
CPU_SETSIZE constant to dragonflybsd.
  • Loading branch information
bors committed Sep 28, 2022
2 parents 183820f + 5dc92a1 commit 6c91229
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/dragonfly.txt
Expand Up @@ -145,6 +145,7 @@ CODESET
CPU_CLR
CPU_ISSET
CPU_SET
CPU_SETSIZE
CPU_ZERO
CPUCTL_RSMSR
CPUCTL_WRMSR
Expand Down
2 changes: 2 additions & 0 deletions src/unix/bsd/freebsdlike/dragonfly/mod.rs
Expand Up @@ -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;
Expand Down

0 comments on commit 6c91229

Please sign in to comment.