Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freebsd cpuset affinity flags. #2885

Merged
merged 1 commit into from Aug 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions libc-test/semver/freebsd.txt
Expand Up @@ -169,7 +169,15 @@ CODESET
CPU_CLR
CPU_COUNT
CPU_ISSET
CPU_LEVEL_CPUSET
CPU_LEVEL_ROOT
CPU_LEVEL_WHICH
CPU_SET
CPU_WHICH_CPUSET
CPU_WHICH_IRQ
CPU_WHICH_JAIL
CPU_WHICH_PID
CPU_WHICH_TID
CPU_ZERO
CRNCYSTR
CRTSCTS
Expand Down
10 changes: 10 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Expand Up @@ -3704,6 +3704,16 @@ pub const UMTX_OP_ROBUST_LISTS: ::c_int = 26;

pub const UMTX_ABSTIME: u32 = 1;

pub const CPU_LEVEL_ROOT: ::c_int = 1;
pub const CPU_LEVEL_CPUSET: ::c_int = 2;
pub const CPU_LEVEL_WHICH: ::c_int = 3;

pub const CPU_WHICH_TID: ::c_int = 1;
pub const CPU_WHICH_PID: ::c_int = 2;
pub const CPU_WHICH_CPUSET: ::c_int = 3;
pub const CPU_WHICH_IRQ: ::c_int = 4;
pub const CPU_WHICH_JAIL: ::c_int = 5;

const_fn! {
{const} fn _ALIGN(p: usize) -> usize {
(p + _ALIGNBYTES) & !_ALIGNBYTES
Expand Down