initial commit
[govpp.git] / vendor / golang.org / x / sys / unix / ztypes_linux_amd64.go
1 // cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 linux/types.go | go run mkpost.go
2 // Code generated by the command above; see README.md. DO NOT EDIT.
3
4 // +build amd64,linux
5
6 package unix
7
8 const (
9         sizeofPtr      = 0x8
10         sizeofShort    = 0x2
11         sizeofInt      = 0x4
12         sizeofLong     = 0x8
13         sizeofLongLong = 0x8
14         PathMax        = 0x1000
15 )
16
17 type (
18         _C_short     int16
19         _C_int       int32
20         _C_long      int64
21         _C_long_long int64
22 )
23
24 type Timespec struct {
25         Sec  int64
26         Nsec int64
27 }
28
29 type Timeval struct {
30         Sec  int64
31         Usec int64
32 }
33
34 type 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
61 type Time_t int64
62
63 type Tms struct {
64         Utime  int64
65         Stime  int64
66         Cutime int64
67         Cstime int64
68 }
69
70 type Utimbuf struct {
71         Actime  int64
72         Modtime int64
73 }
74
75 type 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
94 type Rlimit struct {
95         Cur uint64
96         Max uint64
97 }
98
99 type _Gid_t uint32
100
101 type Stat_t struct {
102         Dev     uint64
103         Ino     uint64
104         Nlink   uint64
105         Mode    uint32
106         Uid     uint32
107         Gid     uint32
108         X__pad0 int32
109         Rdev    uint64
110         Size    int64
111         Blksize int64
112         Blocks  int64
113         Atim    Timespec
114         Mtim    Timespec
115         Ctim    Timespec
116         _       [3]int64
117 }
118
119 type Statfs_t struct {
120         Type    int64
121         Bsize   int64
122         Blocks  uint64
123         Bfree   uint64
124         Bavail  uint64
125         Files   uint64
126         Ffree   uint64
127         Fsid    Fsid
128         Namelen int64
129         Frsize  int64
130         Flags   int64
131         Spare   [4]int64
132 }
133
134 type Dirent struct {
135         Ino       uint64
136         Off       int64
137         Reclen    uint16
138         Type      uint8
139         Name      [256]int8
140         Pad_cgo_0 [5]byte
141 }
142
143 type Fsid struct {
144         X__val [2]int32
145 }
146
147 type Flock_t struct {
148         Type      int16
149         Whence    int16
150         Pad_cgo_0 [4]byte
151         Start     int64
152         Len       int64
153         Pid       int32
154         Pad_cgo_1 [4]byte
155 }
156
157 type FscryptPolicy struct {
158         Version                   uint8
159         Contents_encryption_mode  uint8
160         Filenames_encryption_mode uint8
161         Flags                     uint8
162         Master_key_descriptor     [8]uint8
163 }
164
165 type FscryptKey struct {
166         Mode uint32
167         Raw  [64]uint8
168         Size uint32
169 }
170
171 const (
172         FADV_NORMAL     = 0x0
173         FADV_RANDOM     = 0x1
174         FADV_SEQUENTIAL = 0x2
175         FADV_WILLNEED   = 0x3
176         FADV_DONTNEED   = 0x4
177         FADV_NOREUSE    = 0x5
178 )
179
180 type RawSockaddrInet4 struct {
181         Family uint16
182         Port   uint16
183         Addr   [4]byte /* in_addr */
184         Zero   [8]uint8
185 }
186
187 type RawSockaddrInet6 struct {
188         Family   uint16
189         Port     uint16
190         Flowinfo uint32
191         Addr     [16]byte /* in6_addr */
192         Scope_id uint32
193 }
194
195 type RawSockaddrUnix struct {
196         Family uint16
197         Path   [108]int8
198 }
199
200 type RawSockaddrLinklayer struct {
201         Family   uint16
202         Protocol uint16
203         Ifindex  int32
204         Hatype   uint16
205         Pkttype  uint8
206         Halen    uint8
207         Addr     [8]uint8
208 }
209
210 type RawSockaddrNetlink struct {
211         Family uint16
212         Pad    uint16
213         Pid    uint32
214         Groups uint32
215 }
216
217 type RawSockaddrHCI struct {
218         Family  uint16
219         Dev     uint16
220         Channel uint16
221 }
222
223 type RawSockaddrCAN struct {
224         Family    uint16
225         Pad_cgo_0 [2]byte
226         Ifindex   int32
227         Addr      [8]byte
228 }
229
230 type RawSockaddrALG struct {
231         Family uint16
232         Type   [14]uint8
233         Feat   uint32
234         Mask   uint32
235         Name   [64]uint8
236 }
237
238 type RawSockaddrVM struct {
239         Family    uint16
240         Reserved1 uint16
241         Port      uint32
242         Cid       uint32
243         Zero      [4]uint8
244 }
245
246 type RawSockaddr struct {
247         Family uint16
248         Data   [14]int8
249 }
250
251 type RawSockaddrAny struct {
252         Addr RawSockaddr
253         Pad  [96]int8
254 }
255
256 type _Socklen uint32
257
258 type Linger struct {
259         Onoff  int32
260         Linger int32
261 }
262
263 type Iovec struct {
264         Base *byte
265         Len  uint64
266 }
267
268 type IPMreq struct {
269         Multiaddr [4]byte /* in_addr */
270         Interface [4]byte /* in_addr */
271 }
272
273 type IPMreqn struct {
274         Multiaddr [4]byte /* in_addr */
275         Address   [4]byte /* in_addr */
276         Ifindex   int32
277 }
278
279 type IPv6Mreq struct {
280         Multiaddr [16]byte /* in6_addr */
281         Interface uint32
282 }
283
284 type Msghdr struct {
285         Name       *byte
286         Namelen    uint32
287         Pad_cgo_0  [4]byte
288         Iov        *Iovec
289         Iovlen     uint64
290         Control    *byte
291         Controllen uint64
292         Flags      int32
293         Pad_cgo_1  [4]byte
294 }
295
296 type Cmsghdr struct {
297         Len   uint64
298         Level int32
299         Type  int32
300 }
301
302 type Inet4Pktinfo struct {
303         Ifindex  int32
304         Spec_dst [4]byte /* in_addr */
305         Addr     [4]byte /* in_addr */
306 }
307
308 type Inet6Pktinfo struct {
309         Addr    [16]byte /* in6_addr */
310         Ifindex uint32
311 }
312
313 type IPv6MTUInfo struct {
314         Addr RawSockaddrInet6
315         Mtu  uint32
316 }
317
318 type ICMPv6Filter struct {
319         Data [8]uint32
320 }
321
322 type Ucred struct {
323         Pid int32
324         Uid uint32
325         Gid uint32
326 }
327
328 type TCPInfo struct {
329         State          uint8
330         Ca_state       uint8
331         Retransmits    uint8
332         Probes         uint8
333         Backoff        uint8
334         Options        uint8
335         Pad_cgo_0      [2]byte
336         Rto            uint32
337         Ato            uint32
338         Snd_mss        uint32
339         Rcv_mss        uint32
340         Unacked        uint32
341         Sacked         uint32
342         Lost           uint32
343         Retrans        uint32
344         Fackets        uint32
345         Last_data_sent uint32
346         Last_ack_sent  uint32
347         Last_data_recv uint32
348         Last_ack_recv  uint32
349         Pmtu           uint32
350         Rcv_ssthresh   uint32
351         Rtt            uint32
352         Rttvar         uint32
353         Snd_ssthresh   uint32
354         Snd_cwnd       uint32
355         Advmss         uint32
356         Reordering     uint32
357         Rcv_rtt        uint32
358         Rcv_space      uint32
359         Total_retrans  uint32
360 }
361
362 const (
363         SizeofSockaddrInet4     = 0x10
364         SizeofSockaddrInet6     = 0x1c
365         SizeofSockaddrAny       = 0x70
366         SizeofSockaddrUnix      = 0x6e
367         SizeofSockaddrLinklayer = 0x14
368         SizeofSockaddrNetlink   = 0xc
369         SizeofSockaddrHCI       = 0x6
370         SizeofSockaddrCAN       = 0x10
371         SizeofSockaddrALG       = 0x58
372         SizeofSockaddrVM        = 0x10
373         SizeofLinger            = 0x8
374         SizeofIPMreq            = 0x8
375         SizeofIPMreqn           = 0xc
376         SizeofIPv6Mreq          = 0x14
377         SizeofMsghdr            = 0x38
378         SizeofCmsghdr           = 0x10
379         SizeofInet4Pktinfo      = 0xc
380         SizeofInet6Pktinfo      = 0x14
381         SizeofIPv6MTUInfo       = 0x20
382         SizeofICMPv6Filter      = 0x20
383         SizeofUcred             = 0xc
384         SizeofTCPInfo           = 0x68
385 )
386
387 const (
388         IFA_UNSPEC          = 0x0
389         IFA_ADDRESS         = 0x1
390         IFA_LOCAL           = 0x2
391         IFA_LABEL           = 0x3
392         IFA_BROADCAST       = 0x4
393         IFA_ANYCAST         = 0x5
394         IFA_CACHEINFO       = 0x6
395         IFA_MULTICAST       = 0x7
396         IFLA_UNSPEC         = 0x0
397         IFLA_ADDRESS        = 0x1
398         IFLA_BROADCAST      = 0x2
399         IFLA_IFNAME         = 0x3
400         IFLA_MTU            = 0x4
401         IFLA_LINK           = 0x5
402         IFLA_QDISC          = 0x6
403         IFLA_STATS          = 0x7
404         IFLA_COST           = 0x8
405         IFLA_PRIORITY       = 0x9
406         IFLA_MASTER         = 0xa
407         IFLA_WIRELESS       = 0xb
408         IFLA_PROTINFO       = 0xc
409         IFLA_TXQLEN         = 0xd
410         IFLA_MAP            = 0xe
411         IFLA_WEIGHT         = 0xf
412         IFLA_OPERSTATE      = 0x10
413         IFLA_LINKMODE       = 0x11
414         IFLA_LINKINFO       = 0x12
415         IFLA_NET_NS_PID     = 0x13
416         IFLA_IFALIAS        = 0x14
417         IFLA_MAX            = 0x2b
418         RT_SCOPE_UNIVERSE   = 0x0
419         RT_SCOPE_SITE       = 0xc8
420         RT_SCOPE_LINK       = 0xfd
421         RT_SCOPE_HOST       = 0xfe
422         RT_SCOPE_NOWHERE    = 0xff
423         RT_TABLE_UNSPEC     = 0x0
424         RT_TABLE_COMPAT     = 0xfc
425         RT_TABLE_DEFAULT    = 0xfd
426         RT_TABLE_MAIN       = 0xfe
427         RT_TABLE_LOCAL      = 0xff
428         RT_TABLE_MAX        = 0xffffffff
429         RTA_UNSPEC          = 0x0
430         RTA_DST             = 0x1
431         RTA_SRC             = 0x2
432         RTA_IIF             = 0x3
433         RTA_OIF             = 0x4
434         RTA_GATEWAY         = 0x5
435         RTA_PRIORITY        = 0x6
436         RTA_PREFSRC         = 0x7
437         RTA_METRICS         = 0x8
438         RTA_MULTIPATH       = 0x9
439         RTA_FLOW            = 0xb
440         RTA_CACHEINFO       = 0xc
441         RTA_TABLE           = 0xf
442         RTN_UNSPEC          = 0x0
443         RTN_UNICAST         = 0x1
444         RTN_LOCAL           = 0x2
445         RTN_BROADCAST       = 0x3
446         RTN_ANYCAST         = 0x4
447         RTN_MULTICAST       = 0x5
448         RTN_BLACKHOLE       = 0x6
449         RTN_UNREACHABLE     = 0x7
450         RTN_PROHIBIT        = 0x8
451         RTN_THROW           = 0x9
452         RTN_NAT             = 0xa
453         RTN_XRESOLVE        = 0xb
454         RTNLGRP_NONE        = 0x0
455         RTNLGRP_LINK        = 0x1
456         RTNLGRP_NOTIFY      = 0x2
457         RTNLGRP_NEIGH       = 0x3
458         RTNLGRP_TC          = 0x4
459         RTNLGRP_IPV4_IFADDR = 0x5
460         RTNLGRP_IPV4_MROUTE = 0x6
461         RTNLGRP_IPV4_ROUTE  = 0x7
462         RTNLGRP_IPV4_RULE   = 0x8
463         RTNLGRP_IPV6_IFADDR = 0x9
464         RTNLGRP_IPV6_MROUTE = 0xa
465         RTNLGRP_IPV6_ROUTE  = 0xb
466         RTNLGRP_IPV6_IFINFO = 0xc
467         RTNLGRP_IPV6_PREFIX = 0x12
468         RTNLGRP_IPV6_RULE   = 0x13
469         RTNLGRP_ND_USEROPT  = 0x14
470         SizeofNlMsghdr      = 0x10
471         SizeofNlMsgerr      = 0x14
472         SizeofRtGenmsg      = 0x1
473         SizeofNlAttr        = 0x4
474         SizeofRtAttr        = 0x4
475         SizeofIfInfomsg     = 0x10
476         SizeofIfAddrmsg     = 0x8
477         SizeofRtMsg         = 0xc
478         SizeofRtNexthop     = 0x8
479 )
480
481 type NlMsghdr struct {
482         Len   uint32
483         Type  uint16
484         Flags uint16
485         Seq   uint32
486         Pid   uint32
487 }
488
489 type NlMsgerr struct {
490         Error int32
491         Msg   NlMsghdr
492 }
493
494 type RtGenmsg struct {
495         Family uint8
496 }
497
498 type NlAttr struct {
499         Len  uint16
500         Type uint16
501 }
502
503 type RtAttr struct {
504         Len  uint16
505         Type uint16
506 }
507
508 type IfInfomsg struct {
509         Family     uint8
510         X__ifi_pad uint8
511         Type       uint16
512         Index      int32
513         Flags      uint32
514         Change     uint32
515 }
516
517 type IfAddrmsg struct {
518         Family    uint8
519         Prefixlen uint8
520         Flags     uint8
521         Scope     uint8
522         Index     uint32
523 }
524
525 type RtMsg struct {
526         Family   uint8
527         Dst_len  uint8
528         Src_len  uint8
529         Tos      uint8
530         Table    uint8
531         Protocol uint8
532         Scope    uint8
533         Type     uint8
534         Flags    uint32
535 }
536
537 type RtNexthop struct {
538         Len     uint16
539         Flags   uint8
540         Hops    uint8
541         Ifindex int32
542 }
543
544 const (
545         SizeofSockFilter = 0x8
546         SizeofSockFprog  = 0x10
547 )
548
549 type SockFilter struct {
550         Code uint16
551         Jt   uint8
552         Jf   uint8
553         K    uint32
554 }
555
556 type SockFprog struct {
557         Len       uint16
558         Pad_cgo_0 [6]byte
559         Filter    *SockFilter
560 }
561
562 type InotifyEvent struct {
563         Wd     int32
564         Mask   uint32
565         Cookie uint32
566         Len    uint32
567 }
568
569 const SizeofInotifyEvent = 0x10
570
571 type PtraceRegs struct {
572         R15      uint64
573         R14      uint64
574         R13      uint64
575         R12      uint64
576         Rbp      uint64
577         Rbx      uint64
578         R11      uint64
579         R10      uint64
580         R9       uint64
581         R8       uint64
582         Rax      uint64
583         Rcx      uint64
584         Rdx      uint64
585         Rsi      uint64
586         Rdi      uint64
587         Orig_rax uint64
588         Rip      uint64
589         Cs       uint64
590         Eflags   uint64
591         Rsp      uint64
592         Ss       uint64
593         Fs_base  uint64
594         Gs_base  uint64
595         Ds       uint64
596         Es       uint64
597         Fs       uint64
598         Gs       uint64
599 }
600
601 type FdSet struct {
602         Bits [16]int64
603 }
604
605 type Sysinfo_t struct {
606         Uptime    int64
607         Loads     [3]uint64
608         Totalram  uint64
609         Freeram   uint64
610         Sharedram uint64
611         Bufferram uint64
612         Totalswap uint64
613         Freeswap  uint64
614         Procs     uint16
615         Pad       uint16
616         Pad_cgo_0 [4]byte
617         Totalhigh uint64
618         Freehigh  uint64
619         Unit      uint32
620         X_f       [0]int8
621         Pad_cgo_1 [4]byte
622 }
623
624 type Utsname struct {
625         Sysname    [65]int8
626         Nodename   [65]int8
627         Release    [65]int8
628         Version    [65]int8
629         Machine    [65]int8
630         Domainname [65]int8
631 }
632
633 type Ustat_t struct {
634         Tfree     int32
635         Pad_cgo_0 [4]byte
636         Tinode    uint64
637         Fname     [6]int8
638         Fpack     [6]int8
639         Pad_cgo_1 [4]byte
640 }
641
642 type EpollEvent struct {
643         Events uint32
644         Fd     int32
645         Pad    int32
646 }
647
648 const (
649         AT_FDCWD            = -0x64
650         AT_REMOVEDIR        = 0x200
651         AT_SYMLINK_FOLLOW   = 0x400
652         AT_SYMLINK_NOFOLLOW = 0x100
653 )
654
655 type PollFd struct {
656         Fd      int32
657         Events  int16
658         Revents int16
659 }
660
661 const (
662         POLLIN    = 0x1
663         POLLPRI   = 0x2
664         POLLOUT   = 0x4
665         POLLRDHUP = 0x2000
666         POLLERR   = 0x8
667         POLLHUP   = 0x10
668         POLLNVAL  = 0x20
669 )
670
671 type Sigset_t struct {
672         X__val [16]uint64
673 }
674
675 const _SC_PAGESIZE = 0x1e
676
677 type Termios struct {
678         Iflag  uint32
679         Oflag  uint32
680         Cflag  uint32
681         Lflag  uint32
682         Line   uint8
683         Cc     [19]uint8
684         Ispeed uint32
685         Ospeed uint32
686 }