diff options
author | bors <bors@rust-lang.org> | 2021-03-13 21:01:54 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2021-03-13 21:01:54 +0000 |
commit | a91546f20fe9f558df33e2cd8b6b24554cf91463 (patch) | |
tree | 8a9b5059ce24cb23123ddc9ae1b57d5081f64792 | |
parent | 9bd88759e0bfa68e19cd88028f9d7ee422aca615 (diff) | |
parent | fbba2bb34c6e977acccd5b945e5773257c8166f0 (diff) | |
download | rust-libc-a91546f20fe9f558df33e2cd8b6b24554cf91463.tar.gz |
Auto merge of #2110 - GuillaumeGomez:cpu-state, r=JohnTitor
Add CPU_STATE_* constants
-rw-r--r-- | src/unix/bsd/apple/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 7f321eab46..fb6ddc7dc7 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -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; |