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_NUM_VF          = 0x15
409	IFLA_VFINFO_LIST     = 0x16
410	IFLA_STATS64         = 0x17
411	IFLA_VF_PORTS        = 0x18
412	IFLA_PORT_SELF       = 0x19
413	IFLA_AF_SPEC         = 0x1a
414	IFLA_GROUP           = 0x1b
415	IFLA_NET_NS_FD       = 0x1c
416	IFLA_EXT_MASK        = 0x1d
417	IFLA_PROMISCUITY     = 0x1e
418	IFLA_NUM_TX_QUEUES   = 0x1f
419	IFLA_NUM_RX_QUEUES   = 0x20
420	IFLA_CARRIER         = 0x21
421	IFLA_PHYS_PORT_ID    = 0x22
422	IFLA_CARRIER_CHANGES = 0x23
423	IFLA_PHYS_SWITCH_ID  = 0x24
424	IFLA_LINK_NETNSID    = 0x25
425	IFLA_PHYS_PORT_NAME  = 0x26
426	IFLA_PROTO_DOWN      = 0x27
427	IFLA_GSO_MAX_SEGS    = 0x28
428	IFLA_GSO_MAX_SIZE    = 0x29
429	IFLA_PAD             = 0x2a
430	IFLA_XDP             = 0x2b
431	IFLA_EVENT           = 0x2c
432	IFLA_NEW_NETNSID     = 0x2d
433	IFLA_IF_NETNSID      = 0x2e
434	IFLA_MAX             = 0x2e
435	RT_SCOPE_UNIVERSE    = 0x0
436	RT_SCOPE_SITE        = 0xc8
437	RT_SCOPE_LINK        = 0xfd
438	RT_SCOPE_HOST        = 0xfe
439	RT_SCOPE_NOWHERE     = 0xff
440	RT_TABLE_UNSPEC      = 0x0
441	RT_TABLE_COMPAT      = 0xfc
442	RT_TABLE_DEFAULT     = 0xfd
443	RT_TABLE_MAIN        = 0xfe
444	RT_TABLE_LOCAL       = 0xff
445	RT_TABLE_MAX         = 0xffffffff
446	RTA_UNSPEC           = 0x0
447	RTA_DST              = 0x1
448	RTA_SRC              = 0x2
449	RTA_IIF              = 0x3
450	RTA_OIF              = 0x4
451	RTA_GATEWAY          = 0x5
452	RTA_PRIORITY         = 0x6
453	RTA_PREFSRC          = 0x7
454	RTA_METRICS          = 0x8
455	RTA_MULTIPATH        = 0x9
456	RTA_FLOW             = 0xb
457	RTA_CACHEINFO        = 0xc
458	RTA_TABLE            = 0xf
459	RTN_UNSPEC           = 0x0
460	RTN_UNICAST          = 0x1
461	RTN_LOCAL            = 0x2
462	RTN_BROADCAST        = 0x3
463	RTN_ANYCAST          = 0x4
464	RTN_MULTICAST        = 0x5
465	RTN_BLACKHOLE        = 0x6
466	RTN_UNREACHABLE      = 0x7
467	RTN_PROHIBIT         = 0x8
468	RTN_THROW            = 0x9
469	RTN_NAT              = 0xa
470	RTN_XRESOLVE         = 0xb
471	RTNLGRP_NONE         = 0x0
472	RTNLGRP_LINK         = 0x1
473	RTNLGRP_NOTIFY       = 0x2
474	RTNLGRP_NEIGH        = 0x3
475	RTNLGRP_TC           = 0x4
476	RTNLGRP_IPV4_IFADDR  = 0x5
477	RTNLGRP_IPV4_MROUTE  = 0x6
478	RTNLGRP_IPV4_ROUTE   = 0x7
479	RTNLGRP_IPV4_RULE    = 0x8
480	RTNLGRP_IPV6_IFADDR  = 0x9
481	RTNLGRP_IPV6_MROUTE  = 0xa
482	RTNLGRP_IPV6_ROUTE   = 0xb
483	RTNLGRP_IPV6_IFINFO  = 0xc
484	RTNLGRP_IPV6_PREFIX  = 0x12
485	RTNLGRP_IPV6_RULE    = 0x13
486	RTNLGRP_ND_USEROPT   = 0x14
487	SizeofNlMsghdr       = 0x10
488	SizeofNlMsgerr       = 0x14
489	SizeofRtGenmsg       = 0x1
490	SizeofNlAttr         = 0x4
491	SizeofRtAttr         = 0x4
492	SizeofIfInfomsg      = 0x10
493	SizeofIfAddrmsg      = 0x8
494	SizeofRtMsg          = 0xc
495	SizeofRtNexthop      = 0x8
496)
497
498type NlMsghdr struct {
499	Len   uint32
500	Type  uint16
501	Flags uint16
502	Seq   uint32
503	Pid   uint32
504}
505
506type NlMsgerr struct {
507	Error int32
508	Msg   NlMsghdr
509}
510
511type RtGenmsg struct {
512	Family uint8
513}
514
515type NlAttr struct {
516	Len  uint16
517	Type uint16
518}
519
520type RtAttr struct {
521	Len  uint16
522	Type uint16
523}
524
525type IfInfomsg struct {
526	Family     uint8
527	X__ifi_pad uint8
528	Type       uint16
529	Index      int32
530	Flags      uint32
531	Change     uint32
532}
533
534type IfAddrmsg struct {
535	Family    uint8
536	Prefixlen uint8
537	Flags     uint8
538	Scope     uint8
539	Index     uint32
540}
541
542type RtMsg struct {
543	Family   uint8
544	Dst_len  uint8
545	Src_len  uint8
546	Tos      uint8
547	Table    uint8
548	Protocol uint8
549	Scope    uint8
550	Type     uint8
551	Flags    uint32
552}
553
554type RtNexthop struct {
555	Len     uint16
556	Flags   uint8
557	Hops    uint8
558	Ifindex int32
559}
560
561const (
562	SizeofSockFilter = 0x8
563	SizeofSockFprog  = 0x10
564)
565
566type SockFilter struct {
567	Code uint16
568	Jt   uint8
569	Jf   uint8
570	K    uint32
571}
572
573type SockFprog struct {
574	Len       uint16
575	Pad_cgo_0 [6]byte
576	Filter    *SockFilter
577}
578
579type InotifyEvent struct {
580	Wd     int32
581	Mask   uint32
582	Cookie uint32
583	Len    uint32
584}
585
586const SizeofInotifyEvent = 0x10
587
588type PtraceRegs struct {
589	Regs   [16]uint64
590	Tstate uint64
591	Tpc    uint64
592	Tnpc   uint64
593	Y      uint32
594	Magic  uint32
595}
596
597type ptracePsw struct {
598}
599
600type ptraceFpregs struct {
601}
602
603type ptracePer struct {
604}
605
606type FdSet struct {
607	Bits [16]int64
608}
609
610type Sysinfo_t struct {
611	Uptime    int64
612	Loads     [3]uint64
613	Totalram  uint64
614	Freeram   uint64
615	Sharedram uint64
616	Bufferram uint64
617	Totalswap uint64
618	Freeswap  uint64
619	Procs     uint16
620	Pad       uint16
621	Pad_cgo_0 [4]byte
622	Totalhigh uint64
623	Freehigh  uint64
624	Unit      uint32
625	X_f       [0]int8
626	Pad_cgo_1 [4]byte
627}
628
629type Utsname struct {
630	Sysname    [65]byte
631	Nodename   [65]byte
632	Release    [65]byte
633	Version    [65]byte
634	Machine    [65]byte
635	Domainname [65]byte
636}
637
638type Ustat_t struct {
639	Tfree     int32
640	Pad_cgo_0 [4]byte
641	Tinode    uint64
642	Fname     [6]int8
643	Fpack     [6]int8
644	Pad_cgo_1 [4]byte
645}
646
647type EpollEvent struct {
648	Events  uint32
649	X_padFd int32
650	Fd      int32
651	Pad     int32
652}
653
654const (
655	AT_FDCWD            = -0x64
656	AT_REMOVEDIR        = 0x200
657	AT_SYMLINK_FOLLOW   = 0x400
658	AT_SYMLINK_NOFOLLOW = 0x100
659)
660
661type PollFd struct {
662	Fd      int32
663	Events  int16
664	Revents int16
665}
666
667const (
668	POLLIN    = 0x1
669	POLLPRI   = 0x2
670	POLLOUT   = 0x4
671	POLLRDHUP = 0x800
672	POLLERR   = 0x8
673	POLLHUP   = 0x10
674	POLLNVAL  = 0x20
675)
676
677type Sigset_t struct {
678	X__val [16]uint64
679}
680
681type Termios struct {
682	Iflag  uint32
683	Oflag  uint32
684	Cflag  uint32
685	Lflag  uint32
686	Line   uint8
687	Cc     [19]uint8
688	Ispeed uint32
689	Ospeed uint32
690}
691