1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build darwin freebsd linux netbsd openbsd windows
10 extern Slice syscall_Envs __asm__ (GOSYM_PREFIX "syscall.Envs");
13 runtime_getenv(const char *s)
21 len = runtime_findnull(bs);
22 envv = (String*)syscall_Envs.__values;
23 envc = syscall_Envs.__count;
24 for(i=0; i<envc; i++){
25 if(envv[i].len <= len)
27 v = (const byte*)envv[i].str;