OSDN Git Service

new repo
[bytom/vapor.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 type KeyctlDHParams struct {
170         Private int32
171         Prime   int32
172         Base    int32
173 }
174
175 const (
176         FADV_NORMAL     = 0x0
177         FADV_RANDOM     = 0x1
178         FADV_SEQUENTIAL = 0x2
179         FADV_WILLNEED   = 0x3
180         FADV_DONTNEED   = 0x4
181         FADV_NOREUSE    = 0x5
182 )
183
184 type RawSockaddrInet4 struct {
185         Family uint16
186         Port   uint16
187         Addr   [4]byte /* in_addr */
188         Zero   [8]uint8
189 }
190
191 type RawSockaddrInet6 struct {
192         Family   uint16
193         Port     uint16
194         Flowinfo uint32
195         Addr     [16]byte /* in6_addr */
196         Scope_id uint32
197 }
198
199 type RawSockaddrUnix struct {
200         Family uint16
201         Path   [108]int8
202 }
203
204 type RawSockaddrLinklayer struct {
205         Family   uint16
206         Protocol uint16
207         Ifindex  int32
208         Hatype   uint16
209         Pkttype  uint8
210         Halen    uint8
211         Addr     [8]uint8
212 }
213
214 type RawSockaddrNetlink struct {
215         Family uint16
216         Pad    uint16
217         Pid    uint32
218         Groups uint32
219 }
220
221 type RawSockaddrHCI struct {
222         Family  uint16
223         Dev     uint16
224         Channel uint16
225 }
226
227 type RawSockaddrCAN struct {
228         Family    uint16
229         Pad_cgo_0 [2]byte
230         Ifindex   int32
231         Addr      [8]byte
232 }
233
234 type RawSockaddrALG struct {
235         Family uint16
236         Type   [14]uint8
237         Feat   uint32
238         Mask   uint32
239         Name   [64]uint8
240 }
241
242 type RawSockaddrVM struct {
243         Family    uint16
244         Reserved1 uint16
245         Port      uint32
246         Cid       uint32
247         Zero      [4]uint8
248 }
249
250 type RawSockaddr struct {
251         Family uint16
252         Data   [14]int8
253 }
254
255 type RawSockaddrAny struct {
256         Addr RawSockaddr
257         Pad  [96]int8
258 }
259
260 type _Socklen uint32
261
262 type Linger struct {
263         Onoff  int32
264         Linger int32
265 }
266
267 type Iovec struct {
268         Base *byte
269         Len  uint32
270 }
271
272 type IPMreq struct {
273         Multiaddr [4]byte /* in_addr */
274         Interface [4]byte /* in_addr */
275 }
276
277 type IPMreqn struct {
278         Multiaddr [4]byte /* in_addr */
279         Address   [4]byte /* in_addr */
280         Ifindex   int32
281 }
282
283 type IPv6Mreq struct {
284         Multiaddr [16]byte /* in6_addr */
285         Interface uint32
286 }
287
288 type PacketMreq struct {
289         Ifindex int32
290         Type    uint16
291         Alen    uint16
292         Address [8]uint8
293 }
294
295 type Msghdr struct {
296         Name       *byte
297         Namelen    uint32
298         Iov        *Iovec
299         Iovlen     uint32
300         Control    *byte
301         Controllen uint32
302         Flags      int32
303 }
304
305 type Cmsghdr struct {
306         Len   uint32
307         Level int32
308         Type  int32
309 }
310
311 type Inet4Pktinfo struct {
312         Ifindex  int32
313         Spec_dst [4]byte /* in_addr */
314         Addr     [4]byte /* in_addr */
315 }
316
317 type Inet6Pktinfo struct {
318         Addr    [16]byte /* in6_addr */
319         Ifindex uint32
320 }
321
322 type IPv6MTUInfo struct {
323         Addr RawSockaddrInet6
324         Mtu  uint32
325 }
326
327 type ICMPv6Filter struct {
328         Data [8]uint32
329 }
330
331 type Ucred struct {
332         Pid int32
333         Uid uint32
334         Gid uint32
335 }
336
337 type TCPInfo struct {
338         State          uint8
339         Ca_state       uint8
340         Retransmits    uint8
341         Probes         uint8
342         Backoff        uint8
343         Options        uint8
344         Pad_cgo_0      [2]byte
345         Rto            uint32
346         Ato            uint32
347         Snd_mss        uint32
348         Rcv_mss        uint32
349         Unacked        uint32
350         Sacked         uint32
351         Lost           uint32
352         Retrans        uint32
353         Fackets        uint32
354         Last_data_sent uint32
355         Last_ack_sent  uint32
356         Last_data_recv uint32
357         Last_ack_recv  uint32
358         Pmtu           uint32
359         Rcv_ssthresh   uint32
360         Rtt            uint32
361         Rttvar         uint32
362         Snd_ssthresh   uint32
363         Snd_cwnd       uint32
364         Advmss         uint32
365         Reordering     uint32
366         Rcv_rtt        uint32
367         Rcv_space      uint32
368         Total_retrans  uint32
369 }
370
371 const (
372         SizeofSockaddrInet4     = 0x10
373         SizeofSockaddrInet6     = 0x1c
374         SizeofSockaddrAny       = 0x70
375         SizeofSockaddrUnix      = 0x6e
376         SizeofSockaddrLinklayer = 0x14
377         SizeofSockaddrNetlink   = 0xc
378         SizeofSockaddrHCI       = 0x6
379         SizeofSockaddrCAN       = 0x10
380         SizeofSockaddrALG       = 0x58
381         SizeofSockaddrVM        = 0x10
382         SizeofLinger            = 0x8
383         SizeofIovec             = 0x8
384         SizeofIPMreq            = 0x8
385         SizeofIPMreqn           = 0xc
386         SizeofIPv6Mreq          = 0x14
387         SizeofPacketMreq        = 0x10
388         SizeofMsghdr            = 0x1c
389         SizeofCmsghdr           = 0xc
390         SizeofInet4Pktinfo      = 0xc
391         SizeofInet6Pktinfo      = 0x14
392         SizeofIPv6MTUInfo       = 0x20
393         SizeofICMPv6Filter      = 0x20
394         SizeofUcred             = 0xc
395         SizeofTCPInfo           = 0x68
396 )
397
398 const (
399         IFA_UNSPEC          = 0x0
400         IFA_ADDRESS         = 0x1
401         IFA_LOCAL           = 0x2
402         IFA_LABEL           = 0x3
403         IFA_BROADCAST       = 0x4
404         IFA_ANYCAST         = 0x5
405         IFA_CACHEINFO       = 0x6
406         IFA_MULTICAST       = 0x7
407         IFLA_UNSPEC         = 0x0
408         IFLA_ADDRESS        = 0x1
409         IFLA_BROADCAST      = 0x2
410         IFLA_IFNAME         = 0x3
411         IFLA_MTU            = 0x4
412         IFLA_LINK           = 0x5
413         IFLA_QDISC          = 0x6
414         IFLA_STATS          = 0x7
415         IFLA_COST           = 0x8
416         IFLA_PRIORITY       = 0x9
417         IFLA_MASTER         = 0xa
418         IFLA_WIRELESS       = 0xb
419         IFLA_PROTINFO       = 0xc
420         IFLA_TXQLEN         = 0xd
421         IFLA_MAP            = 0xe
422         IFLA_WEIGHT         = 0xf
423         IFLA_OPERSTATE      = 0x10
424         IFLA_LINKMODE       = 0x11
425         IFLA_LINKINFO       = 0x12
426         IFLA_NET_NS_PID     = 0x13
427         IFLA_IFALIAS        = 0x14
428         IFLA_MAX            = 0x2b
429         RT_SCOPE_UNIVERSE   = 0x0
430         RT_SCOPE_SITE       = 0xc8
431         RT_SCOPE_LINK       = 0xfd
432         RT_SCOPE_HOST       = 0xfe
433         RT_SCOPE_NOWHERE    = 0xff
434         RT_TABLE_UNSPEC     = 0x0
435         RT_TABLE_COMPAT     = 0xfc
436         RT_TABLE_DEFAULT    = 0xfd
437         RT_TABLE_MAIN       = 0xfe
438         RT_TABLE_LOCAL      = 0xff
439         RT_TABLE_MAX        = 0xffffffff
440         RTA_UNSPEC          = 0x0
441         RTA_DST             = 0x1
442         RTA_SRC             = 0x2
443         RTA_IIF             = 0x3
444         RTA_OIF             = 0x4
445         RTA_GATEWAY         = 0x5
446         RTA_PRIORITY        = 0x6
447         RTA_PREFSRC         = 0x7
448         RTA_METRICS         = 0x8
449         RTA_MULTIPATH       = 0x9
450         RTA_FLOW            = 0xb
451         RTA_CACHEINFO       = 0xc
452         RTA_TABLE           = 0xf
453         RTN_UNSPEC          = 0x0
454         RTN_UNICAST         = 0x1
455         RTN_LOCAL           = 0x2
456         RTN_BROADCAST       = 0x3
457         RTN_ANYCAST         = 0x4
458         RTN_MULTICAST       = 0x5
459         RTN_BLACKHOLE       = 0x6
460         RTN_UNREACHABLE     = 0x7
461         RTN_PROHIBIT        = 0x8
462         RTN_THROW           = 0x9
463         RTN_NAT             = 0xa
464         RTN_XRESOLVE        = 0xb
465         RTNLGRP_NONE        = 0x0
466         RTNLGRP_LINK        = 0x1
467         RTNLGRP_NOTIFY      = 0x2
468         RTNLGRP_NEIGH       = 0x3
469         RTNLGRP_TC          = 0x4
470         RTNLGRP_IPV4_IFADDR = 0x5
471         RTNLGRP_IPV4_MROUTE = 0x6
472         RTNLGRP_IPV4_ROUTE  = 0x7
473         RTNLGRP_IPV4_RULE   = 0x8
474         RTNLGRP_IPV6_IFADDR = 0x9
475         RTNLGRP_IPV6_MROUTE = 0xa
476         RTNLGRP_IPV6_ROUTE  = 0xb
477         RTNLGRP_IPV6_IFINFO = 0xc
478         RTNLGRP_IPV6_PREFIX = 0x12
479         RTNLGRP_IPV6_RULE   = 0x13
480         RTNLGRP_ND_USEROPT  = 0x14
481         SizeofNlMsghdr      = 0x10
482         SizeofNlMsgerr      = 0x14
483         SizeofRtGenmsg      = 0x1
484         SizeofNlAttr        = 0x4
485         SizeofRtAttr        = 0x4
486         SizeofIfInfomsg     = 0x10
487         SizeofIfAddrmsg     = 0x8
488         SizeofRtMsg         = 0xc
489         SizeofRtNexthop     = 0x8
490 )
491
492 type NlMsghdr struct {
493         Len   uint32
494         Type  uint16
495         Flags uint16
496         Seq   uint32
497         Pid   uint32
498 }
499
500 type NlMsgerr struct {
501         Error int32
502         Msg   NlMsghdr
503 }
504
505 type RtGenmsg struct {
506         Family uint8
507 }
508
509 type NlAttr struct {
510         Len  uint16
511         Type uint16
512 }
513
514 type RtAttr struct {
515         Len  uint16
516         Type uint16
517 }
518
519 type IfInfomsg struct {
520         Family     uint8
521         X__ifi_pad uint8
522         Type       uint16
523         Index      int32
524         Flags      uint32
525         Change     uint32
526 }
527
528 type IfAddrmsg struct {
529         Family    uint8
530         Prefixlen uint8
531         Flags     uint8
532         Scope     uint8
533         Index     uint32
534 }
535
536 type RtMsg struct {
537         Family   uint8
538         Dst_len  uint8
539         Src_len  uint8
540         Tos      uint8
541         Table    uint8
542         Protocol uint8
543         Scope    uint8
544         Type     uint8
545         Flags    uint32
546 }
547
548 type RtNexthop struct {
549         Len     uint16
550         Flags   uint8
551         Hops    uint8
552         Ifindex int32
553 }
554
555 const (
556         SizeofSockFilter = 0x8
557         SizeofSockFprog  = 0x8
558 )
559
560 type SockFilter struct {
561         Code uint16
562         Jt   uint8
563         Jf   uint8
564         K    uint32
565 }
566
567 type SockFprog struct {
568         Len       uint16
569         Pad_cgo_0 [2]byte
570         Filter    *SockFilter
571 }
572
573 type InotifyEvent struct {
574         Wd     int32
575         Mask   uint32
576         Cookie uint32
577         Len    uint32
578 }
579
580 const SizeofInotifyEvent = 0x10
581
582 type PtraceRegs struct {
583         Ebx      int32
584         Ecx      int32
585         Edx      int32
586         Esi      int32
587         Edi      int32
588         Ebp      int32
589         Eax      int32
590         Xds      int32
591         Xes      int32
592         Xfs      int32
593         Xgs      int32
594         Orig_eax int32
595         Eip      int32
596         Xcs      int32
597         Eflags   int32
598         Esp      int32
599         Xss      int32
600 }
601
602 type FdSet struct {
603         Bits [32]int32
604 }
605
606 type Sysinfo_t struct {
607         Uptime    int32
608         Loads     [3]uint32
609         Totalram  uint32
610         Freeram   uint32
611         Sharedram uint32
612         Bufferram uint32
613         Totalswap uint32
614         Freeswap  uint32
615         Procs     uint16
616         Pad       uint16
617         Totalhigh uint32
618         Freehigh  uint32
619         Unit      uint32
620         X_f       [8]int8
621 }
622
623 type Utsname struct {
624         Sysname    [65]int8
625         Nodename   [65]int8
626         Release    [65]int8
627         Version    [65]int8
628         Machine    [65]int8
629         Domainname [65]int8
630 }
631
632 type Ustat_t struct {
633         Tfree  int32
634         Tinode uint32
635         Fname  [6]int8
636         Fpack  [6]int8
637 }
638
639 type EpollEvent struct {
640         Events uint32
641         Fd     int32
642         Pad    int32
643 }
644
645 const (
646         AT_FDCWD            = -0x64
647         AT_REMOVEDIR        = 0x200
648         AT_SYMLINK_FOLLOW   = 0x400
649         AT_SYMLINK_NOFOLLOW = 0x100
650 )
651
652 type PollFd struct {
653         Fd      int32
654         Events  int16
655         Revents int16
656 }
657
658 const (
659         POLLIN    = 0x1
660         POLLPRI   = 0x2
661         POLLOUT   = 0x4
662         POLLRDHUP = 0x2000
663         POLLERR   = 0x8
664         POLLHUP   = 0x10
665         POLLNVAL  = 0x20
666 )
667
668 type Sigset_t struct {
669         X__val [32]uint32
670 }
671
672 const RNDGETENTCNT = 0x80045200
673
674 const PERF_IOC_FLAG_GROUP = 0x1
675
676 const _SC_PAGESIZE = 0x1e
677
678 type Termios struct {
679         Iflag  uint32
680         Oflag  uint32
681         Cflag  uint32
682         Lflag  uint32
683         Line   uint8
684         Cc     [19]uint8
685         Ispeed uint32
686         Ospeed uint32
687 }
688
689 type Winsize struct {
690         Row    uint16
691         Col    uint16
692         Xpixel uint16
693         Ypixel uint16
694 }
695
696 type Taskstats struct {
697         Version                   uint16
698         Pad_cgo_0                 [2]byte
699         Ac_exitcode               uint32
700         Ac_flag                   uint8
701         Ac_nice                   uint8
702         Pad_cgo_1                 [6]byte
703         Cpu_count                 uint64
704         Cpu_delay_total           uint64
705         Blkio_count               uint64
706         Blkio_delay_total         uint64
707         Swapin_count              uint64
708         Swapin_delay_total        uint64
709         Cpu_run_real_total        uint64
710         Cpu_run_virtual_total     uint64
711         Ac_comm                   [32]int8
712         Ac_sched                  uint8
713         Ac_pad                    [3]uint8
714         Pad_cgo_2                 [4]byte
715         Ac_uid                    uint32
716         Ac_gid                    uint32
717         Ac_pid                    uint32
718         Ac_ppid                   uint32
719         Ac_btime                  uint32
720         Pad_cgo_3                 [4]byte
721         Ac_etime                  uint64
722         Ac_utime                  uint64
723         Ac_stime                  uint64
724         Ac_minflt                 uint64
725         Ac_majflt                 uint64
726         Coremem                   uint64
727         Virtmem                   uint64
728         Hiwater_rss               uint64
729         Hiwater_vm                uint64
730         Read_char                 uint64
731         Write_char                uint64
732         Read_syscalls             uint64
733         Write_syscalls            uint64
734         Read_bytes                uint64
735         Write_bytes               uint64
736         Cancelled_write_bytes     uint64
737         Nvcsw                     uint64
738         Nivcsw                    uint64
739         Ac_utimescaled            uint64
740         Ac_stimescaled            uint64
741         Cpu_scaled_run_real_total uint64
742         Freepages_count           uint64
743         Freepages_delay_total     uint64
744 }
745
746 const (
747         TASKSTATS_CMD_UNSPEC                  = 0x0
748         TASKSTATS_CMD_GET                     = 0x1
749         TASKSTATS_CMD_NEW                     = 0x2
750         TASKSTATS_TYPE_UNSPEC                 = 0x0
751         TASKSTATS_TYPE_PID                    = 0x1
752         TASKSTATS_TYPE_TGID                   = 0x2
753         TASKSTATS_TYPE_STATS                  = 0x3
754         TASKSTATS_TYPE_AGGR_PID               = 0x4
755         TASKSTATS_TYPE_AGGR_TGID              = 0x5
756         TASKSTATS_TYPE_NULL                   = 0x6
757         TASKSTATS_CMD_ATTR_UNSPEC             = 0x0
758         TASKSTATS_CMD_ATTR_PID                = 0x1
759         TASKSTATS_CMD_ATTR_TGID               = 0x2
760         TASKSTATS_CMD_ATTR_REGISTER_CPUMASK   = 0x3
761         TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4
762 )
763
764 type Genlmsghdr struct {
765         Cmd      uint8
766         Version  uint8
767         Reserved uint16
768 }
769
770 const (
771         CTRL_CMD_UNSPEC            = 0x0
772         CTRL_CMD_NEWFAMILY         = 0x1
773         CTRL_CMD_DELFAMILY         = 0x2
774         CTRL_CMD_GETFAMILY         = 0x3
775         CTRL_CMD_NEWOPS            = 0x4
776         CTRL_CMD_DELOPS            = 0x5
777         CTRL_CMD_GETOPS            = 0x6
778         CTRL_CMD_NEWMCAST_GRP      = 0x7
779         CTRL_CMD_DELMCAST_GRP      = 0x8
780         CTRL_CMD_GETMCAST_GRP      = 0x9
781         CTRL_ATTR_UNSPEC           = 0x0
782         CTRL_ATTR_FAMILY_ID        = 0x1
783         CTRL_ATTR_FAMILY_NAME      = 0x2
784         CTRL_ATTR_VERSION          = 0x3
785         CTRL_ATTR_HDRSIZE          = 0x4
786         CTRL_ATTR_MAXATTR          = 0x5
787         CTRL_ATTR_OPS              = 0x6
788         CTRL_ATTR_MCAST_GROUPS     = 0x7
789         CTRL_ATTR_OP_UNSPEC        = 0x0
790         CTRL_ATTR_OP_ID            = 0x1
791         CTRL_ATTR_OP_FLAGS         = 0x2
792         CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0
793         CTRL_ATTR_MCAST_GRP_NAME   = 0x1
794         CTRL_ATTR_MCAST_GRP_ID     = 0x2
795 )