Expand description

Get basic information about processes by PID

Structs

Struct for List of Threads

Enums

The PidInfo enum contains a piece of information about a processes

An enum used to specify what type of information about a process is referenced See http://opensource.apple.com/source/xnu/xnu-1504.7.4/bsd/kern/proc_info.c

The ProcType type. Used to specify what type of processes you are interested in in other calls, such as listpids.

Traits

The ListPIDInfo trait is needed for polymorphism on listpidinfo types, also abstracting flavor in order to provide type-guaranteed flavor correctness

The PIDInfo trait is needed for polymorphism on pidinfo types, also abstracting flavor in order to provide type-guaranteed flavor correctness

Functions

Return true if the calling process is being run by the root user, false otherwise

Gets path of current working directory for the current process.

Get the major and minor version numbers of the native libproc library (Mac OS X)

listpidinfo is not implemented on Linux - Pull Requests welcome - TODO

Returns the PIDs of the active processes that match the ProcType passed in

Get the name of a Process using it’s Pid

Gets the path of current working directory for the process with the provided pid.

pidinfo not implemented on linux - Pull Requests welcome - TODO

Get the path of the executable file being run for a process

Get the filename associated with a memory region