diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-08-28 20:39:32 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-08-28 20:39:32 +0000 |
commit | 32b1d51f16fe56b34e979fcfba4bc74dbd3592a9 (patch) | |
tree | cd54b1786061eb18e64ce26e6392df3096b5ba35 /libgo/runtime/getncpu-solaris.c | |
parent | c980510a5ab79614fcbaf5f411b1273dc9a8c7ca (diff) | |
download | gcc-32b1d51f16fe56b34e979fcfba4bc74dbd3592a9.zip gcc-32b1d51f16fe56b34e979fcfba4bc74dbd3592a9.tar.gz gcc-32b1d51f16fe56b34e979fcfba4bc74dbd3592a9.tar.bz2 |
runtime: move osinit to Go
This is a step toward updating libgo to 1.13. This adds the 1.13
version of the osinit function to Go code, and removes the
corresponding code from the C runtime. This should simplify future updates.
Some additional 1.13 code was brought in to simplify this change.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/191717
From-SVN: r275010
Diffstat (limited to 'libgo/runtime/getncpu-solaris.c')
-rw-r--r-- | libgo/runtime/getncpu-solaris.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libgo/runtime/getncpu-solaris.c b/libgo/runtime/getncpu-solaris.c deleted file mode 100644 index 5d5d702..0000000 --- a/libgo/runtime/getncpu-solaris.c +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2012 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 <unistd.h> - -#include "runtime.h" -#include "defs.h" - -int32 -getproccount(void) -{ - int32 n; - n = (int32)sysconf(_SC_NPROCESSORS_ONLN); - return n > 1 ? n : 1; -} |