~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

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