pub mod group;
pub mod login_name;
pub mod passwd;
pub mod process;
pub mod time;
pub mod tty;
pub mod utsname;
#[cfg(not(any(target_os = "fuchsia", target_os = "haiku")))]
pub mod load;
#[cfg(any(target_os = "netbsd", target_os = "openbsd", target_os = "solaris"))]
pub mod utmp;
#[cfg(not(any(target_os = "fuchsia", target_os = "haiku", target_os = "openbsd")))]
pub mod utmpx;
#[cfg(any(target_os = "freebsd", target_os = "macos"))]
pub mod audit;
#[cfg(target_os = "openbsd")]
pub mod routing_table;
use libc::{
c_int, getegid, geteuid, getgid, getuid, gid_t, pid_t, suseconds_t, time_t, timeval, tm, uid_t,
};
pub type Tm = tm;
pub type TimeVal = timeval;
pub type Gid = gid_t;
pub type Uid = uid_t;
pub type Pid = pid_t;
pub type Time = time_t;
pub type Fields = c_int;
pub type Susec = suseconds_t;
#[inline]
pub fn get_effective_gid() -> Uid { unsafe { getegid() } }
#[inline]
pub fn get_real_gid() -> Uid { unsafe { getgid() } }
#[inline]
pub fn get_effective_uid() -> Uid { unsafe { geteuid() } }
#[inline]
pub fn get_real_uid() -> Uid { unsafe { getuid() } }