1
// Copyright 2009 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.
10
GOARCH=amd64 go tool cgo -cdefs defs_freebsd.go >defs_freebsd_amd64.h
11
GOARCH=386 go tool cgo -cdefs defs_freebsd.go >defs_freebsd_386.h
12
GOARCH=arm go tool cgo -cdefs defs_freebsd.go >defs_freebsd_arm.h
18
#include <sys/types.h>
22
#include <sys/event.h>
24
#include <sys/ucontext.h>
26
#include <sys/rtprio.h>
28
#include <sys/_sigset.h>
29
#include <sys/unistd.h>
37
PROT_NONE = C.PROT_NONE
38
PROT_READ = C.PROT_READ
39
PROT_WRITE = C.PROT_WRITE
40
PROT_EXEC = C.PROT_EXEC
43
MAP_PRIVATE = C.MAP_PRIVATE
44
MAP_FIXED = C.MAP_FIXED
46
MADV_FREE = C.MADV_FREE
48
SA_SIGINFO = C.SA_SIGINFO
49
SA_RESTART = C.SA_RESTART
50
SA_ONSTACK = C.SA_ONSTACK
52
UMTX_OP_WAIT_UINT = C.UMTX_OP_WAIT_UINT
53
UMTX_OP_WAKE = C.UMTX_OP_WAKE
80
SIGVTALRM = C.SIGVTALRM
87
FPE_INTDIV = C.FPE_INTDIV
88
FPE_INTOVF = C.FPE_INTOVF
89
FPE_FLTDIV = C.FPE_FLTDIV
90
FPE_FLTOVF = C.FPE_FLTOVF
91
FPE_FLTUND = C.FPE_FLTUND
92
FPE_FLTRES = C.FPE_FLTRES
93
FPE_FLTINV = C.FPE_FLTINV
94
FPE_FLTSUB = C.FPE_FLTSUB
96
BUS_ADRALN = C.BUS_ADRALN
97
BUS_ADRERR = C.BUS_ADRERR
98
BUS_OBJERR = C.BUS_OBJERR
100
SEGV_MAPERR = C.SEGV_MAPERR
101
SEGV_ACCERR = C.SEGV_ACCERR
103
ITIMER_REAL = C.ITIMER_REAL
104
ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
105
ITIMER_PROF = C.ITIMER_PROF
108
EV_DELETE = C.EV_DELETE
109
EV_CLEAR = C.EV_CLEAR
110
EV_RECEIPT = C.EV_RECEIPT
111
EV_ERROR = C.EV_ERROR
112
EVFILT_READ = C.EVFILT_READ
113
EVFILT_WRITE = C.EVFILT_WRITE
116
type Rtprio C.struct_rtprio
117
type ThrParam C.struct_thr_param
118
type Sigaltstack C.struct_sigaltstack
119
type Sigset C.struct___sigset
120
type StackT C.stack_t
122
type Siginfo C.siginfo_t
124
type Mcontext C.mcontext_t
125
type Ucontext C.ucontext_t
127
type Timespec C.struct_timespec
128
type Timeval C.struct_timeval
129
type Itimerval C.struct_itimerval
131
type Kevent C.struct_kevent