Skip to main content

Module environment

Module environment 

Source
Expand description

Process environment baselines.

Windows exposes the logged-in user’s machine + user environment through CreateEnvironmentBlock. Unix has no OS API that reconstructs a login environment, so the baseline is rebuilt from the user’s identity: getpwuid_r supplies USER/LOGNAME/HOME/SHELL, PATH gets the platform’s login default, and locale/timezone/tmpdir variables are carried over from the current process when present.

Functions§

user_baseline_environment
Return the logged-in user’s baseline environment.