MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / init_from_envp

Function init_from_envp

src/backend/linux_raw/param/init.rs:129–134  ·  view source on GitHub ↗

# Safety This must be passed a pointer to the environment variable buffer provided by the kernel, which is followed in memory by the auxv array.

(mut envp: *mut *mut u8)

Source from the content-addressed store, hash-verified

127/// This must be passed a pointer to the environment variable buffer
128/// provided by the kernel, which is followed in memory by the auxv array.
129unsafe fn init_from_envp(mut envp: *mut *mut u8) {
130 while !(*envp).is_null() {
131 envp = envp.add(1);
132 }
133 init_from_auxp(envp.add(1).cast())
134}
135
136/// Process auxv entries from the auxv array pointed to by `auxp`.
137///

Callers 1

initFunction · 0.85

Calls 2

init_from_auxpFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected