aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.c
diff options
context:
space:
mode:
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)
{