Skip to main content

xila_env_set

Function xila_env_set 

Source
pub unsafe extern "C" fn xila_env_set(
    process: *const Process,
    name: *const c_char,
    name_length: usize,
    value: *const c_char,
    value_length: usize,
) -> Status
Expand description

Set an environment variable of this process, replacing any value. Children spawned afterwards inherit a copy; earlier children and the parent are unaffected. A name is non-empty UTF-8 without = or NUL, a value is UTF-8 without NUL and a null value pointer is valid at length zero.

ยงSafety

Process must be a live capability and the strings readable for their lengths.