darwin_libproc_sys/
lib.rs#![cfg(target_os = "macos")]
#![doc(html_root_url = "https://docs.rs/darwin-libproc-sys/0.2.0")]
#![deny(
unused,
unused_imports,
future_incompatible,
dead_code,
deprecated,
trivial_casts,
trivial_numeric_casts,
unused_extern_crates,
unused_import_braces,
unused_results
)]
#![allow(missing_docs, nonstandard_style)]
mod listpids;
mod pidinfo;
mod rusage;
pub use self::listpids::*;
pub use self::pidinfo::*;
pub use self::rusage::*;
pub const MAXPATHLEN: usize = libc::PATH_MAX as usize;
pub const PROC_PIDPATHINFO_MAXSIZE: usize = 4 * MAXPATHLEN;
extern "C" {
pub fn proc_listpidspath(
r#type: u32,
typeinfo: u32,
path: *const libc::c_char,
pathflags: u32,
buffer: *mut libc::c_void,
buffersize: libc::c_int,
) -> libc::c_int;
pub fn proc_pidfdinfo(
pid: libc::c_int,
fd: libc::c_int,
flavor: libc::c_int,
buffer: *mut libc::c_void,
buffersize: libc::c_int,
) -> libc::c_int;
pub fn proc_name(
pid: libc::c_int,
buffer: *mut libc::c_void,
buffersize: u32,
) -> libc::c_int;
pub fn proc_regionfilename(
pid: libc::c_int,
address: u64,
buffer: *mut libc::c_void,
buffersize: u32,
) -> libc::c_int;
pub fn proc_kmsgbuf(
buffer: *mut libc::c_void,
buffersize: u32,
) -> libc::c_int;
pub fn proc_pidpath(
pid: libc::c_int,
buffer: *mut libc::c_void,
buffersize: u32,
) -> libc::c_int;
pub fn proc_libversion(
major: *mut libc::c_int,
minor: *mut libc::c_int,
) -> libc::c_int;
}