runtime: no escape for some functions on AIX
[official-gcc.git] / libgo / go / runtime / stubs2.go
blobe305b16b23f1f537921f431d30a6ad9f5a52699e
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 //go:noescape
14 func read(fd int32, p unsafe.Pointer, n int32) int32
15 func closefd(fd int32) int32
17 //extern exit
18 func exit(code int32)
19 func nanotime() int64
20 func usleep(usec uint32)
22 //go:noescape
23 func write(fd uintptr, p unsafe.Pointer, n int32) int32
25 //go:noescape
26 func open(name *byte, mode, perm int32) int32
28 // exitThread terminates the current thread, writing *wait = 0 when
29 // the stack is safe to reclaim.
30 func exitThread(wait *uint32) {
31 // This is never used by gccgo.
32 throw("exitThread")