Crate darwin_libproc

Source
Expand description

Idiomatic and safe wrappers for libproc of macOS.

Structs§

proc_bsdinfo
proc_fdinfo
proc_taskallinfo
proc_taskinfo
rusage_info_v0
rusage_info_v1
rusage_info_v2
rusage_info_v3
rusage_info_v4

Traits§

RusageFlavor
proc_pid_rusage can return different versioned rusage_info_v* structs.

Functions§

all_pids
Fetch pids for all processes running in system.
name
Fetch process name for pid provided.
pgrp_only_pids
Fetch pids for processes running in system in a given group.
pid_cwd
Fetch current working directory for process with pid provided.
pid_path
Fetch executable absolute path for process with pid provided.
pid_rusage
Return resource usage information for the given pid, which can be a live process or a zombie.
ppid_only_pids
Fetch pids for processes running in system with the given PPID.
ruid_only_pids
Fetch pids for processes running in system with the given RUID.
task_all_info
Returns filled proc_taskallinfo struct for pid given.
task_info
Returns filled proc_taskinfo struct for pid given.
tty_only_pids
Fetch pids for processes running in system attached to a given TTY.
uid_only_pids
Fetch pids for processes running in system with the given UID.
version
Returns the libproc version as a tuple of (major, minor) parts.
vnode_path_info
Returns filled proc_vnodepathinfo struct for pid given.