Source file
src/runtime/defs_linux_mipsx.go
Documentation: runtime
1
2
3
4
5
6
7
8
9 package runtime
10
11 const (
12 _EINTR = 0x4
13 _EAGAIN = 0xb
14 _ENOMEM = 0xc
15 _ENOSYS = 0x59
16
17 _PROT_NONE = 0x0
18 _PROT_READ = 0x1
19 _PROT_WRITE = 0x2
20 _PROT_EXEC = 0x4
21
22 _MAP_ANON = 0x800
23 _MAP_PRIVATE = 0x2
24 _MAP_FIXED = 0x10
25
26 _MADV_DONTNEED = 0x4
27 _MADV_FREE = 0x8
28 _MADV_HUGEPAGE = 0xe
29 _MADV_NOHUGEPAGE = 0xf
30
31 _SA_RESTART = 0x10000000
32 _SA_ONSTACK = 0x8000000
33 _SA_SIGINFO = 0x8
34
35 _SIGHUP = 0x1
36 _SIGINT = 0x2
37 _SIGQUIT = 0x3
38 _SIGILL = 0x4
39 _SIGTRAP = 0x5
40 _SIGABRT = 0x6
41 _SIGEMT = 0x7
42 _SIGFPE = 0x8
43 _SIGKILL = 0x9
44 _SIGBUS = 0xa
45 _SIGSEGV = 0xb
46 _SIGSYS = 0xc
47 _SIGPIPE = 0xd
48 _SIGALRM = 0xe
49 _SIGUSR1 = 0x10
50 _SIGUSR2 = 0x11
51 _SIGCHLD = 0x12
52 _SIGPWR = 0x13
53 _SIGWINCH = 0x14
54 _SIGURG = 0x15
55 _SIGIO = 0x16
56 _SIGSTOP = 0x17
57 _SIGTSTP = 0x18
58 _SIGCONT = 0x19
59 _SIGTTIN = 0x1a
60 _SIGTTOU = 0x1b
61 _SIGVTALRM = 0x1c
62 _SIGPROF = 0x1d
63 _SIGXCPU = 0x1e
64 _SIGXFSZ = 0x1f
65
66 _FPE_INTDIV = 0x1
67 _FPE_INTOVF = 0x2
68 _FPE_FLTDIV = 0x3
69 _FPE_FLTOVF = 0x4
70 _FPE_FLTUND = 0x5
71 _FPE_FLTRES = 0x6
72 _FPE_FLTINV = 0x7
73 _FPE_FLTSUB = 0x8
74
75 _BUS_ADRALN = 0x1
76 _BUS_ADRERR = 0x2
77 _BUS_OBJERR = 0x3
78
79 _SEGV_MAPERR = 0x1
80 _SEGV_ACCERR = 0x2
81
82 _ITIMER_REAL = 0x0
83 _ITIMER_VIRTUAL = 0x1
84 _ITIMER_PROF = 0x2
85
86 _EPOLLIN = 0x1
87 _EPOLLOUT = 0x4
88 _EPOLLERR = 0x8
89 _EPOLLHUP = 0x10
90 _EPOLLRDHUP = 0x2000
91 _EPOLLET = 0x80000000
92 _EPOLL_CLOEXEC = 0x80000
93 _EPOLL_CTL_ADD = 0x1
94 _EPOLL_CTL_DEL = 0x2
95 _EPOLL_CTL_MOD = 0x3
96 )
97
98 type timespec struct {
99 tv_sec int32
100 tv_nsec int32
101 }
102
103
104 func (ts *timespec) setNsec(ns int64) {
105 ts.tv_sec = timediv(ns, 1e9, &ts.tv_nsec)
106 }
107
108 type timeval struct {
109 tv_sec int32
110 tv_usec int32
111 }
112
113
114 func (tv *timeval) set_usec(x int32) {
115 tv.tv_usec = x
116 }
117
118 type sigactiont struct {
119 sa_flags uint32
120 sa_handler uintptr
121 sa_mask [4]uint32
122
123
124 sa_restorer uintptr
125 }
126
127 type siginfo struct {
128 si_signo int32
129 si_code int32
130 si_errno int32
131
132 si_addr uint32
133 }
134
135 type itimerval struct {
136 it_interval timeval
137 it_value timeval
138 }
139
140 type epollevent struct {
141 events uint32
142 pad_cgo_0 [4]byte
143 data uint64
144 }
145
146 const (
147 _O_RDONLY = 0x0
148 _O_NONBLOCK = 0x80
149 _O_CLOEXEC = 0x80000
150 _SA_RESTORER = 0
151 )
152
153 type stackt struct {
154 ss_sp *byte
155 ss_size uintptr
156 ss_flags int32
157 }
158
159 type sigcontext struct {
160 sc_regmask uint32
161 sc_status uint32
162 sc_pc uint64
163 sc_regs [32]uint64
164 sc_fpregs [32]uint64
165 sc_acx uint32
166 sc_fpc_csr uint32
167 sc_fpc_eir uint32
168 sc_used_math uint32
169 sc_dsp uint32
170 sc_mdhi uint64
171 sc_mdlo uint64
172 sc_hi1 uint32
173 sc_lo1 uint32
174 sc_hi2 uint32
175 sc_lo2 uint32
176 sc_hi3 uint32
177 sc_lo3 uint32
178 }
179
180 type ucontext struct {
181 uc_flags uint32
182 uc_link *ucontext
183 uc_stack stackt
184 Pad_cgo_0 [4]byte
185 uc_mcontext sigcontext
186 uc_sigmask [4]uint32
187 }
188
View as plain text