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