Home | History | Annotate | Download | only in runtime
      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 *stackt)
     17 
     18 //go:noescape
     19 func sigfwd(fn uintptr, sig uint32, info *siginfo, ctx unsafe.Pointer)
     20 
     21 //go:noescape
     22 func sigprocmask(mode int32, new uint32) uint32
     23 
     24 //go:noescape
     25 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
     26 
     27 func raise(sig int32)
     28 func raiseproc(sig int32)
     29 
     30 //go:noescape
     31 func tfork(param *tforkt, psize uintptr, mm *m, gg *g, fn uintptr) int32
     32 
     33 //go:noescape
     34 func thrsleep(ident uintptr, clock_id int32, tsp *timespec, lock uintptr, abort *uint32) int32
     35 
     36 //go:noescape
     37 func thrwakeup(ident uintptr, n int32) int32
     38 
     39 func osyield()
     40