nix::sys::personality

Function get

source
pub fn get() -> Result<Persona>
Expand description

Retrieve the current process personality.

Returns a Result containing a Persona instance.

Example:

let pers = personality::get().unwrap();
assert!(!pers.contains(Persona::WHOLE_SECONDS));