os: implement and smoketest os.Setenv

This commit is contained in:
Dan Kegel
2021-12-05 13:24:00 -08:00
committed by Ron Evans
parent 93ac7cec0d
commit cff4493ca0
5 changed files with 96 additions and 0 deletions
+5
View File
@@ -67,6 +67,11 @@ func Getenv(key string) (value string, found bool) {
return "", false
}
func Setenv(key, val string) (err error) {
// stub for now
return ENOSYS
}
func Environ() []string {
env := runtime_envs()
envCopy := make([]string, len(env))