From a41d85498eed6b606d261e3da84c760538d71b4f Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Wed, 12 Jan 2011 11:48:15 +1100 Subject: runtime: revert 6974:1f3c3696babb I missed that environment is used during runtime setup, well before go init() functions run. Implemented os-dependent runtime.goenvs functions to allow for different unix, plan9 and windows versions of environment discovery. R=rsc, paulzhol CC=golang-dev https://golang.org/cl/3787046 --- src/pkg/runtime/linux/thread.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pkg/runtime/linux') diff --git a/src/pkg/runtime/linux/thread.c b/src/pkg/runtime/linux/thread.c index 9c9fc755b2..979260ba1d 100644 --- a/src/pkg/runtime/linux/thread.c +++ b/src/pkg/runtime/linux/thread.c @@ -263,6 +263,12 @@ runtime·osinit(void) { } +void +runtime·goenvs(void) +{ + runtime·goenvs_unix(); +} + // Called to initialize a new m (including the bootstrap m). void runtime·minit(void) -- cgit v1.3-5-g9baa