aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/thread-linux.c
blob: 63a2b7551f6718e333917bde2a8b9abda38adb0c (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
25
// 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"
#include "signal_unix.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();
}