blob: 2b0b18e94b766199c003ee09bec5857d44f04976 [file] [log] [blame]
David K. Bainbridge215e0242017-09-05 23:18:24 -07001// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build ppc64,linux
5
6package unix
7
8const (
9 sizeofPtr = 0x8
10 sizeofShort = 0x2
11 sizeofInt = 0x4
12 sizeofLong = 0x8
13 sizeofLongLong = 0x8
14 PathMax = 0x1000
15)
16
17type (
18 _C_short int16
19 _C_int int32
20 _C_long int64
21 _C_long_long int64
22)
23
24type Timespec struct {
25 Sec int64
26 Nsec int64
27}
28
29type Timeval struct {
30 Sec int64
31 Usec int64
32}
33
34type Timex struct {
35 Modes uint32
36 Pad_cgo_0 [4]byte
37 Offset int64
38 Freq int64
39 Maxerror int64
40 Esterror int64
41 Status int32
42 Pad_cgo_1 [4]byte
43 Constant int64
44 Precision int64
45 Tolerance int64
46 Time Timeval
47 Tick int64
48 Ppsfreq int64
49 Jitter int64
50 Shift int32
51 Pad_cgo_2 [4]byte
52 Stabil int64
53 Jitcnt int64
54 Calcnt int64
55 Errcnt int64
56 Stbcnt int64
57 Tai int32
58 Pad_cgo_3 [44]byte
59}
60
61type Time_t int64
62
63type Tms struct {
64 Utime int64
65 Stime int64
66 Cutime int64
67 Cstime int64
68}
69
70type Utimbuf struct {
71 Actime int64
72 Modtime int64
73}
74
75type Rusage struct {
76 Utime Timeval
77 Stime Timeval
78 Maxrss int64
79 Ixrss int64
80 Idrss int64
81 Isrss int64
82 Minflt int64
83 Majflt int64
84 Nswap int64
85 Inblock int64
86 Oublock int64
87 Msgsnd int64
88 Msgrcv int64
89 Nsignals int64
90 Nvcsw int64
91 Nivcsw int64
92}
93
94type Rlimit struct {
95 Cur uint64
96 Max uint64
97}
98
99type _Gid_t uint32
100
101type Stat_t struct {
102 Dev uint64
103 Ino uint64
104 Nlink uint64
105 Mode uint32
106 Uid uint32
107 Gid uint32
108 X__pad2 int32
109 Rdev uint64
110 Size int64
111 Blksize int64
112 Blocks int64
113 Atim Timespec
114 Mtim Timespec
115 Ctim Timespec
116 _ uint64
117 _ uint64
118 _ uint64
119}
120
121type Statfs_t struct {
122 Type int64
123 Bsize int64
124 Blocks uint64
125 Bfree uint64
126 Bavail uint64
127 Files uint64
128 Ffree uint64
129 Fsid Fsid
130 Namelen int64
131 Frsize int64
132 Flags int64
133 Spare [4]int64
134}
135
136type Dirent struct {
137 Ino uint64
138 Off int64
139 Reclen uint16
140 Type uint8
141 Name [256]uint8
142 Pad_cgo_0 [5]byte
143}
144
145type Fsid struct {
146 X__val [2]int32
147}
148
149type Flock_t struct {
150 Type int16
151 Whence int16
152 Pad_cgo_0 [4]byte
153 Start int64
154 Len int64
155 Pid int32
156 Pad_cgo_1 [4]byte
157}
158
159type FscryptPolicy struct {
160 Version uint8
161 Contents_encryption_mode uint8
162 Filenames_encryption_mode uint8
163 Flags uint8
164 Master_key_descriptor [8]uint8
165}
166
167type FscryptKey struct {
168 Mode uint32
169 Raw [64]uint8
170 Size uint32
171}
172
173type KeyctlDHParams struct {
174 Private int32
175 Prime int32
176 Base int32
177}
178
179const (
180 FADV_NORMAL = 0x0
181 FADV_RANDOM = 0x1
182 FADV_SEQUENTIAL = 0x2
183 FADV_WILLNEED = 0x3
184 FADV_DONTNEED = 0x4
185 FADV_NOREUSE = 0x5
186)
187
188type RawSockaddrInet4 struct {
189 Family uint16
190 Port uint16
191 Addr [4]byte /* in_addr */
192 Zero [8]uint8
193}
194
195type RawSockaddrInet6 struct {
196 Family uint16
197 Port uint16
198 Flowinfo uint32
199 Addr [16]byte /* in6_addr */
200 Scope_id uint32
201}
202
203type RawSockaddrUnix struct {
204 Family uint16
205 Path [108]int8
206}
207
208type RawSockaddrLinklayer struct {
209 Family uint16
210 Protocol uint16
211 Ifindex int32
212 Hatype uint16
213 Pkttype uint8
214 Halen uint8
215 Addr [8]uint8
216}
217
218type RawSockaddrNetlink struct {
219 Family uint16
220 Pad uint16
221 Pid uint32
222 Groups uint32
223}
224
225type RawSockaddrHCI struct {
226 Family uint16
227 Dev uint16
228 Channel uint16
229}
230
231type RawSockaddrCAN struct {
232 Family uint16
233 Pad_cgo_0 [2]byte
234 Ifindex int32
235 Addr [8]byte
236}
237
238type RawSockaddrALG struct {
239 Family uint16
240 Type [14]uint8
241 Feat uint32
242 Mask uint32
243 Name [64]uint8
244}
245
246type RawSockaddrVM struct {
247 Family uint16
248 Reserved1 uint16
249 Port uint32
250 Cid uint32
251 Zero [4]uint8
252}
253
254type RawSockaddr struct {
255 Family uint16
256 Data [14]uint8
257}
258
259type RawSockaddrAny struct {
260 Addr RawSockaddr
261 Pad [96]uint8
262}
263
264type _Socklen uint32
265
266type Linger struct {
267 Onoff int32
268 Linger int32
269}
270
271type Iovec struct {
272 Base *byte
273 Len uint64
274}
275
276type IPMreq struct {
277 Multiaddr [4]byte /* in_addr */
278 Interface [4]byte /* in_addr */
279}
280
281type IPMreqn struct {
282 Multiaddr [4]byte /* in_addr */
283 Address [4]byte /* in_addr */
284 Ifindex int32
285}
286
287type IPv6Mreq struct {
288 Multiaddr [16]byte /* in6_addr */
289 Interface uint32
290}
291
292type PacketMreq struct {
293 Ifindex int32
294 Type uint16
295 Alen uint16
296 Address [8]uint8
297}
298
299type Msghdr struct {
300 Name *byte
301 Namelen uint32
302 Pad_cgo_0 [4]byte
303 Iov *Iovec
304 Iovlen uint64
305 Control *byte
306 Controllen uint64
307 Flags int32
308 Pad_cgo_1 [4]byte
309}
310
311type Cmsghdr struct {
312 Len uint64
313 Level int32
314 Type int32
315}
316
317type Inet4Pktinfo struct {
318 Ifindex int32
319 Spec_dst [4]byte /* in_addr */
320 Addr [4]byte /* in_addr */
321}
322
323type Inet6Pktinfo struct {
324 Addr [16]byte /* in6_addr */
325 Ifindex uint32
326}
327
328type IPv6MTUInfo struct {
329 Addr RawSockaddrInet6
330 Mtu uint32
331}
332
333type ICMPv6Filter struct {
334 Data [8]uint32
335}
336
337type Ucred struct {
338 Pid int32
339 Uid uint32
340 Gid uint32
341}
342
343type TCPInfo struct {
344 State uint8
345 Ca_state uint8
346 Retransmits uint8
347 Probes uint8
348 Backoff uint8
349 Options uint8
350 Pad_cgo_0 [2]byte
351 Rto uint32
352 Ato uint32
353 Snd_mss uint32
354 Rcv_mss uint32
355 Unacked uint32
356 Sacked uint32
357 Lost uint32
358 Retrans uint32
359 Fackets uint32
360 Last_data_sent uint32
361 Last_ack_sent uint32
362 Last_data_recv uint32
363 Last_ack_recv uint32
364 Pmtu uint32
365 Rcv_ssthresh uint32
366 Rtt uint32
367 Rttvar uint32
368 Snd_ssthresh uint32
369 Snd_cwnd uint32
370 Advmss uint32
371 Reordering uint32
372 Rcv_rtt uint32
373 Rcv_space uint32
374 Total_retrans uint32
375}
376
377const (
378 SizeofSockaddrInet4 = 0x10
379 SizeofSockaddrInet6 = 0x1c
380 SizeofSockaddrAny = 0x70
381 SizeofSockaddrUnix = 0x6e
382 SizeofSockaddrLinklayer = 0x14
383 SizeofSockaddrNetlink = 0xc
384 SizeofSockaddrHCI = 0x6
385 SizeofSockaddrCAN = 0x10
386 SizeofSockaddrALG = 0x58
387 SizeofSockaddrVM = 0x10
388 SizeofLinger = 0x8
389 SizeofIovec = 0x10
390 SizeofIPMreq = 0x8
391 SizeofIPMreqn = 0xc
392 SizeofIPv6Mreq = 0x14
393 SizeofPacketMreq = 0x10
394 SizeofMsghdr = 0x38
395 SizeofCmsghdr = 0x10
396 SizeofInet4Pktinfo = 0xc
397 SizeofInet6Pktinfo = 0x14
398 SizeofIPv6MTUInfo = 0x20
399 SizeofICMPv6Filter = 0x20
400 SizeofUcred = 0xc
401 SizeofTCPInfo = 0x68
402)
403
404const (
405 IFA_UNSPEC = 0x0
406 IFA_ADDRESS = 0x1
407 IFA_LOCAL = 0x2
408 IFA_LABEL = 0x3
409 IFA_BROADCAST = 0x4
410 IFA_ANYCAST = 0x5
411 IFA_CACHEINFO = 0x6
412 IFA_MULTICAST = 0x7
413 IFLA_UNSPEC = 0x0
414 IFLA_ADDRESS = 0x1
415 IFLA_BROADCAST = 0x2
416 IFLA_IFNAME = 0x3
417 IFLA_MTU = 0x4
418 IFLA_LINK = 0x5
419 IFLA_QDISC = 0x6
420 IFLA_STATS = 0x7
421 IFLA_COST = 0x8
422 IFLA_PRIORITY = 0x9
423 IFLA_MASTER = 0xa
424 IFLA_WIRELESS = 0xb
425 IFLA_PROTINFO = 0xc
426 IFLA_TXQLEN = 0xd
427 IFLA_MAP = 0xe
428 IFLA_WEIGHT = 0xf
429 IFLA_OPERSTATE = 0x10
430 IFLA_LINKMODE = 0x11
431 IFLA_LINKINFO = 0x12
432 IFLA_NET_NS_PID = 0x13
433 IFLA_IFALIAS = 0x14
434 IFLA_MAX = 0x2b
435 RT_SCOPE_UNIVERSE = 0x0
436 RT_SCOPE_SITE = 0xc8
437 RT_SCOPE_LINK = 0xfd
438 RT_SCOPE_HOST = 0xfe
439 RT_SCOPE_NOWHERE = 0xff
440 RT_TABLE_UNSPEC = 0x0
441 RT_TABLE_COMPAT = 0xfc
442 RT_TABLE_DEFAULT = 0xfd
443 RT_TABLE_MAIN = 0xfe
444 RT_TABLE_LOCAL = 0xff
445 RT_TABLE_MAX = 0xffffffff
446 RTA_UNSPEC = 0x0
447 RTA_DST = 0x1
448 RTA_SRC = 0x2
449 RTA_IIF = 0x3
450 RTA_OIF = 0x4
451 RTA_GATEWAY = 0x5
452 RTA_PRIORITY = 0x6
453 RTA_PREFSRC = 0x7
454 RTA_METRICS = 0x8
455 RTA_MULTIPATH = 0x9
456 RTA_FLOW = 0xb
457 RTA_CACHEINFO = 0xc
458 RTA_TABLE = 0xf
459 RTN_UNSPEC = 0x0
460 RTN_UNICAST = 0x1
461 RTN_LOCAL = 0x2
462 RTN_BROADCAST = 0x3
463 RTN_ANYCAST = 0x4
464 RTN_MULTICAST = 0x5
465 RTN_BLACKHOLE = 0x6
466 RTN_UNREACHABLE = 0x7
467 RTN_PROHIBIT = 0x8
468 RTN_THROW = 0x9
469 RTN_NAT = 0xa
470 RTN_XRESOLVE = 0xb
471 RTNLGRP_NONE = 0x0
472 RTNLGRP_LINK = 0x1
473 RTNLGRP_NOTIFY = 0x2
474 RTNLGRP_NEIGH = 0x3
475 RTNLGRP_TC = 0x4
476 RTNLGRP_IPV4_IFADDR = 0x5
477 RTNLGRP_IPV4_MROUTE = 0x6
478 RTNLGRP_IPV4_ROUTE = 0x7
479 RTNLGRP_IPV4_RULE = 0x8
480 RTNLGRP_IPV6_IFADDR = 0x9
481 RTNLGRP_IPV6_MROUTE = 0xa
482 RTNLGRP_IPV6_ROUTE = 0xb
483 RTNLGRP_IPV6_IFINFO = 0xc
484 RTNLGRP_IPV6_PREFIX = 0x12
485 RTNLGRP_IPV6_RULE = 0x13
486 RTNLGRP_ND_USEROPT = 0x14
487 SizeofNlMsghdr = 0x10
488 SizeofNlMsgerr = 0x14
489 SizeofRtGenmsg = 0x1
490 SizeofNlAttr = 0x4
491 SizeofRtAttr = 0x4
492 SizeofIfInfomsg = 0x10
493 SizeofIfAddrmsg = 0x8
494 SizeofRtMsg = 0xc
495 SizeofRtNexthop = 0x8
496)
497
498type NlMsghdr struct {
499 Len uint32
500 Type uint16
501 Flags uint16
502 Seq uint32
503 Pid uint32
504}
505
506type NlMsgerr struct {
507 Error int32
508 Msg NlMsghdr
509}
510
511type RtGenmsg struct {
512 Family uint8
513}
514
515type NlAttr struct {
516 Len uint16
517 Type uint16
518}
519
520type RtAttr struct {
521 Len uint16
522 Type uint16
523}
524
525type IfInfomsg struct {
526 Family uint8
527 X__ifi_pad uint8
528 Type uint16
529 Index int32
530 Flags uint32
531 Change uint32
532}
533
534type IfAddrmsg struct {
535 Family uint8
536 Prefixlen uint8
537 Flags uint8
538 Scope uint8
539 Index uint32
540}
541
542type RtMsg struct {
543 Family uint8
544 Dst_len uint8
545 Src_len uint8
546 Tos uint8
547 Table uint8
548 Protocol uint8
549 Scope uint8
550 Type uint8
551 Flags uint32
552}
553
554type RtNexthop struct {
555 Len uint16
556 Flags uint8
557 Hops uint8
558 Ifindex int32
559}
560
561const (
562 SizeofSockFilter = 0x8
563 SizeofSockFprog = 0x10
564)
565
566type SockFilter struct {
567 Code uint16
568 Jt uint8
569 Jf uint8
570 K uint32
571}
572
573type SockFprog struct {
574 Len uint16
575 Pad_cgo_0 [6]byte
576 Filter *SockFilter
577}
578
579type InotifyEvent struct {
580 Wd int32
581 Mask uint32
582 Cookie uint32
583 Len uint32
584}
585
586const SizeofInotifyEvent = 0x10
587
588type PtraceRegs struct {
589 Gpr [32]uint64
590 Nip uint64
591 Msr uint64
592 Orig_gpr3 uint64
593 Ctr uint64
594 Link uint64
595 Xer uint64
596 Ccr uint64
597 Softe uint64
598 Trap uint64
599 Dar uint64
600 Dsisr uint64
601 Result uint64
602}
603
604type FdSet struct {
605 Bits [16]int64
606}
607
608type Sysinfo_t struct {
609 Uptime int64
610 Loads [3]uint64
611 Totalram uint64
612 Freeram uint64
613 Sharedram uint64
614 Bufferram uint64
615 Totalswap uint64
616 Freeswap uint64
617 Procs uint16
618 Pad uint16
619 Pad_cgo_0 [4]byte
620 Totalhigh uint64
621 Freehigh uint64
622 Unit uint32
623 X_f [0]uint8
624 Pad_cgo_1 [4]byte
625}
626
627type Utsname struct {
628 Sysname [65]uint8
629 Nodename [65]uint8
630 Release [65]uint8
631 Version [65]uint8
632 Machine [65]uint8
633 Domainname [65]uint8
634}
635
636type Ustat_t struct {
637 Tfree int32
638 Pad_cgo_0 [4]byte
639 Tinode uint64
640 Fname [6]uint8
641 Fpack [6]uint8
642 Pad_cgo_1 [4]byte
643}
644
645type EpollEvent struct {
646 Events uint32
647 X_padFd int32
648 Fd int32
649 Pad int32
650}
651
652const (
653 AT_FDCWD = -0x64
654 AT_REMOVEDIR = 0x200
655 AT_SYMLINK_FOLLOW = 0x400
656 AT_SYMLINK_NOFOLLOW = 0x100
657)
658
659type PollFd struct {
660 Fd int32
661 Events int16
662 Revents int16
663}
664
665const (
666 POLLIN = 0x1
667 POLLPRI = 0x2
668 POLLOUT = 0x4
669 POLLRDHUP = 0x2000
670 POLLERR = 0x8
671 POLLHUP = 0x10
672 POLLNVAL = 0x20
673)
674
675type Sigset_t struct {
676 X__val [16]uint64
677}
678
679const RNDGETENTCNT = 0x40045200
680
681const PERF_IOC_FLAG_GROUP = 0x1
682
683const _SC_PAGESIZE = 0x1e
684
685type Termios struct {
686 Iflag uint32
687 Oflag uint32
688 Cflag uint32
689 Lflag uint32
690 Cc [19]uint8
691 Line uint8
692 Ispeed uint32
693 Ospeed uint32
694}
695
696type Winsize struct {
697 Row uint16
698 Col uint16
699 Xpixel uint16
700 Ypixel uint16
701}
702
703type Taskstats struct {
704 Version uint16
705 Pad_cgo_0 [2]byte
706 Ac_exitcode uint32
707 Ac_flag uint8
708 Ac_nice uint8
709 Pad_cgo_1 [6]byte
710 Cpu_count uint64
711 Cpu_delay_total uint64
712 Blkio_count uint64
713 Blkio_delay_total uint64
714 Swapin_count uint64
715 Swapin_delay_total uint64
716 Cpu_run_real_total uint64
717 Cpu_run_virtual_total uint64
718 Ac_comm [32]uint8
719 Ac_sched uint8
720 Ac_pad [3]uint8
721 Pad_cgo_2 [4]byte
722 Ac_uid uint32
723 Ac_gid uint32
724 Ac_pid uint32
725 Ac_ppid uint32
726 Ac_btime uint32
727 Pad_cgo_3 [4]byte
728 Ac_etime uint64
729 Ac_utime uint64
730 Ac_stime uint64
731 Ac_minflt uint64
732 Ac_majflt uint64
733 Coremem uint64
734 Virtmem uint64
735 Hiwater_rss uint64
736 Hiwater_vm uint64
737 Read_char uint64
738 Write_char uint64
739 Read_syscalls uint64
740 Write_syscalls uint64
741 Read_bytes uint64
742 Write_bytes uint64
743 Cancelled_write_bytes uint64
744 Nvcsw uint64
745 Nivcsw uint64
746 Ac_utimescaled uint64
747 Ac_stimescaled uint64
748 Cpu_scaled_run_real_total uint64
749 Freepages_count uint64
750 Freepages_delay_total uint64
751}
752
753const (
754 TASKSTATS_CMD_UNSPEC = 0x0
755 TASKSTATS_CMD_GET = 0x1
756 TASKSTATS_CMD_NEW = 0x2
757 TASKSTATS_TYPE_UNSPEC = 0x0
758 TASKSTATS_TYPE_PID = 0x1
759 TASKSTATS_TYPE_TGID = 0x2
760 TASKSTATS_TYPE_STATS = 0x3
761 TASKSTATS_TYPE_AGGR_PID = 0x4
762 TASKSTATS_TYPE_AGGR_TGID = 0x5
763 TASKSTATS_TYPE_NULL = 0x6
764 TASKSTATS_CMD_ATTR_UNSPEC = 0x0
765 TASKSTATS_CMD_ATTR_PID = 0x1
766 TASKSTATS_CMD_ATTR_TGID = 0x2
767 TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3
768 TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4
769)
770
771type Genlmsghdr struct {
772 Cmd uint8
773 Version uint8
774 Reserved uint16
775}
776
777const (
778 CTRL_CMD_UNSPEC = 0x0
779 CTRL_CMD_NEWFAMILY = 0x1
780 CTRL_CMD_DELFAMILY = 0x2
781 CTRL_CMD_GETFAMILY = 0x3
782 CTRL_CMD_NEWOPS = 0x4
783 CTRL_CMD_DELOPS = 0x5
784 CTRL_CMD_GETOPS = 0x6
785 CTRL_CMD_NEWMCAST_GRP = 0x7
786 CTRL_CMD_DELMCAST_GRP = 0x8
787 CTRL_CMD_GETMCAST_GRP = 0x9
788 CTRL_ATTR_UNSPEC = 0x0
789 CTRL_ATTR_FAMILY_ID = 0x1
790 CTRL_ATTR_FAMILY_NAME = 0x2
791 CTRL_ATTR_VERSION = 0x3
792 CTRL_ATTR_HDRSIZE = 0x4
793 CTRL_ATTR_MAXATTR = 0x5
794 CTRL_ATTR_OPS = 0x6
795 CTRL_ATTR_MCAST_GROUPS = 0x7
796 CTRL_ATTR_OP_UNSPEC = 0x0
797 CTRL_ATTR_OP_ID = 0x1
798 CTRL_ATTR_OP_FLAGS = 0x2
799 CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0
800 CTRL_ATTR_MCAST_GRP_NAME = 0x1
801 CTRL_ATTR_MCAST_GRP_ID = 0x2
802)