Mikio Hara | f02cf19 | 2012-11-26 21:29:13 +0900 | [diff] [blame] | 1 | // Created by cgo -cdefs - DO NOT EDIT |
| 2 | // cgo -cdefs defs_freebsd.go |
Devon H. O'Dell | 0489a26 | 2009-11-17 08:20:58 -0800 | [diff] [blame] | 3 | |
Devon H. O'Dell | 0489a26 | 2009-11-17 08:20:58 -0800 | [diff] [blame] | 4 | |
Devon H. O'Dell | 0489a26 | 2009-11-17 08:20:58 -0800 | [diff] [blame] | 5 | enum { |
Mikio Hara | c5732c8 | 2013-05-20 19:25:32 +0900 | [diff] [blame] | 6 | EINTR = 0x4, |
| 7 | EFAULT = 0xe, |
| 8 | |
Mikio Hara | f02cf19 | 2012-11-26 21:29:13 +0900 | [diff] [blame] | 9 | PROT_NONE = 0x0, |
| 10 | PROT_READ = 0x1, |
| 11 | PROT_WRITE = 0x2, |
| 12 | PROT_EXEC = 0x4, |
Devon H. O'Dell | 0489a26 | 2009-11-17 08:20:58 -0800 | [diff] [blame] | 13 | |
Mikio Hara | f02cf19 | 2012-11-26 21:29:13 +0900 | [diff] [blame] | 14 | MAP_ANON = 0x1000, |
| 15 | MAP_PRIVATE = 0x2, |
| 16 | MAP_FIXED = 0x10, |
| 17 | |
| 18 | MADV_FREE = 0x5, |
| 19 | |
| 20 | SA_SIGINFO = 0x40, |
| 21 | SA_RESTART = 0x2, |
| 22 | SA_ONSTACK = 0x1, |
| 23 | |
Ian Lance Taylor | 9fe8681 | 2013-04-12 05:20:15 -0700 | [diff] [blame] | 24 | UMTX_OP_WAIT_UINT = 0xb, |
| 25 | UMTX_OP_WAKE = 0x3, |
Mikio Hara | f02cf19 | 2012-11-26 21:29:13 +0900 | [diff] [blame] | 26 | |
Mikio Hara | f02cf19 | 2012-11-26 21:29:13 +0900 | [diff] [blame] | 27 | SIGHUP = 0x1, |
| 28 | SIGINT = 0x2, |
| 29 | SIGQUIT = 0x3, |
| 30 | SIGILL = 0x4, |
| 31 | SIGTRAP = 0x5, |
| 32 | SIGABRT = 0x6, |
| 33 | SIGEMT = 0x7, |
| 34 | SIGFPE = 0x8, |
| 35 | SIGKILL = 0x9, |
| 36 | SIGBUS = 0xa, |
| 37 | SIGSEGV = 0xb, |
| 38 | SIGSYS = 0xc, |
| 39 | SIGPIPE = 0xd, |
| 40 | SIGALRM = 0xe, |
| 41 | SIGTERM = 0xf, |
| 42 | SIGURG = 0x10, |
| 43 | SIGSTOP = 0x11, |
| 44 | SIGTSTP = 0x12, |
| 45 | SIGCONT = 0x13, |
| 46 | SIGCHLD = 0x14, |
| 47 | SIGTTIN = 0x15, |
| 48 | SIGTTOU = 0x16, |
| 49 | SIGIO = 0x17, |
| 50 | SIGXCPU = 0x18, |
| 51 | SIGXFSZ = 0x19, |
| 52 | SIGVTALRM = 0x1a, |
| 53 | SIGPROF = 0x1b, |
| 54 | SIGWINCH = 0x1c, |
| 55 | SIGINFO = 0x1d, |
| 56 | SIGUSR1 = 0x1e, |
| 57 | SIGUSR2 = 0x1f, |
| 58 | |
| 59 | FPE_INTDIV = 0x2, |
| 60 | FPE_INTOVF = 0x1, |
| 61 | FPE_FLTDIV = 0x3, |
| 62 | FPE_FLTOVF = 0x4, |
| 63 | FPE_FLTUND = 0x5, |
| 64 | FPE_FLTRES = 0x6, |
| 65 | FPE_FLTINV = 0x7, |
| 66 | FPE_FLTSUB = 0x8, |
| 67 | |
| 68 | BUS_ADRALN = 0x1, |
| 69 | BUS_ADRERR = 0x2, |
| 70 | BUS_OBJERR = 0x3, |
| 71 | |
| 72 | SEGV_MAPERR = 0x1, |
| 73 | SEGV_ACCERR = 0x2, |
| 74 | |
| 75 | ITIMER_REAL = 0x0, |
| 76 | ITIMER_VIRTUAL = 0x1, |
| 77 | ITIMER_PROF = 0x2, |
Mikio Hara | c5732c8 | 2013-05-20 19:25:32 +0900 | [diff] [blame] | 78 | |
| 79 | EV_ADD = 0x1, |
| 80 | EV_DELETE = 0x2, |
| 81 | EV_CLEAR = 0x20, |
| 82 | EV_RECEIPT = 0x40, |
| 83 | EV_ERROR = 0x4000, |
| 84 | EVFILT_READ = -0x1, |
| 85 | EVFILT_WRITE = -0x2, |
Mikio Hara | f02cf19 | 2012-11-26 21:29:13 +0900 | [diff] [blame] | 86 | }; |
Devon H. O'Dell | 0489a26 | 2009-11-17 08:20:58 -0800 | [diff] [blame] | 87 | |
Devon H. O'Dell | b3f538a | 2009-11-17 23:58:51 -0800 | [diff] [blame] | 88 | typedef struct Rtprio Rtprio; |
Devon H. O'Dell | b3f538a | 2009-11-17 23:58:51 -0800 | [diff] [blame] | 89 | typedef struct ThrParam ThrParam; |
Devon H. O'Dell | 0489a26 | 2009-11-17 08:20:58 -0800 | [diff] [blame] | 90 | typedef struct Sigaltstack Sigaltstack; |
Devon H. O'Dell | 0489a26 | 2009-11-17 08:20:58 -0800 | [diff] [blame] | 91 | typedef struct Sigset Sigset; |
Devon H. O'Dell | 0489a26 | 2009-11-17 08:20:58 -0800 | [diff] [blame] | 92 | typedef struct StackT StackT; |
Devon H. O'Dell | 0489a26 | 2009-11-17 08:20:58 -0800 | [diff] [blame] | 93 | typedef struct Siginfo Siginfo; |
Devon H. O'Dell | 0489a26 | 2009-11-17 08:20:58 -0800 | [diff] [blame] | 94 | typedef struct Mcontext Mcontext; |
Devon H. O'Dell | 0489a26 | 2009-11-17 08:20:58 -0800 | [diff] [blame] | 95 | typedef struct Ucontext Ucontext; |
Joel Sing | 0e5cd9d | 2011-11-08 11:43:58 -0500 | [diff] [blame] | 96 | typedef struct Timespec Timespec; |
Andrew Gerrand | 1c05a90 | 2011-03-24 11:45:12 +1100 | [diff] [blame] | 97 | typedef struct Timeval Timeval; |
Mikio Hara | f02cf19 | 2012-11-26 21:29:13 +0900 | [diff] [blame] | 98 | typedef struct Itimerval Itimerval; |
Mikio Hara | c5732c8 | 2013-05-20 19:25:32 +0900 | [diff] [blame] | 99 | typedef struct Kevent Kevent; |
Mikio Hara | f02cf19 | 2012-11-26 21:29:13 +0900 | [diff] [blame] | 100 | |
| 101 | #pragma pack on |
| 102 | |
| 103 | struct Rtprio { |
| 104 | uint16 type; |
| 105 | uint16 prio; |
| 106 | }; |
| 107 | struct ThrParam { |
| 108 | void *start_func; |
| 109 | byte *arg; |
| 110 | int8 *stack_base; |
| 111 | uint64 stack_size; |
| 112 | int8 *tls_base; |
| 113 | uint64 tls_size; |
| 114 | int64 *child_tid; |
| 115 | int64 *parent_tid; |
| 116 | int32 flags; |
| 117 | byte Pad_cgo_0[4]; |
| 118 | Rtprio *rtp; |
| 119 | void *spare[3]; |
| 120 | }; |
| 121 | struct Sigaltstack { |
| 122 | int8 *ss_sp; |
| 123 | uint64 ss_size; |
| 124 | int32 ss_flags; |
| 125 | byte Pad_cgo_0[4]; |
| 126 | }; |
| 127 | struct Sigset { |
| 128 | uint32 __bits[4]; |
| 129 | }; |
| 130 | struct StackT { |
| 131 | int8 *ss_sp; |
| 132 | uint64 ss_size; |
| 133 | int32 ss_flags; |
| 134 | byte Pad_cgo_0[4]; |
Andrew Gerrand | 1c05a90 | 2011-03-24 11:45:12 +1100 | [diff] [blame] | 135 | }; |
| 136 | |
Mikio Hara | f02cf19 | 2012-11-26 21:29:13 +0900 | [diff] [blame] | 137 | struct Siginfo { |
| 138 | int32 si_signo; |
| 139 | int32 si_errno; |
| 140 | int32 si_code; |
| 141 | int32 si_pid; |
| 142 | uint32 si_uid; |
| 143 | int32 si_status; |
| 144 | byte *si_addr; |
| 145 | byte si_value[8]; |
| 146 | byte _reason[40]; |
Devon H. O'Dell | 0489a26 | 2009-11-17 08:20:58 -0800 | [diff] [blame] | 147 | }; |
Mikio Hara | f02cf19 | 2012-11-26 21:29:13 +0900 | [diff] [blame] | 148 | |
| 149 | struct Mcontext { |
| 150 | int64 mc_onstack; |
| 151 | int64 mc_rdi; |
| 152 | int64 mc_rsi; |
| 153 | int64 mc_rdx; |
| 154 | int64 mc_rcx; |
| 155 | int64 mc_r8; |
| 156 | int64 mc_r9; |
| 157 | int64 mc_rax; |
| 158 | int64 mc_rbx; |
| 159 | int64 mc_rbp; |
| 160 | int64 mc_r10; |
| 161 | int64 mc_r11; |
| 162 | int64 mc_r12; |
| 163 | int64 mc_r13; |
| 164 | int64 mc_r14; |
| 165 | int64 mc_r15; |
| 166 | uint32 mc_trapno; |
| 167 | uint16 mc_fs; |
| 168 | uint16 mc_gs; |
| 169 | int64 mc_addr; |
| 170 | uint32 mc_flags; |
| 171 | uint16 mc_es; |
| 172 | uint16 mc_ds; |
| 173 | int64 mc_err; |
| 174 | int64 mc_rip; |
| 175 | int64 mc_cs; |
| 176 | int64 mc_rflags; |
| 177 | int64 mc_rsp; |
| 178 | int64 mc_ss; |
| 179 | int64 mc_len; |
| 180 | int64 mc_fpformat; |
| 181 | int64 mc_ownedfp; |
| 182 | int64 mc_fpstate[64]; |
| 183 | int64 mc_fsbase; |
| 184 | int64 mc_gsbase; |
Mikio Hara | c5732c8 | 2013-05-20 19:25:32 +0900 | [diff] [blame] | 185 | int64 mc_xfpustate; |
| 186 | int64 mc_xfpustate_len; |
| 187 | int64 mc_spare[4]; |
Mikio Hara | f02cf19 | 2012-11-26 21:29:13 +0900 | [diff] [blame] | 188 | }; |
| 189 | struct Ucontext { |
| 190 | Sigset uc_sigmask; |
| 191 | Mcontext uc_mcontext; |
| 192 | Ucontext *uc_link; |
| 193 | StackT uc_stack; |
| 194 | int32 uc_flags; |
| 195 | int32 __spare__[4]; |
| 196 | byte Pad_cgo_0[12]; |
| 197 | }; |
| 198 | |
| 199 | struct Timespec { |
| 200 | int64 tv_sec; |
| 201 | int64 tv_nsec; |
| 202 | }; |
| 203 | struct Timeval { |
| 204 | int64 tv_sec; |
| 205 | int64 tv_usec; |
| 206 | }; |
| 207 | struct Itimerval { |
| 208 | Timeval it_interval; |
| 209 | Timeval it_value; |
| 210 | }; |
| 211 | |
Mikio Hara | c5732c8 | 2013-05-20 19:25:32 +0900 | [diff] [blame] | 212 | struct Kevent { |
| 213 | uint64 ident; |
| 214 | int16 filter; |
| 215 | uint16 flags; |
| 216 | uint32 fflags; |
| 217 | int64 data; |
| 218 | byte *udata; |
| 219 | }; |
| 220 | |
Mikio Hara | f02cf19 | 2012-11-26 21:29:13 +0900 | [diff] [blame] | 221 | |
Devon H. O'Dell | 0489a26 | 2009-11-17 08:20:58 -0800 | [diff] [blame] | 222 | #pragma pack off |