diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-05-05 11:43:53 +0200 |
---|---|---|
committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-05-05 12:13:51 +0200 |
commit | 3ab4cf9b5c5a86bb4ff8f79141dd278bb1ad92f5 (patch) | |
tree | e10e82a770baca7a21a63f2b5c7028bdcd85db95 | |
parent | 0b758afcdc34c9a72508a481ba151857d0b469de (diff) | |
download | rust-libc-3ab4cf9b5c5a86bb4ff8f79141dd278bb1ad92f5.tar.gz |
Add missing <proc.h> constants for darwin
-rw-r--r-- | src/unix/bsd/apple/mod.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 3348a7a8af..6de936227c 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -4916,6 +4916,18 @@ pub const VOL_CAP_INT_RENAME_SWAP: attrgroup_t = 0x00040000; pub const VOL_CAP_INT_RENAME_EXCL: attrgroup_t = 0x00080000; pub const VOL_CAP_INT_RENAME_OPENFAIL: attrgroup_t = 0x00100000; +// <proc.h> +/// Process being created by fork. +pub const SIDL: u32 = 1; +/// Currently runnable. +pub const SRUN: u32 = 2; +/// Sleeping on an address. +pub const SSLEEP: u32 = 3; +/// Process debugging or suspension. +pub const SSTOP: u32 = 4; +/// Awaiting collection by parent. +pub const SZOMB: u32 = 5; + cfg_if! { if #[cfg(libc_const_extern_fn)] { const fn __DARWIN_ALIGN32(p: usize) -> usize { |