github.com/aloncn/graphics-go@v0.0.1/src/runtime/os_openbsd.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 type mOS struct { 8 waitsemacount uint32 9 } 10 11 //go:noescape 12 func setitimer(mode int32, new, old *itimerval) 13 14 //go:noescape 15 func sigaction(sig int32, new, old *sigactiont) 16 17 //go:noescape 18 func sigaltstack(new, old *stackt) 19 20 //go:noescape 21 func sigprocmask(mode int32, new sigset) sigset 22 23 //go:noescape 24 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 25 26 func raise(sig int32) 27 func raiseproc(sig int32) 28 29 //go:noescape 30 func tfork(param *tforkt, psize uintptr, mm *m, gg *g, fn uintptr) int32 31 32 //go:noescape 33 func thrsleep(ident uintptr, clock_id int32, tsp *timespec, lock uintptr, abort *uint32) int32 34 35 //go:noescape 36 func thrwakeup(ident uintptr, n int32) int32 37 38 func osyield()