* README.Portability: Remove note on an Irix compatibility issue.
[official-gcc.git] / libgo / go / runtime / stubs2.go
blobe891fe5ee7bf77d316756e195e2b6f3ff0cbdf72
1 // Copyright 2014 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.
5 // +build !plan9
6 // +build !windows
7 // +build !nacl
9 package runtime
11 import "unsafe"
13 func read(fd int32, p unsafe.Pointer, n int32) int32
14 func closefd(fd int32) int32
16 //extern exit
17 func exit(code int32)
18 func nanotime() int64
19 func usleep(usec uint32)
21 //extern mmap
22 func mmap(addr unsafe.Pointer, length uintptr, prot, flags, fd int32, offset uintptr) unsafe.Pointer
24 //extern munmap
25 func munmap(addr unsafe.Pointer, n uintptr) int32
27 //go:noescape
28 func write(fd uintptr, p unsafe.Pointer, n int32) int32
30 //go:noescape
31 func open(name *byte, mode, perm int32) int32
33 func madvise(addr unsafe.Pointer, n uintptr, flags int32)