summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-06 19:59:52 +0000
committerbors <bors@rust-lang.org>2023-05-06 19:59:52 +0000
commitae2c94f09ac7e9ddec491f581abea19a38fec0be (patch)
tree7adcb96a60d2e7acdbd6e90999d2fdde4c6f5ded
parenta14853dc14ea75a86237cc500e3c43fc32596584 (diff)
parent3ab4cf9b5c5a86bb4ff8f79141dd278bb1ad92f5 (diff)
downloadrust-libc-ae2c94f09ac7e9ddec491f581abea19a38fec0be.tar.gz
Auto merge of #3233 - GuillaumeGomez:proc-darwin, r=Amanieu
Add missing <proc.h> constants for darwin I need these values for the `sysinfo` crate.
-rw-r--r--src/unix/bsd/apple/mod.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs
index e380000038..66f03f67f6 100644
--- a/src/unix/bsd/apple/mod.rs
+++ b/src/unix/bsd/apple/mod.rs
@@ -4990,6 +4990,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 {