equal
deleted
inserted
replaced
1 // cgo -godefs types_openbsd.go | go run mkpost.go |
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. |
2 // Code generated by the command above; see README.md. DO NOT EDIT. |
3 |
3 |
4 // +build arm,openbsd |
4 // +build arm,openbsd |
5 |
5 |
6 package unix |
6 package unix |
7 |
7 |
8 const ( |
8 const ( |
9 sizeofPtr = 0x4 |
9 SizeofPtr = 0x4 |
10 sizeofShort = 0x2 |
10 SizeofShort = 0x2 |
11 sizeofInt = 0x4 |
11 SizeofInt = 0x4 |
12 sizeofLong = 0x4 |
12 SizeofLong = 0x4 |
13 sizeofLongLong = 0x8 |
13 SizeofLongLong = 0x8 |
14 ) |
14 ) |
15 |
15 |
16 type ( |
16 type ( |
17 _C_short int16 |
17 _C_short int16 |
18 _C_int int32 |
18 _C_int int32 |
21 ) |
21 ) |
22 |
22 |
23 type Timespec struct { |
23 type Timespec struct { |
24 Sec int64 |
24 Sec int64 |
25 Nsec int32 |
25 Nsec int32 |
|
26 _ [4]byte |
26 } |
27 } |
27 |
28 |
28 type Timeval struct { |
29 type Timeval struct { |
29 Sec int64 |
30 Sec int64 |
30 Usec int32 |
31 Usec int32 |
|
32 _ [4]byte |
31 } |
33 } |
32 |
34 |
33 type Rusage struct { |
35 type Rusage struct { |
34 Utime Timeval |
36 Utime Timeval |
35 Stime Timeval |
37 Stime Timeval |
55 } |
57 } |
56 |
58 |
57 type _Gid_t uint32 |
59 type _Gid_t uint32 |
58 |
60 |
59 type Stat_t struct { |
61 type Stat_t struct { |
60 Mode uint32 |
62 Mode uint32 |
61 Dev int32 |
63 Dev int32 |
62 Ino uint64 |
64 Ino uint64 |
63 Nlink uint32 |
65 Nlink uint32 |
64 Uid uint32 |
66 Uid uint32 |
65 Gid uint32 |
67 Gid uint32 |
66 Rdev int32 |
68 Rdev int32 |
67 Atim Timespec |
69 Atim Timespec |
68 Mtim Timespec |
70 Mtim Timespec |
69 Ctim Timespec |
71 Ctim Timespec |
70 Size int64 |
72 Size int64 |
71 Blocks int64 |
73 Blocks int64 |
72 Blksize int32 |
74 Blksize int32 |
73 Flags uint32 |
75 Flags uint32 |
74 Gen uint32 |
76 Gen uint32 |
75 X__st_birthtim Timespec |
77 _ [4]byte |
|
78 _ Timespec |
76 } |
79 } |
77 |
80 |
78 type Statfs_t struct { |
81 type Statfs_t struct { |
79 F_flags uint32 |
82 F_flags uint32 |
80 F_bsize uint32 |
83 F_bsize uint32 |
81 F_iosize uint32 |
84 F_iosize uint32 |
|
85 _ [4]byte |
82 F_blocks uint64 |
86 F_blocks uint64 |
83 F_bfree uint64 |
87 F_bfree uint64 |
84 F_bavail int64 |
88 F_bavail int64 |
85 F_files uint64 |
89 F_files uint64 |
86 F_ffree uint64 |
90 F_ffree uint64 |
91 F_asyncreads uint64 |
95 F_asyncreads uint64 |
92 F_fsid Fsid |
96 F_fsid Fsid |
93 F_namemax uint32 |
97 F_namemax uint32 |
94 F_owner uint32 |
98 F_owner uint32 |
95 F_ctime uint64 |
99 F_ctime uint64 |
96 F_fstypename [16]uint8 |
100 F_fstypename [16]int8 |
97 F_mntonname [90]uint8 |
101 F_mntonname [90]int8 |
98 F_mntfromname [90]uint8 |
102 F_mntfromname [90]int8 |
99 F_mntfromspec [90]uint8 |
103 F_mntfromspec [90]int8 |
100 Pad_cgo_0 [2]byte |
104 _ [2]byte |
101 Mount_info [160]byte |
105 Mount_info [160]byte |
102 } |
106 } |
103 |
107 |
104 type Flock_t struct { |
108 type Flock_t struct { |
105 Start int64 |
109 Start int64 |
108 Type int16 |
112 Type int16 |
109 Whence int16 |
113 Whence int16 |
110 } |
114 } |
111 |
115 |
112 type Dirent struct { |
116 type Dirent struct { |
113 Fileno uint64 |
117 Fileno uint64 |
114 Off int64 |
118 Off int64 |
115 Reclen uint16 |
119 Reclen uint16 |
116 Type uint8 |
120 Type uint8 |
117 Namlen uint8 |
121 Namlen uint8 |
118 X__d_padding [4]uint8 |
122 _ [4]uint8 |
119 Name [256]uint8 |
123 Name [256]int8 |
120 } |
124 } |
121 |
125 |
122 type Fsid struct { |
126 type Fsid struct { |
123 Val [2]int32 |
127 Val [2]int32 |
124 } |
128 } |
249 type Kevent_t struct { |
253 type Kevent_t struct { |
250 Ident uint32 |
254 Ident uint32 |
251 Filter int16 |
255 Filter int16 |
252 Flags uint16 |
256 Flags uint16 |
253 Fflags uint32 |
257 Fflags uint32 |
|
258 _ [4]byte |
254 Data int64 |
259 Data int64 |
255 Udata *byte |
260 Udata *byte |
|
261 _ [4]byte |
256 } |
262 } |
257 |
263 |
258 type FdSet struct { |
264 type FdSet struct { |
259 Bits [32]uint32 |
265 Bits [32]uint32 |
260 } |
266 } |
261 |
267 |
262 const ( |
268 const ( |
263 SizeofIfMsghdr = 0x98 |
269 SizeofIfMsghdr = 0xa8 |
264 SizeofIfData = 0x80 |
270 SizeofIfData = 0x90 |
265 SizeofIfaMsghdr = 0x18 |
271 SizeofIfaMsghdr = 0x18 |
266 SizeofIfAnnounceMsghdr = 0x1a |
272 SizeofIfAnnounceMsghdr = 0x1a |
267 SizeofRtMsghdr = 0x60 |
273 SizeofRtMsghdr = 0x60 |
268 SizeofRtMetrics = 0x38 |
274 SizeofRtMetrics = 0x38 |
269 ) |
275 ) |
288 Addrlen uint8 |
294 Addrlen uint8 |
289 Hdrlen uint8 |
295 Hdrlen uint8 |
290 Link_state uint8 |
296 Link_state uint8 |
291 Mtu uint32 |
297 Mtu uint32 |
292 Metric uint32 |
298 Metric uint32 |
293 Pad uint32 |
299 Rdomain uint32 |
294 Baudrate uint64 |
300 Baudrate uint64 |
295 Ipackets uint64 |
301 Ipackets uint64 |
296 Ierrors uint64 |
302 Ierrors uint64 |
297 Opackets uint64 |
303 Opackets uint64 |
298 Oerrors uint64 |
304 Oerrors uint64 |
300 Ibytes uint64 |
306 Ibytes uint64 |
301 Obytes uint64 |
307 Obytes uint64 |
302 Imcasts uint64 |
308 Imcasts uint64 |
303 Omcasts uint64 |
309 Omcasts uint64 |
304 Iqdrops uint64 |
310 Iqdrops uint64 |
|
311 Oqdrops uint64 |
305 Noproto uint64 |
312 Noproto uint64 |
306 Capabilities uint32 |
313 Capabilities uint32 |
|
314 _ [4]byte |
307 Lastchange Timeval |
315 Lastchange Timeval |
308 } |
316 } |
309 |
317 |
310 type IfaMsghdr struct { |
318 type IfaMsghdr struct { |
311 Msglen uint16 |
319 Msglen uint16 |
326 Version uint8 |
334 Version uint8 |
327 Type uint8 |
335 Type uint8 |
328 Hdrlen uint16 |
336 Hdrlen uint16 |
329 Index uint16 |
337 Index uint16 |
330 What uint16 |
338 What uint16 |
331 Name [16]uint8 |
339 Name [16]int8 |
332 } |
340 } |
333 |
341 |
334 type RtMsghdr struct { |
342 type RtMsghdr struct { |
335 Msglen uint16 |
343 Msglen uint16 |
336 Version uint8 |
344 Version uint8 |
396 Jf uint8 |
404 Jf uint8 |
397 K uint32 |
405 K uint32 |
398 } |
406 } |
399 |
407 |
400 type BpfHdr struct { |
408 type BpfHdr struct { |
401 Tstamp BpfTimeval |
409 Tstamp BpfTimeval |
402 Caplen uint32 |
410 Caplen uint32 |
403 Datalen uint32 |
411 Datalen uint32 |
404 Hdrlen uint16 |
412 Hdrlen uint16 |
405 Pad_cgo_0 [2]byte |
413 _ [2]byte |
406 } |
414 } |
407 |
415 |
408 type BpfTimeval struct { |
416 type BpfTimeval struct { |
409 Sec uint32 |
417 Sec uint32 |
410 Usec uint32 |
418 Usec uint32 |
427 Ypixel uint16 |
435 Ypixel uint16 |
428 } |
436 } |
429 |
437 |
430 const ( |
438 const ( |
431 AT_FDCWD = -0x64 |
439 AT_FDCWD = -0x64 |
|
440 AT_SYMLINK_FOLLOW = 0x4 |
432 AT_SYMLINK_NOFOLLOW = 0x2 |
441 AT_SYMLINK_NOFOLLOW = 0x2 |
433 ) |
442 ) |
434 |
443 |
435 type PollFd struct { |
444 type PollFd struct { |
436 Fd int32 |
445 Fd int32 |
449 POLLRDNORM = 0x40 |
458 POLLRDNORM = 0x40 |
450 POLLWRBAND = 0x100 |
459 POLLWRBAND = 0x100 |
451 POLLWRNORM = 0x4 |
460 POLLWRNORM = 0x4 |
452 ) |
461 ) |
453 |
462 |
|
463 type Sigset_t uint32 |
|
464 |
454 type Utsname struct { |
465 type Utsname struct { |
455 Sysname [256]byte |
466 Sysname [256]byte |
456 Nodename [256]byte |
467 Nodename [256]byte |
457 Release [256]byte |
468 Release [256]byte |
458 Version [256]byte |
469 Version [256]byte |
459 Machine [256]byte |
470 Machine [256]byte |
460 } |
471 } |
|
472 |
|
473 const SizeofUvmexp = 0x158 |
|
474 |
|
475 type Uvmexp struct { |
|
476 Pagesize int32 |
|
477 Pagemask int32 |
|
478 Pageshift int32 |
|
479 Npages int32 |
|
480 Free int32 |
|
481 Active int32 |
|
482 Inactive int32 |
|
483 Paging int32 |
|
484 Wired int32 |
|
485 Zeropages int32 |
|
486 Reserve_pagedaemon int32 |
|
487 Reserve_kernel int32 |
|
488 Unused01 int32 |
|
489 Vnodepages int32 |
|
490 Vtextpages int32 |
|
491 Freemin int32 |
|
492 Freetarg int32 |
|
493 Inactarg int32 |
|
494 Wiredmax int32 |
|
495 Anonmin int32 |
|
496 Vtextmin int32 |
|
497 Vnodemin int32 |
|
498 Anonminpct int32 |
|
499 Vtextminpct int32 |
|
500 Vnodeminpct int32 |
|
501 Nswapdev int32 |
|
502 Swpages int32 |
|
503 Swpginuse int32 |
|
504 Swpgonly int32 |
|
505 Nswget int32 |
|
506 Nanon int32 |
|
507 Unused05 int32 |
|
508 Unused06 int32 |
|
509 Faults int32 |
|
510 Traps int32 |
|
511 Intrs int32 |
|
512 Swtch int32 |
|
513 Softs int32 |
|
514 Syscalls int32 |
|
515 Pageins int32 |
|
516 Unused07 int32 |
|
517 Unused08 int32 |
|
518 Pgswapin int32 |
|
519 Pgswapout int32 |
|
520 Forks int32 |
|
521 Forks_ppwait int32 |
|
522 Forks_sharevm int32 |
|
523 Pga_zerohit int32 |
|
524 Pga_zeromiss int32 |
|
525 Unused09 int32 |
|
526 Fltnoram int32 |
|
527 Fltnoanon int32 |
|
528 Fltnoamap int32 |
|
529 Fltpgwait int32 |
|
530 Fltpgrele int32 |
|
531 Fltrelck int32 |
|
532 Fltrelckok int32 |
|
533 Fltanget int32 |
|
534 Fltanretry int32 |
|
535 Fltamcopy int32 |
|
536 Fltnamap int32 |
|
537 Fltnomap int32 |
|
538 Fltlget int32 |
|
539 Fltget int32 |
|
540 Flt_anon int32 |
|
541 Flt_acow int32 |
|
542 Flt_obj int32 |
|
543 Flt_prcopy int32 |
|
544 Flt_przero int32 |
|
545 Pdwoke int32 |
|
546 Pdrevs int32 |
|
547 Pdswout int32 |
|
548 Pdfreed int32 |
|
549 Pdscans int32 |
|
550 Pdanscan int32 |
|
551 Pdobscan int32 |
|
552 Pdreact int32 |
|
553 Pdbusy int32 |
|
554 Pdpageouts int32 |
|
555 Pdpending int32 |
|
556 Pddeact int32 |
|
557 Unused11 int32 |
|
558 Unused12 int32 |
|
559 Unused13 int32 |
|
560 Fpswtch int32 |
|
561 Kmapent int32 |
|
562 } |
|
563 |
|
564 const SizeofClockinfo = 0x14 |
|
565 |
|
566 type Clockinfo struct { |
|
567 Hz int32 |
|
568 Tick int32 |
|
569 Tickadj int32 |
|
570 Stathz int32 |
|
571 Profhz int32 |
|
572 } |