#proc #process-information #macos #file-descriptor #pidinfo

proc_pidinfo

A library for accessing process information using proc_pidinfo on macOS

5 releases

0.1.4 Jun 3, 2025
0.1.3 May 31, 2025
0.1.2 Jan 16, 2025
0.1.1 Jan 16, 2025
0.1.0 Jan 14, 2025

#42 in macOS and iOS APIs

Download history 1/week @ 2025-04-14 1/week @ 2025-04-21 16/week @ 2025-05-12 202/week @ 2025-05-19 334/week @ 2025-05-26 667/week @ 2025-06-02 780/week @ 2025-06-09 1360/week @ 2025-06-16 1376/week @ 2025-06-23 836/week @ 2025-06-30 588/week @ 2025-07-07

4,175 downloads per month

MIT/Apache

26KB
564 lines

proc_pidinfo

A Rust library for accessing the proc_pidinfo, proc_pidfdinfo, and proc_pidfileportinfo system calls safely on macOS.

Usage

Add this to your Cargo.toml:

[dependencies]
proc_pidinfo = "0.1"

Then, you can use the proc_* functions to get information about a process (including task info, file descriptors, etc).

use proc_pidinfo::*;

for fd in proc_pidinfo_list_self::<ProcFDInfo>().unwrap() {
    println!("{:?}", fd);
}

Dependencies