MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / setenv

Function setenv

src/sys/proc.rs:396–401  ·  view source on GitHub ↗

Set environment

(key: &str, val: &str)

Source from the content-addressed store, hash-verified

394
395// Set environment
396pub fn setenv(key: &str, val: &str)
397{
398 let mut tab = PROCTAB.write();
399 let proc = &mut tab[id()];
400 proc.data.env.insert(key.into(), val.into());
401}
402
403
404// Set ID

Callers

nothing calls this directly

Calls 3

idFunction · 0.85
intoMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected