Skip to content

Commit 6c91229

Browse files
committed
Auto merge of #2925 - devnexen:cpuset_size_dfbsd, r=JohnTitor
CPU_SETSIZE constant to dragonflybsd.
2 parents 183820f + 5dc92a1 commit 6c91229

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ CODESET
145145
CPU_CLR
146146
CPU_ISSET
147147
CPU_SET
148+
CPU_SETSIZE
148149
CPU_ZERO
149150
CPUCTL_RSMSR
150151
CPUCTL_WRMSR

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,8 @@ pub const CPUCTL_MSRSBIT: ::c_int = 0xc0106305;
10661066
pub const CPUCTL_MSRCBIT: ::c_int = 0xc0106306;
10671067
pub const CPUCTL_CPUID_COUNT: ::c_int = 0xc0106307;
10681068

1069+
pub const CPU_SETSIZE: ::size_t = ::mem::size_of::<::cpumask_t>() * 8;
1070+
10691071
pub const EVFILT_READ: i16 = -1;
10701072
pub const EVFILT_WRITE: i16 = -2;
10711073
pub const EVFILT_AIO: i16 = -3;

0 commit comments

Comments
 (0)