...

Source file src/runtime/stubs2.go

Documentation: 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  // +build !js
    10  // +build !darwin
    11  // +build !aix
    12  
    13  package runtime
    14  
    15  import "unsafe"
    16  
    17  func read(fd int32, p unsafe.Pointer, n int32) int32
    18  func closefd(fd int32) int32
    19  
    20  func exit(code int32)
    21  func usleep(usec uint32)
    22  
    23  //go:noescape
    24  func write(fd uintptr, p unsafe.Pointer, n int32) int32
    25  
    26  //go:noescape
    27  func open(name *byte, mode, perm int32) int32
    28  
    29  // return value is only set on linux to be used in osinit()
    30  func madvise(addr unsafe.Pointer, n uintptr, flags int32) int32
    31  
    32  // exitThread terminates the current thread, writing *wait = 0 when
    33  // the stack is safe to reclaim.
    34  //
    35  //go:noescape
    36  func exitThread(wait *uint32)
    37  

View as plain text