| 481 | #[cfg(target_os = "macos")] |
| 482 | #[repr(C)] |
| 483 | struct BSDInfo { |
| 484 | _flags_status_xstatus: [u8; 12], // pbi_flags + pbi_status + pbi_xstatus |
| 485 | pbi_pid: u32, // offset 12 |
| 486 | pbi_ppid: u32, // offset 16 |
| 487 | pbi_uid: u32, // offset 20 |
| 488 | _rest: [u8; 112], |
| 489 | } |
| 490 | |
| 491 | #[cfg(target_os = "macos")] |
| 492 | const _: () = assert!(std::mem::size_of::<BSDInfo>() == 136); |
nothing calls this directly
no outgoing calls
no test coverage detected