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