-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new module, processes, to enumerate pids (#86)
This re-works the proc_listpids and proc_listpidspath API wrappers to pass along the correct typeinfo value for each proc type, and to use io::Result errors instead of string errors.. This includes a per-os sys module, and a Linux re-implementation of the listpids filters on top of procfs.
- Loading branch information
Showing
9 changed files
with
960 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "libproc" | ||
version = "0.12.0" | ||
version = "0.13.0" | ||
description = "A library to get information about running processes - for Mac OS X and Linux" | ||
authors = ["Andrew Mackenzie <[email protected]>"] | ||
repository = "https://github.com/andrewdavidmackenzie/libproc-rs" | ||
|
@@ -32,3 +32,7 @@ path = "src/dmesg.rs" | |
|
||
[build-dependencies] | ||
bindgen = { version = "0.64.0", default-features = false, features = ["runtime"] } | ||
|
||
[target.'cfg(target_os = "linux")'.dev-dependencies] | ||
procfs = "0.14.1" | ||
tempfile = "3.3.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,4 @@ pub mod file_info; | |
pub mod net_info; | ||
|
||
mod helpers; | ||
pub(crate) mod sys; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.