~james-page/ubuntu/trusty/gccgo-go/trunk

« back to all changes in this revision

Viewing changes to src/pkg/syscall/ztypes_openbsd_amd64.go

  • Committer: James Page
  • Date: 2014-01-22 11:10:56 UTC
  • Revision ID: james.page@canonical.com-20140122111056-hfyxm1ozm7if9t3f
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Created by cgo -godefs - DO NOT EDIT
 
2
// cgo -godefs types_openbsd.go
 
3
 
 
4
package syscall
 
5
 
 
6
const (
 
7
        sizeofPtr      = 0x8
 
8
        sizeofShort    = 0x2
 
9
        sizeofInt      = 0x4
 
10
        sizeofLong     = 0x8
 
11
        sizeofLongLong = 0x8
 
12
)
 
13
 
 
14
type (
 
15
        _C_short     int16
 
16
        _C_int       int32
 
17
        _C_long      int64
 
18
        _C_long_long int64
 
19
)
 
20
 
 
21
type Timespec struct {
 
22
        Sec       int32
 
23
        Pad_cgo_0 [4]byte
 
24
        Nsec      int64
 
25
}
 
26
 
 
27
type Timeval struct {
 
28
        Sec  int64
 
29
        Usec int64
 
30
}
 
31
 
 
32
type Rusage struct {
 
33
        Utime    Timeval
 
34
        Stime    Timeval
 
35
        Maxrss   int64
 
36
        Ixrss    int64
 
37
        Idrss    int64
 
38
        Isrss    int64
 
39
        Minflt   int64
 
40
        Majflt   int64
 
41
        Nswap    int64
 
42
        Inblock  int64
 
43
        Oublock  int64
 
44
        Msgsnd   int64
 
45
        Msgrcv   int64
 
46
        Nsignals int64
 
47
        Nvcsw    int64
 
48
        Nivcsw   int64
 
49
}
 
50
 
 
51
type Rlimit struct {
 
52
        Cur uint64
 
53
        Max uint64
 
54
}
 
55
 
 
56
type _Gid_t uint32
 
57
 
 
58
const (
 
59
        S_IFMT   = 0xf000
 
60
        S_IFIFO  = 0x1000
 
61
        S_IFCHR  = 0x2000
 
62
        S_IFDIR  = 0x4000
 
63
        S_IFBLK  = 0x6000
 
64
        S_IFREG  = 0x8000
 
65
        S_IFLNK  = 0xa000
 
66
        S_IFSOCK = 0xc000
 
67
        S_ISUID  = 0x800
 
68
        S_ISGID  = 0x400
 
69
        S_ISVTX  = 0x200
 
70
        S_IRUSR  = 0x100
 
71
        S_IWUSR  = 0x80
 
72
        S_IXUSR  = 0x40
 
73
)
 
74
 
 
75
type Stat_t struct {
 
76
        Dev            int32
 
77
        Ino            uint32
 
78
        Mode           uint32
 
79
        Nlink          uint32
 
80
        Uid            uint32
 
81
        Gid            uint32
 
82
        Rdev           int32
 
83
        Lspare0        int32
 
84
        Atim           Timespec
 
85
        Mtim           Timespec
 
86
        Ctim           Timespec
 
87
        Size           int64
 
88
        Blocks         int64
 
89
        Blksize        uint32
 
90
        Flags          uint32
 
91
        Gen            uint32
 
92
        Lspare1        int32
 
93
        X__st_birthtim Timespec
 
94
        Qspare         [2]int64
 
95
}
 
96
 
 
97
type Statfs_t struct {
 
98
        F_flags       uint32
 
99
        F_bsize       uint32
 
100
        F_iosize      uint32
 
101
        Pad_cgo_0     [4]byte
 
102
        F_blocks      uint64
 
103
        F_bfree       uint64
 
104
        F_bavail      int64
 
105
        F_files       uint64
 
106
        F_ffree       uint64
 
107
        F_favail      int64
 
108
        F_syncwrites  uint64
 
109
        F_syncreads   uint64
 
110
        F_asyncwrites uint64
 
111
        F_asyncreads  uint64
 
112
        F_fsid        Fsid
 
113
        F_namemax     uint32
 
114
        F_owner       uint32
 
115
        F_ctime       uint32
 
116
        F_spare       [3]uint32
 
117
        F_fstypename  [16]int8
 
118
        F_mntonname   [90]int8
 
119
        F_mntfromname [90]int8
 
120
        Pad_cgo_1     [4]byte
 
121
        Mount_info    [160]byte
 
122
}
 
123
 
 
124
type Flock_t struct {
 
125
        Start  int64
 
126
        Len    int64
 
127
        Pid    int32
 
128
        Type   int16
 
129
        Whence int16
 
130
}
 
131
 
 
132
type Dirent struct {
 
133
        Fileno uint32
 
134
        Reclen uint16
 
135
        Type   uint8
 
136
        Namlen uint8
 
137
        Name   [256]int8
 
138
}
 
139
 
 
140
type Fsid struct {
 
141
        Val [2]int32
 
142
}
 
143
 
 
144
type RawSockaddrInet4 struct {
 
145
        Len    uint8
 
146
        Family uint8
 
147
        Port   uint16
 
148
        Addr   [4]byte /* in_addr */
 
149
        Zero   [8]int8
 
150
}
 
151
 
 
152
type RawSockaddrInet6 struct {
 
153
        Len      uint8
 
154
        Family   uint8
 
155
        Port     uint16
 
156
        Flowinfo uint32
 
157
        Addr     [16]byte /* in6_addr */
 
158
        Scope_id uint32
 
159
}
 
160
 
 
161
type RawSockaddrUnix struct {
 
162
        Len    uint8
 
163
        Family uint8
 
164
        Path   [104]int8
 
165
}
 
166
 
 
167
type RawSockaddrDatalink struct {
 
168
        Len    uint8
 
169
        Family uint8
 
170
        Index  uint16
 
171
        Type   uint8
 
172
        Nlen   uint8
 
173
        Alen   uint8
 
174
        Slen   uint8
 
175
        Data   [24]int8
 
176
}
 
177
 
 
178
type RawSockaddr struct {
 
179
        Len    uint8
 
180
        Family uint8
 
181
        Data   [14]int8
 
182
}
 
183
 
 
184
type RawSockaddrAny struct {
 
185
        Addr RawSockaddr
 
186
        Pad  [92]int8
 
187
}
 
188
 
 
189
type _Socklen uint32
 
190
 
 
191
type Linger struct {
 
192
        Onoff  int32
 
193
        Linger int32
 
194
}
 
195
 
 
196
type Iovec struct {
 
197
        Base *byte
 
198
        Len  uint64
 
199
}
 
200
 
 
201
type IPMreq struct {
 
202
        Multiaddr [4]byte /* in_addr */
 
203
        Interface [4]byte /* in_addr */
 
204
}
 
205
 
 
206
type IPv6Mreq struct {
 
207
        Multiaddr [16]byte /* in6_addr */
 
208
        Interface uint32
 
209
}
 
210
 
 
211
type Msghdr struct {
 
212
        Name       *byte
 
213
        Namelen    uint32
 
214
        Pad_cgo_0  [4]byte
 
215
        Iov        *Iovec
 
216
        Iovlen     uint32
 
217
        Pad_cgo_1  [4]byte
 
218
        Control    *byte
 
219
        Controllen uint32
 
220
        Flags      int32
 
221
}
 
222
 
 
223
type Cmsghdr struct {
 
224
        Len   uint32
 
225
        Level int32
 
226
        Type  int32
 
227
}
 
228
 
 
229
type Inet6Pktinfo struct {
 
230
        Addr    [16]byte /* in6_addr */
 
231
        Ifindex uint32
 
232
}
 
233
 
 
234
type IPv6MTUInfo struct {
 
235
        Addr RawSockaddrInet6
 
236
        Mtu  uint32
 
237
}
 
238
 
 
239
type ICMPv6Filter struct {
 
240
        Filt [8]uint32
 
241
}
 
242
 
 
243
const (
 
244
        SizeofSockaddrInet4    = 0x10
 
245
        SizeofSockaddrInet6    = 0x1c
 
246
        SizeofSockaddrAny      = 0x6c
 
247
        SizeofSockaddrUnix     = 0x6a
 
248
        SizeofSockaddrDatalink = 0x20
 
249
        SizeofLinger           = 0x8
 
250
        SizeofIPMreq           = 0x8
 
251
        SizeofIPv6Mreq         = 0x14
 
252
        SizeofMsghdr           = 0x30
 
253
        SizeofCmsghdr          = 0xc
 
254
        SizeofInet6Pktinfo     = 0x14
 
255
        SizeofIPv6MTUInfo      = 0x20
 
256
        SizeofICMPv6Filter     = 0x20
 
257
)
 
258
 
 
259
const (
 
260
        PTRACE_TRACEME = 0x0
 
261
        PTRACE_CONT    = 0x7
 
262
        PTRACE_KILL    = 0x8
 
263
)
 
264
 
 
265
type Kevent_t struct {
 
266
        Ident  uint32
 
267
        Filter int16
 
268
        Flags  uint16
 
269
        Fflags uint32
 
270
        Data   int32
 
271
        Udata  *byte
 
272
}
 
273
 
 
274
type FdSet struct {
 
275
        Bits [32]int32
 
276
}
 
277
 
 
278
const (
 
279
        SizeofIfMsghdr         = 0xf8
 
280
        SizeofIfData           = 0xe0
 
281
        SizeofIfaMsghdr        = 0x18
 
282
        SizeofIfAnnounceMsghdr = 0x1a
 
283
        SizeofRtMsghdr         = 0x58
 
284
        SizeofRtMetrics        = 0x30
 
285
)
 
286
 
 
287
type IfMsghdr struct {
 
288
        Msglen  uint16
 
289
        Version uint8
 
290
        Type    uint8
 
291
        Hdrlen  uint16
 
292
        Index   uint16
 
293
        Tableid uint16
 
294
        Pad1    uint8
 
295
        Pad2    uint8
 
296
        Addrs   int32
 
297
        Flags   int32
 
298
        Xflags  int32
 
299
        Data    IfData
 
300
}
 
301
 
 
302
type IfData struct {
 
303
        Type         uint8
 
304
        Addrlen      uint8
 
305
        Hdrlen       uint8
 
306
        Link_state   uint8
 
307
        Mtu          uint32
 
308
        Metric       uint32
 
309
        Pad          uint32
 
310
        Baudrate     uint64
 
311
        Ipackets     uint64
 
312
        Ierrors      uint64
 
313
        Opackets     uint64
 
314
        Oerrors      uint64
 
315
        Collisions   uint64
 
316
        Ibytes       uint64
 
317
        Obytes       uint64
 
318
        Imcasts      uint64
 
319
        Omcasts      uint64
 
320
        Iqdrops      uint64
 
321
        Noproto      uint64
 
322
        Capabilities uint32
 
323
        Pad_cgo_0    [4]byte
 
324
        Lastchange   Timeval
 
325
        Mclpool      [7]Mclpool
 
326
        Pad_cgo_1    [4]byte
 
327
}
 
328
 
 
329
type IfaMsghdr struct {
 
330
        Msglen  uint16
 
331
        Version uint8
 
332
        Type    uint8
 
333
        Hdrlen  uint16
 
334
        Index   uint16
 
335
        Tableid uint16
 
336
        Pad1    uint8
 
337
        Pad2    uint8
 
338
        Addrs   int32
 
339
        Flags   int32
 
340
        Metric  int32
 
341
}
 
342
 
 
343
type IfAnnounceMsghdr struct {
 
344
        Msglen  uint16
 
345
        Version uint8
 
346
        Type    uint8
 
347
        Hdrlen  uint16
 
348
        Index   uint16
 
349
        What    uint16
 
350
        Name    [16]int8
 
351
}
 
352
 
 
353
type RtMsghdr struct {
 
354
        Msglen   uint16
 
355
        Version  uint8
 
356
        Type     uint8
 
357
        Hdrlen   uint16
 
358
        Index    uint16
 
359
        Tableid  uint16
 
360
        Priority uint8
 
361
        Mpls     uint8
 
362
        Addrs    int32
 
363
        Flags    int32
 
364
        Fmask    int32
 
365
        Pid      int32
 
366
        Seq      int32
 
367
        Errno    int32
 
368
        Inits    uint32
 
369
        Rmx      RtMetrics
 
370
}
 
371
 
 
372
type RtMetrics struct {
 
373
        Pksent   uint64
 
374
        Locks    uint32
 
375
        Mtu      uint32
 
376
        Expire   uint32
 
377
        Refcnt   uint32
 
378
        Hopcount uint32
 
379
        Recvpipe uint32
 
380
        Sendpipe uint32
 
381
        Ssthresh uint32
 
382
        Rtt      uint32
 
383
        Rttvar   uint32
 
384
}
 
385
 
 
386
type Mclpool struct {
 
387
        Grown uint32
 
388
        Alive uint16
 
389
        Hwm   uint16
 
390
        Cwm   uint16
 
391
        Lwm   uint16
 
392
}
 
393
 
 
394
const (
 
395
        SizeofBpfVersion = 0x4
 
396
        SizeofBpfStat    = 0x8
 
397
        SizeofBpfProgram = 0x10
 
398
        SizeofBpfInsn    = 0x8
 
399
        SizeofBpfHdr     = 0x14
 
400
)
 
401
 
 
402
type BpfVersion struct {
 
403
        Major uint16
 
404
        Minor uint16
 
405
}
 
406
 
 
407
type BpfStat struct {
 
408
        Recv uint32
 
409
        Drop uint32
 
410
}
 
411
 
 
412
type BpfProgram struct {
 
413
        Len       uint32
 
414
        Pad_cgo_0 [4]byte
 
415
        Insns     *BpfInsn
 
416
}
 
417
 
 
418
type BpfInsn struct {
 
419
        Code uint16
 
420
        Jt   uint8
 
421
        Jf   uint8
 
422
        K    uint32
 
423
}
 
424
 
 
425
type BpfHdr struct {
 
426
        Tstamp    BpfTimeval
 
427
        Caplen    uint32
 
428
        Datalen   uint32
 
429
        Hdrlen    uint16
 
430
        Pad_cgo_0 [2]byte
 
431
}
 
432
 
 
433
type BpfTimeval struct {
 
434
        Sec  uint32
 
435
        Usec uint32
 
436
}