equal
deleted
inserted
replaced
1 // cgo -godefs types_solaris.go | go run mkpost.go |
1 // cgo -godefs types_solaris.go | go run mkpost.go |
2 // Code generated by the command above; see README.md. DO NOT EDIT. |
2 // Code generated by the command above; see README.md. DO NOT EDIT. |
3 |
3 |
|
4 //go:build amd64 && solaris |
4 // +build amd64,solaris |
5 // +build amd64,solaris |
5 |
6 |
6 package unix |
7 package unix |
7 |
8 |
8 const ( |
9 const ( |
86 Size int64 |
87 Size int64 |
87 Atim Timespec |
88 Atim Timespec |
88 Mtim Timespec |
89 Mtim Timespec |
89 Ctim Timespec |
90 Ctim Timespec |
90 Blksize int32 |
91 Blksize int32 |
91 _ [4]byte |
|
92 Blocks int64 |
92 Blocks int64 |
93 Fstype [16]int8 |
93 Fstype [16]int8 |
94 } |
94 } |
95 |
95 |
96 type Flock_t struct { |
96 type Flock_t struct { |
97 Type int16 |
97 Type int16 |
98 Whence int16 |
98 Whence int16 |
99 _ [4]byte |
|
100 Start int64 |
99 Start int64 |
101 Len int64 |
100 Len int64 |
102 Sysid int32 |
101 Sysid int32 |
103 Pid int32 |
102 Pid int32 |
104 Pad [4]int64 |
103 Pad [4]int64 |
136 Addr [4]byte /* in_addr */ |
135 Addr [4]byte /* in_addr */ |
137 Zero [8]int8 |
136 Zero [8]int8 |
138 } |
137 } |
139 |
138 |
140 type RawSockaddrInet6 struct { |
139 type RawSockaddrInet6 struct { |
141 Family uint16 |
140 Family uint16 |
142 Port uint16 |
141 Port uint16 |
143 Flowinfo uint32 |
142 Flowinfo uint32 |
144 Addr [16]byte /* in6_addr */ |
143 Addr [16]byte /* in6_addr */ |
145 Scope_id uint32 |
144 Scope_id uint32 |
146 X__sin6_src_id uint32 |
145 _ uint32 |
147 } |
146 } |
148 |
147 |
149 type RawSockaddrUnix struct { |
148 type RawSockaddrUnix struct { |
150 Family uint16 |
149 Family uint16 |
151 Path [108]int8 |
150 Path [108]int8 |
194 } |
193 } |
195 |
194 |
196 type Msghdr struct { |
195 type Msghdr struct { |
197 Name *byte |
196 Name *byte |
198 Namelen uint32 |
197 Namelen uint32 |
199 _ [4]byte |
|
200 Iov *Iovec |
198 Iov *Iovec |
201 Iovlen int32 |
199 Iovlen int32 |
202 _ [4]byte |
|
203 Accrights *int8 |
200 Accrights *int8 |
204 Accrightslen int32 |
201 Accrightslen int32 |
205 _ [4]byte |
202 _ [4]byte |
206 } |
203 } |
207 |
204 |
226 Addr RawSockaddrInet6 |
223 Addr RawSockaddrInet6 |
227 Mtu uint32 |
224 Mtu uint32 |
228 } |
225 } |
229 |
226 |
230 type ICMPv6Filter struct { |
227 type ICMPv6Filter struct { |
231 X__icmp6_filt [8]uint32 |
228 Filt [8]uint32 |
232 } |
229 } |
233 |
230 |
234 const ( |
231 const ( |
235 SizeofSockaddrInet4 = 0x10 |
232 SizeofSockaddrInet4 = 0x10 |
236 SizeofSockaddrInet6 = 0x20 |
233 SizeofSockaddrInet6 = 0x20 |
237 SizeofSockaddrAny = 0xfc |
234 SizeofSockaddrAny = 0xfc |
238 SizeofSockaddrUnix = 0x6e |
235 SizeofSockaddrUnix = 0x6e |
239 SizeofSockaddrDatalink = 0xfc |
236 SizeofSockaddrDatalink = 0xfc |
240 SizeofLinger = 0x8 |
237 SizeofLinger = 0x8 |
|
238 SizeofIovec = 0x10 |
241 SizeofIPMreq = 0x8 |
239 SizeofIPMreq = 0x8 |
242 SizeofIPv6Mreq = 0x14 |
240 SizeofIPv6Mreq = 0x14 |
243 SizeofMsghdr = 0x30 |
241 SizeofMsghdr = 0x30 |
244 SizeofCmsghdr = 0xc |
242 SizeofCmsghdr = 0xc |
245 SizeofInet4Pktinfo = 0xc |
243 SizeofInet4Pktinfo = 0xc |
289 Version uint8 |
287 Version uint8 |
290 Type uint8 |
288 Type uint8 |
291 Addrs int32 |
289 Addrs int32 |
292 Flags int32 |
290 Flags int32 |
293 Index uint16 |
291 Index uint16 |
294 _ [2]byte |
|
295 Data IfData |
292 Data IfData |
296 } |
293 } |
297 |
294 |
298 type IfData struct { |
295 type IfData struct { |
299 Type uint8 |
296 Type uint8 |
300 Addrlen uint8 |
297 Addrlen uint8 |
301 Hdrlen uint8 |
298 Hdrlen uint8 |
302 _ [1]byte |
|
303 Mtu uint32 |
299 Mtu uint32 |
304 Metric uint32 |
300 Metric uint32 |
305 Baudrate uint32 |
301 Baudrate uint32 |
306 Ipackets uint32 |
302 Ipackets uint32 |
307 Ierrors uint32 |
303 Ierrors uint32 |
322 Version uint8 |
318 Version uint8 |
323 Type uint8 |
319 Type uint8 |
324 Addrs int32 |
320 Addrs int32 |
325 Flags int32 |
321 Flags int32 |
326 Index uint16 |
322 Index uint16 |
327 _ [2]byte |
|
328 Metric int32 |
323 Metric int32 |
329 } |
324 } |
330 |
325 |
331 type RtMsghdr struct { |
326 type RtMsghdr struct { |
332 Msglen uint16 |
327 Msglen uint16 |
333 Version uint8 |
328 Version uint8 |
334 Type uint8 |
329 Type uint8 |
335 Index uint16 |
330 Index uint16 |
336 _ [2]byte |
|
337 Flags int32 |
331 Flags int32 |
338 Addrs int32 |
332 Addrs int32 |
339 Pid int32 |
333 Pid int32 |
340 Seq int32 |
334 Seq int32 |
341 Errno int32 |
335 Errno int32 |
369 Major uint16 |
363 Major uint16 |
370 Minor uint16 |
364 Minor uint16 |
371 } |
365 } |
372 |
366 |
373 type BpfStat struct { |
367 type BpfStat struct { |
374 Recv uint64 |
368 Recv uint64 |
375 Drop uint64 |
369 Drop uint64 |
376 Capt uint64 |
370 Capt uint64 |
377 Padding [13]uint64 |
371 _ [13]uint64 |
378 } |
372 } |
379 |
373 |
380 type BpfProgram struct { |
374 type BpfProgram struct { |
381 Len uint32 |
375 Len uint32 |
382 _ [4]byte |
|
383 Insns *BpfInsn |
376 Insns *BpfInsn |
384 } |
377 } |
385 |
378 |
386 type BpfInsn struct { |
379 type BpfInsn struct { |
387 Code uint16 |
380 Code uint16 |