]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgo/go/runtime/stubs2.go
libgo: update to Go1.14beta1
[thirdparty/gcc.git] / libgo / go / runtime / stubs2.go
index dcbbffa9180fa7a47be7be2977425e206fe3cd76..454afee51fc388626f8e6671c27312530c26374d 100644 (file)
@@ -4,23 +4,27 @@
 
 // +build !plan9
 // +build !windows
-// +build !nacl
 // +build !js
 
 package runtime
 
 import "unsafe"
 
+// read calls the read system call.
+// It returns a non-negative number of bytes written or a negative errno value.
 //go:noescape
 func read(fd int32, p unsafe.Pointer, n int32) int32
+
 func closefd(fd int32) int32
 
 //extern exit
 func exit(code int32)
 func usleep(usec uint32)
 
+// write calls the write system call.
+// It returns a non-negative number of bytes written or a negative errno value.
 //go:noescape
-func write(fd uintptr, p unsafe.Pointer, n int32) int32
+func write1(fd uintptr, p unsafe.Pointer, n int32) int32
 
 //go:noescape
 func open(name *byte, mode, perm int32) int32