~nskaggs/+junk/xenial-test

« back to all changes in this revision

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

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Created by cgo -godefs - DO NOT EDIT
 
2
// cgo -godefs types_linux.go
 
3
 
 
4
// +build ppc64le,linux
 
5
 
 
6
package unix
 
7
 
 
8
const (
 
9
        sizeofPtr      = 0x8
 
10
        sizeofShort    = 0x2
 
11
        sizeofInt      = 0x4
 
12
        sizeofLong     = 0x8
 
13
        sizeofLongLong = 0x8
 
14
        PathMax        = 0x1000
 
15
)
 
16
 
 
17
type (
 
18
        _C_short     int16
 
19
        _C_int       int32
 
20
        _C_long      int64
 
21
        _C_long_long int64
 
22
)
 
23
 
 
24
type Timespec struct {
 
25
        Sec  int64
 
26
        Nsec int64
 
27
}
 
28
 
 
29
type Timeval struct {
 
30
        Sec  int64
 
31
        Usec int64
 
32
}
 
33
 
 
34
type Timex struct {
 
35
        Modes     uint32
 
36
        Pad_cgo_0 [4]byte
 
37
        Offset    int64
 
38
        Freq      int64
 
39
        Maxerror  int64
 
40
        Esterror  int64
 
41
        Status    int32
 
42
        Pad_cgo_1 [4]byte
 
43
        Constant  int64
 
44
        Precision int64
 
45
        Tolerance int64
 
46
        Time      Timeval
 
47
        Tick      int64
 
48
        Ppsfreq   int64
 
49
        Jitter    int64
 
50
        Shift     int32
 
51
        Pad_cgo_2 [4]byte
 
52
        Stabil    int64
 
53
        Jitcnt    int64
 
54
        Calcnt    int64
 
55
        Errcnt    int64
 
56
        Stbcnt    int64
 
57
        Tai       int32
 
58
        Pad_cgo_3 [44]byte
 
59
}
 
60
 
 
61
type Time_t int64
 
62
 
 
63
type Tms struct {
 
64
        Utime  int64
 
65
        Stime  int64
 
66
        Cutime int64
 
67
        Cstime int64
 
68
}
 
69
 
 
70
type Utimbuf struct {
 
71
        Actime  int64
 
72
        Modtime int64
 
73
}
 
74
 
 
75
type Rusage struct {
 
76
        Utime    Timeval
 
77
        Stime    Timeval
 
78
        Maxrss   int64
 
79
        Ixrss    int64
 
80
        Idrss    int64
 
81
        Isrss    int64
 
82
        Minflt   int64
 
83
        Majflt   int64
 
84
        Nswap    int64
 
85
        Inblock  int64
 
86
        Oublock  int64
 
87
        Msgsnd   int64
 
88
        Msgrcv   int64
 
89
        Nsignals int64
 
90
        Nvcsw    int64
 
91
        Nivcsw   int64
 
92
}
 
93
 
 
94
type Rlimit struct {
 
95
        Cur uint64
 
96
        Max uint64
 
97
}
 
98
 
 
99
type _Gid_t uint32
 
100
 
 
101
type Stat_t struct {
 
102
        Dev                uint64
 
103
        Ino                uint64
 
104
        Nlink              uint64
 
105
        Mode               uint32
 
106
        Uid                uint32
 
107
        Gid                uint32
 
108
        X__pad2            int32
 
109
        Rdev               uint64
 
110
        Size               int64
 
111
        Blksize            int64
 
112
        Blocks             int64
 
113
        Atim               Timespec
 
114
        Mtim               Timespec
 
115
        Ctim               Timespec
 
116
        X__glibc_reserved4 uint64
 
117
        X__glibc_reserved5 uint64
 
118
        X__glibc_reserved6 uint64
 
119
}
 
120
 
 
121
type Statfs_t struct {
 
122
        Type    int64
 
123
        Bsize   int64
 
124
        Blocks  uint64
 
125
        Bfree   uint64
 
126
        Bavail  uint64
 
127
        Files   uint64
 
128
        Ffree   uint64
 
129
        Fsid    Fsid
 
130
        Namelen int64
 
131
        Frsize  int64
 
132
        Flags   int64
 
133
        Spare   [4]int64
 
134
}
 
135
 
 
136
type Dirent struct {
 
137
        Ino       uint64
 
138
        Off       int64
 
139
        Reclen    uint16
 
140
        Type      uint8
 
141
        Name      [256]uint8
 
142
        Pad_cgo_0 [5]byte
 
143
}
 
144
 
 
145
type Fsid struct {
 
146
        X__val [2]int32
 
147
}
 
148
 
 
149
type Flock_t struct {
 
150
        Type      int16
 
151
        Whence    int16
 
152
        Pad_cgo_0 [4]byte
 
153
        Start     int64
 
154
        Len       int64
 
155
        Pid       int32
 
156
        Pad_cgo_1 [4]byte
 
157
}
 
158
 
 
159
const (
 
160
        FADV_NORMAL     = 0x0
 
161
        FADV_RANDOM     = 0x1
 
162
        FADV_SEQUENTIAL = 0x2
 
163
        FADV_WILLNEED   = 0x3
 
164
        FADV_DONTNEED   = 0x4
 
165
        FADV_NOREUSE    = 0x5
 
166
)
 
167
 
 
168
type RawSockaddrInet4 struct {
 
169
        Family uint16
 
170
        Port   uint16
 
171
        Addr   [4]byte /* in_addr */
 
172
        Zero   [8]uint8
 
173
}
 
174
 
 
175
type RawSockaddrInet6 struct {
 
176
        Family   uint16
 
177
        Port     uint16
 
178
        Flowinfo uint32
 
179
        Addr     [16]byte /* in6_addr */
 
180
        Scope_id uint32
 
181
}
 
182
 
 
183
type RawSockaddrUnix struct {
 
184
        Family uint16
 
185
        Path   [108]int8
 
186
}
 
187
 
 
188
type RawSockaddrLinklayer struct {
 
189
        Family   uint16
 
190
        Protocol uint16
 
191
        Ifindex  int32
 
192
        Hatype   uint16
 
193
        Pkttype  uint8
 
194
        Halen    uint8
 
195
        Addr     [8]uint8
 
196
}
 
197
 
 
198
type RawSockaddrNetlink struct {
 
199
        Family uint16
 
200
        Pad    uint16
 
201
        Pid    uint32
 
202
        Groups uint32
 
203
}
 
204
 
 
205
type RawSockaddr struct {
 
206
        Family uint16
 
207
        Data   [14]uint8
 
208
}
 
209
 
 
210
type RawSockaddrAny struct {
 
211
        Addr RawSockaddr
 
212
        Pad  [96]uint8
 
213
}
 
214
 
 
215
type _Socklen uint32
 
216
 
 
217
type Linger struct {
 
218
        Onoff  int32
 
219
        Linger int32
 
220
}
 
221
 
 
222
type Iovec struct {
 
223
        Base *byte
 
224
        Len  uint64
 
225
}
 
226
 
 
227
type IPMreq struct {
 
228
        Multiaddr [4]byte /* in_addr */
 
229
        Interface [4]byte /* in_addr */
 
230
}
 
231
 
 
232
type IPMreqn struct {
 
233
        Multiaddr [4]byte /* in_addr */
 
234
        Address   [4]byte /* in_addr */
 
235
        Ifindex   int32
 
236
}
 
237
 
 
238
type IPv6Mreq struct {
 
239
        Multiaddr [16]byte /* in6_addr */
 
240
        Interface uint32
 
241
}
 
242
 
 
243
type Msghdr struct {
 
244
        Name       *byte
 
245
        Namelen    uint32
 
246
        Pad_cgo_0  [4]byte
 
247
        Iov        *Iovec
 
248
        Iovlen     uint64
 
249
        Control    *byte
 
250
        Controllen uint64
 
251
        Flags      int32
 
252
        Pad_cgo_1  [4]byte
 
253
}
 
254
 
 
255
type Cmsghdr struct {
 
256
        Len          uint64
 
257
        Level        int32
 
258
        Type         int32
 
259
        X__cmsg_data [0]uint8
 
260
}
 
261
 
 
262
type Inet4Pktinfo struct {
 
263
        Ifindex  int32
 
264
        Spec_dst [4]byte /* in_addr */
 
265
        Addr     [4]byte /* in_addr */
 
266
}
 
267
 
 
268
type Inet6Pktinfo struct {
 
269
        Addr    [16]byte /* in6_addr */
 
270
        Ifindex uint32
 
271
}
 
272
 
 
273
type IPv6MTUInfo struct {
 
274
        Addr RawSockaddrInet6
 
275
        Mtu  uint32
 
276
}
 
277
 
 
278
type ICMPv6Filter struct {
 
279
        Data [8]uint32
 
280
}
 
281
 
 
282
type Ucred struct {
 
283
        Pid int32
 
284
        Uid uint32
 
285
        Gid uint32
 
286
}
 
287
 
 
288
type TCPInfo struct {
 
289
        State          uint8
 
290
        Ca_state       uint8
 
291
        Retransmits    uint8
 
292
        Probes         uint8
 
293
        Backoff        uint8
 
294
        Options        uint8
 
295
        Pad_cgo_0      [2]byte
 
296
        Rto            uint32
 
297
        Ato            uint32
 
298
        Snd_mss        uint32
 
299
        Rcv_mss        uint32
 
300
        Unacked        uint32
 
301
        Sacked         uint32
 
302
        Lost           uint32
 
303
        Retrans        uint32
 
304
        Fackets        uint32
 
305
        Last_data_sent uint32
 
306
        Last_ack_sent  uint32
 
307
        Last_data_recv uint32
 
308
        Last_ack_recv  uint32
 
309
        Pmtu           uint32
 
310
        Rcv_ssthresh   uint32
 
311
        Rtt            uint32
 
312
        Rttvar         uint32
 
313
        Snd_ssthresh   uint32
 
314
        Snd_cwnd       uint32
 
315
        Advmss         uint32
 
316
        Reordering     uint32
 
317
        Rcv_rtt        uint32
 
318
        Rcv_space      uint32
 
319
        Total_retrans  uint32
 
320
}
 
321
 
 
322
const (
 
323
        SizeofSockaddrInet4     = 0x10
 
324
        SizeofSockaddrInet6     = 0x1c
 
325
        SizeofSockaddrAny       = 0x70
 
326
        SizeofSockaddrUnix      = 0x6e
 
327
        SizeofSockaddrLinklayer = 0x14
 
328
        SizeofSockaddrNetlink   = 0xc
 
329
        SizeofLinger            = 0x8
 
330
        SizeofIPMreq            = 0x8
 
331
        SizeofIPMreqn           = 0xc
 
332
        SizeofIPv6Mreq          = 0x14
 
333
        SizeofMsghdr            = 0x38
 
334
        SizeofCmsghdr           = 0x10
 
335
        SizeofInet4Pktinfo      = 0xc
 
336
        SizeofInet6Pktinfo      = 0x14
 
337
        SizeofIPv6MTUInfo       = 0x20
 
338
        SizeofICMPv6Filter      = 0x20
 
339
        SizeofUcred             = 0xc
 
340
        SizeofTCPInfo           = 0x68
 
341
)
 
342
 
 
343
const (
 
344
        IFA_UNSPEC          = 0x0
 
345
        IFA_ADDRESS         = 0x1
 
346
        IFA_LOCAL           = 0x2
 
347
        IFA_LABEL           = 0x3
 
348
        IFA_BROADCAST       = 0x4
 
349
        IFA_ANYCAST         = 0x5
 
350
        IFA_CACHEINFO       = 0x6
 
351
        IFA_MULTICAST       = 0x7
 
352
        IFLA_UNSPEC         = 0x0
 
353
        IFLA_ADDRESS        = 0x1
 
354
        IFLA_BROADCAST      = 0x2
 
355
        IFLA_IFNAME         = 0x3
 
356
        IFLA_MTU            = 0x4
 
357
        IFLA_LINK           = 0x5
 
358
        IFLA_QDISC          = 0x6
 
359
        IFLA_STATS          = 0x7
 
360
        IFLA_COST           = 0x8
 
361
        IFLA_PRIORITY       = 0x9
 
362
        IFLA_MASTER         = 0xa
 
363
        IFLA_WIRELESS       = 0xb
 
364
        IFLA_PROTINFO       = 0xc
 
365
        IFLA_TXQLEN         = 0xd
 
366
        IFLA_MAP            = 0xe
 
367
        IFLA_WEIGHT         = 0xf
 
368
        IFLA_OPERSTATE      = 0x10
 
369
        IFLA_LINKMODE       = 0x11
 
370
        IFLA_LINKINFO       = 0x12
 
371
        IFLA_NET_NS_PID     = 0x13
 
372
        IFLA_IFALIAS        = 0x14
 
373
        IFLA_MAX            = 0x22
 
374
        RT_SCOPE_UNIVERSE   = 0x0
 
375
        RT_SCOPE_SITE       = 0xc8
 
376
        RT_SCOPE_LINK       = 0xfd
 
377
        RT_SCOPE_HOST       = 0xfe
 
378
        RT_SCOPE_NOWHERE    = 0xff
 
379
        RT_TABLE_UNSPEC     = 0x0
 
380
        RT_TABLE_COMPAT     = 0xfc
 
381
        RT_TABLE_DEFAULT    = 0xfd
 
382
        RT_TABLE_MAIN       = 0xfe
 
383
        RT_TABLE_LOCAL      = 0xff
 
384
        RT_TABLE_MAX        = 0xffffffff
 
385
        RTA_UNSPEC          = 0x0
 
386
        RTA_DST             = 0x1
 
387
        RTA_SRC             = 0x2
 
388
        RTA_IIF             = 0x3
 
389
        RTA_OIF             = 0x4
 
390
        RTA_GATEWAY         = 0x5
 
391
        RTA_PRIORITY        = 0x6
 
392
        RTA_PREFSRC         = 0x7
 
393
        RTA_METRICS         = 0x8
 
394
        RTA_MULTIPATH       = 0x9
 
395
        RTA_FLOW            = 0xb
 
396
        RTA_CACHEINFO       = 0xc
 
397
        RTA_TABLE           = 0xf
 
398
        RTN_UNSPEC          = 0x0
 
399
        RTN_UNICAST         = 0x1
 
400
        RTN_LOCAL           = 0x2
 
401
        RTN_BROADCAST       = 0x3
 
402
        RTN_ANYCAST         = 0x4
 
403
        RTN_MULTICAST       = 0x5
 
404
        RTN_BLACKHOLE       = 0x6
 
405
        RTN_UNREACHABLE     = 0x7
 
406
        RTN_PROHIBIT        = 0x8
 
407
        RTN_THROW           = 0x9
 
408
        RTN_NAT             = 0xa
 
409
        RTN_XRESOLVE        = 0xb
 
410
        RTNLGRP_NONE        = 0x0
 
411
        RTNLGRP_LINK        = 0x1
 
412
        RTNLGRP_NOTIFY      = 0x2
 
413
        RTNLGRP_NEIGH       = 0x3
 
414
        RTNLGRP_TC          = 0x4
 
415
        RTNLGRP_IPV4_IFADDR = 0x5
 
416
        RTNLGRP_IPV4_MROUTE = 0x6
 
417
        RTNLGRP_IPV4_ROUTE  = 0x7
 
418
        RTNLGRP_IPV4_RULE   = 0x8
 
419
        RTNLGRP_IPV6_IFADDR = 0x9
 
420
        RTNLGRP_IPV6_MROUTE = 0xa
 
421
        RTNLGRP_IPV6_ROUTE  = 0xb
 
422
        RTNLGRP_IPV6_IFINFO = 0xc
 
423
        RTNLGRP_IPV6_PREFIX = 0x12
 
424
        RTNLGRP_IPV6_RULE   = 0x13
 
425
        RTNLGRP_ND_USEROPT  = 0x14
 
426
        SizeofNlMsghdr      = 0x10
 
427
        SizeofNlMsgerr      = 0x14
 
428
        SizeofRtGenmsg      = 0x1
 
429
        SizeofNlAttr        = 0x4
 
430
        SizeofRtAttr        = 0x4
 
431
        SizeofIfInfomsg     = 0x10
 
432
        SizeofIfAddrmsg     = 0x8
 
433
        SizeofRtMsg         = 0xc
 
434
        SizeofRtNexthop     = 0x8
 
435
)
 
436
 
 
437
type NlMsghdr struct {
 
438
        Len   uint32
 
439
        Type  uint16
 
440
        Flags uint16
 
441
        Seq   uint32
 
442
        Pid   uint32
 
443
}
 
444
 
 
445
type NlMsgerr struct {
 
446
        Error int32
 
447
        Msg   NlMsghdr
 
448
}
 
449
 
 
450
type RtGenmsg struct {
 
451
        Family uint8
 
452
}
 
453
 
 
454
type NlAttr struct {
 
455
        Len  uint16
 
456
        Type uint16
 
457
}
 
458
 
 
459
type RtAttr struct {
 
460
        Len  uint16
 
461
        Type uint16
 
462
}
 
463
 
 
464
type IfInfomsg struct {
 
465
        Family     uint8
 
466
        X__ifi_pad uint8
 
467
        Type       uint16
 
468
        Index      int32
 
469
        Flags      uint32
 
470
        Change     uint32
 
471
}
 
472
 
 
473
type IfAddrmsg struct {
 
474
        Family    uint8
 
475
        Prefixlen uint8
 
476
        Flags     uint8
 
477
        Scope     uint8
 
478
        Index     uint32
 
479
}
 
480
 
 
481
type RtMsg struct {
 
482
        Family   uint8
 
483
        Dst_len  uint8
 
484
        Src_len  uint8
 
485
        Tos      uint8
 
486
        Table    uint8
 
487
        Protocol uint8
 
488
        Scope    uint8
 
489
        Type     uint8
 
490
        Flags    uint32
 
491
}
 
492
 
 
493
type RtNexthop struct {
 
494
        Len     uint16
 
495
        Flags   uint8
 
496
        Hops    uint8
 
497
        Ifindex int32
 
498
}
 
499
 
 
500
const (
 
501
        SizeofSockFilter = 0x8
 
502
        SizeofSockFprog  = 0x10
 
503
)
 
504
 
 
505
type SockFilter struct {
 
506
        Code uint16
 
507
        Jt   uint8
 
508
        Jf   uint8
 
509
        K    uint32
 
510
}
 
511
 
 
512
type SockFprog struct {
 
513
        Len       uint16
 
514
        Pad_cgo_0 [6]byte
 
515
        Filter    *SockFilter
 
516
}
 
517
 
 
518
type InotifyEvent struct {
 
519
        Wd     int32
 
520
        Mask   uint32
 
521
        Cookie uint32
 
522
        Len    uint32
 
523
        Name   [0]uint8
 
524
}
 
525
 
 
526
const SizeofInotifyEvent = 0x10
 
527
 
 
528
type PtraceRegs struct {
 
529
        Gpr       [32]uint64
 
530
        Nip       uint64
 
531
        Msr       uint64
 
532
        Orig_gpr3 uint64
 
533
        Ctr       uint64
 
534
        Link      uint64
 
535
        Xer       uint64
 
536
        Ccr       uint64
 
537
        Softe     uint64
 
538
        Trap      uint64
 
539
        Dar       uint64
 
540
        Dsisr     uint64
 
541
        Result    uint64
 
542
}
 
543
 
 
544
type FdSet struct {
 
545
        Bits [16]int64
 
546
}
 
547
 
 
548
type Sysinfo_t struct {
 
549
        Uptime    int64
 
550
        Loads     [3]uint64
 
551
        Totalram  uint64
 
552
        Freeram   uint64
 
553
        Sharedram uint64
 
554
        Bufferram uint64
 
555
        Totalswap uint64
 
556
        Freeswap  uint64
 
557
        Procs     uint16
 
558
        Pad       uint16
 
559
        Pad_cgo_0 [4]byte
 
560
        Totalhigh uint64
 
561
        Freehigh  uint64
 
562
        Unit      uint32
 
563
        X_f       [0]uint8
 
564
        Pad_cgo_1 [4]byte
 
565
}
 
566
 
 
567
type Utsname struct {
 
568
        Sysname    [65]uint8
 
569
        Nodename   [65]uint8
 
570
        Release    [65]uint8
 
571
        Version    [65]uint8
 
572
        Machine    [65]uint8
 
573
        Domainname [65]uint8
 
574
}
 
575
 
 
576
type Ustat_t struct {
 
577
        Tfree     int32
 
578
        Pad_cgo_0 [4]byte
 
579
        Tinode    uint64
 
580
        Fname     [6]uint8
 
581
        Fpack     [6]uint8
 
582
        Pad_cgo_1 [4]byte
 
583
}
 
584
 
 
585
type EpollEvent struct {
 
586
        Events uint32
 
587
        Fd     int32
 
588
        Pad    int32
 
589
}
 
590
 
 
591
const (
 
592
        AT_FDCWD            = -0x64
 
593
        AT_REMOVEDIR        = 0x200
 
594
        AT_SYMLINK_NOFOLLOW = 0x100
 
595
)
 
596
 
 
597
type Termios struct {
 
598
        Iflag     uint32
 
599
        Oflag     uint32
 
600
        Cflag     uint32
 
601
        Lflag     uint32
 
602
        Line      uint8
 
603
        Cc        [32]uint8
 
604
        Pad_cgo_0 [3]byte
 
605
        Ispeed    uint32
 
606
        Ospeed    uint32
 
607
}