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