Skip to content

Commit fbba2bb

Browse files
Add CPU_STATE_* constants
1 parent 9bd8875 commit fbba2bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,6 +1495,12 @@ pub const MAP_FIXED: ::c_int = 0x0010;
14951495
pub const MAP_ANON: ::c_int = 0x1000;
14961496
pub const MAP_ANONYMOUS: ::c_int = MAP_ANON;
14971497

1498+
pub const CPU_STATE_USER: ::c_int = 0;
1499+
pub const CPU_STATE_SYSTEM: ::c_int = 1;
1500+
pub const CPU_STATE_IDLE: ::c_int = 2;
1501+
pub const CPU_STATE_NICE: ::c_int = 3;
1502+
pub const CPU_STATE_MAX: ::c_int = 4;
1503+
14981504
deprecated_mach! {
14991505
pub const VM_FLAGS_FIXED: ::c_int = 0x0000;
15001506
pub const VM_FLAGS_ANYWHERE: ::c_int = 0x0001;

0 commit comments

Comments
 (0)