File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -1265,6 +1265,12 @@ s! {
12651265 pub ctl_id: u32 ,
12661266 pub ctl_name: [ c_char; MAX_KCTL_NAME ] ,
12671267 }
1268+
1269+ // sys/proc_info.h
1270+ pub struct proc_fdinfo {
1271+ pub proc_fd: i32 ,
1272+ pub proc_fdtype: u32 ,
1273+ }
12681274}
12691275
12701276s_no_extra_traits ! {
@@ -4968,6 +4974,21 @@ pub const PROC_PIDTASKINFO: c_int = 4;
49684974pub const PROC_PIDTHREADINFO : c_int = 5 ;
49694975pub const PROC_PIDVNODEPATHINFO : c_int = 9 ;
49704976pub const PROC_PIDPATHINFO_MAXSIZE : c_int = 4096 ;
4977+
4978+ pub const PROC_PIDLISTFDS : c_int = 1 ;
4979+ pub const PROC_PIDLISTFD_SIZE : c_int = mem:: size_of :: < proc_fdinfo > ( ) as c_int ;
4980+ pub const PROX_FDTYPE_ATALK : c_int = 0 ;
4981+ pub const PROX_FDTYPE_VNODE : c_int = 1 ;
4982+ pub const PROX_FDTYPE_SOCKET : c_int = 2 ;
4983+ pub const PROX_FDTYPE_PSHM : c_int = 3 ;
4984+ pub const PROX_FDTYPE_PSEM : c_int = 4 ;
4985+ pub const PROX_FDTYPE_KQUEUE : c_int = 5 ;
4986+ pub const PROX_FDTYPE_PIPE : c_int = 6 ;
4987+ pub const PROX_FDTYPE_FSEVENTS : c_int = 7 ;
4988+ pub const PROX_FDTYPE_NETPOLICY : c_int = 9 ;
4989+ pub const PROX_FDTYPE_CHANNEL : c_int = 10 ;
4990+ pub const PROX_FDTYPE_NEXUS : c_int = 11 ;
4991+
49714992pub const PROC_CSM_ALL : c_uint = 0x0001 ;
49724993pub const PROC_CSM_NOSMT : c_uint = 0x0002 ;
49734994pub const PROC_CSM_TECS : c_uint = 0x0004 ;
You can’t perform that action at this time.
0 commit comments