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

« back to all changes in this revision

Viewing changes to src/pkg/syscall/ztypes_netbsd_amd64.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:
19
19
)
20
20
 
21
21
type Timespec struct {
22
 
        Sec       int32
23
 
        Pad_cgo_0 [4]byte
24
 
        Nsec      int64
 
22
        Sec  int64
 
23
        Nsec int64
25
24
}
26
25
 
27
26
type Timeval struct {
28
 
        Sec  int64
29
 
        Usec int64
 
27
        Sec       int64
 
28
        Usec      int32
 
29
        Pad_cgo_0 [4]byte
30
30
}
31
31
 
32
32
type Rusage struct {
55
55
 
56
56
type _Gid_t uint32
57
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
58
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
 
59
        Dev           uint64
 
60
        Mode          uint32
101
61
        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
 
62
        Ino           uint64
 
63
        Nlink         uint32
 
64
        Uid           uint32
 
65
        Gid           uint32
120
66
        Pad_cgo_1     [4]byte
121
 
        Mount_info    [160]byte
 
67
        Rdev          uint64
 
68
        Atimespec     Timespec
 
69
        Mtimespec     Timespec
 
70
        Ctimespec     Timespec
 
71
        Birthtimespec Timespec
 
72
        Size          int64
 
73
        Blocks        int64
 
74
        Blksize       uint32
 
75
        Flags         uint32
 
76
        Gen           uint32
 
77
        Spare         [2]uint32
 
78
        Pad_cgo_2     [4]byte
122
79
}
123
80
 
 
81
type Statfs_t [0]byte
 
82
 
124
83
type Flock_t struct {
125
84
        Start  int64
126
85
        Len    int64
130
89
}
131
90
 
132
91
type Dirent struct {
133
 
        Fileno uint64
134
 
        Reclen uint16
135
 
        Namlen uint16
136
 
        Type   uint8
137
 
        Name   [512]int8
 
92
        Fileno    uint64
 
93
        Reclen    uint16
 
94
        Namlen    uint16
 
95
        Type      uint8
 
96
        Name      [512]int8
 
97
        Pad_cgo_0 [3]byte
138
98
}
139
99
 
140
100
type Fsid struct {
141
 
        Val [2]int32
 
101
        X__fsid_val [2]int32
142
102
}
143
103
 
144
104
type RawSockaddrInet4 struct {
172
132
        Nlen   uint8
173
133
        Alen   uint8
174
134
        Slen   uint8
175
 
        Data   [24]int8
 
135
        Data   [12]int8
176
136
}
177
137
 
178
138
type RawSockaddr struct {
213
173
        Namelen    uint32
214
174
        Pad_cgo_0  [4]byte
215
175
        Iov        *Iovec
216
 
        Iovlen     uint32
 
176
        Iovlen     int32
217
177
        Pad_cgo_1  [4]byte
218
178
        Control    *byte
219
179
        Controllen uint32
236
196
        SizeofSockaddrInet6    = 0x1c
237
197
        SizeofSockaddrAny      = 0x6c
238
198
        SizeofSockaddrUnix     = 0x6a
239
 
        SizeofSockaddrDatalink = 0x20
 
199
        SizeofSockaddrDatalink = 0x14
240
200
        SizeofLinger           = 0x8
241
201
        SizeofIPMreq           = 0x8
242
202
        SizeofIPv6Mreq         = 0x14
252
212
)
253
213
 
254
214
type Kevent_t struct {
255
 
        Ident  uint64
256
 
        Filter int16
257
 
        Flags  uint16
258
 
        Fflags uint32
259
 
        Data   int32
260
 
        Udata  *byte
 
215
        Ident     uint64
 
216
        Filter    uint32
 
217
        Flags     uint32
 
218
        Fflags    uint32
 
219
        Pad_cgo_0 [4]byte
 
220
        Data      int64
 
221
        Udata     int64
261
222
}
262
223
 
263
224
type FdSet struct {
264
 
        Bits [32]int32
 
225
        Bits [8]uint32
265
226
}
266
227
 
267
228
const (
268
 
        SizeofIfMsghdr  = 0xf0
269
 
        SizeofIfData    = 0xd8
270
 
        SizeofIfaMsghdr = 0x18
271
 
        SizeofRtMsghdr  = 0x58
272
 
        SizeofRtMetrics = 0x30
 
229
        SizeofIfMsghdr         = 0x98
 
230
        SizeofIfData           = 0x88
 
231
        SizeofIfaMsghdr        = 0x18
 
232
        SizeofIfAnnounceMsghdr = 0x18
 
233
        SizeofRtMsghdr         = 0x78
 
234
        SizeofRtMetrics        = 0x50
273
235
)
274
236
 
275
237
type IfMsghdr struct {
276
 
        Msglen  uint16
277
 
        Version uint8
278
 
        Type    uint8
279
 
        Hdrlen  uint16
280
 
        Index   uint16
281
 
        Tableid uint16
282
 
        Pad1    uint8
283
 
        Pad2    uint8
284
 
        Addrs   int32
285
 
        Flags   int32
286
 
        Xflags  int32
287
 
        Data    IfData
 
238
        Msglen    uint16
 
239
        Version   uint8
 
240
        Type      uint8
 
241
        Addrs     int32
 
242
        Flags     int32
 
243
        Index     uint16
 
244
        Pad_cgo_0 [2]byte
 
245
        Data      IfData
288
246
}
289
247
 
290
248
type IfData struct {
291
249
        Type       uint8
292
250
        Addrlen    uint8
293
251
        Hdrlen     uint8
294
 
        Link_state uint8
295
 
        Mtu        uint32
296
 
        Metric     uint32
297
 
        Pad        uint32
 
252
        Pad_cgo_0  [1]byte
 
253
        Link_state int32
 
254
        Mtu        uint64
 
255
        Metric     uint64
298
256
        Baudrate   uint64
299
257
        Ipackets   uint64
300
258
        Ierrors    uint64
307
265
        Omcasts    uint64
308
266
        Iqdrops    uint64
309
267
        Noproto    uint64
310
 
        Lastchange Timeval
311
 
        Mclpool    [7]Mclpool
312
 
        Pad_cgo_0  [4]byte
 
268
        Lastchange Timespec
313
269
}
314
270
 
315
271
type IfaMsghdr struct {
 
272
        Msglen    uint16
 
273
        Version   uint8
 
274
        Type      uint8
 
275
        Addrs     int32
 
276
        Flags     int32
 
277
        Metric    int32
 
278
        Index     uint16
 
279
        Pad_cgo_0 [6]byte
 
280
}
 
281
 
 
282
type IfAnnounceMsghdr struct {
316
283
        Msglen  uint16
317
284
        Version uint8
318
285
        Type    uint8
319
 
        Hdrlen  uint16
320
286
        Index   uint16
321
 
        Tableid uint16
322
 
        Pad1    uint8
323
 
        Pad2    uint8
324
 
        Addrs   int32
325
 
        Flags   int32
326
 
        Metric  int32
 
287
        Name    [16]int8
 
288
        What    uint16
327
289
}
328
290
 
329
291
type RtMsghdr struct {
330
 
        Msglen   uint16
331
 
        Version  uint8
332
 
        Type     uint8
333
 
        Hdrlen   uint16
334
 
        Index    uint16
335
 
        Tableid  uint16
336
 
        Priority uint8
337
 
        Mpls     uint8
338
 
        Addrs    int32
339
 
        Flags    int32
340
 
        Fmask    int32
341
 
        Pid      int32
342
 
        Seq      int32
343
 
        Errno    int32
344
 
        Inits    uint32
345
 
        Rmx      RtMetrics
 
292
        Msglen    uint16
 
293
        Version   uint8
 
294
        Type      uint8
 
295
        Index     uint16
 
296
        Pad_cgo_0 [2]byte
 
297
        Flags     int32
 
298
        Addrs     int32
 
299
        Pid       int32
 
300
        Seq       int32
 
301
        Errno     int32
 
302
        Use       int32
 
303
        Inits     int32
 
304
        Pad_cgo_1 [4]byte
 
305
        Rmx       RtMetrics
346
306
}
347
307
 
348
308
type RtMetrics struct {
349
 
        Pksent   uint64
350
 
        Locks    uint32
351
 
        Mtu      uint32
352
 
        Expire   uint32
353
 
        Refcnt   uint32
354
 
        Hopcount uint32
355
 
        Recvpipe uint32
356
 
        Sendpipe uint32
357
 
        Ssthresh uint32
358
 
        Rtt      uint32
359
 
        Rttvar   uint32
 
309
        Locks    uint64
 
310
        Mtu      uint64
 
311
        Hopcount uint64
 
312
        Recvpipe uint64
 
313
        Sendpipe uint64
 
314
        Ssthresh uint64
 
315
        Rtt      uint64
 
316
        Rttvar   uint64
 
317
        Expire   int64
 
318
        Pksent   int64
360
319
}
361
320
 
362
 
type Mclpool struct {
363
 
        Grown uint32
364
 
        Alive uint16
365
 
        Hwm   uint16
366
 
        Cwm   uint16
367
 
        Lwm   uint16
368
 
}
 
321
type Mclpool [0]byte
369
322
 
370
323
const (
371
324
        SizeofBpfVersion = 0x4
372
 
        SizeofBpfStat    = 0x8
 
325
        SizeofBpfStat    = 0x80
373
326
        SizeofBpfProgram = 0x10
374
327
        SizeofBpfInsn    = 0x8
375
 
        SizeofBpfHdr     = 0x14
 
328
        SizeofBpfHdr     = 0x20
376
329
)
377
330
 
378
331
type BpfVersion struct {
381
334
}
382
335
 
383
336
type BpfStat struct {
384
 
        Recv uint32
385
 
        Drop uint32
 
337
        Recv    uint64
 
338
        Drop    uint64
 
339
        Capt    uint64
 
340
        Padding [13]uint64
386
341
}
387
342
 
388
343
type BpfProgram struct {
403
358
        Caplen    uint32
404
359
        Datalen   uint32
405
360
        Hdrlen    uint16
406
 
        Pad_cgo_0 [2]byte
 
361
        Pad_cgo_0 [6]byte
407
362
}
408
363
 
409
364
type BpfTimeval struct {
410
 
        Sec  uint32
411
 
        Usec uint32
 
365
        Sec  int64
 
366
        Usec int64
 
367
}
 
368
 
 
369
type Sysctlnode struct {
 
370
        Flags           uint32
 
371
        Num             int32
 
372
        Name            [32]int8
 
373
        Ver             uint32
 
374
        X__rsvd         uint32
 
375
        Un              [16]byte
 
376
        X_sysctl_size   [8]byte
 
377
        X_sysctl_func   [8]byte
 
378
        X_sysctl_parent [8]byte
 
379
        X_sysctl_desc   [8]byte
412
380
}