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