Skip to content

Commit

Permalink
Auto merge of #2110 - GuillaumeGomez:cpu-state, r=JohnTitor
Browse files Browse the repository at this point in the history
Add CPU_STATE_* constants
  • Loading branch information
bors committed Mar 13, 2021
2 parents 9bd8875 + fbba2bb commit a91546f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,12 @@ pub const MAP_FIXED: ::c_int = 0x0010;
pub const MAP_ANON: ::c_int = 0x1000;
pub const MAP_ANONYMOUS: ::c_int = MAP_ANON;

pub const CPU_STATE_USER: ::c_int = 0;
pub const CPU_STATE_SYSTEM: ::c_int = 1;
pub const CPU_STATE_IDLE: ::c_int = 2;
pub const CPU_STATE_NICE: ::c_int = 3;
pub const CPU_STATE_MAX: ::c_int = 4;

deprecated_mach! {
pub const VM_FLAGS_FIXED: ::c_int = 0x0000;
pub const VM_FLAGS_ANYWHERE: ::c_int = 0x0001;
Expand Down

0 comments on commit a91546f

Please sign in to comment.