Skip to content

Commit ae2c94f

Browse files
committed
Auto merge of #3233 - GuillaumeGomez:proc-darwin, r=Amanieu
Add missing <proc.h> constants for darwin I need these values for the `sysinfo` crate.
2 parents a14853d + 3ab4cf9 commit ae2c94f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4990,6 +4990,18 @@ pub const VOL_CAP_INT_RENAME_SWAP: attrgroup_t = 0x00040000;
49904990
pub const VOL_CAP_INT_RENAME_EXCL: attrgroup_t = 0x00080000;
49914991
pub const VOL_CAP_INT_RENAME_OPENFAIL: attrgroup_t = 0x00100000;
49924992

4993+
// <proc.h>
4994+
/// Process being created by fork.
4995+
pub const SIDL: u32 = 1;
4996+
/// Currently runnable.
4997+
pub const SRUN: u32 = 2;
4998+
/// Sleeping on an address.
4999+
pub const SSLEEP: u32 = 3;
5000+
/// Process debugging or suspension.
5001+
pub const SSTOP: u32 = 4;
5002+
/// Awaiting collection by parent.
5003+
pub const SZOMB: u32 = 5;
5004+
49935005
cfg_if! {
49945006
if #[cfg(libc_const_extern_fn)] {
49955007
const fn __DARWIN_ALIGN32(p: usize) -> usize {

0 commit comments

Comments
 (0)