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