os: implement and smoketest os.Unsetenv

This commit is contained in:
Dan Kegel
2021-12-11 09:55:21 -08:00
committed by Ron Evans
parent cff4493ca0
commit e4f2b9c003
5 changed files with 64 additions and 2 deletions
+5
View File
@@ -72,6 +72,11 @@ func Setenv(key, val string) (err error) {
return ENOSYS
}
func Unsetenv(key string) (err error) {
// stub for now
return ENOSYS
}
func Environ() []string {
env := runtime_envs()
envCopy := make([]string, len(env))