Crate pentry

Source
Expand description

pentry is inspect Process Entry library inspired by mitchellh/go-ps.

§Examples

extern crate libc;
extern crate pentry;

let pid: i32;
unsafe {
    pid = libc::getpid() as i32;
}

if let Ok(ps) = pentry::find(pid) {
    println!("#{} {}", ps.pid(), ps.path().unwrap());
}

Structs§

Problem
Problem occurred in find processes routine.
Process
Basic Process Object.

Functions§

current
Get Current Process Object.
find
Find Process by Requested Process ID.