Debian Codegraph @

unix/ztypes_openbsd_arm.go

raw
1 // cgo -godefs -- -fsigned-char types_openbsd.go | go run mkpost.go
2 // Code generated by the command above; see README.md. DO NOT EDIT.
3
4 //go:build arm && openbsd
5
6 package unix
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 _ [4]byte
27 }
28
29 type Timeval struct {
30 Sec int64
31 Usec int32
32 _ [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 Mode uint32
63 Dev int32
64 Ino uint64
65 Nlink uint32
66 Uid uint32
67 Gid uint32
68 Rdev int32
69 Atim Timespec
70 Mtim Timespec
71 Ctim Timespec
72 Size int64
73 Blocks int64
74 Blksize int32
75 Flags uint32
76 Gen uint32
77 _ [4]byte
78 _ Timespec
79 }
80
81 type Statfs_t struct {
82 F_flags uint32
83 F_bsize uint32
84 F_iosize uint32
85 _ [4]byte
86 F_blocks uint64
87 F_bfree uint64
88 F_bavail int64
89 F_files uint64
90 F_ffree uint64
91 F_favail int64
92 F_syncwrites uint64
93 F_syncreads uint64
94 F_asyncwrites uint64
95 F_asyncreads uint64
96 F_fsid Fsid
97 F_namemax uint32
98 F_owner uint32
99 F_ctime uint64
100 F_fstypename [16]byte
101 F_mntonname [90]byte
102 F_mntfromname [90]byte
103 F_mntfromspec [90]byte
104 _ [2]byte
105 Mount_info [160]byte
106 }
107
108 type Flock_t struct {
109 Start int64
110 Len int64
111 Pid int32
112 Type int16
113 Whence int16
114 }
115
116 type Dirent struct {
117 Fileno uint64
118 Off int64
119 Reclen uint16
120 Type uint8
121 Namlen uint8
122 _ [4]uint8
123 Name [256]int8
124 }
125
126 type Fsid struct {
127 Val [2]int32
128 }
129
130 const (
131 PathMax = 0x400
132 )
133
134 type RawSockaddrInet4 struct {
135 Len uint8
136 Family uint8
137 Port uint16
138 Addr [4]byte /* in_addr */
139 Zero [8]int8
140 }
141
142 type RawSockaddrInet6 struct {
143 Len uint8
144 Family uint8
145 Port uint16
146 Flowinfo uint32
147 Addr [16]byte /* in6_addr */
148 Scope_id uint32
149 }
150
151 type RawSockaddrUnix struct {
152 Len uint8
153 Family uint8
154 Path [104]int8
155 }
156
157 type RawSockaddrDatalink struct {
158 Len uint8
159 Family uint8
160 Index uint16
161 Type uint8
162 Nlen uint8
163 Alen uint8
164 Slen uint8
165 Data [24]int8
166 }
167
168 type RawSockaddr struct {
169 Len uint8
170 Family uint8
171 Data [14]int8
172 }
173
174 type RawSockaddrAny struct {
175 Addr RawSockaddr
176 Pad [92]int8
177 }
178
179 type _Socklen uint32
180
181 type Linger struct {
182 Onoff int32
183 Linger int32
184 }
185
186 type Iovec struct {
187 Base *byte
188 Len uint32
189 }
190
191 type IPMreq struct {
192 Multiaddr [4]byte /* in_addr */
193 Interface [4]byte /* in_addr */
194 }
195
196 type IPv6Mreq struct {
197 Multiaddr [16]byte /* in6_addr */
198 Interface uint32
199 }
200
201 type Msghdr struct {
202 Name *byte
203 Namelen uint32
204 Iov *Iovec
205 Iovlen uint32
206 Control *byte
207 Controllen uint32
208 Flags int32
209 }
210
211 type Cmsghdr struct {
212 Len uint32
213 Level int32
214 Type int32
215 }
216
217 type Inet6Pktinfo struct {
218 Addr [16]byte /* in6_addr */
219 Ifindex uint32
220 }
221
222 type IPv6MTUInfo struct {
223 Addr RawSockaddrInet6
224 Mtu uint32
225 }
226
227 type ICMPv6Filter struct {
228 Filt [8]uint32
229 }
230
231 const (
232 SizeofSockaddrInet4 = 0x10
233 SizeofSockaddrInet6 = 0x1c
234 SizeofSockaddrAny = 0x6c
235 SizeofSockaddrUnix = 0x6a
236 SizeofSockaddrDatalink = 0x20
237 SizeofLinger = 0x8
238 SizeofIovec = 0x8
239 SizeofIPMreq = 0x8
240 SizeofIPv6Mreq = 0x14
241 SizeofMsghdr = 0x1c
242 SizeofCmsghdr = 0xc
243 SizeofInet6Pktinfo = 0x14
244 SizeofIPv6MTUInfo = 0x20
245 SizeofICMPv6Filter = 0x20
246 )
247
248 const (
249 PTRACE_TRACEME = 0x0
250 PTRACE_CONT = 0x7
251 PTRACE_KILL = 0x8
252 )
253
254 type Kevent_t struct {
255 Ident uint32
256 Filter int16
257 Flags uint16
258 Fflags uint32
259 _ [4]byte
260 Data int64
261 Udata *byte
262 _ [4]byte
263 }
264
265 type FdSet struct {
266 Bits [32]uint32
267 }
268
269 const (
270 SizeofIfMsghdr = 0xa8
271 SizeofIfData = 0x90
272 SizeofIfaMsghdr = 0x18
273 SizeofIfAnnounceMsghdr = 0x1a
274 SizeofRtMsghdr = 0x60
275 SizeofRtMetrics = 0x38
276 )
277
278 type IfMsghdr struct {
279 Msglen uint16
280 Version uint8
281 Type uint8
282 Hdrlen uint16
283 Index uint16
284 Tableid uint16
285 Pad1 uint8
286 Pad2 uint8
287 Addrs int32
288 Flags int32
289 Xflags int32
290 Data IfData
291 }
292
293 type IfData struct {
294 Type uint8
295 Addrlen uint8
296 Hdrlen uint8
297 Link_state uint8
298 Mtu uint32
299 Metric uint32
300 Rdomain uint32
301 Baudrate uint64
302 Ipackets uint64
303 Ierrors uint64
304 Opackets uint64
305 Oerrors uint64
306 Collisions uint64
307 Ibytes uint64
308 Obytes uint64
309 Imcasts uint64
310 Omcasts uint64
311 Iqdrops uint64
312 Oqdrops uint64
313 Noproto uint64
314 Capabilities uint32
315 _ [4]byte
316 Lastchange Timeval
317 }
318
319 type IfaMsghdr struct {
320 Msglen uint16
321 Version uint8
322 Type uint8
323 Hdrlen uint16
324 Index uint16
325 Tableid uint16
326 Pad1 uint8
327 Pad2 uint8
328 Addrs int32
329 Flags int32
330 Metric int32
331 }
332
333 type IfAnnounceMsghdr struct {
334 Msglen uint16
335 Version uint8
336 Type uint8
337 Hdrlen uint16
338 Index uint16
339 What uint16
340 Name [16]int8
341 }
342
343 type RtMsghdr struct {
344 Msglen uint16
345 Version uint8
346 Type uint8
347 Hdrlen uint16
348 Index uint16
349 Tableid uint16
350 Priority uint8
351 Mpls uint8
352 Addrs int32
353 Flags int32
354 Fmask int32
355 Pid int32
356 Seq int32
357 Errno int32
358 Inits uint32
359 Rmx RtMetrics
360 }
361
362 type RtMetrics struct {
363 Pksent uint64
364 Expire int64
365 Locks uint32
366 Mtu uint32
367 Refcnt uint32
368 Hopcount uint32
369 Recvpipe uint32
370 Sendpipe uint32
371 Ssthresh uint32
372 Rtt uint32
373 Rttvar uint32
374 Pad uint32
375 }
376
377 const (
378 SizeofBpfVersion = 0x4
379 SizeofBpfStat = 0x8
380 SizeofBpfProgram = 0x8
381 SizeofBpfInsn = 0x8
382 SizeofBpfHdr = 0x18
383 )
384
385 type BpfVersion struct {
386 Major uint16
387 Minor uint16
388 }
389
390 type BpfStat struct {
391 Recv uint32
392 Drop uint32
393 }
394
395 type BpfProgram struct {
396 Len uint32
397 Insns *BpfInsn
398 }
399
400 type BpfInsn struct {
401 Code uint16
402 Jt uint8
403 Jf uint8
404 K uint32
405 }
406
407 type BpfHdr struct {
408 Tstamp BpfTimeval
409 Caplen uint32
410 Datalen uint32
411 Hdrlen uint16
412 Ifidx uint16
413 Flowid uint16
414 Flags uint8
415 Drops uint8
416 }
417
418 type BpfTimeval struct {
419 Sec uint32
420 Usec uint32
421 }
422
423 type Termios struct {
424 Iflag uint32
425 Oflag uint32
426 Cflag uint32
427 Lflag uint32
428 Cc [20]uint8
429 Ispeed int32
430 Ospeed int32
431 }
432
433 type Winsize struct {
434 Row uint16
435 Col uint16
436 Xpixel uint16
437 Ypixel uint16
438 }
439
440 const (
441 AT_FDCWD = -0x64
442 AT_EACCESS = 0x1
443 AT_SYMLINK_NOFOLLOW = 0x2
444 AT_SYMLINK_FOLLOW = 0x4
445 AT_REMOVEDIR = 0x8
446 )
447
448 type PollFd struct {
449 Fd int32
450 Events int16
451 Revents int16
452 }
453
454 const (
455 POLLERR = 0x8
456 POLLHUP = 0x10
457 POLLIN = 0x1
458 POLLNVAL = 0x20
459 POLLOUT = 0x4
460 POLLPRI = 0x2
461 POLLRDBAND = 0x80
462 POLLRDNORM = 0x40
463 POLLWRBAND = 0x100
464 POLLWRNORM = 0x4
465 )
466
467 type Sigset_t uint32
468
469 type Utsname struct {
470 Sysname [256]byte
471 Nodename [256]byte
472 Release [256]byte
473 Version [256]byte
474 Machine [256]byte
475 }
476
477 const SizeofUvmexp = 0x158
478
479 type Uvmexp struct {
480 Pagesize int32
481 Pagemask int32
482 Pageshift int32
483 Npages int32
484 Free int32
485 Active int32
486 Inactive int32
487 Paging int32
488 Wired int32
489 Zeropages int32
490 Reserve_pagedaemon int32
491 Reserve_kernel int32
492 Unused01 int32
493 Vnodepages int32
494 Vtextpages int32
495 Freemin int32
496 Freetarg int32
497 Inactarg int32
498 Wiredmax int32
499 Anonmin int32
500 Vtextmin int32
501 Vnodemin int32
502 Anonminpct int32
503 Vtextminpct int32
504 Vnodeminpct int32
505 Nswapdev int32
506 Swpages int32
507 Swpginuse int32
508 Swpgonly int32
509 Nswget int32
510 Nanon int32
511 Unused05 int32
512 Unused06 int32
513 Faults int32
514 Traps int32
515 Intrs int32
516 Swtch int32
517 Softs int32
518 Syscalls int32
519 Pageins int32
520 Unused07 int32
521 Unused08 int32
522 Pgswapin int32
523 Pgswapout int32
524 Forks int32
525 Forks_ppwait int32
526 Forks_sharevm int32
527 Pga_zerohit int32
528 Pga_zeromiss int32
529 Unused09 int32
530 Fltnoram int32
531 Fltnoanon int32
532 Fltnoamap int32
533 Fltpgwait int32
534 Fltpgrele int32
535 Fltrelck int32
536 Fltrelckok int32
537 Fltanget int32
538 Fltanretry int32
539 Fltamcopy int32
540 Fltnamap int32
541 Fltnomap int32
542 Fltlget int32
543 Fltget int32
544 Flt_anon int32
545 Flt_acow int32
546 Flt_obj int32
547 Flt_prcopy int32
548 Flt_przero int32
549 Pdwoke int32
550 Pdrevs int32
551 Pdswout int32
552 Pdfreed int32
553 Pdscans int32
554 Pdanscan int32
555 Pdobscan int32
556 Pdreact int32
557 Pdbusy int32
558 Pdpageouts int32
559 Pdpending int32
560 Pddeact int32
561 Unused11 int32
562 Unused12 int32
563 Unused13 int32
564 Fpswtch int32
565 Kmapent int32
566 }
567
568 const SizeofClockinfo = 0x10
569
570 type Clockinfo struct {
571 Hz int32
572 Tick int32
573 Stathz int32
574 Profhz int32
575 }