Skip to content

Commit c3214fa

Browse files
Add missing macos proc types and constants
1 parent 3914f82 commit c3214fa

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,6 +1627,11 @@ s_no_extra_traits! {
16271627
pub ifr_name: [c_char; crate::IFNAMSIZ],
16281628
pub ifr_ifru: __c_anonymous_ifr_ifru6,
16291629
}
1630+
1631+
pub struct proc_fdinfo {
1632+
pub proc_fd: i32,
1633+
pub proc_fdtype: u32,
1634+
}
16301635
}
16311636

16321637
impl siginfo_t {
@@ -4968,6 +4973,19 @@ pub const PROC_PIDTASKINFO: c_int = 4;
49684973
pub const PROC_PIDTHREADINFO: c_int = 5;
49694974
pub const PROC_PIDVNODEPATHINFO: c_int = 9;
49704975
pub const PROC_PIDPATHINFO_MAXSIZE: c_int = 4096;
4976+
4977+
pub const PROC_PIDLISTFDS: c_int = 1;
4978+
pub const PROC_PIDLISTFD_SIZE: c_int = 8;
4979+
pub const PROX_FDTYPE_ATALK: c_int = 0;
4980+
pub const PROX_FDTYPE_VNODE: c_int = 1;
4981+
pub const PROX_FDTYPE_SOCKET: c_int = 2;
4982+
pub const PROX_FDTYPE_PSHM: c_int = 3;
4983+
pub const PROX_FDTYPE_PSEM: c_int = 4;
4984+
pub const PROX_FDTYPE_KQUEUE: c_int = 5;
4985+
pub const PROX_FDTYPE_PIPE: c_int = 6;
4986+
pub const PROX_FDTYPE_FSEVENTS: c_int = 7;
4987+
pub const PROX_FDTYPE_NETPOLICY: c_int = 9;
4988+
49714989
pub const PROC_CSM_ALL: c_uint = 0x0001;
49724990
pub const PROC_CSM_NOSMT: c_uint = 0x0002;
49734991
pub const PROC_CSM_TECS: c_uint = 0x0004;

0 commit comments

Comments
 (0)