github.com/peggyl/go@v0.0.0-20151008231540-ae315999c2d5/src/runtime/os_freebsd.go (about)

     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  package runtime
     6  
     7  import "unsafe"
     8  
     9  //go:noescape
    10  func thr_new(param *thrparam, size int32)
    11  
    12  //go:noescape
    13  func sigaltstack(new, old *stackt)
    14  
    15  //go:noescape
    16  func sigaction(sig int32, new, old *sigactiont)
    17  
    18  //go:noescape
    19  func sigprocmask(how int32, new, old *sigset)
    20  
    21  //go:noescape
    22  func setitimer(mode int32, new, old *itimerval)
    23  
    24  //go:noescape
    25  func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
    26  
    27  //go:noescape
    28  func getrlimit(kind int32, limit unsafe.Pointer) int32
    29  func raise(sig int32)
    30  func raiseproc(sig int32)
    31  
    32  //go:noescape
    33  func sys_umtx_op(addr *uint32, mode int32, val uint32, ptr2, ts *timespec) int32
    34  
    35  func osyield()