From 6179aca54825867db3ab15bfff28fbda73e49378 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 28 Aug 2014 10:46:59 -0400 Subject: runtime: convert runtime1.goc, noasm_arm.goc to Go LGTM=dvyukov R=golang-codereviews, bradfitz, dvyukov CC=golang-codereviews, iant, khr https://golang.org/cl/135070043 --- src/pkg/runtime/runtime.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/pkg/runtime/runtime.c') diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c index 4f6381297d..8bef7dc076 100644 --- a/src/pkg/runtime/runtime.c +++ b/src/pkg/runtime/runtime.c @@ -120,6 +120,12 @@ runtime·goenvs_unix(void) syscall·envs.cap = n; } +Slice +runtime·environ() +{ + return syscall·envs; +} + int32 runtime·atoi(byte *p) { @@ -275,6 +281,7 @@ runtime·fastrand1(void) static Mutex ticksLock; static int64 ticks; +// Note: Called by runtime/pprof in addition to runtime code. int64 runtime·tickspersecond(void) { -- cgit v1.3-5-g9baa