Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runtime: add getproccount implementation for AIX
Issue golang/go#19200 Change-Id: I43e7a89bc4e94b5b3a91a77484ba85653ede5d5a Reviewed-on: https://go-review.googlesource.com/37844 Reviewed-by: Ian Lance Taylor <iant@golang.org>
- Loading branch information
1 parent
35d577f
commit 4e49e56
Showing
3 changed files
with
37 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// 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 <sys/types.h> | ||
#include <sys/systemcfg.h> | ||
|
||
#include "runtime.h" | ||
#include "defs.h" | ||
|
||
int32_t | ||
getproccount(void) | ||
{ | ||
return _system_configuration.ncpus; | ||
} |