repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* const-uniq-1.c: Expand regex to match AIX XCOFF labels.
[official-gcc.git]
/
libgo
/
runtime
/
getncpu-irix.c
blob
a65ca63d2aed68c35cba730120347cad5761c435
1
// Copyright 2012 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
5
#include <unistd.h>
6
7
#include
"runtime.h"
8
#include
"defs.h"
9
10
int32
11
getproccount
(
void
)
12
{
13
int32 n
;
14
n
= (
int32
)
sysconf
(
_SC_NPROC_ONLN
);
15
return
n
>
1
?
n
:
1
;
16
}