...
Run Format

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

View as plain text