2011-11-22 21:24:44 +01:00
|
|
|
// Copyright 2009 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.
|
|
|
|
|
2011-11-29 22:58:48 +01:00
|
|
|
#include "config.h"
|
2011-11-22 21:24:44 +01:00
|
|
|
#include "runtime.h"
|
|
|
|
|
|
|
|
#include <errno.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <semaphore.h>
|
|
|
|
|
|
|
|
void
|
2012-01-27 23:34:53 +01:00
|
|
|
runtime_osinit (void)
|
2011-11-22 21:24:44 +01:00
|
|
|
{
|
2012-08-07 06:42:49 +02:00
|
|
|
runtime_ncpu = getproccount();
|
2011-11-22 21:24:44 +01:00
|
|
|
}
|
2012-01-27 23:34:53 +01:00
|
|
|
|
|
|
|
void
|
|
|
|
runtime_goenvs (void)
|
|
|
|
{
|
|
|
|
runtime_goenvs_unix ();
|
|
|
|
}
|