github.com/razvanm/vanadium-go-1.3@v0.0.0-20160721203343-4a65068e5915/src/runtime/defs_dragonfly_386.h (about) 1 // Created by cgo -cdefs - DO NOT EDIT 2 // cgo -cdefs defs_dragonfly.go 3 4 5 enum { 6 EINTR = 0x4, 7 EFAULT = 0xe, 8 EBUSY = 0x10, 9 EAGAIN = 0x23, 10 11 PROT_NONE = 0x0, 12 PROT_READ = 0x1, 13 PROT_WRITE = 0x2, 14 PROT_EXEC = 0x4, 15 16 MAP_ANON = 0x1000, 17 MAP_PRIVATE = 0x2, 18 MAP_FIXED = 0x10, 19 20 MADV_FREE = 0x5, 21 22 SA_SIGINFO = 0x40, 23 SA_RESTART = 0x2, 24 SA_ONSTACK = 0x1, 25 26 SIGHUP = 0x1, 27 SIGINT = 0x2, 28 SIGQUIT = 0x3, 29 SIGILL = 0x4, 30 SIGTRAP = 0x5, 31 SIGABRT = 0x6, 32 SIGEMT = 0x7, 33 SIGFPE = 0x8, 34 SIGKILL = 0x9, 35 SIGBUS = 0xa, 36 SIGSEGV = 0xb, 37 SIGSYS = 0xc, 38 SIGPIPE = 0xd, 39 SIGALRM = 0xe, 40 SIGTERM = 0xf, 41 SIGURG = 0x10, 42 SIGSTOP = 0x11, 43 SIGTSTP = 0x12, 44 SIGCONT = 0x13, 45 SIGCHLD = 0x14, 46 SIGTTIN = 0x15, 47 SIGTTOU = 0x16, 48 SIGIO = 0x17, 49 SIGXCPU = 0x18, 50 SIGXFSZ = 0x19, 51 SIGVTALRM = 0x1a, 52 SIGPROF = 0x1b, 53 SIGWINCH = 0x1c, 54 SIGINFO = 0x1d, 55 SIGUSR1 = 0x1e, 56 SIGUSR2 = 0x1f, 57 58 FPE_INTDIV = 0x2, 59 FPE_INTOVF = 0x1, 60 FPE_FLTDIV = 0x3, 61 FPE_FLTOVF = 0x4, 62 FPE_FLTUND = 0x5, 63 FPE_FLTRES = 0x6, 64 FPE_FLTINV = 0x7, 65 FPE_FLTSUB = 0x8, 66 67 BUS_ADRALN = 0x1, 68 BUS_ADRERR = 0x2, 69 BUS_OBJERR = 0x3, 70 71 SEGV_MAPERR = 0x1, 72 SEGV_ACCERR = 0x2, 73 74 ITIMER_REAL = 0x0, 75 ITIMER_VIRTUAL = 0x1, 76 ITIMER_PROF = 0x2, 77 78 EV_ADD = 0x1, 79 EV_DELETE = 0x2, 80 EV_CLEAR = 0x20, 81 EV_ERROR = 0x4000, 82 EVFILT_READ = -0x1, 83 EVFILT_WRITE = -0x2, 84 }; 85 86 typedef struct Rtprio Rtprio; 87 typedef struct Lwpparams Lwpparams; 88 typedef struct SigaltstackT SigaltstackT; 89 typedef struct Sigset Sigset; 90 typedef struct StackT StackT; 91 typedef struct Siginfo Siginfo; 92 typedef struct Mcontext Mcontext; 93 typedef struct Ucontext Ucontext; 94 typedef struct Timespec Timespec; 95 typedef struct Timeval Timeval; 96 typedef struct Itimerval Itimerval; 97 typedef struct KeventT KeventT; 98 99 #pragma pack on 100 101 struct Rtprio { 102 uint16 type; 103 uint16 prio; 104 }; 105 struct Lwpparams { 106 void *func; 107 byte *arg; 108 byte *stack; 109 int32 *tid1; 110 int32 *tid2; 111 }; 112 struct SigaltstackT { 113 int8 *ss_sp; 114 uint32 ss_size; 115 int32 ss_flags; 116 }; 117 struct Sigset { 118 uint32 __bits[4]; 119 }; 120 struct StackT { 121 int8 *ss_sp; 122 uint32 ss_size; 123 int32 ss_flags; 124 }; 125 126 struct Siginfo { 127 int32 si_signo; 128 int32 si_errno; 129 int32 si_code; 130 int32 si_pid; 131 uint32 si_uid; 132 int32 si_status; 133 byte *si_addr; 134 byte si_value[4]; 135 int32 si_band; 136 int32 __spare__[7]; 137 }; 138 139 struct Mcontext { 140 int32 mc_onstack; 141 int32 mc_gs; 142 int32 mc_fs; 143 int32 mc_es; 144 int32 mc_ds; 145 int32 mc_edi; 146 int32 mc_esi; 147 int32 mc_ebp; 148 int32 mc_isp; 149 int32 mc_ebx; 150 int32 mc_edx; 151 int32 mc_ecx; 152 int32 mc_eax; 153 int32 mc_xflags; 154 int32 mc_trapno; 155 int32 mc_err; 156 int32 mc_eip; 157 int32 mc_cs; 158 int32 mc_eflags; 159 int32 mc_esp; 160 int32 mc_ss; 161 int32 mc_len; 162 int32 mc_fpformat; 163 int32 mc_ownedfp; 164 int32 mc_fpregs[128]; 165 int32 __spare__[16]; 166 }; 167 struct Ucontext { 168 Sigset uc_sigmask; 169 Mcontext uc_mcontext; 170 Ucontext *uc_link; 171 StackT uc_stack; 172 int32 __spare__[8]; 173 }; 174 175 struct Timespec { 176 int32 tv_sec; 177 int32 tv_nsec; 178 }; 179 struct Timeval { 180 int32 tv_sec; 181 int32 tv_usec; 182 }; 183 struct Itimerval { 184 Timeval it_interval; 185 Timeval it_value; 186 }; 187 188 struct KeventT { 189 uint32 ident; 190 int16 filter; 191 uint16 flags; 192 uint32 fflags; 193 int32 data; 194 byte *udata; 195 }; 196 197 198 #pragma pack off