github.com/c0deoo1/golang1.5@v0.0.0-20220525150107-c87c805d4593/src/runtime/os_dragonfly.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 lwp_create(param *lwpparams) int32
    11  
    12  //go:noescape
    13  func sigaltstack(new, old *sigaltstackt)
    14  
    15  //go:noescape
    16  func sigfwd(fn uintptr, sig uint32, info *siginfo, ctx unsafe.Pointer)
    17  
    18  //go:noescape
    19  func sigaction(sig int32, new, old *sigactiont)
    20  
    21  //go:noescape
    22  func sigprocmask(how int32, new, old *sigset)
    23  
    24  //go:noescape
    25  func setitimer(mode int32, new, old *itimerval)
    26  
    27  //go:noescape
    28  func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
    29  
    30  //go:noescape
    31  func getrlimit(kind int32, limit unsafe.Pointer) int32
    32  
    33  func raise(sig int32)
    34  func raiseproc(sig int32)
    35  
    36  //go:noescape
    37  func sys_umtx_sleep(addr *uint32, val, timeout int32) int32
    38  
    39  //go:noescape
    40  func sys_umtx_wakeup(addr *uint32, val int32) int32
    41  
    42  func osyield()
    43  
    44  const stackSystem = 0