mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.cc] runtime: convert netbsd/amd64 port to Go
LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/169620043
This commit is contained in:
parent
d3526ea0f6
commit
cfc8099a9a
12 changed files with 436 additions and 511 deletions
|
|
@ -6,15 +6,37 @@ package runtime
|
|||
|
||||
import "unsafe"
|
||||
|
||||
func setitimer(mode int32, new, old unsafe.Pointer)
|
||||
func sigaction(sig int32, new, old unsafe.Pointer)
|
||||
func sigaltstack(new, old unsafe.Pointer)
|
||||
func sigprocmask(mode int32, new, old unsafe.Pointer)
|
||||
//go:noescape
|
||||
func setitimer(mode int32, new, old *itimerval)
|
||||
|
||||
//go:noescape
|
||||
func sigaction(sig int32, new, old *sigactiont)
|
||||
|
||||
//go:noescape
|
||||
func sigaltstack(new, old *sigaltstackt)
|
||||
|
||||
//go:noescape
|
||||
func sigprocmask(mode int32, new, old *sigset)
|
||||
|
||||
//go:noescape
|
||||
func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
|
||||
|
||||
func lwp_tramp()
|
||||
|
||||
func raise(sig int32)
|
||||
|
||||
//go:noescape
|
||||
func getcontext(ctxt unsafe.Pointer)
|
||||
|
||||
//go:noescape
|
||||
func lwp_create(ctxt unsafe.Pointer, flags uintptr, lwpid unsafe.Pointer) int32
|
||||
func lwp_park(abstime unsafe.Pointer, unpark int32, hint, unparkhint unsafe.Pointer) int32
|
||||
|
||||
//go:noescape
|
||||
func lwp_park(abstime *timespec, unpark int32, hint, unparkhint unsafe.Pointer) int32
|
||||
|
||||
//go:noescape
|
||||
func lwp_unpark(lwp int32, hint unsafe.Pointer) int32
|
||||
|
||||
func lwp_self() int32
|
||||
|
||||
func osyield()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue