- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for runtimeUnsetenv (0.33 sec)
-
src/syscall/env_unix.go
envs[i] = kv } else { i = len(envs) envs = append(envs, kv) } env[key] = i runtimeSetenv(key, value) return nil } func Clearenv() { envOnce.Do(copyenv) // prevent copyenv in Getenv/Setenv envLock.Lock() defer envLock.Unlock() for k := range env { runtimeUnsetenv(k) } env = make(map[string]int) envs = []string{} } func Environ() []string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 06 20:58:35 UTC 2023 - 2.7K bytes - Viewed (0) -
src/syscall/syscall.go
} // Getpagesize and Exit are provided by the runtime. func Getpagesize() int func Exit(code int) // runtimeSetenv and runtimeUnsetenv are provided by the runtime. func runtimeSetenv(k, v string)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 3.8K bytes - Viewed (0) -
src/syscall/env_windows.go
return err } e := SetEnvironmentVariable(keyp, v) if e != nil { return e } runtimeSetenv(key, value) return nil } func Unsetenv(key string) error { keyp, err := UTF16PtrFromString(key) if err != nil { return err } e := SetEnvironmentVariable(keyp, nil) if e != nil { return e } runtimeUnsetenv(key) return nil } func Clearenv() { for _, s := range Environ() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 04 15:31:54 UTC 2023 - 2K bytes - Viewed (0) -
src/runtime/runtime.go
} } //go:linkname syscall_runtimeSetenv syscall.runtimeSetenv func syscall_runtimeSetenv(key, value string) { setenv_c(key, value) if key == "GODEBUG" { p := new(string) *p = value godebugEnv.Store(p) godebugNotify(true) } } //go:linkname syscall_runtimeUnsetenv syscall.runtimeUnsetenv func syscall_runtimeUnsetenv(key string) { unsetenv_c(key)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 9.9K bytes - Viewed (0)