Skip to content

Commit 3ab4cf9

Browse files
Add missing <proc.h> constants for darwin
1 parent 0b758af commit 3ab4cf9

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
@@ -4916,6 +4916,18 @@ pub const VOL_CAP_INT_RENAME_SWAP: attrgroup_t = 0x00040000;
49164916
pub const VOL_CAP_INT_RENAME_EXCL: attrgroup_t = 0x00080000;
49174917
pub const VOL_CAP_INT_RENAME_OPENFAIL: attrgroup_t = 0x00100000;
49184918

4919+
// <proc.h>
4920+
/// Process being created by fork.
4921+
pub const SIDL: u32 = 1;
4922+
/// Currently runnable.
4923+
pub const SRUN: u32 = 2;
4924+
/// Sleeping on an address.
4925+
pub const SSLEEP: u32 = 3;
4926+
/// Process debugging or suspension.
4927+
pub const SSTOP: u32 = 4;
4928+
/// Awaiting collection by parent.
4929+
pub const SZOMB: u32 = 5;
4930+
49194931
cfg_if! {
49204932
if #[cfg(libc_const_extern_fn)] {
49214933
const fn __DARWIN_ALIGN32(p: usize) -> usize {

0 commit comments

Comments
 (0)