- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for runtimeSetenv (0.13 sec)
-
src/syscall/syscall.go
return int64(tv.Sec)*1e9 + int64(tv.Usec)*1000 } // 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
if err != nil { return err } keyp, err := UTF16PtrFromString(key) if err != nil { 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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 04 15:31:54 UTC 2023 - 2K bytes - Viewed (0) -
src/syscall/env_unix.go
envLock.Lock() defer envLock.Unlock() i, ok := env[key] kv := key + "=" + value if ok { 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)
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/runtime/runtime.go
env = *p } if envChanged { reparsedebugvars(env) } if update != nil { (*update)(godebugDefault, env) } } //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) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 9.9K bytes - Viewed (0)