Home | History | Annotate | Download | only in runtime
      1 package runtime
      2 
      3 const (
      4 	// These values are referred to in the source code
      5 	// but really don't matter. Even so, use the standard numbers.
      6 	_SIGQUIT = 3
      7 	_SIGSEGV = 11
      8 	_SIGPROF = 27
      9 )
     10 
     11 type timespec struct {
     12 	tv_sec  int64
     13 	tv_nsec int32
     14 }
     15 
     16 type excregs386 struct {
     17 	eax    uint32
     18 	ecx    uint32
     19 	edx    uint32
     20 	ebx    uint32
     21 	esp    uint32
     22 	ebp    uint32
     23 	esi    uint32
     24 	edi    uint32
     25 	eip    uint32
     26 	eflags uint32
     27 }
     28 
     29 type exccontext struct {
     30 	size                    uint32
     31 	portable_context_offset uint32
     32 	portable_context_size   uint32
     33 	arch                    uint32
     34 	regs_size               uint32
     35 	reserved                [11]uint32
     36 	regs                    excregs386
     37 }
     38 
     39 type excportablecontext struct {
     40 	pc uint32
     41 	sp uint32
     42 	fp uint32
     43 }
     44