Code refactoring for bpa operator
[icn.git] / cmd / bpa-operator / vendor / golang.org / x / sys / unix / ztypes_solaris_amd64.go
1 // cgo -godefs types_solaris.go | go run mkpost.go
2 // Code generated by the command above; see README.md. DO NOT EDIT.
3
4 // +build amd64,solaris
5
6 package unix
7
8 const (
9         SizeofPtr      = 0x8
10         SizeofShort    = 0x2
11         SizeofInt      = 0x4
12         SizeofLong     = 0x8
13         SizeofLongLong = 0x8
14         PathMax        = 0x400
15         MaxHostNameLen = 0x100
16 )
17
18 type (
19         _C_short     int16
20         _C_int       int32
21         _C_long      int64
22         _C_long_long int64
23 )
24
25 type Timespec struct {
26         Sec  int64
27         Nsec int64
28 }
29
30 type Timeval struct {
31         Sec  int64
32         Usec int64
33 }
34
35 type Timeval32 struct {
36         Sec  int32
37         Usec int32
38 }
39
40 type Tms struct {
41         Utime  int64
42         Stime  int64
43         Cutime int64
44         Cstime int64
45 }
46
47 type Utimbuf struct {
48         Actime  int64
49         Modtime int64
50 }
51
52 type Rusage struct {
53         Utime    Timeval
54         Stime    Timeval
55         Maxrss   int64
56         Ixrss    int64
57         Idrss    int64
58         Isrss    int64
59         Minflt   int64
60         Majflt   int64
61         Nswap    int64
62         Inblock  int64
63         Oublock  int64
64         Msgsnd   int64
65         Msgrcv   int64
66         Nsignals int64
67         Nvcsw    int64
68         Nivcsw   int64
69 }
70
71 type Rlimit struct {
72         Cur uint64
73         Max uint64
74 }
75
76 type _Gid_t uint32
77
78 type Stat_t struct {
79         Dev     uint64
80         Ino     uint64
81         Mode    uint32
82         Nlink   uint32
83         Uid     uint32
84         Gid     uint32
85         Rdev    uint64
86         Size    int64
87         Atim    Timespec
88         Mtim    Timespec
89         Ctim    Timespec
90         Blksize int32
91         _       [4]byte
92         Blocks  int64
93         Fstype  [16]int8
94 }
95
96 type Flock_t struct {
97         Type   int16
98         Whence int16
99         _      [4]byte
100         Start  int64
101         Len    int64
102         Sysid  int32
103         Pid    int32
104         Pad    [4]int64
105 }
106
107 type Dirent struct {
108         Ino    uint64
109         Off    int64
110         Reclen uint16
111         Name   [1]int8
112         _      [5]byte
113 }
114
115 type _Fsblkcnt_t uint64
116
117 type Statvfs_t struct {
118         Bsize    uint64
119         Frsize   uint64
120         Blocks   uint64
121         Bfree    uint64
122         Bavail   uint64
123         Files    uint64
124         Ffree    uint64
125         Favail   uint64
126         Fsid     uint64
127         Basetype [16]int8
128         Flag     uint64
129         Namemax  uint64
130         Fstr     [32]int8
131 }
132
133 type RawSockaddrInet4 struct {
134         Family uint16
135         Port   uint16
136         Addr   [4]byte /* in_addr */
137         Zero   [8]int8
138 }
139
140 type RawSockaddrInet6 struct {
141         Family         uint16
142         Port           uint16
143         Flowinfo       uint32
144         Addr           [16]byte /* in6_addr */
145         Scope_id       uint32
146         X__sin6_src_id uint32
147 }
148
149 type RawSockaddrUnix struct {
150         Family uint16
151         Path   [108]int8
152 }
153
154 type RawSockaddrDatalink struct {
155         Family uint16
156         Index  uint16
157         Type   uint8
158         Nlen   uint8
159         Alen   uint8
160         Slen   uint8
161         Data   [244]int8
162 }
163
164 type RawSockaddr struct {
165         Family uint16
166         Data   [14]int8
167 }
168
169 type RawSockaddrAny struct {
170         Addr RawSockaddr
171         Pad  [236]int8
172 }
173
174 type _Socklen uint32
175
176 type Linger struct {
177         Onoff  int32
178         Linger int32
179 }
180
181 type Iovec struct {
182         Base *int8
183         Len  uint64
184 }
185
186 type IPMreq struct {
187         Multiaddr [4]byte /* in_addr */
188         Interface [4]byte /* in_addr */
189 }
190
191 type IPv6Mreq struct {
192         Multiaddr [16]byte /* in6_addr */
193         Interface uint32
194 }
195
196 type Msghdr struct {
197         Name         *byte
198         Namelen      uint32
199         _            [4]byte
200         Iov          *Iovec
201         Iovlen       int32
202         _            [4]byte
203         Accrights    *int8
204         Accrightslen int32
205         _            [4]byte
206 }
207
208 type Cmsghdr struct {
209         Len   uint32
210         Level int32
211         Type  int32
212 }
213
214 type Inet6Pktinfo struct {
215         Addr    [16]byte /* in6_addr */
216         Ifindex uint32
217 }
218
219 type IPv6MTUInfo struct {
220         Addr RawSockaddrInet6
221         Mtu  uint32
222 }
223
224 type ICMPv6Filter struct {
225         X__icmp6_filt [8]uint32
226 }
227
228 const (
229         SizeofSockaddrInet4    = 0x10
230         SizeofSockaddrInet6    = 0x20
231         SizeofSockaddrAny      = 0xfc
232         SizeofSockaddrUnix     = 0x6e
233         SizeofSockaddrDatalink = 0xfc
234         SizeofLinger           = 0x8
235         SizeofIPMreq           = 0x8
236         SizeofIPv6Mreq         = 0x14
237         SizeofMsghdr           = 0x30
238         SizeofCmsghdr          = 0xc
239         SizeofInet6Pktinfo     = 0x14
240         SizeofIPv6MTUInfo      = 0x24
241         SizeofICMPv6Filter     = 0x20
242 )
243
244 type FdSet struct {
245         Bits [1024]int64
246 }
247
248 type Utsname struct {
249         Sysname  [257]byte
250         Nodename [257]byte
251         Release  [257]byte
252         Version  [257]byte
253         Machine  [257]byte
254 }
255
256 type Ustat_t struct {
257         Tfree  int64
258         Tinode uint64
259         Fname  [6]int8
260         Fpack  [6]int8
261         _      [4]byte
262 }
263
264 const (
265         AT_FDCWD            = 0xffd19553
266         AT_SYMLINK_NOFOLLOW = 0x1000
267         AT_SYMLINK_FOLLOW   = 0x2000
268         AT_REMOVEDIR        = 0x1
269         AT_EACCESS          = 0x4
270 )
271
272 const (
273         SizeofIfMsghdr  = 0x54
274         SizeofIfData    = 0x44
275         SizeofIfaMsghdr = 0x14
276         SizeofRtMsghdr  = 0x4c
277         SizeofRtMetrics = 0x28
278 )
279
280 type IfMsghdr struct {
281         Msglen  uint16
282         Version uint8
283         Type    uint8
284         Addrs   int32
285         Flags   int32
286         Index   uint16
287         _       [2]byte
288         Data    IfData
289 }
290
291 type IfData struct {
292         Type       uint8
293         Addrlen    uint8
294         Hdrlen     uint8
295         _          [1]byte
296         Mtu        uint32
297         Metric     uint32
298         Baudrate   uint32
299         Ipackets   uint32
300         Ierrors    uint32
301         Opackets   uint32
302         Oerrors    uint32
303         Collisions uint32
304         Ibytes     uint32
305         Obytes     uint32
306         Imcasts    uint32
307         Omcasts    uint32
308         Iqdrops    uint32
309         Noproto    uint32
310         Lastchange Timeval32
311 }
312
313 type IfaMsghdr struct {
314         Msglen  uint16
315         Version uint8
316         Type    uint8
317         Addrs   int32
318         Flags   int32
319         Index   uint16
320         _       [2]byte
321         Metric  int32
322 }
323
324 type RtMsghdr struct {
325         Msglen  uint16
326         Version uint8
327         Type    uint8
328         Index   uint16
329         _       [2]byte
330         Flags   int32
331         Addrs   int32
332         Pid     int32
333         Seq     int32
334         Errno   int32
335         Use     int32
336         Inits   uint32
337         Rmx     RtMetrics
338 }
339
340 type RtMetrics struct {
341         Locks    uint32
342         Mtu      uint32
343         Hopcount uint32
344         Expire   uint32
345         Recvpipe uint32
346         Sendpipe uint32
347         Ssthresh uint32
348         Rtt      uint32
349         Rttvar   uint32
350         Pksent   uint32
351 }
352
353 const (
354         SizeofBpfVersion = 0x4
355         SizeofBpfStat    = 0x80
356         SizeofBpfProgram = 0x10
357         SizeofBpfInsn    = 0x8
358         SizeofBpfHdr     = 0x14
359 )
360
361 type BpfVersion struct {
362         Major uint16
363         Minor uint16
364 }
365
366 type BpfStat struct {
367         Recv    uint64
368         Drop    uint64
369         Capt    uint64
370         Padding [13]uint64
371 }
372
373 type BpfProgram struct {
374         Len   uint32
375         _     [4]byte
376         Insns *BpfInsn
377 }
378
379 type BpfInsn struct {
380         Code uint16
381         Jt   uint8
382         Jf   uint8
383         K    uint32
384 }
385
386 type BpfTimeval struct {
387         Sec  int32
388         Usec int32
389 }
390
391 type BpfHdr struct {
392         Tstamp  BpfTimeval
393         Caplen  uint32
394         Datalen uint32
395         Hdrlen  uint16
396         _       [2]byte
397 }
398
399 type Termios struct {
400         Iflag uint32
401         Oflag uint32
402         Cflag uint32
403         Lflag uint32
404         Cc    [19]uint8
405         _     [1]byte
406 }
407
408 type Termio struct {
409         Iflag uint16
410         Oflag uint16
411         Cflag uint16
412         Lflag uint16
413         Line  int8
414         Cc    [8]uint8
415         _     [1]byte
416 }
417
418 type Winsize struct {
419         Row    uint16
420         Col    uint16
421         Xpixel uint16
422         Ypixel uint16
423 }
424
425 type PollFd struct {
426         Fd      int32
427         Events  int16
428         Revents int16
429 }
430
431 const (
432         POLLERR    = 0x8
433         POLLHUP    = 0x10
434         POLLIN     = 0x1
435         POLLNVAL   = 0x20
436         POLLOUT    = 0x4
437         POLLPRI    = 0x2
438         POLLRDBAND = 0x80
439         POLLRDNORM = 0x40
440         POLLWRBAND = 0x100
441         POLLWRNORM = 0x4
442 )