blob: 23ed9fe51d4cf9929772409ada72b4939b9662de [file] [log] [blame]
khenaidooac637102019-01-14 15:44:34 -05001// 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
6package unix
7
8const (
9 SizeofPtr = 0x8
10 SizeofShort = 0x2
11 SizeofInt = 0x4
12 SizeofLong = 0x8
13 SizeofLongLong = 0x8
14 PathMax = 0x400
15 MaxHostNameLen = 0x100
16)
17
18type (
19 _C_short int16
20 _C_int int32
21 _C_long int64
22 _C_long_long int64
23)
24
25type Timespec struct {
26 Sec int64
27 Nsec int64
28}
29
30type Timeval struct {
31 Sec int64
32 Usec int64
33}
34
35type Timeval32 struct {
36 Sec int32
37 Usec int32
38}
39
40type Tms struct {
41 Utime int64
42 Stime int64
43 Cutime int64
44 Cstime int64
45}
46
47type Utimbuf struct {
48 Actime int64
49 Modtime int64
50}
51
52type 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
71type Rlimit struct {
72 Cur uint64
73 Max uint64
74}
75
76type _Gid_t uint32
77
78type 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
96type 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
107type Dirent struct {
108 Ino uint64
109 Off int64
110 Reclen uint16
111 Name [1]int8
112 _ [5]byte
113}
114
115type _Fsblkcnt_t uint64
116
117type 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
133type RawSockaddrInet4 struct {
134 Family uint16
135 Port uint16
136 Addr [4]byte /* in_addr */
137 Zero [8]int8
138}
139
140type 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
149type RawSockaddrUnix struct {
150 Family uint16
151 Path [108]int8
152}
153
154type 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
164type RawSockaddr struct {
165 Family uint16
166 Data [14]int8
167}
168
169type RawSockaddrAny struct {
170 Addr RawSockaddr
171 Pad [236]int8
172}
173
174type _Socklen uint32
175
176type Linger struct {
177 Onoff int32
178 Linger int32
179}
180
181type Iovec struct {
182 Base *int8
183 Len uint64
184}
185
186type IPMreq struct {
187 Multiaddr [4]byte /* in_addr */
188 Interface [4]byte /* in_addr */
189}
190
191type IPv6Mreq struct {
192 Multiaddr [16]byte /* in6_addr */
193 Interface uint32
194}
195
196type 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
208type Cmsghdr struct {
209 Len uint32
210 Level int32
211 Type int32
212}
213
Andrea Campanella3614a922021-02-25 12:40:42 +0100214type Inet4Pktinfo struct {
215 Ifindex uint32
216 Spec_dst [4]byte /* in_addr */
217 Addr [4]byte /* in_addr */
218}
219
khenaidooac637102019-01-14 15:44:34 -0500220type Inet6Pktinfo struct {
221 Addr [16]byte /* in6_addr */
222 Ifindex uint32
223}
224
225type IPv6MTUInfo struct {
226 Addr RawSockaddrInet6
227 Mtu uint32
228}
229
230type ICMPv6Filter struct {
231 X__icmp6_filt [8]uint32
232}
233
234const (
235 SizeofSockaddrInet4 = 0x10
236 SizeofSockaddrInet6 = 0x20
237 SizeofSockaddrAny = 0xfc
238 SizeofSockaddrUnix = 0x6e
239 SizeofSockaddrDatalink = 0xfc
240 SizeofLinger = 0x8
241 SizeofIPMreq = 0x8
242 SizeofIPv6Mreq = 0x14
243 SizeofMsghdr = 0x30
244 SizeofCmsghdr = 0xc
Andrea Campanella3614a922021-02-25 12:40:42 +0100245 SizeofInet4Pktinfo = 0xc
khenaidooac637102019-01-14 15:44:34 -0500246 SizeofInet6Pktinfo = 0x14
247 SizeofIPv6MTUInfo = 0x24
248 SizeofICMPv6Filter = 0x20
249)
250
251type FdSet struct {
252 Bits [1024]int64
253}
254
255type Utsname struct {
256 Sysname [257]byte
257 Nodename [257]byte
258 Release [257]byte
259 Version [257]byte
260 Machine [257]byte
261}
262
263type Ustat_t struct {
264 Tfree int64
265 Tinode uint64
266 Fname [6]int8
267 Fpack [6]int8
268 _ [4]byte
269}
270
271const (
272 AT_FDCWD = 0xffd19553
273 AT_SYMLINK_NOFOLLOW = 0x1000
274 AT_SYMLINK_FOLLOW = 0x2000
275 AT_REMOVEDIR = 0x1
276 AT_EACCESS = 0x4
277)
278
279const (
280 SizeofIfMsghdr = 0x54
281 SizeofIfData = 0x44
282 SizeofIfaMsghdr = 0x14
283 SizeofRtMsghdr = 0x4c
284 SizeofRtMetrics = 0x28
285)
286
287type IfMsghdr struct {
288 Msglen uint16
289 Version uint8
290 Type uint8
291 Addrs int32
292 Flags int32
293 Index uint16
294 _ [2]byte
295 Data IfData
296}
297
298type IfData struct {
299 Type uint8
300 Addrlen uint8
301 Hdrlen uint8
302 _ [1]byte
303 Mtu uint32
304 Metric uint32
305 Baudrate uint32
306 Ipackets uint32
307 Ierrors uint32
308 Opackets uint32
309 Oerrors uint32
310 Collisions uint32
311 Ibytes uint32
312 Obytes uint32
313 Imcasts uint32
314 Omcasts uint32
315 Iqdrops uint32
316 Noproto uint32
317 Lastchange Timeval32
318}
319
320type IfaMsghdr struct {
321 Msglen uint16
322 Version uint8
323 Type uint8
324 Addrs int32
325 Flags int32
326 Index uint16
327 _ [2]byte
328 Metric int32
329}
330
331type RtMsghdr struct {
332 Msglen uint16
333 Version uint8
334 Type uint8
335 Index uint16
336 _ [2]byte
337 Flags int32
338 Addrs int32
339 Pid int32
340 Seq int32
341 Errno int32
342 Use int32
343 Inits uint32
344 Rmx RtMetrics
345}
346
347type RtMetrics struct {
348 Locks uint32
349 Mtu uint32
350 Hopcount uint32
351 Expire uint32
352 Recvpipe uint32
353 Sendpipe uint32
354 Ssthresh uint32
355 Rtt uint32
356 Rttvar uint32
357 Pksent uint32
358}
359
360const (
361 SizeofBpfVersion = 0x4
362 SizeofBpfStat = 0x80
363 SizeofBpfProgram = 0x10
364 SizeofBpfInsn = 0x8
365 SizeofBpfHdr = 0x14
366)
367
368type BpfVersion struct {
369 Major uint16
370 Minor uint16
371}
372
373type BpfStat struct {
374 Recv uint64
375 Drop uint64
376 Capt uint64
377 Padding [13]uint64
378}
379
380type BpfProgram struct {
381 Len uint32
382 _ [4]byte
383 Insns *BpfInsn
384}
385
386type BpfInsn struct {
387 Code uint16
388 Jt uint8
389 Jf uint8
390 K uint32
391}
392
393type BpfTimeval struct {
394 Sec int32
395 Usec int32
396}
397
398type BpfHdr struct {
399 Tstamp BpfTimeval
400 Caplen uint32
401 Datalen uint32
402 Hdrlen uint16
403 _ [2]byte
404}
405
406type Termios struct {
407 Iflag uint32
408 Oflag uint32
409 Cflag uint32
410 Lflag uint32
411 Cc [19]uint8
412 _ [1]byte
413}
414
415type Termio struct {
416 Iflag uint16
417 Oflag uint16
418 Cflag uint16
419 Lflag uint16
420 Line int8
421 Cc [8]uint8
422 _ [1]byte
423}
424
425type Winsize struct {
426 Row uint16
427 Col uint16
428 Xpixel uint16
429 Ypixel uint16
430}
431
432type PollFd struct {
433 Fd int32
434 Events int16
435 Revents int16
436}
437
438const (
439 POLLERR = 0x8
440 POLLHUP = 0x10
441 POLLIN = 0x1
442 POLLNVAL = 0x20
443 POLLOUT = 0x4
444 POLLPRI = 0x2
445 POLLRDBAND = 0x80
446 POLLRDNORM = 0x40
447 POLLWRBAND = 0x100
448 POLLWRNORM = 0x4
449)