Skip to content

Commit fc68370

Browse files
committed
Auto merge of #2888 - lwhsu:freebsd-CPU_SETSIZE, r=JohnTitor
Add CPU_SETSIZE const for FreeBSD It's in all supported versions of FreeBSD.
2 parents 81b6962 + 6c9ab47 commit fc68370

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ CPU_LEVEL_CPUSET
173173
CPU_LEVEL_ROOT
174174
CPU_LEVEL_WHICH
175175
CPU_SET
176+
CPU_SETSIZE
176177
CPU_WHICH_CPUSET
177178
CPU_WHICH_IRQ
178179
CPU_WHICH_JAIL

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1892,6 +1892,9 @@ pub const LIO_READV: ::c_int = 6;
18921892
pub const DEVSTAT_N_TRANS_FLAGS: ::c_int = 4;
18931893
pub const DEVSTAT_NAME_LEN: ::c_int = 16;
18941894

1895+
// sys/cpuset.h
1896+
pub const CPU_SETSIZE: ::c_int = 256;
1897+
18951898
pub const SIGEV_THREAD_ID: ::c_int = 4;
18961899

18971900
pub const EXTATTR_NAMESPACE_EMPTY: ::c_int = 0;

0 commit comments

Comments
 (0)