Enum AuxType

Source
#[repr(usize)]
pub enum AuxType {
Show 30 variants Null = 0, Ignore = 1, ExecFd = 2, Phdr = 3, Phent = 4, Phnum = 5, PageSize = 6, Base = 7, Flags = 8, Entry = 9, NotElf = 10, UID = 11, EUID = 12, GID = 13, EGID = 14, Platform = 15, HwCap = 16, ClkTck = 17, FpuCw = 18, DCacheBSize = 19, ICacheBSize = 20, UCacheBSize = 21, IgnorePPC = 22, Secure = 23, BasePlatform = 24, Random = 25, HwCap2 = 26, ExecFn = 31, SysInfo = 32, SysInfoEhdr = 33,
}
Expand description

Variants§

§

Null = 0

结束标志

§

Ignore = 1

被忽略的项

§

ExecFd = 2

文件描述符(指向可执行文件),在内核加载器中用

§

Phdr = 3

程序头表(Program Header Table)在内存中的地址

§

Phent = 4

每个程序头的大小(以字节为单位)

§

Phnum = 5

程序头的数量

§

PageSize = 6

页大小(单位字节),如 4096

§

Base = 7

动态链接器的基址(即 ld.so 的加载地址)

§

Flags = 8

运行时标志,通常为 0

§

Entry = 9

程序入口点(Entry Point)

§

NotElf = 10

如果是非 ELF 二进制(a.out 格式),为 1,否则为 0

§

UID = 11

实际用户 ID(UID)

§

EUID = 12

有效用户 ID(EUID)

§

GID = 13

实际组 ID(GID)

§

EGID = 14

有效组 ID(EGID)

§

Platform = 15

CPU 平台名称的指针(如 “x86_64”)

§

HwCap = 16

硬件能力位(bitmask),如 SSE/AVX 支持

§

ClkTck = 17

每秒的时钟滴答数(用于 times() 等函数)

§

FpuCw = 18

x86 FPU 控制字(FPUCW)

§

DCacheBSize = 19

D-cache(数据缓存)大小

§

ICacheBSize = 20

I-cache(指令缓存)大小

§

UCacheBSize = 21

通用缓存大小

§

IgnorePPC = 22

PowerPC 平台专用,被忽略

§

Secure = 23

是否是安全模式(非 suid/guid),0 = 否,1 = 是

§

BasePlatform = 24

基础平台名称的指针(字符串)

§

Random = 25

指向随机数种子(stack 上的 16 字节随机值)

§

HwCap2 = 26

第二组 HWCAP(arm64/aarch64)

§

ExecFn = 31

命令行中可执行文件路径的地址(如 “/bin/ls”)

§

SysInfo = 32

指向 vsyscall 区域的函数地址(如 gettimeofday()

§

SysInfoEhdr = 33

指向 VDSO ELF 映射的起始地址

Trait Implementations§

Source§

impl Clone for AuxType

Source§

fn clone(&self) -> AuxType

Returns a copy of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for AuxType

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Ord for AuxType

Source§

fn cmp(&self, other: &AuxType) -> Ordering

This method returns an [Ordering] between self and other. Read more
1.21.0§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for AuxType

Source§

fn eq(&self, other: &AuxType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for AuxType

Source§

fn partial_cmp(&self, other: &AuxType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for AuxType

Source§

impl Eq for AuxType

Source§

impl StructuralPartialEq for AuxType

Auto Trait Implementations§

§

impl Freeze for AuxType

§

impl RefUnwindSafe for AuxType

§

impl Send for AuxType

§

impl Sync for AuxType

§

impl Unpin for AuxType

§

impl UnwindSafe for AuxType

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

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

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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.
§

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

Performs the conversion.