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