Skip to content

Commit 6c9ab47

Browse files
committed
Add CPU_SETSIZE const for FreeBSD
1 parent b252b2f commit 6c9ab47

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
@@ -1890,6 +1890,9 @@ pub const LIO_READV: ::c_int = 6;
18901890
pub const DEVSTAT_N_TRANS_FLAGS: ::c_int = 4;
18911891
pub const DEVSTAT_NAME_LEN: ::c_int = 16;
18921892

1893+
// sys/cpuset.h
1894+
pub const CPU_SETSIZE: ::c_int = 256;
1895+
18931896
pub const SIGEV_THREAD_ID: ::c_int = 4;
18941897

18951898
pub const EXTATTR_NAMESPACE_EMPTY: ::c_int = 0;

0 commit comments

Comments
 (0)