1// Created by cgo -godefs - DO NOT EDIT
2// cgo -godefs types_solaris.go
3
4// +build amd64,solaris
5
6package syscall
7
8const (
9	sizeofPtr      = 0x8
10	sizeofShort    = 0x2
11	sizeofInt      = 0x4
12	sizeofLong     = 0x8
13	sizeofLongLong = 0x8
14	PathMax        = 0x400
15)
16
17type (
18	_C_short     int16
19	_C_int       int32
20	_C_long      int64
21	_C_long_long int64
22)
23
24type Timespec struct {
25	Sec  int64
26	Nsec int64
27}
28
29type Timeval struct {
30	Sec  int64
31	Usec int64
32}
33
34type Timeval32 struct {
35	Sec  int32
36	Usec int32
37}
38
39type Rusage struct {
40	Utime    Timeval
41	Stime    Timeval
42	Maxrss   int64
43	Ixrss    int64
44	Idrss    int64
45	Isrss    int64
46	Minflt   int64
47	Majflt   int64
48	Nswap    int64
49	Inblock  int64
50	Oublock  int64
51	Msgsnd   int64
52	Msgrcv   int64
53	Nsignals int64
54	Nvcsw    int64
55	Nivcsw   int64
56}
57
58type Rlimit struct {
59	Cur uint64
60	Max uint64
61}
62
63type _Pid_t int32
64
65type _Gid_t uint32
66
67const (
68	S_IFMT   = 0xf000
69	S_IFIFO  = 0x1000
70	S_IFCHR  = 0x2000
71	S_IFDIR  = 0x4000
72	S_IFBLK  = 0x6000
73	S_IFREG  = 0x8000
74	S_IFLNK  = 0xa000
75	S_IFSOCK = 0xc000
76	S_ISUID  = 0x800
77	S_ISGID  = 0x400
78	S_ISVTX  = 0x200
79	S_IRUSR  = 0x100
80	S_IWUSR  = 0x80
81	S_IXUSR  = 0x40
82	S_IRWXG  = 0x38
83	S_IRWXO  = 0x7
84)
85
86type Stat_t struct {
87	Dev       uint64
88	Ino       uint64
89	Mode      uint32
90	Nlink     uint32
91	Uid       uint32
92	Gid       uint32
93	Rdev      uint64
94	Size      int64
95	Atim      Timespec
96	Mtim      Timespec
97	Ctim      Timespec
98	Blksize   int32
99	Pad_cgo_0 [4]byte
100	Blocks    int64
101	Fstype    [16]int8
102}
103
104type Flock_t struct {
105	Type      int16
106	Whence    int16
107	Pad_cgo_0 [4]byte
108	Start     int64
109	Len       int64
110	Sysid     int32
111	Pid       int32
112	Pad       [4]int64
113}
114
115type Dirent struct {
116	Ino       uint64
117	Off       int64
118	Reclen    uint16
119	Name      [1]int8
120	Pad_cgo_0 [5]byte
121}
122
123type RawSockaddrInet4 struct {
124	Family uint16
125	Port   uint16
126	Addr   [4]byte /* in_addr */
127	Zero   [8]int8
128}
129
130type RawSockaddrInet6 struct {
131	Family         uint16
132	Port           uint16
133	Flowinfo       uint32
134	Addr           [16]byte /* in6_addr */
135	Scope_id       uint32
136	X__sin6_src_id uint32
137}
138
139type RawSockaddrUnix struct {
140	Family uint16
141	Path   [108]int8
142}
143
144type RawSockaddrDatalink struct {
145	Family uint16
146	Index  uint16
147	Type   uint8
148	Nlen   uint8
149	Alen   uint8
150	Slen   uint8
151	Data   [244]int8
152}
153
154type RawSockaddr struct {
155	Family uint16
156	Data   [14]int8
157}
158
159type RawSockaddrAny struct {
160	Addr RawSockaddr
161	Pad  [236]int8
162}
163
164type _Socklen uint32
165
166type Linger struct {
167	Onoff  int32
168	Linger int32
169}
170
171type Iovec struct {
172	Base *int8
173	Len  uint64
174}
175
176type IPMreq struct {
177	Multiaddr [4]byte /* in_addr */
178	Interface [4]byte /* in_addr */
179}
180
181type IPv6Mreq struct {
182	Multiaddr [16]byte /* in6_addr */
183	Interface uint32
184}
185
186type Msghdr struct {
187	Name         *byte
188	Namelen      uint32
189	Pad_cgo_0    [4]byte
190	Iov          *Iovec
191	Iovlen       int32
192	Pad_cgo_1    [4]byte
193	Accrights    *int8
194	Accrightslen int32
195	Pad_cgo_2    [4]byte
196}
197
198type Cmsghdr struct {
199	Len   uint32
200	Level int32
201	Type  int32
202}
203
204type Inet6Pktinfo struct {
205	Addr    [16]byte /* in6_addr */
206	Ifindex uint32
207}
208
209type IPv6MTUInfo struct {
210	Addr RawSockaddrInet6
211	Mtu  uint32
212}
213
214type ICMPv6Filter struct {
215	X__icmp6_filt [8]uint32
216}
217
218const (
219	SizeofSockaddrInet4    = 0x10
220	SizeofSockaddrInet6    = 0x20
221	SizeofSockaddrAny      = 0xfc
222	SizeofSockaddrUnix     = 0x6e
223	SizeofSockaddrDatalink = 0xfc
224	SizeofLinger           = 0x8
225	SizeofIPMreq           = 0x8
226	SizeofIPv6Mreq         = 0x14
227	SizeofMsghdr           = 0x30
228	SizeofCmsghdr          = 0xc
229	SizeofInet6Pktinfo     = 0x14
230	SizeofIPv6MTUInfo      = 0x24
231	SizeofICMPv6Filter     = 0x20
232)
233
234type FdSet struct {
235	Bits [1024]int64
236}
237
238const (
239	SizeofIfMsghdr  = 0x54
240	SizeofIfData    = 0x44
241	SizeofIfaMsghdr = 0x14
242	SizeofRtMsghdr  = 0x4c
243	SizeofRtMetrics = 0x28
244)
245
246type IfMsghdr struct {
247	Msglen    uint16
248	Version   uint8
249	Type      uint8
250	Addrs     int32
251	Flags     int32
252	Index     uint16
253	Pad_cgo_0 [2]byte
254	Data      IfData
255}
256
257type IfData struct {
258	Type       uint8
259	Addrlen    uint8
260	Hdrlen     uint8
261	Pad_cgo_0  [1]byte
262	Mtu        uint32
263	Metric     uint32
264	Baudrate   uint32
265	Ipackets   uint32
266	Ierrors    uint32
267	Opackets   uint32
268	Oerrors    uint32
269	Collisions uint32
270	Ibytes     uint32
271	Obytes     uint32
272	Imcasts    uint32
273	Omcasts    uint32
274	Iqdrops    uint32
275	Noproto    uint32
276	Lastchange Timeval32
277}
278
279type IfaMsghdr struct {
280	Msglen    uint16
281	Version   uint8
282	Type      uint8
283	Addrs     int32
284	Flags     int32
285	Index     uint16
286	Pad_cgo_0 [2]byte
287	Metric    int32
288}
289
290type RtMsghdr struct {
291	Msglen    uint16
292	Version   uint8
293	Type      uint8
294	Index     uint16
295	Pad_cgo_0 [2]byte
296	Flags     int32
297	Addrs     int32
298	Pid       int32
299	Seq       int32
300	Errno     int32
301	Use       int32
302	Inits     uint32
303	Rmx       RtMetrics
304}
305
306type RtMetrics struct {
307	Locks    uint32
308	Mtu      uint32
309	Hopcount uint32
310	Expire   uint32
311	Recvpipe uint32
312	Sendpipe uint32
313	Ssthresh uint32
314	Rtt      uint32
315	Rttvar   uint32
316	Pksent   uint32
317}
318
319const (
320	SizeofBpfVersion = 0x4
321	SizeofBpfStat    = 0x80
322	SizeofBpfProgram = 0x10
323	SizeofBpfInsn    = 0x8
324	SizeofBpfHdr     = 0x14
325)
326
327type BpfVersion struct {
328	Major uint16
329	Minor uint16
330}
331
332type BpfStat struct {
333	Recv    uint64
334	Drop    uint64
335	Capt    uint64
336	Padding [13]uint64
337}
338
339type BpfProgram struct {
340	Len       uint32
341	Pad_cgo_0 [4]byte
342	Insns     *BpfInsn
343}
344
345type BpfInsn struct {
346	Code uint16
347	Jt   uint8
348	Jf   uint8
349	K    uint32
350}
351
352type BpfTimeval struct {
353	Sec  int32
354	Usec int32
355}
356
357type BpfHdr struct {
358	Tstamp    BpfTimeval
359	Caplen    uint32
360	Datalen   uint32
361	Hdrlen    uint16
362	Pad_cgo_0 [2]byte
363}
364
365const (
366	_AT_FDCWD = 0xffd19553
367)
368
369type Termios struct {
370	Iflag     uint32
371	Oflag     uint32
372	Cflag     uint32
373	Lflag     uint32
374	Cc        [19]uint8
375	Pad_cgo_0 [1]byte
376}
377