// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build darwin dragonfly freebsd linux netbsd openbsd windows #include "runtime.h" Slice syscall·envs; byte* runtime·getenv(int8 *s) { int32 i, j; intgo len; byte *v, *bs; String* envv; int32 envc; bs = (byte*)s; len = runtime·findnull(bs); envv = (String*)syscall·envs.array; envc = syscall·envs.len; for(i=0; i