Source file
src/syscall/ztypes_netbsd_arm.go
1
2
3
4
5
6 package syscall
7
8 const (
9 sizeofPtr = 0x4
10 sizeofShort = 0x2
11 sizeofInt = 0x4
12 sizeofLong = 0x4
13 sizeofLongLong = 0x8
14 )
15
16 type (
17 _C_short int16
18 _C_int int32
19 _C_long int32
20 _C_long_long int64
21 )
22
23 type Timespec struct {
24 Sec int64
25 Nsec int32
26 Pad_cgo_0 [4]byte
27 }
28
29 type Timeval struct {
30 Sec int64
31 Usec int32
32 Pad_cgo_0 [4]byte
33 }
34
35 type Rusage struct {
36 Utime Timeval
37 Stime Timeval
38 Maxrss int32
39 Ixrss int32
40 Idrss int32
41 Isrss int32
42 Minflt int32
43 Majflt int32
44 Nswap int32
45 Inblock int32
46 Oublock int32
47 Msgsnd int32
48 Msgrcv int32
49 Nsignals int32
50 Nvcsw int32
51 Nivcsw int32
52 }
53
54 type Rlimit struct {
55 Cur uint64
56 Max uint64
57 }
58
59 type _Gid_t uint32
60
61 type Stat_t struct {
62 Dev uint64
63 Mode uint32
64 Pad_cgo_0 [4]byte
65 Ino uint64
66 Nlink uint32
67 Uid uint32
68 Gid uint32
69 Pad_cgo_1 [4]byte
70 Rdev uint64
71 Atimespec Timespec
72 Mtimespec Timespec
73 Ctimespec Timespec
74 Birthtimespec Timespec
75 Size int64
76 Blocks int64
77 Blksize uint32
78 Flags uint32
79 Gen uint32
80 Spare [2]uint32
81 Pad_cgo_2 [4]byte
82 }
83
84 type Statfs_t [0]byte
85
86 type Flock_t struct {
87 Start int64
88 Len int64
89 Pid int32
90 Type int16
91 Whence int16
92 }
93
94 type Dirent struct {
95 Fileno uint64
96 Reclen uint16
97 Namlen uint16
98 Type uint8
99 Name [512]int8
100 Pad_cgo_0 [3]byte
101 }
102
103 type Fsid struct {
104 X__fsid_val [2]int32
105 }
106
107 const (
108 pathMax = 0x400
109 )
110
111 type RawSockaddrInet4 struct {
112 Len uint8
113 Family uint8
114 Port uint16
115 Addr [4]byte
116 Zero [8]int8
117 }
118
119 type RawSockaddrInet6 struct {
120 Len uint8
121 Family uint8
122 Port uint16
123 Flowinfo uint32
124 Addr [16]byte
125 Scope_id uint32
126 }
127
128 type RawSockaddrUnix struct {
129 Len uint8
130 Family uint8
131 Path [104]int8
132 }
133
134 type RawSockaddrDatalink struct {
135 Len uint8
136 Family uint8
137 Index uint16
138 Type uint8
139 Nlen uint8
140 Alen uint8
141 Slen uint8
142 Data [12]int8
143 }
144
145 type RawSockaddr struct {
146 Len uint8
147 Family uint8
148 Data [14]int8
149 }
150
151 type RawSockaddrAny struct {
152 Addr RawSockaddr
153 Pad [92]int8
154 }
155
156 type _Socklen uint32
157
158 type Linger struct {
159 Onoff int32
160 Linger int32
161 }
162
163 type Iovec struct {
164 Base *byte
165 Len uint32
166 }
167
168 type IPMreq struct {
169 Multiaddr [4]byte
170 Interface [4]byte
171 }
172
173 type IPv6Mreq struct {
174 Multiaddr [16]byte
175 Interface uint32
176 }
177
178 type Msghdr struct {
179 Name *byte
180 Namelen uint32
181 Iov *Iovec
182 Iovlen int32
183 Control *byte
184 Controllen uint32
185 Flags int32
186 }
187
188 type Cmsghdr struct {
189 Len uint32
190 Level int32
191 Type int32
192 }
193
194 type Inet6Pktinfo struct {
195 Addr [16]byte
196 Ifindex uint32
197 }
198
199 type IPv6MTUInfo struct {
200 Addr RawSockaddrInet6
201 Mtu uint32
202 }
203
204 type ICMPv6Filter struct {
205 Filt [8]uint32
206 }
207
208 const (
209 SizeofSockaddrInet4 = 0x10
210 SizeofSockaddrInet6 = 0x1c
211 SizeofSockaddrAny = 0x6c
212 SizeofSockaddrUnix = 0x6a
213 SizeofSockaddrDatalink = 0x14
214 SizeofLinger = 0x8
215 SizeofIPMreq = 0x8
216 SizeofIPv6Mreq = 0x14
217 SizeofMsghdr = 0x1c
218 SizeofCmsghdr = 0xc
219 SizeofInet6Pktinfo = 0x14
220 SizeofIPv6MTUInfo = 0x20
221 SizeofICMPv6Filter = 0x20
222 )
223
224 const (
225 PTRACE_TRACEME = 0x0
226 PTRACE_CONT = 0x7
227 PTRACE_KILL = 0x8
228 )
229
230 type Kevent_t struct {
231 Ident uint32
232 Filter uint32
233 Flags uint32
234 Fflags uint32
235 Data int64
236 Udata int32
237 Pad_cgo_0 [4]byte
238 }
239
240 type FdSet struct {
241 Bits [8]uint32
242 }
243
244 const (
245 SizeofIfMsghdr = 0x98
246 SizeofIfData = 0x88
247 SizeofIfaMsghdr = 0x18
248 SizeofIfAnnounceMsghdr = 0x18
249 SizeofRtMsghdr = 0x78
250 SizeofRtMetrics = 0x50
251 )
252
253 type IfMsghdr struct {
254 Msglen uint16
255 Version uint8
256 Type uint8
257 Addrs int32
258 Flags int32
259 Index uint16
260 Pad_cgo_0 [2]byte
261 Data IfData
262 }
263
264 type IfData struct {
265 Type uint8
266 Addrlen uint8
267 Hdrlen uint8
268 Pad_cgo_0 [1]byte
269 Link_state int32
270 Mtu uint64
271 Metric uint64
272 Baudrate uint64
273 Ipackets uint64
274 Ierrors uint64
275 Opackets uint64
276 Oerrors uint64
277 Collisions uint64
278 Ibytes uint64
279 Obytes uint64
280 Imcasts uint64
281 Omcasts uint64
282 Iqdrops uint64
283 Noproto uint64
284 Lastchange Timespec
285 }
286
287 type IfaMsghdr struct {
288 Msglen uint16
289 Version uint8
290 Type uint8
291 Addrs int32
292 Flags int32
293 Metric int32
294 Index uint16
295 Pad_cgo_0 [6]byte
296 }
297
298 type IfAnnounceMsghdr struct {
299 Msglen uint16
300 Version uint8
301 Type uint8
302 Index uint16
303 Name [16]int8
304 What uint16
305 }
306
307 type RtMsghdr struct {
308 Msglen uint16
309 Version uint8
310 Type uint8
311 Index uint16
312 Pad_cgo_0 [2]byte
313 Flags int32
314 Addrs int32
315 Pid int32
316 Seq int32
317 Errno int32
318 Use int32
319 Inits int32
320 Pad_cgo_1 [4]byte
321 Rmx RtMetrics
322 }
323
324 type RtMetrics struct {
325 Locks uint64
326 Mtu uint64
327 Hopcount uint64
328 Recvpipe uint64
329 Sendpipe uint64
330 Ssthresh uint64
331 Rtt uint64
332 Rttvar uint64
333 Expire int64
334 Pksent int64
335 }
336
337 type Mclpool [0]byte
338
339 const (
340 SizeofBpfVersion = 0x4
341 SizeofBpfStat = 0x80
342 SizeofBpfProgram = 0x8
343 SizeofBpfInsn = 0x8
344 SizeofBpfHdr = 0x14
345 )
346
347 type BpfVersion struct {
348 Major uint16
349 Minor uint16
350 }
351
352 type BpfStat struct {
353 Recv uint64
354 Drop uint64
355 Capt uint64
356 Padding [13]uint64
357 }
358
359 type BpfProgram struct {
360 Len uint32
361 Insns *BpfInsn
362 }
363
364 type BpfInsn struct {
365 Code uint16
366 Jt uint8
367 Jf uint8
368 K uint32
369 }
370
371 type BpfHdr struct {
372 Tstamp BpfTimeval
373 Caplen uint32
374 Datalen uint32
375 Hdrlen uint16
376 Pad_cgo_0 [2]byte
377 }
378
379 type BpfTimeval struct {
380 Sec int32
381 Usec int32
382 }
383
384 const (
385 _AT_FDCWD = -0x64
386 )
387
388 type Termios struct {
389 Iflag uint32
390 Oflag uint32
391 Cflag uint32
392 Lflag uint32
393 Cc [20]uint8
394 Ispeed int32
395 Ospeed int32
396 }
397
398 type Sysctlnode struct {
399 Flags uint32
400 Num int32
401 Name [32]int8
402 Ver uint32
403 X__rsvd uint32
404 Un [16]byte
405 X_sysctl_size [8]byte
406 X_sysctl_func [8]byte
407 X_sysctl_parent [8]byte
408 X_sysctl_desc [8]byte
409 }
410
411 type sigset struct {
412 X__bits [4]uint32
413 }
414
View as plain text