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