#[repr(C)]
pub struct AuxvValues {
Show 29 fields pub argc: c_int, pub argv_ptr_ptr: target_ulong, pub arg_ptr: [target_ulong; 10], pub argv: [[u8; 256]; 10], pub envc: c_int, pub env_ptr_ptr: target_ulong, pub env_ptr: [target_ulong; 20], pub envp: [[u8; 256]; 20], pub execfn_ptr: target_ulong, pub execfn: [u8; 256], pub phdr: target_ulong, pub entry: target_ulong, pub ehdr: target_ulong, pub hwcap: target_ulong, pub hwcap2: target_ulong, pub pagesz: target_ulong, pub clktck: target_ulong, pub phent: target_ulong, pub phnum: target_ulong, pub base: target_ulong, pub flags: target_ulong, pub uid: target_ulong, pub euid: target_ulong, pub gid: target_ulong, pub egid: target_ulong, pub secure: bool, pub random: target_ulong, pub platform: target_ulong, pub program_header: target_ulong,
}
Expand description

A struct representing the contents of the Auxilary Vector, the information provided by the kernel when starting up a new process.

Resources on the auxilary vector:

Fields§

§argc: c_int§argv_ptr_ptr: target_ulong§arg_ptr: [target_ulong; 10]§argv: [[u8; 256]; 10]§envc: c_int§env_ptr_ptr: target_ulong§env_ptr: [target_ulong; 20]§envp: [[u8; 256]; 20]§execfn_ptr: target_ulong§execfn: [u8; 256]§phdr: target_ulong§entry: target_ulong§ehdr: target_ulong§hwcap: target_ulong§hwcap2: target_ulong§pagesz: target_ulong§clktck: target_ulong§phent: target_ulong§phnum: target_ulong§base: target_ulong§flags: target_ulong§uid: target_ulong§euid: target_ulong§gid: target_ulong§egid: target_ulong§secure: bool§random: target_ulong§platform: target_ulong§program_header: target_ulong

Implementations§

source§

impl AuxvValues

source

pub fn argv(&self) -> Vec<String>

source

pub fn envp(&self) -> Vec<String>

source

pub fn execfn(&self) -> String

Trait Implementations§

source§

impl Clone for AuxvValues

source§

fn clone(&self) -> AuxvValues

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AuxvValues

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.