Skip to content

Commit

Permalink
Auto merge of #2888 - lwhsu:freebsd-CPU_SETSIZE, r=JohnTitor
Browse files Browse the repository at this point in the history
Add CPU_SETSIZE const for FreeBSD

It's in all supported versions of FreeBSD.
  • Loading branch information
bors committed Aug 24, 2022
2 parents 81b6962 + 6c9ab47 commit fc68370
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/freebsd.txt
Expand Up @@ -173,6 +173,7 @@ CPU_LEVEL_CPUSET
CPU_LEVEL_ROOT
CPU_LEVEL_WHICH
CPU_SET
CPU_SETSIZE
CPU_WHICH_CPUSET
CPU_WHICH_IRQ
CPU_WHICH_JAIL
Expand Down
3 changes: 3 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Expand Up @@ -1892,6 +1892,9 @@ pub const LIO_READV: ::c_int = 6;
pub const DEVSTAT_N_TRANS_FLAGS: ::c_int = 4;
pub const DEVSTAT_NAME_LEN: ::c_int = 16;

// sys/cpuset.h
pub const CPU_SETSIZE: ::c_int = 256;

pub const SIGEV_THREAD_ID: ::c_int = 4;

pub const EXTATTR_NAMESPACE_EMPTY: ::c_int = 0;
Expand Down

0 comments on commit fc68370

Please sign in to comment.