Source file src/runtime/stubs_linux.go

Documentation: runtime

     1  // Copyright 2017 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 linux
     6  
     7  package runtime
     8  
     9  import "unsafe"
    10  
    11  func sbrk0() uintptr
    12  
    13  // Called from write_err_android.go only, but defined in sys_linux_*.s;
    14  // declared here (instead of in write_err_android.go) for go vet on non-android builds.
    15  // The return value is the raw syscall result, which may encode an error number.
    16  //go:noescape
    17  func access(name *byte, mode int32) int32
    18  func connect(fd int32, addr unsafe.Pointer, len int32) int32
    19  func socket(domain int32, typ int32, prot int32) int32
    20  

View as plain text