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