initial commit
[govpp.git] / vendor / golang.org / x / sys / unix / ztypes_linux_mips.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 mips,linux
5
6 package unix
7
8 const (
9         sizeofPtr      = 0x4
10         sizeofShort    = 0x2
11         sizeofInt      = 0x4
12         sizeofLong     = 0x4
13         sizeofLongLong = 0x8
14         PathMax        = 0x1000
15 )
16
17 type (
18         _C_short     int16
19         _C_int       int32
20         _C_long      int32
21         _C_long_long int64
22 )
23
24 type Timespec struct {
25         Sec  int32
26         Nsec int32
27 }
28
29 type Timeval struct {
30         Sec  int32
31         Usec int32
32 }
33
34 type 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
58 type Time_t int32
59
60 type Tms struct {
61         Utime  int32
62         Stime  int32
63         Cutime int32
64         Cstime int32
65 }
66
67 type Utimbuf struct {
68         Actime  int32
69         Modtime int32
70 }
71
72 type 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
91 type Rlimit struct {
92         Cur uint64
93         Max uint64
94 }
95
96 type _Gid_t uint32
97
98 type Stat_t struct {
99         Dev     uint32
100         Pad1    [3]int32
101         Ino     uint64
102         Mode    uint32
103         Nlink   uint32
104         Uid     uint32
105         Gid     uint32
106         Rdev    uint32
107         Pad2    [3]int32
108         Size    int64
109         Atim    Timespec
110         Mtim    Timespec
111         Ctim    Timespec
112         Blksize int32
113         Pad4    int32
114         Blocks  int64
115         Pad5    [14]int32
116 }
117
118 type Statfs_t struct {
119         Type      int32
120         Bsize     int32
121         Frsize    int32
122         Pad_cgo_0 [4]byte
123         Blocks    uint64
124         Bfree     uint64
125         Files     uint64
126         Ffree     uint64
127         Bavail    uint64
128         Fsid      Fsid
129         Namelen   int32
130         Flags     int32
131         Spare     [5]int32
132         Pad_cgo_1 [4]byte
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  uint32
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         Iov        *Iovec
289         Iovlen     uint32
290         Control    *byte
291         Controllen uint32
292         Flags      int32
293 }
294
295 type Cmsghdr struct {
296         Len   uint32
297         Level int32
298         Type  int32
299 }
300
301 type Inet4Pktinfo struct {
302         Ifindex  int32
303         Spec_dst [4]byte /* in_addr */
304         Addr     [4]byte /* in_addr */
305 }
306
307 type Inet6Pktinfo struct {
308         Addr    [16]byte /* in6_addr */
309         Ifindex uint32
310 }
311
312 type IPv6MTUInfo struct {
313         Addr RawSockaddrInet6
314         Mtu  uint32
315 }
316
317 type ICMPv6Filter struct {
318         Data [8]uint32
319 }
320
321 type Ucred struct {
322         Pid int32
323         Uid uint32
324         Gid uint32
325 }
326
327 type TCPInfo struct {
328         State          uint8
329         Ca_state       uint8
330         Retransmits    uint8
331         Probes         uint8
332         Backoff        uint8
333         Options        uint8
334         Pad_cgo_0      [2]byte
335         Rto            uint32
336         Ato            uint32
337         Snd_mss        uint32
338         Rcv_mss        uint32
339         Unacked        uint32
340         Sacked         uint32
341         Lost           uint32
342         Retrans        uint32
343         Fackets        uint32
344         Last_data_sent uint32
345         Last_ack_sent  uint32
346         Last_data_recv uint32
347         Last_ack_recv  uint32
348         Pmtu           uint32
349         Rcv_ssthresh   uint32
350         Rtt            uint32
351         Rttvar         uint32
352         Snd_ssthresh   uint32
353         Snd_cwnd       uint32
354         Advmss         uint32
355         Reordering     uint32
356         Rcv_rtt        uint32
357         Rcv_space      uint32
358         Total_retrans  uint32
359 }
360
361 const (
362         SizeofSockaddrInet4     = 0x10
363         SizeofSockaddrInet6     = 0x1c
364         SizeofSockaddrAny       = 0x70
365         SizeofSockaddrUnix      = 0x6e
366         SizeofSockaddrLinklayer = 0x14
367         SizeofSockaddrNetlink   = 0xc
368         SizeofSockaddrHCI       = 0x6
369         SizeofSockaddrCAN       = 0x10
370         SizeofSockaddrALG       = 0x58
371         SizeofSockaddrVM        = 0x10
372         SizeofLinger            = 0x8
373         SizeofIPMreq            = 0x8
374         SizeofIPMreqn           = 0xc
375         SizeofIPv6Mreq          = 0x14
376         SizeofMsghdr            = 0x1c
377         SizeofCmsghdr           = 0xc
378         SizeofInet4Pktinfo      = 0xc
379         SizeofInet6Pktinfo      = 0x14
380         SizeofIPv6MTUInfo       = 0x20
381         SizeofICMPv6Filter      = 0x20
382         SizeofUcred             = 0xc
383         SizeofTCPInfo           = 0x68
384 )
385
386 const (
387         IFA_UNSPEC          = 0x0
388         IFA_ADDRESS         = 0x1
389         IFA_LOCAL           = 0x2
390         IFA_LABEL           = 0x3
391         IFA_BROADCAST       = 0x4
392         IFA_ANYCAST         = 0x5
393         IFA_CACHEINFO       = 0x6
394         IFA_MULTICAST       = 0x7
395         IFLA_UNSPEC         = 0x0
396         IFLA_ADDRESS        = 0x1
397         IFLA_BROADCAST      = 0x2
398         IFLA_IFNAME         = 0x3
399         IFLA_MTU            = 0x4
400         IFLA_LINK           = 0x5
401         IFLA_QDISC          = 0x6
402         IFLA_STATS          = 0x7
403         IFLA_COST           = 0x8
404         IFLA_PRIORITY       = 0x9
405         IFLA_MASTER         = 0xa
406         IFLA_WIRELESS       = 0xb
407         IFLA_PROTINFO       = 0xc
408         IFLA_TXQLEN         = 0xd
409         IFLA_MAP            = 0xe
410         IFLA_WEIGHT         = 0xf
411         IFLA_OPERSTATE      = 0x10
412         IFLA_LINKMODE       = 0x11
413         IFLA_LINKINFO       = 0x12
414         IFLA_NET_NS_PID     = 0x13
415         IFLA_IFALIAS        = 0x14
416         IFLA_MAX            = 0x2b
417         RT_SCOPE_UNIVERSE   = 0x0
418         RT_SCOPE_SITE       = 0xc8
419         RT_SCOPE_LINK       = 0xfd
420         RT_SCOPE_HOST       = 0xfe
421         RT_SCOPE_NOWHERE    = 0xff
422         RT_TABLE_UNSPEC     = 0x0
423         RT_TABLE_COMPAT     = 0xfc
424         RT_TABLE_DEFAULT    = 0xfd
425         RT_TABLE_MAIN       = 0xfe
426         RT_TABLE_LOCAL      = 0xff
427         RT_TABLE_MAX        = 0xffffffff
428         RTA_UNSPEC          = 0x0
429         RTA_DST             = 0x1
430         RTA_SRC             = 0x2
431         RTA_IIF             = 0x3
432         RTA_OIF             = 0x4
433         RTA_GATEWAY         = 0x5
434         RTA_PRIORITY        = 0x6
435         RTA_PREFSRC         = 0x7
436         RTA_METRICS         = 0x8
437         RTA_MULTIPATH       = 0x9
438         RTA_FLOW            = 0xb
439         RTA_CACHEINFO       = 0xc
440         RTA_TABLE           = 0xf
441         RTN_UNSPEC          = 0x0
442         RTN_UNICAST         = 0x1
443         RTN_LOCAL           = 0x2
444         RTN_BROADCAST       = 0x3
445         RTN_ANYCAST         = 0x4
446         RTN_MULTICAST       = 0x5
447         RTN_BLACKHOLE       = 0x6
448         RTN_UNREACHABLE     = 0x7
449         RTN_PROHIBIT        = 0x8
450         RTN_THROW           = 0x9
451         RTN_NAT             = 0xa
452         RTN_XRESOLVE        = 0xb
453         RTNLGRP_NONE        = 0x0
454         RTNLGRP_LINK        = 0x1
455         RTNLGRP_NOTIFY      = 0x2
456         RTNLGRP_NEIGH       = 0x3
457         RTNLGRP_TC          = 0x4
458         RTNLGRP_IPV4_IFADDR = 0x5
459         RTNLGRP_IPV4_MROUTE = 0x6
460         RTNLGRP_IPV4_ROUTE  = 0x7
461         RTNLGRP_IPV4_RULE   = 0x8
462         RTNLGRP_IPV6_IFADDR = 0x9
463         RTNLGRP_IPV6_MROUTE = 0xa
464         RTNLGRP_IPV6_ROUTE  = 0xb
465         RTNLGRP_IPV6_IFINFO = 0xc
466         RTNLGRP_IPV6_PREFIX = 0x12
467         RTNLGRP_IPV6_RULE   = 0x13
468         RTNLGRP_ND_USEROPT  = 0x14
469         SizeofNlMsghdr      = 0x10
470         SizeofNlMsgerr      = 0x14
471         SizeofRtGenmsg      = 0x1
472         SizeofNlAttr        = 0x4
473         SizeofRtAttr        = 0x4
474         SizeofIfInfomsg     = 0x10
475         SizeofIfAddrmsg     = 0x8
476         SizeofRtMsg         = 0xc
477         SizeofRtNexthop     = 0x8
478 )
479
480 type NlMsghdr struct {
481         Len   uint32
482         Type  uint16
483         Flags uint16
484         Seq   uint32
485         Pid   uint32
486 }
487
488 type NlMsgerr struct {
489         Error int32
490         Msg   NlMsghdr
491 }
492
493 type RtGenmsg struct {
494         Family uint8
495 }
496
497 type NlAttr struct {
498         Len  uint16
499         Type uint16
500 }
501
502 type RtAttr struct {
503         Len  uint16
504         Type uint16
505 }
506
507 type IfInfomsg struct {
508         Family     uint8
509         X__ifi_pad uint8
510         Type       uint16
511         Index      int32
512         Flags      uint32
513         Change     uint32
514 }
515
516 type IfAddrmsg struct {
517         Family    uint8
518         Prefixlen uint8
519         Flags     uint8
520         Scope     uint8
521         Index     uint32
522 }
523
524 type RtMsg struct {
525         Family   uint8
526         Dst_len  uint8
527         Src_len  uint8
528         Tos      uint8
529         Table    uint8
530         Protocol uint8
531         Scope    uint8
532         Type     uint8
533         Flags    uint32
534 }
535
536 type RtNexthop struct {
537         Len     uint16
538         Flags   uint8
539         Hops    uint8
540         Ifindex int32
541 }
542
543 const (
544         SizeofSockFilter = 0x8
545         SizeofSockFprog  = 0x8
546 )
547
548 type SockFilter struct {
549         Code uint16
550         Jt   uint8
551         Jf   uint8
552         K    uint32
553 }
554
555 type SockFprog struct {
556         Len       uint16
557         Pad_cgo_0 [2]byte
558         Filter    *SockFilter
559 }
560
561 type InotifyEvent struct {
562         Wd     int32
563         Mask   uint32
564         Cookie uint32
565         Len    uint32
566 }
567
568 const SizeofInotifyEvent = 0x10
569
570 type PtraceRegs struct {
571         Regs        [109]uint32
572         U_tsize     uint32
573         U_dsize     uint32
574         U_ssize     uint32
575         Start_code  uint32
576         Start_data  uint32
577         Start_stack uint32
578         Signal      int32
579         U_ar0       *byte
580         Magic       uint32
581         U_comm      [32]int8
582 }
583
584 type FdSet struct {
585         Bits [32]int32
586 }
587
588 type Sysinfo_t struct {
589         Uptime    int32
590         Loads     [3]uint32
591         Totalram  uint32
592         Freeram   uint32
593         Sharedram uint32
594         Bufferram uint32
595         Totalswap uint32
596         Freeswap  uint32
597         Procs     uint16
598         Pad       uint16
599         Totalhigh uint32
600         Freehigh  uint32
601         Unit      uint32
602         X_f       [8]int8
603 }
604
605 type Utsname struct {
606         Sysname    [65]int8
607         Nodename   [65]int8
608         Release    [65]int8
609         Version    [65]int8
610         Machine    [65]int8
611         Domainname [65]int8
612 }
613
614 type Ustat_t struct {
615         Tfree  int32
616         Tinode uint32
617         Fname  [6]int8
618         Fpack  [6]int8
619 }
620
621 type EpollEvent struct {
622         Events uint32
623         PadFd  int32
624         Fd     int32
625         Pad    int32
626 }
627
628 const (
629         AT_FDCWD            = -0x64
630         AT_REMOVEDIR        = 0x200
631         AT_SYMLINK_FOLLOW   = 0x400
632         AT_SYMLINK_NOFOLLOW = 0x100
633 )
634
635 type PollFd struct {
636         Fd      int32
637         Events  int16
638         Revents int16
639 }
640
641 const (
642         POLLIN    = 0x1
643         POLLPRI   = 0x2
644         POLLOUT   = 0x4
645         POLLRDHUP = 0x2000
646         POLLERR   = 0x8
647         POLLHUP   = 0x10
648         POLLNVAL  = 0x20
649 )
650
651 type Sigset_t struct {
652         X__val [32]uint32
653 }
654
655 const _SC_PAGESIZE = 0x1e
656
657 type Termios struct {
658         Iflag  uint32
659         Oflag  uint32
660         Cflag  uint32
661         Lflag  uint32
662         Line   uint8
663         Cc     [23]uint8
664         Ispeed uint32
665         Ospeed uint32
666 }