github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/src/pkg/runtime/defs_openbsd_amd64.h (about) 1 // Created by cgo -cdefs - DO NOT EDIT 2 // cgo -cdefs defs_openbsd.go 3 4 5 enum { 6 PROT_NONE = 0x0, 7 PROT_READ = 0x1, 8 PROT_WRITE = 0x2, 9 PROT_EXEC = 0x4, 10 11 MAP_ANON = 0x1000, 12 MAP_PRIVATE = 0x2, 13 MAP_FIXED = 0x10, 14 15 MADV_FREE = 0x6, 16 17 SA_SIGINFO = 0x40, 18 SA_RESTART = 0x2, 19 SA_ONSTACK = 0x1, 20 21 EINTR = 0x4, 22 23 SIGHUP = 0x1, 24 SIGINT = 0x2, 25 SIGQUIT = 0x3, 26 SIGILL = 0x4, 27 SIGTRAP = 0x5, 28 SIGABRT = 0x6, 29 SIGEMT = 0x7, 30 SIGFPE = 0x8, 31 SIGKILL = 0x9, 32 SIGBUS = 0xa, 33 SIGSEGV = 0xb, 34 SIGSYS = 0xc, 35 SIGPIPE = 0xd, 36 SIGALRM = 0xe, 37 SIGTERM = 0xf, 38 SIGURG = 0x10, 39 SIGSTOP = 0x11, 40 SIGTSTP = 0x12, 41 SIGCONT = 0x13, 42 SIGCHLD = 0x14, 43 SIGTTIN = 0x15, 44 SIGTTOU = 0x16, 45 SIGIO = 0x17, 46 SIGXCPU = 0x18, 47 SIGXFSZ = 0x19, 48 SIGVTALRM = 0x1a, 49 SIGPROF = 0x1b, 50 SIGWINCH = 0x1c, 51 SIGINFO = 0x1d, 52 SIGUSR1 = 0x1e, 53 SIGUSR2 = 0x1f, 54 55 FPE_INTDIV = 0x1, 56 FPE_INTOVF = 0x2, 57 FPE_FLTDIV = 0x3, 58 FPE_FLTOVF = 0x4, 59 FPE_FLTUND = 0x5, 60 FPE_FLTRES = 0x6, 61 FPE_FLTINV = 0x7, 62 FPE_FLTSUB = 0x8, 63 64 BUS_ADRALN = 0x1, 65 BUS_ADRERR = 0x2, 66 BUS_OBJERR = 0x3, 67 68 SEGV_MAPERR = 0x1, 69 SEGV_ACCERR = 0x2, 70 71 ITIMER_REAL = 0x0, 72 ITIMER_VIRTUAL = 0x1, 73 ITIMER_PROF = 0x2, 74 }; 75 76 typedef struct Tfork Tfork; 77 typedef struct Sigaltstack Sigaltstack; 78 typedef struct Sigcontext Sigcontext; 79 typedef struct Siginfo Siginfo; 80 typedef struct StackT StackT; 81 typedef struct Timespec Timespec; 82 typedef struct Timeval Timeval; 83 typedef struct Itimerval Itimerval; 84 85 #pragma pack on 86 87 struct Tfork { 88 byte *tf_tcb; 89 int32 *tf_tid; 90 byte *tf_stack; 91 }; 92 93 struct Sigaltstack { 94 byte *ss_sp; 95 uint64 ss_size; 96 int32 ss_flags; 97 byte Pad_cgo_0[4]; 98 }; 99 struct Sigcontext { 100 int64 sc_rdi; 101 int64 sc_rsi; 102 int64 sc_rdx; 103 int64 sc_rcx; 104 int64 sc_r8; 105 int64 sc_r9; 106 int64 sc_r10; 107 int64 sc_r11; 108 int64 sc_r12; 109 int64 sc_r13; 110 int64 sc_r14; 111 int64 sc_r15; 112 int64 sc_rbp; 113 int64 sc_rbx; 114 int64 sc_rax; 115 int64 sc_gs; 116 int64 sc_fs; 117 int64 sc_es; 118 int64 sc_ds; 119 int64 sc_trapno; 120 int64 sc_err; 121 int64 sc_rip; 122 int64 sc_cs; 123 int64 sc_rflags; 124 int64 sc_rsp; 125 int64 sc_ss; 126 void *sc_fpstate; 127 int32 sc_onstack; 128 int32 sc_mask; 129 }; 130 struct Siginfo { 131 int32 si_signo; 132 int32 si_code; 133 int32 si_errno; 134 byte Pad_cgo_0[4]; 135 byte _data[120]; 136 }; 137 typedef uint32 Sigset; 138 typedef byte Sigval[8]; 139 140 struct StackT { 141 byte *ss_sp; 142 uint64 ss_size; 143 int32 ss_flags; 144 byte Pad_cgo_0[4]; 145 }; 146 147 struct Timespec { 148 int32 tv_sec; 149 byte Pad_cgo_0[4]; 150 int64 tv_nsec; 151 }; 152 struct Timeval { 153 int64 tv_sec; 154 int64 tv_usec; 155 }; 156 struct Itimerval { 157 Timeval it_interval; 158 Timeval it_value; 159 }; 160 161 162 #pragma pack off