1// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4// +build arm64,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	Mode    uint32
105	Nlink   uint32
106	Uid     uint32
107	Gid     uint32
108	Rdev    uint64
109	X__pad1 uint64
110	Size    int64
111	Blksize int32
112	X__pad2 int32
113	Blocks  int64
114	Atim    Timespec
115	Mtim    Timespec
116	Ctim    Timespec
117	_       [2]int32
118}
119
120type Statfs_t struct {
121	Type    int64
122	Bsize   int64
123	Blocks  uint64
124	Bfree   uint64
125	Bavail  uint64
126	Files   uint64
127	Ffree   uint64
128	Fsid    Fsid
129	Namelen int64
130	Frsize  int64
131	Flags   int64
132	Spare   [4]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            = 0x2c
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   [31]uint64
589	Sp     uint64
590	Pc     uint64
591	Pstate uint64
592}
593
594type FdSet struct {
595	Bits [16]int64
596}
597
598type Sysinfo_t struct {
599	Uptime    int64
600	Loads     [3]uint64
601	Totalram  uint64
602	Freeram   uint64
603	Sharedram uint64
604	Bufferram uint64
605	Totalswap uint64
606	Freeswap  uint64
607	Procs     uint16
608	Pad       uint16
609	Pad_cgo_0 [4]byte
610	Totalhigh uint64
611	Freehigh  uint64
612	Unit      uint32
613	X_f       [0]int8
614	Pad_cgo_1 [4]byte
615}
616
617type Utsname struct {
618	Sysname    [65]int8
619	Nodename   [65]int8
620	Release    [65]int8
621	Version    [65]int8
622	Machine    [65]int8
623	Domainname [65]int8
624}
625
626type Ustat_t struct {
627	Tfree     int32
628	Pad_cgo_0 [4]byte
629	Tinode    uint64
630	Fname     [6]int8
631	Fpack     [6]int8
632	Pad_cgo_1 [4]byte
633}
634
635type EpollEvent struct {
636	Events uint32
637	PadFd  int32
638	Fd     int32
639	Pad    int32
640}
641
642const (
643	AT_FDCWD            = -0x64
644	AT_REMOVEDIR        = 0x200
645	AT_SYMLINK_FOLLOW   = 0x400
646	AT_SYMLINK_NOFOLLOW = 0x100
647)
648
649type PollFd struct {
650	Fd      int32
651	Events  int16
652	Revents int16
653}
654
655const (
656	POLLIN    = 0x1
657	POLLPRI   = 0x2
658	POLLOUT   = 0x4
659	POLLRDHUP = 0x2000
660	POLLERR   = 0x8
661	POLLHUP   = 0x10
662	POLLNVAL  = 0x20
663)
664
665type Sigset_t struct {
666	X__val [16]uint64
667}
668
669const RNDGETENTCNT = 0x80045200
670
671const PERF_IOC_FLAG_GROUP = 0x1
672
673type Termios struct {
674	Iflag  uint32
675	Oflag  uint32
676	Cflag  uint32
677	Lflag  uint32
678	Line   uint8
679	Cc     [19]uint8
680	Ispeed uint32
681	Ospeed uint32
682}
683
684type Winsize struct {
685	Row    uint16
686	Col    uint16
687	Xpixel uint16
688	Ypixel uint16
689}
690
691type Taskstats struct {
692	Version                   uint16
693	Pad_cgo_0                 [2]byte
694	Ac_exitcode               uint32
695	Ac_flag                   uint8
696	Ac_nice                   uint8
697	Pad_cgo_1                 [6]byte
698	Cpu_count                 uint64
699	Cpu_delay_total           uint64
700	Blkio_count               uint64
701	Blkio_delay_total         uint64
702	Swapin_count              uint64
703	Swapin_delay_total        uint64
704	Cpu_run_real_total        uint64
705	Cpu_run_virtual_total     uint64
706	Ac_comm                   [32]int8
707	Ac_sched                  uint8
708	Ac_pad                    [3]uint8
709	Pad_cgo_2                 [4]byte
710	Ac_uid                    uint32
711	Ac_gid                    uint32
712	Ac_pid                    uint32
713	Ac_ppid                   uint32
714	Ac_btime                  uint32
715	Pad_cgo_3                 [4]byte
716	Ac_etime                  uint64
717	Ac_utime                  uint64
718	Ac_stime                  uint64
719	Ac_minflt                 uint64
720	Ac_majflt                 uint64
721	Coremem                   uint64
722	Virtmem                   uint64
723	Hiwater_rss               uint64
724	Hiwater_vm                uint64
725	Read_char                 uint64
726	Write_char                uint64
727	Read_syscalls             uint64
728	Write_syscalls            uint64
729	Read_bytes                uint64
730	Write_bytes               uint64
731	Cancelled_write_bytes     uint64
732	Nvcsw                     uint64
733	Nivcsw                    uint64
734	Ac_utimescaled            uint64
735	Ac_stimescaled            uint64
736	Cpu_scaled_run_real_total uint64
737	Freepages_count           uint64
738	Freepages_delay_total     uint64
739}
740
741const (
742	TASKSTATS_CMD_UNSPEC                  = 0x0
743	TASKSTATS_CMD_GET                     = 0x1
744	TASKSTATS_CMD_NEW                     = 0x2
745	TASKSTATS_TYPE_UNSPEC                 = 0x0
746	TASKSTATS_TYPE_PID                    = 0x1
747	TASKSTATS_TYPE_TGID                   = 0x2
748	TASKSTATS_TYPE_STATS                  = 0x3
749	TASKSTATS_TYPE_AGGR_PID               = 0x4
750	TASKSTATS_TYPE_AGGR_TGID              = 0x5
751	TASKSTATS_TYPE_NULL                   = 0x6
752	TASKSTATS_CMD_ATTR_UNSPEC             = 0x0
753	TASKSTATS_CMD_ATTR_PID                = 0x1
754	TASKSTATS_CMD_ATTR_TGID               = 0x2
755	TASKSTATS_CMD_ATTR_REGISTER_CPUMASK   = 0x3
756	TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4
757)
758
759type Genlmsghdr struct {
760	Cmd      uint8
761	Version  uint8
762	Reserved uint16
763}
764
765const (
766	CTRL_CMD_UNSPEC            = 0x0
767	CTRL_CMD_NEWFAMILY         = 0x1
768	CTRL_CMD_DELFAMILY         = 0x2
769	CTRL_CMD_GETFAMILY         = 0x3
770	CTRL_CMD_NEWOPS            = 0x4
771	CTRL_CMD_DELOPS            = 0x5
772	CTRL_CMD_GETOPS            = 0x6
773	CTRL_CMD_NEWMCAST_GRP      = 0x7
774	CTRL_CMD_DELMCAST_GRP      = 0x8
775	CTRL_CMD_GETMCAST_GRP      = 0x9
776	CTRL_ATTR_UNSPEC           = 0x0
777	CTRL_ATTR_FAMILY_ID        = 0x1
778	CTRL_ATTR_FAMILY_NAME      = 0x2
779	CTRL_ATTR_VERSION          = 0x3
780	CTRL_ATTR_HDRSIZE          = 0x4
781	CTRL_ATTR_MAXATTR          = 0x5
782	CTRL_ATTR_OPS              = 0x6
783	CTRL_ATTR_MCAST_GROUPS     = 0x7
784	CTRL_ATTR_OP_UNSPEC        = 0x0
785	CTRL_ATTR_OP_ID            = 0x1
786	CTRL_ATTR_OP_FLAGS         = 0x2
787	CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0
788	CTRL_ATTR_MCAST_GRP_NAME   = 0x1
789	CTRL_ATTR_MCAST_GRP_ID     = 0x2
790)
791