blob: 92336f9f92368bb7f399ceef332b0e7189e000c2 [file] [log] [blame]
David K. Bainbridge215e0242017-09-05 23:18:24 -07001// 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
78const (
79 S_IFMT = 0xf000
80 S_IFIFO = 0x1000
81 S_IFCHR = 0x2000
82 S_IFDIR = 0x4000
83 S_IFBLK = 0x6000
84 S_IFREG = 0x8000
85 S_IFLNK = 0xa000
86 S_IFSOCK = 0xc000
87 S_ISUID = 0x800
88 S_ISGID = 0x400
89 S_ISVTX = 0x200
90 S_IRUSR = 0x100
91 S_IWUSR = 0x80
92 S_IXUSR = 0x40
93)
94
95type Stat_t struct {
96 Dev uint64
97 Ino uint64
98 Mode uint32
99 Nlink uint32
100 Uid uint32
101 Gid uint32
102 Rdev uint64
103 Size int64
104 Atim Timespec
105 Mtim Timespec
106 Ctim Timespec
107 Blksize int32
108 Pad_cgo_0 [4]byte
109 Blocks int64
110 Fstype [16]int8
111}
112
113type Flock_t struct {
114 Type int16
115 Whence int16
116 Pad_cgo_0 [4]byte
117 Start int64
118 Len int64
119 Sysid int32
120 Pid int32
121 Pad [4]int64
122}
123
124type Dirent struct {
125 Ino uint64
126 Off int64
127 Reclen uint16
128 Name [1]int8
129 Pad_cgo_0 [5]byte
130}
131
132type _Fsblkcnt_t uint64
133
134type Statvfs_t struct {
135 Bsize uint64
136 Frsize uint64
137 Blocks uint64
138 Bfree uint64
139 Bavail uint64
140 Files uint64
141 Ffree uint64
142 Favail uint64
143 Fsid uint64
144 Basetype [16]int8
145 Flag uint64
146 Namemax uint64
147 Fstr [32]int8
148}
149
150type RawSockaddrInet4 struct {
151 Family uint16
152 Port uint16
153 Addr [4]byte /* in_addr */
154 Zero [8]int8
155}
156
157type RawSockaddrInet6 struct {
158 Family uint16
159 Port uint16
160 Flowinfo uint32
161 Addr [16]byte /* in6_addr */
162 Scope_id uint32
163 X__sin6_src_id uint32
164}
165
166type RawSockaddrUnix struct {
167 Family uint16
168 Path [108]int8
169}
170
171type RawSockaddrDatalink struct {
172 Family uint16
173 Index uint16
174 Type uint8
175 Nlen uint8
176 Alen uint8
177 Slen uint8
178 Data [244]int8
179}
180
181type RawSockaddr struct {
182 Family uint16
183 Data [14]int8
184}
185
186type RawSockaddrAny struct {
187 Addr RawSockaddr
188 Pad [236]int8
189}
190
191type _Socklen uint32
192
193type Linger struct {
194 Onoff int32
195 Linger int32
196}
197
198type Iovec struct {
199 Base *int8
200 Len uint64
201}
202
203type IPMreq struct {
204 Multiaddr [4]byte /* in_addr */
205 Interface [4]byte /* in_addr */
206}
207
208type IPv6Mreq struct {
209 Multiaddr [16]byte /* in6_addr */
210 Interface uint32
211}
212
213type Msghdr struct {
214 Name *byte
215 Namelen uint32
216 Pad_cgo_0 [4]byte
217 Iov *Iovec
218 Iovlen int32
219 Pad_cgo_1 [4]byte
220 Accrights *int8
221 Accrightslen int32
222 Pad_cgo_2 [4]byte
223}
224
225type Cmsghdr struct {
226 Len uint32
227 Level int32
228 Type int32
229}
230
231type Inet6Pktinfo struct {
232 Addr [16]byte /* in6_addr */
233 Ifindex uint32
234}
235
236type IPv6MTUInfo struct {
237 Addr RawSockaddrInet6
238 Mtu uint32
239}
240
241type ICMPv6Filter struct {
242 X__icmp6_filt [8]uint32
243}
244
245const (
246 SizeofSockaddrInet4 = 0x10
247 SizeofSockaddrInet6 = 0x20
248 SizeofSockaddrAny = 0xfc
249 SizeofSockaddrUnix = 0x6e
250 SizeofSockaddrDatalink = 0xfc
251 SizeofLinger = 0x8
252 SizeofIPMreq = 0x8
253 SizeofIPv6Mreq = 0x14
254 SizeofMsghdr = 0x30
255 SizeofCmsghdr = 0xc
256 SizeofInet6Pktinfo = 0x14
257 SizeofIPv6MTUInfo = 0x24
258 SizeofICMPv6Filter = 0x20
259)
260
261type FdSet struct {
262 Bits [1024]int64
263}
264
265type Utsname struct {
266 Sysname [257]int8
267 Nodename [257]int8
268 Release [257]int8
269 Version [257]int8
270 Machine [257]int8
271}
272
273type Ustat_t struct {
274 Tfree int64
275 Tinode uint64
276 Fname [6]int8
277 Fpack [6]int8
278 Pad_cgo_0 [4]byte
279}
280
281const (
282 AT_FDCWD = 0xffd19553
283 AT_SYMLINK_NOFOLLOW = 0x1000
284 AT_SYMLINK_FOLLOW = 0x2000
285 AT_REMOVEDIR = 0x1
286 AT_EACCESS = 0x4
287)
288
289const (
290 SizeofIfMsghdr = 0x54
291 SizeofIfData = 0x44
292 SizeofIfaMsghdr = 0x14
293 SizeofRtMsghdr = 0x4c
294 SizeofRtMetrics = 0x28
295)
296
297type IfMsghdr struct {
298 Msglen uint16
299 Version uint8
300 Type uint8
301 Addrs int32
302 Flags int32
303 Index uint16
304 Pad_cgo_0 [2]byte
305 Data IfData
306}
307
308type IfData struct {
309 Type uint8
310 Addrlen uint8
311 Hdrlen uint8
312 Pad_cgo_0 [1]byte
313 Mtu uint32
314 Metric uint32
315 Baudrate uint32
316 Ipackets uint32
317 Ierrors uint32
318 Opackets uint32
319 Oerrors uint32
320 Collisions uint32
321 Ibytes uint32
322 Obytes uint32
323 Imcasts uint32
324 Omcasts uint32
325 Iqdrops uint32
326 Noproto uint32
327 Lastchange Timeval32
328}
329
330type IfaMsghdr struct {
331 Msglen uint16
332 Version uint8
333 Type uint8
334 Addrs int32
335 Flags int32
336 Index uint16
337 Pad_cgo_0 [2]byte
338 Metric int32
339}
340
341type RtMsghdr struct {
342 Msglen uint16
343 Version uint8
344 Type uint8
345 Index uint16
346 Pad_cgo_0 [2]byte
347 Flags int32
348 Addrs int32
349 Pid int32
350 Seq int32
351 Errno int32
352 Use int32
353 Inits uint32
354 Rmx RtMetrics
355}
356
357type RtMetrics struct {
358 Locks uint32
359 Mtu uint32
360 Hopcount uint32
361 Expire uint32
362 Recvpipe uint32
363 Sendpipe uint32
364 Ssthresh uint32
365 Rtt uint32
366 Rttvar uint32
367 Pksent uint32
368}
369
370const (
371 SizeofBpfVersion = 0x4
372 SizeofBpfStat = 0x80
373 SizeofBpfProgram = 0x10
374 SizeofBpfInsn = 0x8
375 SizeofBpfHdr = 0x14
376)
377
378type BpfVersion struct {
379 Major uint16
380 Minor uint16
381}
382
383type BpfStat struct {
384 Recv uint64
385 Drop uint64
386 Capt uint64
387 Padding [13]uint64
388}
389
390type BpfProgram struct {
391 Len uint32
392 Pad_cgo_0 [4]byte
393 Insns *BpfInsn
394}
395
396type BpfInsn struct {
397 Code uint16
398 Jt uint8
399 Jf uint8
400 K uint32
401}
402
403type BpfTimeval struct {
404 Sec int32
405 Usec int32
406}
407
408type BpfHdr struct {
409 Tstamp BpfTimeval
410 Caplen uint32
411 Datalen uint32
412 Hdrlen uint16
413 Pad_cgo_0 [2]byte
414}
415
416const _SC_PAGESIZE = 0xb
417
418type Termios struct {
419 Iflag uint32
420 Oflag uint32
421 Cflag uint32
422 Lflag uint32
423 Cc [19]uint8
424 Pad_cgo_0 [1]byte
425}
426
427type Termio struct {
428 Iflag uint16
429 Oflag uint16
430 Cflag uint16
431 Lflag uint16
432 Line int8
433 Cc [8]uint8
434 Pad_cgo_0 [1]byte
435}
436
437type Winsize struct {
438 Row uint16
439 Col uint16
440 Xpixel uint16
441 Ypixel uint16
442}