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 *sigaltstackt) 17 18 func sigfwd(fn uintptr, sig uint32, info *siginfo, ctx unsafe.Pointer) { 19 throw("sigfwd not implemented") 20 } 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() 48