summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime1.goc
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/runtime1.goc')
-rw-r--r--src/pkg/runtime/runtime1.goc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime1.goc b/src/pkg/runtime/runtime1.goc
new file mode 100644
index 000000000..da2d0c572
--- /dev/null
+++ b/src/pkg/runtime/runtime1.goc
@@ -0,0 +1,10 @@
+// Copyright 2010 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.
+
+package runtime
+#include "runtime.h"
+
+func GOMAXPROCS(n int32) (ret int32) {
+ ret = runtime·gomaxprocsfunc(n);
+}