linux-personality

Crates.iolinux-personality
lib.rslinux-personality
version2.0.0
sourcesrc
created_at2017-01-14 23:25:34.835968
updated_at2024-10-04 11:15:06.470138
descriptionWrapper around Linux personality function.
homepage
repositoryhttps://github.com/jeandudey/linux-personality
max_upload_size
id8067
size10,632
Jean-Pierre De Jesus DIAZ (jeandudey)

documentation

README

linux-personality

This crate intends to be a safe wrapper for the personality linux function.

Usage

First add this to your Cargo.toml:

[dependencies]
linux-personality = "1.0"

And this to your crate root:

extern crate linux_personality;

Example

extern crate linux_personality;

use linux_personality::get_personality();

fn main() {
    let persona = get_personality().unwrap();

    println!("Current personality: {:?}", persona);
}

Authors

Jean Pierre Dudey - Initial work - jeandudey@hotmail.com

License

This project is licensed under the MIT License. For more information see the LICENSE file on this repository.

Commit count: 4

cargo fmt