github.com/aloncn/graphics-go@v0.0.1/src/runtime/os_freebsd.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 thr_new(param *thrparam, size int32) 13 14 //go:noescape 15 func sigaltstack(new, old *stackt) 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 func raise(sig int32) 32 func raiseproc(sig int32) 33 34 //go:noescape 35 func sys_umtx_op(addr *uint32, mode int32, val uint32, ptr2, ts *timespec) int32 36 37 func osyield()