...

Source file src/runtime/defs_nacl_386.go

     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		_SIGTRAP = 5
     8		_SIGSEGV = 11
     9		_SIGPROF = 27
    10	)
    11	
    12	type timespec struct {
    13		tv_sec  int64
    14		tv_nsec int32
    15	}
    16	
    17	//go:nosplit
    18	func (ts *timespec) setNsec(ns int64) {
    19		ts.tv_sec = int64(timediv(ns, 1e9, &ts.tv_nsec))
    20	}
    21	
    22	type excregs386 struct {
    23		eax    uint32
    24		ecx    uint32
    25		edx    uint32
    26		ebx    uint32
    27		esp    uint32
    28		ebp    uint32
    29		esi    uint32
    30		edi    uint32
    31		eip    uint32
    32		eflags uint32
    33	}
    34	
    35	type exccontext struct {
    36		size                    uint32
    37		portable_context_offset uint32
    38		portable_context_size   uint32
    39		arch                    uint32
    40		regs_size               uint32
    41		reserved                [11]uint32
    42		regs                    excregs386
    43	}
    44	
    45	type excportablecontext struct {
    46		pc uint32
    47		sp uint32
    48		fp uint32
    49	}
    50	

View as plain text