blob: 8fa6603fb8ed559265a9ac49d720049efbefe32b [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 mips,linux
5
6package unix
7
8const (
9 sizeofPtr = 0x4
10 sizeofShort = 0x2
11 sizeofInt = 0x4
12 sizeofLong = 0x4
13 sizeofLongLong = 0x8
14 PathMax = 0x1000
15)
16
17type (
18 _C_short int16
19 _C_int int32
20 _C_long int32
21 _C_long_long int64
22)
23
24type Timespec struct {
25 Sec int32
26 Nsec int32
27}
28
29type Timeval struct {
30 Sec int32
31 Usec int32
32}
33
34type Timex struct {
35 Modes uint32
36 Offset int32
37 Freq int32
38 Maxerror int32
39 Esterror int32
40 Status int32
41 Constant int32
42 Precision int32
43 Tolerance int32
44 Time Timeval
45 Tick int32
46 Ppsfreq int32
47 Jitter int32
48 Shift int32
49 Stabil int32
50 Jitcnt int32
51 Calcnt int32
52 Errcnt int32
53 Stbcnt int32
54 Tai int32
55 Pad_cgo_0 [44]byte
56}
57
58type Time_t int32
59
60type Tms struct {
61 Utime int32
62 Stime int32
63 Cutime int32
64 Cstime int32
65}
66
67type Utimbuf struct {
68 Actime int32
69 Modtime int32
70}
71
72type Rusage struct {
73 Utime Timeval
74 Stime Timeval
75 Maxrss int32
76 Ixrss int32
77 Idrss int32
78 Isrss int32
79 Minflt int32
80 Majflt int32
81 Nswap int32
82 Inblock int32
83 Oublock int32
84 Msgsnd int32
85 Msgrcv int32
86 Nsignals int32
87 Nvcsw int32
88 Nivcsw int32
89}
90
91type Rlimit struct {
92 Cur uint64
93 Max uint64
94}
95
96type _Gid_t uint32
97
98type Stat_t struct {
99 Dev uint32
100 Pad1 [3]int32
101 Ino uint64
102 Mode uint32
103 Nlink uint32
104 Uid uint32
105 Gid uint32
106 Rdev uint32
107 Pad2 [3]int32
108 Size int64
109 Atim Timespec
110 Mtim Timespec
111 Ctim Timespec
112 Blksize int32
113 Pad4 int32
114 Blocks int64
115 Pad5 [14]int32
116}
117
118type Statfs_t struct {
119 Type int32
120 Bsize int32
121 Frsize int32
122 Pad_cgo_0 [4]byte
123 Blocks uint64
124 Bfree uint64
125 Files uint64
126 Ffree uint64
127 Bavail uint64
128 Fsid Fsid
129 Namelen int32
130 Flags int32
131 Spare [5]int32
132 Pad_cgo_1 [4]byte
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 uint32
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 Iov *Iovec
302 Iovlen uint32
303 Control *byte
304 Controllen uint32
305 Flags int32
306}
307
308type Cmsghdr struct {
309 Len uint32
310 Level int32
311 Type int32
312}
313
314type Inet4Pktinfo struct {
315 Ifindex int32
316 Spec_dst [4]byte /* in_addr */
317 Addr [4]byte /* in_addr */
318}
319
320type Inet6Pktinfo struct {
321 Addr [16]byte /* in6_addr */
322 Ifindex uint32
323}
324
325type IPv6MTUInfo struct {
326 Addr RawSockaddrInet6
327 Mtu uint32
328}
329
330type ICMPv6Filter struct {
331 Data [8]uint32
332}
333
334type Ucred struct {
335 Pid int32
336 Uid uint32
337 Gid uint32
338}
339
340type TCPInfo struct {
341 State uint8
342 Ca_state uint8
343 Retransmits uint8
344 Probes uint8
345 Backoff uint8
346 Options uint8
347 Pad_cgo_0 [2]byte
348 Rto uint32
349 Ato uint32
350 Snd_mss uint32
351 Rcv_mss uint32
352 Unacked uint32
353 Sacked uint32
354 Lost uint32
355 Retrans uint32
356 Fackets uint32
357 Last_data_sent uint32
358 Last_ack_sent uint32
359 Last_data_recv uint32
360 Last_ack_recv uint32
361 Pmtu uint32
362 Rcv_ssthresh uint32
363 Rtt uint32
364 Rttvar uint32
365 Snd_ssthresh uint32
366 Snd_cwnd uint32
367 Advmss uint32
368 Reordering uint32
369 Rcv_rtt uint32
370 Rcv_space uint32
371 Total_retrans uint32
372}
373
374const (
375 SizeofSockaddrInet4 = 0x10
376 SizeofSockaddrInet6 = 0x1c
377 SizeofSockaddrAny = 0x70
378 SizeofSockaddrUnix = 0x6e
379 SizeofSockaddrLinklayer = 0x14
380 SizeofSockaddrNetlink = 0xc
381 SizeofSockaddrHCI = 0x6
382 SizeofSockaddrCAN = 0x10
383 SizeofSockaddrALG = 0x58
384 SizeofSockaddrVM = 0x10
385 SizeofLinger = 0x8
386 SizeofIovec = 0x8
387 SizeofIPMreq = 0x8
388 SizeofIPMreqn = 0xc
389 SizeofIPv6Mreq = 0x14
390 SizeofPacketMreq = 0x10
391 SizeofMsghdr = 0x1c
392 SizeofCmsghdr = 0xc
393 SizeofInet4Pktinfo = 0xc
394 SizeofInet6Pktinfo = 0x14
395 SizeofIPv6MTUInfo = 0x20
396 SizeofICMPv6Filter = 0x20
397 SizeofUcred = 0xc
398 SizeofTCPInfo = 0x68
399)
400
401const (
402 IFA_UNSPEC = 0x0
403 IFA_ADDRESS = 0x1
404 IFA_LOCAL = 0x2
405 IFA_LABEL = 0x3
406 IFA_BROADCAST = 0x4
407 IFA_ANYCAST = 0x5
408 IFA_CACHEINFO = 0x6
409 IFA_MULTICAST = 0x7
410 IFLA_UNSPEC = 0x0
411 IFLA_ADDRESS = 0x1
412 IFLA_BROADCAST = 0x2
413 IFLA_IFNAME = 0x3
414 IFLA_MTU = 0x4
415 IFLA_LINK = 0x5
416 IFLA_QDISC = 0x6
417 IFLA_STATS = 0x7
418 IFLA_COST = 0x8
419 IFLA_PRIORITY = 0x9
420 IFLA_MASTER = 0xa
421 IFLA_WIRELESS = 0xb
422 IFLA_PROTINFO = 0xc
423 IFLA_TXQLEN = 0xd
424 IFLA_MAP = 0xe
425 IFLA_WEIGHT = 0xf
426 IFLA_OPERSTATE = 0x10
427 IFLA_LINKMODE = 0x11
428 IFLA_LINKINFO = 0x12
429 IFLA_NET_NS_PID = 0x13
430 IFLA_IFALIAS = 0x14
431 IFLA_MAX = 0x2b
432 RT_SCOPE_UNIVERSE = 0x0
433 RT_SCOPE_SITE = 0xc8
434 RT_SCOPE_LINK = 0xfd
435 RT_SCOPE_HOST = 0xfe
436 RT_SCOPE_NOWHERE = 0xff
437 RT_TABLE_UNSPEC = 0x0
438 RT_TABLE_COMPAT = 0xfc
439 RT_TABLE_DEFAULT = 0xfd
440 RT_TABLE_MAIN = 0xfe
441 RT_TABLE_LOCAL = 0xff
442 RT_TABLE_MAX = 0xffffffff
443 RTA_UNSPEC = 0x0
444 RTA_DST = 0x1
445 RTA_SRC = 0x2
446 RTA_IIF = 0x3
447 RTA_OIF = 0x4
448 RTA_GATEWAY = 0x5
449 RTA_PRIORITY = 0x6
450 RTA_PREFSRC = 0x7
451 RTA_METRICS = 0x8
452 RTA_MULTIPATH = 0x9
453 RTA_FLOW = 0xb
454 RTA_CACHEINFO = 0xc
455 RTA_TABLE = 0xf
456 RTN_UNSPEC = 0x0
457 RTN_UNICAST = 0x1
458 RTN_LOCAL = 0x2
459 RTN_BROADCAST = 0x3
460 RTN_ANYCAST = 0x4
461 RTN_MULTICAST = 0x5
462 RTN_BLACKHOLE = 0x6
463 RTN_UNREACHABLE = 0x7
464 RTN_PROHIBIT = 0x8
465 RTN_THROW = 0x9
466 RTN_NAT = 0xa
467 RTN_XRESOLVE = 0xb
468 RTNLGRP_NONE = 0x0
469 RTNLGRP_LINK = 0x1
470 RTNLGRP_NOTIFY = 0x2
471 RTNLGRP_NEIGH = 0x3
472 RTNLGRP_TC = 0x4
473 RTNLGRP_IPV4_IFADDR = 0x5
474 RTNLGRP_IPV4_MROUTE = 0x6
475 RTNLGRP_IPV4_ROUTE = 0x7
476 RTNLGRP_IPV4_RULE = 0x8
477 RTNLGRP_IPV6_IFADDR = 0x9
478 RTNLGRP_IPV6_MROUTE = 0xa
479 RTNLGRP_IPV6_ROUTE = 0xb
480 RTNLGRP_IPV6_IFINFO = 0xc
481 RTNLGRP_IPV6_PREFIX = 0x12
482 RTNLGRP_IPV6_RULE = 0x13
483 RTNLGRP_ND_USEROPT = 0x14
484 SizeofNlMsghdr = 0x10
485 SizeofNlMsgerr = 0x14
486 SizeofRtGenmsg = 0x1
487 SizeofNlAttr = 0x4
488 SizeofRtAttr = 0x4
489 SizeofIfInfomsg = 0x10
490 SizeofIfAddrmsg = 0x8
491 SizeofRtMsg = 0xc
492 SizeofRtNexthop = 0x8
493)
494
495type NlMsghdr struct {
496 Len uint32
497 Type uint16
498 Flags uint16
499 Seq uint32
500 Pid uint32
501}
502
503type NlMsgerr struct {
504 Error int32
505 Msg NlMsghdr
506}
507
508type RtGenmsg struct {
509 Family uint8
510}
511
512type NlAttr struct {
513 Len uint16
514 Type uint16
515}
516
517type RtAttr struct {
518 Len uint16
519 Type uint16
520}
521
522type IfInfomsg struct {
523 Family uint8
524 X__ifi_pad uint8
525 Type uint16
526 Index int32
527 Flags uint32
528 Change uint32
529}
530
531type IfAddrmsg struct {
532 Family uint8
533 Prefixlen uint8
534 Flags uint8
535 Scope uint8
536 Index uint32
537}
538
539type RtMsg struct {
540 Family uint8
541 Dst_len uint8
542 Src_len uint8
543 Tos uint8
544 Table uint8
545 Protocol uint8
546 Scope uint8
547 Type uint8
548 Flags uint32
549}
550
551type RtNexthop struct {
552 Len uint16
553 Flags uint8
554 Hops uint8
555 Ifindex int32
556}
557
558const (
559 SizeofSockFilter = 0x8
560 SizeofSockFprog = 0x8
561)
562
563type SockFilter struct {
564 Code uint16
565 Jt uint8
566 Jf uint8
567 K uint32
568}
569
570type SockFprog struct {
571 Len uint16
572 Pad_cgo_0 [2]byte
573 Filter *SockFilter
574}
575
576type InotifyEvent struct {
577 Wd int32
578 Mask uint32
579 Cookie uint32
580 Len uint32
581}
582
583const SizeofInotifyEvent = 0x10
584
585type PtraceRegs struct {
586 Regs [32]uint64
587 Lo uint64
588 Hi uint64
589 Epc uint64
590 Badvaddr uint64
591 Status uint64
592 Cause uint64
593}
594
595type FdSet struct {
596 Bits [32]int32
597}
598
599type Sysinfo_t struct {
600 Uptime int32
601 Loads [3]uint32
602 Totalram uint32
603 Freeram uint32
604 Sharedram uint32
605 Bufferram uint32
606 Totalswap uint32
607 Freeswap uint32
608 Procs uint16
609 Pad uint16
610 Totalhigh uint32
611 Freehigh uint32
612 Unit uint32
613 X_f [8]int8
614}
615
616type Utsname struct {
617 Sysname [65]int8
618 Nodename [65]int8
619 Release [65]int8
620 Version [65]int8
621 Machine [65]int8
622 Domainname [65]int8
623}
624
625type Ustat_t struct {
626 Tfree int32
627 Tinode uint32
628 Fname [6]int8
629 Fpack [6]int8
630}
631
632type EpollEvent struct {
633 Events uint32
634 PadFd int32
635 Fd int32
636 Pad int32
637}
638
639const (
640 AT_FDCWD = -0x64
641 AT_REMOVEDIR = 0x200
642 AT_SYMLINK_FOLLOW = 0x400
643 AT_SYMLINK_NOFOLLOW = 0x100
644)
645
646type PollFd struct {
647 Fd int32
648 Events int16
649 Revents int16
650}
651
652const (
653 POLLIN = 0x1
654 POLLPRI = 0x2
655 POLLOUT = 0x4
656 POLLRDHUP = 0x2000
657 POLLERR = 0x8
658 POLLHUP = 0x10
659 POLLNVAL = 0x20
660)
661
662type Sigset_t struct {
663 X__val [32]uint32
664}
665
666const RNDGETENTCNT = 0x40045200
667
668const PERF_IOC_FLAG_GROUP = 0x1
669
670const _SC_PAGESIZE = 0x1e
671
672type Termios struct {
673 Iflag uint32
674 Oflag uint32
675 Cflag uint32
676 Lflag uint32
677 Line uint8
678 Cc [23]uint8
679 Ispeed uint32
680 Ospeed uint32
681}
682
683type Winsize struct {
684 Row uint16
685 Col uint16
686 Xpixel uint16
687 Ypixel uint16
688}
689
690type Taskstats struct {
691 Version uint16
692 Pad_cgo_0 [2]byte
693 Ac_exitcode uint32
694 Ac_flag uint8
695 Ac_nice uint8
696 Pad_cgo_1 [6]byte
697 Cpu_count uint64
698 Cpu_delay_total uint64
699 Blkio_count uint64
700 Blkio_delay_total uint64
701 Swapin_count uint64
702 Swapin_delay_total uint64
703 Cpu_run_real_total uint64
704 Cpu_run_virtual_total uint64
705 Ac_comm [32]int8
706 Ac_sched uint8
707 Ac_pad [3]uint8
708 Pad_cgo_2 [4]byte
709 Ac_uid uint32
710 Ac_gid uint32
711 Ac_pid uint32
712 Ac_ppid uint32
713 Ac_btime uint32
714 Pad_cgo_3 [4]byte
715 Ac_etime uint64
716 Ac_utime uint64
717 Ac_stime uint64
718 Ac_minflt uint64
719 Ac_majflt uint64
720 Coremem uint64
721 Virtmem uint64
722 Hiwater_rss uint64
723 Hiwater_vm uint64
724 Read_char uint64
725 Write_char uint64
726 Read_syscalls uint64
727 Write_syscalls uint64
728 Read_bytes uint64
729 Write_bytes uint64
730 Cancelled_write_bytes uint64
731 Nvcsw uint64
732 Nivcsw uint64
733 Ac_utimescaled uint64
734 Ac_stimescaled uint64
735 Cpu_scaled_run_real_total uint64
736 Freepages_count uint64
737 Freepages_delay_total uint64
738}
739
740const (
741 TASKSTATS_CMD_UNSPEC = 0x0
742 TASKSTATS_CMD_GET = 0x1
743 TASKSTATS_CMD_NEW = 0x2
744 TASKSTATS_TYPE_UNSPEC = 0x0
745 TASKSTATS_TYPE_PID = 0x1
746 TASKSTATS_TYPE_TGID = 0x2
747 TASKSTATS_TYPE_STATS = 0x3
748 TASKSTATS_TYPE_AGGR_PID = 0x4
749 TASKSTATS_TYPE_AGGR_TGID = 0x5
750 TASKSTATS_TYPE_NULL = 0x6
751 TASKSTATS_CMD_ATTR_UNSPEC = 0x0
752 TASKSTATS_CMD_ATTR_PID = 0x1
753 TASKSTATS_CMD_ATTR_TGID = 0x2
754 TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3
755 TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4
756)
757
758type Genlmsghdr struct {
759 Cmd uint8
760 Version uint8
761 Reserved uint16
762}
763
764const (
765 CTRL_CMD_UNSPEC = 0x0
766 CTRL_CMD_NEWFAMILY = 0x1
767 CTRL_CMD_DELFAMILY = 0x2
768 CTRL_CMD_GETFAMILY = 0x3
769 CTRL_CMD_NEWOPS = 0x4
770 CTRL_CMD_DELOPS = 0x5
771 CTRL_CMD_GETOPS = 0x6
772 CTRL_CMD_NEWMCAST_GRP = 0x7
773 CTRL_CMD_DELMCAST_GRP = 0x8
774 CTRL_CMD_GETMCAST_GRP = 0x9
775 CTRL_ATTR_UNSPEC = 0x0
776 CTRL_ATTR_FAMILY_ID = 0x1
777 CTRL_ATTR_FAMILY_NAME = 0x2
778 CTRL_ATTR_VERSION = 0x3
779 CTRL_ATTR_HDRSIZE = 0x4
780 CTRL_ATTR_MAXATTR = 0x5
781 CTRL_ATTR_OPS = 0x6
782 CTRL_ATTR_MCAST_GROUPS = 0x7
783 CTRL_ATTR_OP_UNSPEC = 0x0
784 CTRL_ATTR_OP_ID = 0x1
785 CTRL_ATTR_OP_FLAGS = 0x2
786 CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0
787 CTRL_ATTR_MCAST_GRP_NAME = 0x1
788 CTRL_ATTR_MCAST_GRP_ID = 0x2
789)