libproc-rs icon indicating copy to clipboard operation
libproc-rs copied to clipboard

A rust library for getting information about running processes for Mac and Linux

Results 17 libproc-rs issues
Sort by recently updated
recently updated
newest added

**System**: macOS 11.0.1 **`Cargo.toml`**: ```toml [package] # ... [dependencies] libproc = "0.12.0" ``` **Error**: ``` Compiling libproc v0.12.0 error: failed to run custom build command for `libproc v0.12.0` Caused by:...

See https://github.com/andrewdavidmackenzie/libproc-rs/pull/76 but it took about 12h for macos-12 instances to become available to run on this PR, then they failed with no details - so maybe I'll wait before...

Add macos-12 to the test matrix. Do coverage always

Not sure how to test those calls reliable yet. Maybe need to use some other macos API to create a thread or a workqueue?

Ass Apple updates darwin, it adds some new variants (flavors) available to some API calls (e.g. proc_pidinfo()). Create a mapping of XNU version --> What variants available --> What versions...

I tried `libc::pthread_self`. But it seems there is a fixed offset between the value fetched from `libc::pthread_self` and the value fetched from `listpidinfo::`. Don't know why. Code: ```rust fn main()...

It would be great for someone who understands more of the details of the Darwin kernel structures to help add more informative doc comments for them in the code

help wanted

I feel like `pidpath()` should return `Result` since a path is not required to be UTF8, no?

for proc_pid.rs: ``` // Added in 10.7 // int proc_listallpids(void * buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_1); // int proc_listpgrppids(pid_t pgrpid, void * buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_1); // int proc_listchildpids(pid_t...