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