initial commit
[govpp.git] / vendor / golang.org / x / sys / unix / ztypes_linux_s390x.go
1 // cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go
2 // Code generated by the command above; see README.md. DO NOT EDIT.
3
4 // +build s390x,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         _         [4]byte
37         Offset    int64
38         Freq      int64
39         Maxerror  int64
40         Esterror  int64
41         Status    int32
42         _         [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         _         [4]byte
52         Stabil    int64
53         Jitcnt    int64
54         Calcnt    int64
55         Errcnt    int64
56         Stbcnt    int64
57         Tai       int32
58         _         [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         _       int32
109         Rdev    uint64
110         Size    int64
111         Atim    Timespec
112         Mtim    Timespec
113         Ctim    Timespec
114         Blksize int64
115         Blocks  int64
116         _       [3]int64
117 }
118
119 type Statfs_t struct {
120         Type    uint32
121         Bsize   uint32
122         Blocks  uint64
123         Bfree   uint64
124         Bavail  uint64
125         Files   uint64
126         Ffree   uint64
127         Fsid    Fsid
128         Namelen uint32
129         Frsize  uint32
130         Flags   uint32
131         Spare   [4]uint32
132         _       [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         _      [5]byte
142 }
143
144 type Fsid struct {
145         _ [2]int32
146 }
147
148 type Flock_t struct {
149         Type   int16
150         Whence int16
151         _      [4]byte
152         Start  int64
153         Len    int64
154         Pid    int32
155         _      [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   = 0x6
178         FADV_NOREUSE    = 0x7
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         _       [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         _          [4]byte
289         Iov        *Iovec
290         Iovlen     uint64
291         Control    *byte
292         Controllen uint64
293         Flags      int32
294         _          [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         _              [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         _      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         _      [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         Psw                      PtracePsw
574         Gprs                     [16]uint64
575         Acrs                     [16]uint32
576         Orig_gpr2                uint64
577         Fp_regs                  PtraceFpregs
578         Per_info                 PtracePer
579         Ieee_instruction_pointer uint64
580 }
581
582 type PtracePsw struct {
583         Mask uint64
584         Addr uint64
585 }
586
587 type PtraceFpregs struct {
588         Fpc  uint32
589         _    [4]byte
590         Fprs [16]float64
591 }
592
593 type PtracePer struct {
594         _             [0]uint64
595         _             [24]byte
596         _             [8]byte
597         Starting_addr uint64
598         Ending_addr   uint64
599         Perc_atmid    uint16
600         _             [6]byte
601         Address       uint64
602         Access_id     uint8
603         _             [7]byte
604 }
605
606 type FdSet struct {
607         Bits [16]int64
608 }
609
610 type Sysinfo_t struct {
611         Uptime    int64
612         Loads     [3]uint64
613         Totalram  uint64
614         Freeram   uint64
615         Sharedram uint64
616         Bufferram uint64
617         Totalswap uint64
618         Freeswap  uint64
619         Procs     uint16
620         Pad       uint16
621         _         [4]byte
622         Totalhigh uint64
623         Freehigh  uint64
624         Unit      uint32
625         _         [0]int8
626         _         [4]byte
627 }
628
629 type Utsname struct {
630         Sysname    [65]int8
631         Nodename   [65]int8
632         Release    [65]int8
633         Version    [65]int8
634         Machine    [65]int8
635         Domainname [65]int8
636 }
637
638 type Ustat_t struct {
639         Tfree  int32
640         _      [4]byte
641         Tinode uint64
642         Fname  [6]int8
643         Fpack  [6]int8
644         _      [4]byte
645 }
646
647 type EpollEvent struct {
648         Events uint32
649         _      int32
650         Fd     int32
651         Pad    int32
652 }
653
654 const (
655         AT_FDCWD            = -0x64
656         AT_REMOVEDIR        = 0x200
657         AT_SYMLINK_FOLLOW   = 0x400
658         AT_SYMLINK_NOFOLLOW = 0x100
659 )
660
661 type PollFd struct {
662         Fd      int32
663         Events  int16
664         Revents int16
665 }
666
667 const (
668         POLLIN    = 0x1
669         POLLPRI   = 0x2
670         POLLOUT   = 0x4
671         POLLRDHUP = 0x2000
672         POLLERR   = 0x8
673         POLLHUP   = 0x10
674         POLLNVAL  = 0x20
675 )
676
677 type Sigset_t struct {
678         _ [16]uint64
679 }
680
681 const _SC_PAGESIZE = 0x1e
682
683 type Termios struct {
684         Iflag  uint32
685         Oflag  uint32
686         Cflag  uint32
687         Lflag  uint32
688         Line   uint8
689         Cc     [19]uint8
690         Ispeed uint32
691         Ospeed uint32
692 }