aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-08-28 10:46:59 -0400
committerRuss Cox <rsc@golang.org>2014-08-28 10:46:59 -0400
commit6179aca54825867db3ab15bfff28fbda73e49378 (patch)
treeed3dc9d0aa018e90985d6ad7483ed974aa7394cf /src/pkg/runtime/runtime.c
parentb53b47f5ac9e11fdcd3f704bc2cb0828bdee6958 (diff)
downloadgo-6179aca54825867db3ab15bfff28fbda73e49378.tar.xz
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
Diffstat (limited to 'src/pkg/runtime/runtime.c')
-rw-r--r--src/pkg/runtime/runtime.c7
1 files changed, 7 insertions, 0 deletions
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)
{