Fix unit tests
[govpp.git] / vendor / golang.org / x / sys / unix / ztypes_linux_arm.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 arm,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       uint64
100         X__pad1   uint16
101         Pad_cgo_0 [2]byte
102         X__st_ino uint32
103         Mode      uint32
104         Nlink     uint32
105         Uid       uint32
106         Gid       uint32
107         Rdev      uint64
108         X__pad2   uint16
109         Pad_cgo_1 [6]byte
110         Size      int64
111         Blksize   int32
112         Pad_cgo_2 [4]byte
113         Blocks    int64
114         Atim      Timespec
115         Mtim      Timespec
116         Ctim      Timespec
117         Ino       uint64
118 }
119
120 type Statfs_t struct {
121         Type      int32
122         Bsize     int32
123         Blocks    uint64
124         Bfree     uint64
125         Bavail    uint64
126         Files     uint64
127         Ffree     uint64
128         Fsid      Fsid
129         Namelen   int32
130         Frsize    int32
131         Flags     int32
132         Spare     [4]int32
133         Pad_cgo_0 [4]byte
134 }
135
136 type Dirent struct {
137         Ino       uint64
138         Off       int64
139         Reclen    uint16
140         Type      uint8
141         Name      [256]uint8
142         Pad_cgo_0 [5]byte
143 }
144
145 type Fsid struct {
146         X__val [2]int32
147 }
148
149 type Flock_t struct {
150         Type      int16
151         Whence    int16
152         Pad_cgo_0 [4]byte
153         Start     int64
154         Len       int64
155         Pid       int32
156         Pad_cgo_1 [4]byte
157 }
158
159 type FscryptPolicy struct {
160         Version                   uint8
161         Contents_encryption_mode  uint8
162         Filenames_encryption_mode uint8
163         Flags                     uint8
164         Master_key_descriptor     [8]uint8
165 }
166
167 type FscryptKey struct {
168         Mode uint32
169         Raw  [64]uint8
170         Size uint32
171 }
172
173 const (
174         FADV_NORMAL     = 0x0
175         FADV_RANDOM     = 0x1
176         FADV_SEQUENTIAL = 0x2
177         FADV_WILLNEED   = 0x3
178         FADV_DONTNEED   = 0x4
179         FADV_NOREUSE    = 0x5
180 )
181
182 type RawSockaddrInet4 struct {
183         Family uint16
184         Port   uint16
185         Addr   [4]byte /* in_addr */
186         Zero   [8]uint8
187 }
188
189 type RawSockaddrInet6 struct {
190         Family   uint16
191         Port     uint16
192         Flowinfo uint32
193         Addr     [16]byte /* in6_addr */
194         Scope_id uint32
195 }
196
197 type RawSockaddrUnix struct {
198         Family uint16
199         Path   [108]int8
200 }
201
202 type RawSockaddrLinklayer struct {
203         Family   uint16
204         Protocol uint16
205         Ifindex  int32
206         Hatype   uint16
207         Pkttype  uint8
208         Halen    uint8
209         Addr     [8]uint8
210 }
211
212 type RawSockaddrNetlink struct {
213         Family uint16
214         Pad    uint16
215         Pid    uint32
216         Groups uint32
217 }
218
219 type RawSockaddrHCI struct {
220         Family  uint16
221         Dev     uint16
222         Channel uint16
223 }
224
225 type RawSockaddrCAN struct {
226         Family    uint16
227         Pad_cgo_0 [2]byte
228         Ifindex   int32
229         Addr      [8]byte
230 }
231
232 type RawSockaddrALG struct {
233         Family uint16
234         Type   [14]uint8
235         Feat   uint32
236         Mask   uint32
237         Name   [64]uint8
238 }
239
240 type RawSockaddrVM struct {
241         Family    uint16
242         Reserved1 uint16
243         Port      uint32
244         Cid       uint32
245         Zero      [4]uint8
246 }
247
248 type RawSockaddr struct {
249         Family uint16
250         Data   [14]uint8
251 }
252
253 type RawSockaddrAny struct {
254         Addr RawSockaddr
255         Pad  [96]uint8
256 }
257
258 type _Socklen uint32
259
260 type Linger struct {
261         Onoff  int32
262         Linger int32
263 }
264
265 type Iovec struct {
266         Base *byte
267         Len  uint32
268 }
269
270 type IPMreq struct {
271         Multiaddr [4]byte /* in_addr */
272         Interface [4]byte /* in_addr */
273 }
274
275 type IPMreqn struct {
276         Multiaddr [4]byte /* in_addr */
277         Address   [4]byte /* in_addr */
278         Ifindex   int32
279 }
280
281 type IPv6Mreq struct {
282         Multiaddr [16]byte /* in6_addr */
283         Interface uint32
284 }
285
286 type Msghdr struct {
287         Name       *byte
288         Namelen    uint32
289         Iov        *Iovec
290         Iovlen     uint32
291         Control    *byte
292         Controllen uint32
293         Flags      int32
294 }
295
296 type Cmsghdr struct {
297         Len   uint32
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            = 0x1c
378         SizeofCmsghdr           = 0xc
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  = 0x8
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 [2]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         Uregs [18]uint32
573 }
574
575 type FdSet struct {
576         Bits [32]int32
577 }
578
579 type Sysinfo_t struct {
580         Uptime    int32
581         Loads     [3]uint32
582         Totalram  uint32
583         Freeram   uint32
584         Sharedram uint32
585         Bufferram uint32
586         Totalswap uint32
587         Freeswap  uint32
588         Procs     uint16
589         Pad       uint16
590         Totalhigh uint32
591         Freehigh  uint32
592         Unit      uint32
593         X_f       [8]uint8
594 }
595
596 type Utsname struct {
597         Sysname    [65]uint8
598         Nodename   [65]uint8
599         Release    [65]uint8
600         Version    [65]uint8
601         Machine    [65]uint8
602         Domainname [65]uint8
603 }
604
605 type Ustat_t struct {
606         Tfree  int32
607         Tinode uint32
608         Fname  [6]uint8
609         Fpack  [6]uint8
610 }
611
612 type EpollEvent struct {
613         Events uint32
614         PadFd  int32
615         Fd     int32
616         Pad    int32
617 }
618
619 const (
620         AT_FDCWD            = -0x64
621         AT_REMOVEDIR        = 0x200
622         AT_SYMLINK_FOLLOW   = 0x400
623         AT_SYMLINK_NOFOLLOW = 0x100
624 )
625
626 type PollFd struct {
627         Fd      int32
628         Events  int16
629         Revents int16
630 }
631
632 const (
633         POLLIN    = 0x1
634         POLLPRI   = 0x2
635         POLLOUT   = 0x4
636         POLLRDHUP = 0x2000
637         POLLERR   = 0x8
638         POLLHUP   = 0x10
639         POLLNVAL  = 0x20
640 )
641
642 type Sigset_t struct {
643         X__val [32]uint32
644 }
645
646 const _SC_PAGESIZE = 0x1e
647
648 type Termios struct {
649         Iflag  uint32
650         Oflag  uint32
651         Cflag  uint32
652         Lflag  uint32
653         Line   uint8
654         Cc     [19]uint8
655         Ispeed uint32
656         Ospeed uint32
657 }