blob: 5e65e033ab3c58101ce99c327b6504583ecdba88 [file] [log] [blame]
Russ Cox580ef3e2014-11-11 17:07:37 -05001package runtime
2
3const (
4 // These values are referred to in the source code
5 // but really don't matter. Even so, use the standard numbers.
Russ Cox5bfed7c2015-01-14 11:18:24 -05006 _SIGQUIT = 3
Austin Clementsc5ed10f2018-04-26 21:43:19 -04007 _SIGTRAP = 5
Russ Cox580ef3e2014-11-11 17:07:37 -05008 _SIGSEGV = 11
9 _SIGPROF = 27
10)
11
12type timespec struct {
13 tv_sec int64
14 tv_nsec int32
15}
16
17type excregs386 struct {
18 eax uint32
19 ecx uint32
20 edx uint32
21 ebx uint32
22 esp uint32
23 ebp uint32
24 esi uint32
25 edi uint32
26 eip uint32
27 eflags uint32
28}
29
30type exccontext struct {
31 size uint32
32 portable_context_offset uint32
33 portable_context_size uint32
34 arch uint32
35 regs_size uint32
36 reserved [11]uint32
37 regs excregs386
38}
39
40type excportablecontext struct {
41 pc uint32
42 sp uint32
43 fp uint32
44}