Home | History | Annotate | Download | only in runtime
      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.
      4 
      5 // +build !plan9
      6 // +build !solaris
      7 // +build !windows
      8 // +build !nacl
      9 
     10 package runtime
     11 
     12 import "unsafe"
     13 
     14 func read(fd int32, p unsafe.Pointer, n int32) int32
     15 func closefd(fd int32) int32
     16 
     17 func exit(code int32)
     18 func nanotime() int64
     19 func usleep(usec uint32)
     20 
     21 //go:noescape
     22 func write(fd uintptr, p unsafe.Pointer, n int32) int32
     23 
     24 //go:noescape
     25 func open(name *byte, mode, perm int32) int32
     26 
     27 func madvise(addr unsafe.Pointer, n uintptr, flags int32)
     28 
     29 // exitThread terminates the current thread, writing *wait = 0 when
     30 // the stack is safe to reclaim.
     31 //
     32 //go:noescape
     33 func exitThread(wait *uint32)
     34