github.com/bgentry/go@v0.0.0-20150121062915-6cf5a733d54d/src/runtime/os_netbsd.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 setitimer(mode int32, new, old *itimerval)
    11  
    12  //go:noescape
    13  func sigaction(sig int32, new, old *sigactiont)
    14  
    15  //go:noescape
    16  func sigaltstack(new, old *sigaltstackt)
    17  
    18  //go:noescape
    19  func sigprocmask(mode int32, new, old *sigset)
    20  
    21  //go:noescape
    22  func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
    23  
    24  func lwp_tramp()
    25  
    26  func raise(sig int32)
    27  func raiseproc(sig int32)
    28  
    29  //go:noescape
    30  func getcontext(ctxt unsafe.Pointer)
    31  
    32  //go:noescape
    33  func lwp_create(ctxt unsafe.Pointer, flags uintptr, lwpid unsafe.Pointer) int32
    34  
    35  //go:noescape
    36  func lwp_park(abstime *timespec, unpark int32, hint, unparkhint unsafe.Pointer) int32
    37  
    38  //go:noescape
    39  func lwp_unpark(lwp int32, hint unsafe.Pointer) int32
    40  
    41  func lwp_self() int32
    42  
    43  func osyield()