Skip to content

Commit

Permalink
Auto merge of #2885 - devnexen:cpuset_flags_fbsd, r=JohnTitor
Browse files Browse the repository at this point in the history
freebsd cpuset affinity flags.
  • Loading branch information
bors committed Aug 21, 2022
2 parents 59a6070 + 88b3636 commit 9358dbf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
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

0 comments on commit 9358dbf

Please sign in to comment.