Sha256: a31c0e5cea61a1a999767fe74f87c0d59eeb6bce66578b842fe0e0c32be27a55

Contents?: true

Size: 634 Bytes

Versions: 23

Compression:

Stored size: 634 Bytes

Contents

//! rustix's `init` function.
//!
//! # Safety
//!
//! When "use-explicitly-provided-auxv" is enabled, the `init` function must be
//! called before any other function in this module. It is unsafe because it
//! operates on raw pointers.
#![allow(unsafe_code)]

use crate::backend;

/// Initialize process-wide state.
///
/// # Safety
///
/// This must be passed a pointer to the original environment variable block
/// set up by the OS at process startup, and it must be called before any
/// other rustix functions are called.
#[inline]
#[doc(hidden)]
pub unsafe fn init(envp: *mut *mut u8) {
    backend::param::auxv::init(envp)
}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/rustix-0.38.44/src/param/init.rs
wasmtime-28.0.0 ./ext/cargo-vendor/rustix-0.38.43/src/param/init.rs
wasmtime-27.0.0 ./ext/cargo-vendor/rustix-0.38.41/src/param/init.rs
wasmtime-26.0.0 ./ext/cargo-vendor/rustix-0.38.37/src/param/init.rs
wasmtime-25.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/param/init.rs
wasmtime-25.0.1 ./ext/cargo-vendor/rustix-0.38.34/src/param/init.rs
wasmtime-25.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/param/init.rs
wasmtime-24.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/param/init.rs
wasmtime-23.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/param/init.rs
wasmtime-22.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/param/init.rs
wasmtime-21.0.1 ./ext/cargo-vendor/rustix-0.38.34/src/param/init.rs
wasmtime-20.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/param/init.rs
wasmtime-20.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/param/init.rs
wasmtime-18.0.3 ./ext/cargo-vendor/rustix-0.38.28/src/param/init.rs
wasmtime-17.0.1 ./ext/cargo-vendor/rustix-0.38.28/src/param/init.rs
wasmtime-17.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/param/init.rs
wasmtime-16.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/param/init.rs
wasmtime-15.0.1 ./ext/cargo-vendor/rustix-0.38.28/src/param/init.rs
wasmtime-15.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/param/init.rs
wasmtime-14.0.4 ./ext/cargo-vendor/rustix-0.38.20/src/param/init.rs