Source file
src/runtime/defs1_netbsd_386.go
1
2
3
4 package runtime
5
6 const (
7 _EINTR = 0x4
8 _EFAULT = 0xe
9 _EAGAIN = 0x23
10 _ENOSYS = 0x4e
11
12 _O_NONBLOCK = 0x4
13 _O_CLOEXEC = 0x400000
14
15 _PROT_NONE = 0x0
16 _PROT_READ = 0x1
17 _PROT_WRITE = 0x2
18 _PROT_EXEC = 0x4
19
20 _MAP_ANON = 0x1000
21 _MAP_PRIVATE = 0x2
22 _MAP_FIXED = 0x10
23
24 _MADV_FREE = 0x6
25
26 _SA_SIGINFO = 0x40
27 _SA_RESTART = 0x2
28 _SA_ONSTACK = 0x1
29
30 _SIGHUP = 0x1
31 _SIGINT = 0x2
32 _SIGQUIT = 0x3
33 _SIGILL = 0x4
34 _SIGTRAP = 0x5
35 _SIGABRT = 0x6
36 _SIGEMT = 0x7
37 _SIGFPE = 0x8
38 _SIGKILL = 0x9
39 _SIGBUS = 0xa
40 _SIGSEGV = 0xb
41 _SIGSYS = 0xc
42 _SIGPIPE = 0xd
43 _SIGALRM = 0xe
44 _SIGTERM = 0xf
45 _SIGURG = 0x10
46 _SIGSTOP = 0x11
47 _SIGTSTP = 0x12
48 _SIGCONT = 0x13
49 _SIGCHLD = 0x14
50 _SIGTTIN = 0x15
51 _SIGTTOU = 0x16
52 _SIGIO = 0x17
53 _SIGXCPU = 0x18
54 _SIGXFSZ = 0x19
55 _SIGVTALRM = 0x1a
56 _SIGPROF = 0x1b
57 _SIGWINCH = 0x1c
58 _SIGINFO = 0x1d
59 _SIGUSR1 = 0x1e
60 _SIGUSR2 = 0x1f
61
62 _FPE_INTDIV = 0x1
63 _FPE_INTOVF = 0x2
64 _FPE_FLTDIV = 0x3
65 _FPE_FLTOVF = 0x4
66 _FPE_FLTUND = 0x5
67 _FPE_FLTRES = 0x6
68 _FPE_FLTINV = 0x7
69 _FPE_FLTSUB = 0x8
70
71 _BUS_ADRALN = 0x1
72 _BUS_ADRERR = 0x2
73 _BUS_OBJERR = 0x3
74
75 _SEGV_MAPERR = 0x1
76 _SEGV_ACCERR = 0x2
77
78 _ITIMER_REAL = 0x0
79 _ITIMER_VIRTUAL = 0x1
80 _ITIMER_PROF = 0x2
81
82 _EV_ADD = 0x1
83 _EV_DELETE = 0x2
84 _EV_CLEAR = 0x20
85 _EV_RECEIPT = 0
86 _EV_ERROR = 0x4000
87 _EV_EOF = 0x8000
88 _EVFILT_READ = 0x0
89 _EVFILT_WRITE = 0x1
90 )
91
92 type sigset struct {
93 __bits [4]uint32
94 }
95
96 type siginfo struct {
97 _signo int32
98 _code int32
99 _errno int32
100 _reason [20]byte
101 }
102
103 type stackt struct {
104 ss_sp uintptr
105 ss_size uintptr
106 ss_flags int32
107 }
108
109 type timespec struct {
110 tv_sec int64
111 tv_nsec int32
112 }
113
114
115 func (ts *timespec) setNsec(ns int64) {
116 ts.tv_sec = int64(timediv(ns, 1e9, &ts.tv_nsec))
117 }
118
119 type timeval struct {
120 tv_sec int64
121 tv_usec int32
122 }
123
124 func (tv *timeval) set_usec(x int32) {
125 tv.tv_usec = x
126 }
127
128 type itimerval struct {
129 it_interval timeval
130 it_value timeval
131 }
132
133 type mcontextt struct {
134 __gregs [19]uint32
135 __fpregs [644]byte
136 _mc_tlsbase int32
137 }
138
139 type ucontextt struct {
140 uc_flags uint32
141 uc_link *ucontextt
142 uc_sigmask sigset
143 uc_stack stackt
144 uc_mcontext mcontextt
145 __uc_pad [4]int32
146 }
147
148 type keventt struct {
149 ident uint32
150 filter uint32
151 flags uint32
152 fflags uint32
153 data int64
154 udata *byte
155 }
156
157
158
159
160 const (
161 _REG_GS = 0x0
162 _REG_FS = 0x1
163 _REG_ES = 0x2
164 _REG_DS = 0x3
165 _REG_EDI = 0x4
166 _REG_ESI = 0x5
167 _REG_EBP = 0x6
168 _REG_ESP = 0x7
169 _REG_EBX = 0x8
170 _REG_EDX = 0x9
171 _REG_ECX = 0xa
172 _REG_EAX = 0xb
173 _REG_TRAPNO = 0xc
174 _REG_ERR = 0xd
175 _REG_EIP = 0xe
176 _REG_CS = 0xf
177 _REG_EFL = 0x10
178 _REG_UESP = 0x11
179 _REG_SS = 0x12
180 )
181
View as plain text