github.com/tcnksm/go@v0.0.0-20141208075154-439b32936367/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  
    28  //go:noescape
    29  func getcontext(ctxt unsafe.Pointer)
    30  
    31  //go:noescape
    32  func lwp_create(ctxt unsafe.Pointer, flags uintptr, lwpid unsafe.Pointer) int32
    33  
    34  //go:noescape
    35  func lwp_park(abstime *timespec, unpark int32, hint, unparkhint unsafe.Pointer) int32
    36  
    37  //go:noescape
    38  func lwp_unpark(lwp int32, hint unsafe.Pointer) int32
    39  
    40  func lwp_self() int32
    41  
    42  func osyield()