aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/thread-linux.c
blob: 81ad0f9c9026024b7c5f21fb4c127976d54c109e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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.

#include "runtime.h"
#include "defs.h"

// Linux futex.

#include <unistd.h>
#include <syscall.h>
#include <linux/futex.h>

void
runtime_osinit(void)
{
	runtime_ncpu = getproccount();
}

void
runtime_goenvs(void)
{
	runtime_goenvs_unix();
}