1 // created by cgo -cdefs and then converted to Go
2 // cgo -cdefs defs_freebsd.go
11 _CPU_LEVEL_WHICH = 0x3
44 _CLOCK_MONOTONIC = 0x4
47 _UMTX_OP_WAIT_UINT = 0xb
48 _UMTX_OP_WAIT_UINT_PRIVATE = 0xf
50 _UMTX_OP_WAKE_PRIVATE = 0x10
101 _ITIMER_VIRTUAL = 0x1
119 type thrparam struct {
124 tls_base unsafe.Pointer
126 child_tid unsafe.Pointer // *int64
134 type thread int64 // long
147 type siginfo struct {
172 fp_x [64]uint64 // actually __uint64_t fp_x[32][2]
178 type mcontext struct {
186 type ucontext struct {
196 type timespec struct {
202 func (ts *timespec) setNsec(ns int64) {
204 ts.tv_nsec = ns % 1e9
207 type timeval struct {
212 func (tv *timeval) set_usec(x int32) {
213 tv.tv_usec = int64(x)
216 type itimerval struct {
221 type umtx_time struct {
227 type keventt struct {
237 type bintime struct {
242 type vdsoTimehands struct {
254 type vdsoTimekeep struct {
262 _VDSO_TK_VER_CURR = 0x1
264 vdsoTimehandsSize = 0x58
265 vdsoTimekeepSize = 0x10