aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stubs3.go
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2014-11-21 19:39:01 +0100
committerDavid du Colombier <0intro@gmail.com>2014-11-21 19:39:01 +0100
commite9c57d8a2d7833a66a511888c4744e058bc68967 (patch)
tree4170d62ce14835eb8ca5b466012332dbc0e694ff /src/runtime/stubs3.go
parentad8179281d314663f94358589a8c39ecf644007b (diff)
downloadgo-e9c57d8a2d7833a66a511888c4744e058bc68967.tar.gz
go-e9c57d8a2d7833a66a511888c4744e058bc68967.zip
[dev.cc] runtime: convert Plan 9 port to Go
Thanks to Aram Hăvărneanu, Nick Owens and Russ Cox for the early reviews. LGTM=aram, rsc R=rsc, lucio.dere, aram, ality CC=golang-codereviews, mischief https://golang.org/cl/175370043
Diffstat (limited to 'src/runtime/stubs3.go')
-rw-r--r--src/runtime/stubs3.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/runtime/stubs3.go b/src/runtime/stubs3.go
new file mode 100644
index 0000000000..ffaa28775d
--- /dev/null
+++ b/src/runtime/stubs3.go
@@ -0,0 +1,12 @@
+// Copyright 2014 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.
+
+// +build plan9
+
+package runtime
+
+func close(fd int32) int32
+
+//go:noescape
+func open(name *byte, mode, perm int32) int32