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