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