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