Module env

Module env 

Source
Available on (Linux or Android) and (x86-64 and little-endian and 64-bit, or AArch64 and 64-bit, or ARM and 32-bit, or x86 and little-endian and 32-bit), or Linux and (x86-64 and little-endian and 32-bit, or RISC-V RV64 and little-endian and 64-bit, or RISC-V RV32 and little-endian and 32-bit, or MIPS and 32-bit, or MIPS-64 and 64-bit, or s390x and big-endian and 64-bit, or LoongArch LA64 and little-endian and 64-bit, or PowerPC and big-endian and 32-bit, or PowerPC-64 and 64-bit) only.
Expand description

A collection of environment informations useful to detect features used in syscalls.

Re-exports§

pub use self::kernel::utsname;
pub use self::kernel::Version;
pub use self::vdso::Vdso;

Modules§

aux
kernel
vdso

Functions§

getauxvalNon-bare
Returns values from the auxiliary vector, a mechanism that the kernel’s ELF binary loader uses to pass certain information to user space when a program is executed.
kernel_versionNon-bare
Returns a cached kernel version.
unameNon-bare
Returns a cached crate::env::kernel::utsname. It do not use uname syscall.
unchecked_getauxval
Returns values from the auxiliary vector, a mechanism that the kernel’s ELF binary loader uses to pass certain information to user space when a program is executed.
unchecked_kernel_version
Returns a cached kernel version.
unchecked_uname
Returns a cached crate::env::kernel::utsname. It do not use uname syscall.
unchecked_vdso
Returns the cached crate::env::vdso::Vdso for the current process.
vdsoNon-bare
Returns cached crate::env::vdso::Vdso for the current process.