~juju-qa/ubuntu/yakkety/juju/juju-1.25.8

« back to all changes in this revision

Viewing changes to src/github.com/gabriel-samfira/sys/unix/ztypes_solaris_amd64.go

  • Committer: Nicholas Skaggs
  • Date: 2016-12-02 17:28:37 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161202172837-jkrbdlyjcxtrii2n
Initial commit of 1.25.6

Show diffs side-by-side

added added

removed removed

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