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