1// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
4//go:build sparc64 && linux
5// +build sparc64,linux
6
7package unix
8
9const (
10	SizeofPtr  = 0x8
11	SizeofLong = 0x8
12)
13
14type (
15	_C_long int64
16)
17
18type Timespec struct {
19	Sec  int64
20	Nsec int64
21}
22
23type Timeval struct {
24	Sec  int64
25	Usec int32
26	_    [4]byte
27}
28
29type Timex struct {
30	Modes     uint32
31	Offset    int64
32	Freq      int64
33	Maxerror  int64
34	Esterror  int64
35	Status    int32
36	Constant  int64
37	Precision int64
38	Tolerance int64
39	Time      Timeval
40	Tick      int64
41	Ppsfreq   int64
42	Jitter    int64
43	Shift     int32
44	Stabil    int64
45	Jitcnt    int64
46	Calcnt    int64
47	Errcnt    int64
48	Stbcnt    int64
49	Tai       int32
50	_         [44]byte
51}
52
53type Time_t int64
54
55type Tms struct {
56	Utime  int64
57	Stime  int64
58	Cutime int64
59	Cstime int64
60}
61
62type Utimbuf struct {
63	Actime  int64
64	Modtime int64
65}
66
67type Rusage struct {
68	Utime    Timeval
69	Stime    Timeval
70	Maxrss   int64
71	Ixrss    int64
72	Idrss    int64
73	Isrss    int64
74	Minflt   int64
75	Majflt   int64
76	Nswap    int64
77	Inblock  int64
78	Oublock  int64
79	Msgsnd   int64
80	Msgrcv   int64
81	Nsignals int64
82	Nvcsw    int64
83	Nivcsw   int64
84}
85
86type Stat_t struct {
87	Dev     uint64
88	_       uint16
89	Ino     uint64
90	Mode    uint32
91	Nlink   uint32
92	Uid     uint32
93	Gid     uint32
94	Rdev    uint64
95	_       uint16
96	Size    int64
97	Blksize int64
98	Blocks  int64
99	Atim    Timespec
100	Mtim    Timespec
101	Ctim    Timespec
102	_       uint64
103	_       uint64
104}
105
106type Dirent struct {
107	Ino    uint64
108	Off    int64
109	Reclen uint16
110	Type   uint8
111	Name   [256]int8
112	_      [5]byte
113}
114
115type Flock_t struct {
116	Type   int16
117	Whence int16
118	Start  int64
119	Len    int64
120	Pid    int32
121	_      int16
122	_      [2]byte
123}
124
125type DmNameList struct {
126	Dev  uint64
127	Next uint32
128	Name [0]byte
129	_    [4]byte
130}
131
132const (
133	FADV_DONTNEED = 0x4
134	FADV_NOREUSE  = 0x5
135)
136
137type RawSockaddr struct {
138	Family uint16
139	Data   [14]int8
140}
141
142type RawSockaddrAny struct {
143	Addr RawSockaddr
144	Pad  [96]int8
145}
146
147type Iovec struct {
148	Base *byte
149	Len  uint64
150}
151
152type Msghdr struct {
153	Name       *byte
154	Namelen    uint32
155	Iov        *Iovec
156	Iovlen     uint64
157	Control    *byte
158	Controllen uint64
159	Flags      int32
160	_          [4]byte
161}
162
163type Cmsghdr struct {
164	Len   uint64
165	Level int32
166	Type  int32
167}
168
169const (
170	SizeofIovec   = 0x10
171	SizeofMsghdr  = 0x38
172	SizeofCmsghdr = 0x10
173)
174
175const (
176	SizeofSockFprog = 0x10
177)
178
179type PtraceRegs struct {
180	Regs   [16]uint64
181	Tstate uint64
182	Tpc    uint64
183	Tnpc   uint64
184	Y      uint32
185	Magic  uint32
186}
187
188type FdSet struct {
189	Bits [16]int64
190}
191
192type Sysinfo_t struct {
193	Uptime    int64
194	Loads     [3]uint64
195	Totalram  uint64
196	Freeram   uint64
197	Sharedram uint64
198	Bufferram uint64
199	Totalswap uint64
200	Freeswap  uint64
201	Procs     uint16
202	Pad       uint16
203	Totalhigh uint64
204	Freehigh  uint64
205	Unit      uint32
206	_         [0]int8
207	_         [4]byte
208}
209
210type Ustat_t struct {
211	Tfree  int32
212	Tinode uint64
213	Fname  [6]int8
214	Fpack  [6]int8
215	_      [4]byte
216}
217
218type EpollEvent struct {
219	Events uint32
220	_      int32
221	Fd     int32
222	Pad    int32
223}
224
225const (
226	POLLRDHUP = 0x800
227)
228
229type Sigset_t struct {
230	Val [16]uint64
231}
232
233const _C__NSIG = 0x41
234
235type Termios struct {
236	Iflag  uint32
237	Oflag  uint32
238	Cflag  uint32
239	Lflag  uint32
240	Line   uint8
241	Cc     [19]uint8
242	Ispeed uint32
243	Ospeed uint32
244}
245
246type Taskstats struct {
247	Version                   uint16
248	Ac_exitcode               uint32
249	Ac_flag                   uint8
250	Ac_nice                   uint8
251	Cpu_count                 uint64
252	Cpu_delay_total           uint64
253	Blkio_count               uint64
254	Blkio_delay_total         uint64
255	Swapin_count              uint64
256	Swapin_delay_total        uint64
257	Cpu_run_real_total        uint64
258	Cpu_run_virtual_total     uint64
259	Ac_comm                   [32]int8
260	Ac_sched                  uint8
261	Ac_pad                    [3]uint8
262	_                         [4]byte
263	Ac_uid                    uint32
264	Ac_gid                    uint32
265	Ac_pid                    uint32
266	Ac_ppid                   uint32
267	Ac_btime                  uint32
268	Ac_etime                  uint64
269	Ac_utime                  uint64
270	Ac_stime                  uint64
271	Ac_minflt                 uint64
272	Ac_majflt                 uint64
273	Coremem                   uint64
274	Virtmem                   uint64
275	Hiwater_rss               uint64
276	Hiwater_vm                uint64
277	Read_char                 uint64
278	Write_char                uint64
279	Read_syscalls             uint64
280	Write_syscalls            uint64
281	Read_bytes                uint64
282	Write_bytes               uint64
283	Cancelled_write_bytes     uint64
284	Nvcsw                     uint64
285	Nivcsw                    uint64
286	Ac_utimescaled            uint64
287	Ac_stimescaled            uint64
288	Cpu_scaled_run_real_total uint64
289	Freepages_count           uint64
290	Freepages_delay_total     uint64
291	Thrashing_count           uint64
292	Thrashing_delay_total     uint64
293	Ac_btime64                uint64
294}
295
296type cpuMask uint64
297
298const (
299	_NCPUBITS = 0x40
300)
301
302const (
303	CBitFieldMaskBit0  = 0x8000000000000000
304	CBitFieldMaskBit1  = 0x4000000000000000
305	CBitFieldMaskBit2  = 0x2000000000000000
306	CBitFieldMaskBit3  = 0x1000000000000000
307	CBitFieldMaskBit4  = 0x800000000000000
308	CBitFieldMaskBit5  = 0x400000000000000
309	CBitFieldMaskBit6  = 0x200000000000000
310	CBitFieldMaskBit7  = 0x100000000000000
311	CBitFieldMaskBit8  = 0x80000000000000
312	CBitFieldMaskBit9  = 0x40000000000000
313	CBitFieldMaskBit10 = 0x20000000000000
314	CBitFieldMaskBit11 = 0x10000000000000
315	CBitFieldMaskBit12 = 0x8000000000000
316	CBitFieldMaskBit13 = 0x4000000000000
317	CBitFieldMaskBit14 = 0x2000000000000
318	CBitFieldMaskBit15 = 0x1000000000000
319	CBitFieldMaskBit16 = 0x800000000000
320	CBitFieldMaskBit17 = 0x400000000000
321	CBitFieldMaskBit18 = 0x200000000000
322	CBitFieldMaskBit19 = 0x100000000000
323	CBitFieldMaskBit20 = 0x80000000000
324	CBitFieldMaskBit21 = 0x40000000000
325	CBitFieldMaskBit22 = 0x20000000000
326	CBitFieldMaskBit23 = 0x10000000000
327	CBitFieldMaskBit24 = 0x8000000000
328	CBitFieldMaskBit25 = 0x4000000000
329	CBitFieldMaskBit26 = 0x2000000000
330	CBitFieldMaskBit27 = 0x1000000000
331	CBitFieldMaskBit28 = 0x800000000
332	CBitFieldMaskBit29 = 0x400000000
333	CBitFieldMaskBit30 = 0x200000000
334	CBitFieldMaskBit31 = 0x100000000
335	CBitFieldMaskBit32 = 0x80000000
336	CBitFieldMaskBit33 = 0x40000000
337	CBitFieldMaskBit34 = 0x20000000
338	CBitFieldMaskBit35 = 0x10000000
339	CBitFieldMaskBit36 = 0x8000000
340	CBitFieldMaskBit37 = 0x4000000
341	CBitFieldMaskBit38 = 0x2000000
342	CBitFieldMaskBit39 = 0x1000000
343	CBitFieldMaskBit40 = 0x800000
344	CBitFieldMaskBit41 = 0x400000
345	CBitFieldMaskBit42 = 0x200000
346	CBitFieldMaskBit43 = 0x100000
347	CBitFieldMaskBit44 = 0x80000
348	CBitFieldMaskBit45 = 0x40000
349	CBitFieldMaskBit46 = 0x20000
350	CBitFieldMaskBit47 = 0x10000
351	CBitFieldMaskBit48 = 0x8000
352	CBitFieldMaskBit49 = 0x4000
353	CBitFieldMaskBit50 = 0x2000
354	CBitFieldMaskBit51 = 0x1000
355	CBitFieldMaskBit52 = 0x800
356	CBitFieldMaskBit53 = 0x400
357	CBitFieldMaskBit54 = 0x200
358	CBitFieldMaskBit55 = 0x100
359	CBitFieldMaskBit56 = 0x80
360	CBitFieldMaskBit57 = 0x40
361	CBitFieldMaskBit58 = 0x20
362	CBitFieldMaskBit59 = 0x10
363	CBitFieldMaskBit60 = 0x8
364	CBitFieldMaskBit61 = 0x4
365	CBitFieldMaskBit62 = 0x2
366	CBitFieldMaskBit63 = 0x1
367)
368
369type SockaddrStorage struct {
370	Family uint16
371	_      [118]int8
372	_      uint64
373}
374
375type HDGeometry struct {
376	Heads     uint8
377	Sectors   uint8
378	Cylinders uint16
379	Start     uint64
380}
381
382type Statfs_t struct {
383	Type    int64
384	Bsize   int64
385	Blocks  uint64
386	Bfree   uint64
387	Bavail  uint64
388	Files   uint64
389	Ffree   uint64
390	Fsid    Fsid
391	Namelen int64
392	Frsize  int64
393	Flags   int64
394	Spare   [4]int64
395}
396
397type TpacketHdr struct {
398	Status  uint64
399	Len     uint32
400	Snaplen uint32
401	Mac     uint16
402	Net     uint16
403	Sec     uint32
404	Usec    uint32
405	_       [4]byte
406}
407
408const (
409	SizeofTpacketHdr = 0x20
410)
411
412type RTCPLLInfo struct {
413	Ctrl    int32
414	Value   int32
415	Max     int32
416	Min     int32
417	Posmult int32
418	Negmult int32
419	Clock   int64
420}
421
422type BlkpgPartition struct {
423	Start   int64
424	Length  int64
425	Pno     int32
426	Devname [64]uint8
427	Volname [64]uint8
428	_       [4]byte
429}
430
431const (
432	BLKPG = 0x20001269
433)
434
435type XDPUmemReg struct {
436	Addr     uint64
437	Len      uint64
438	Size     uint32
439	Headroom uint32
440	Flags    uint32
441	_        [4]byte
442}
443
444type CryptoUserAlg struct {
445	Name        [64]int8
446	Driver_name [64]int8
447	Module_name [64]int8
448	Type        uint32
449	Mask        uint32
450	Refcnt      uint32
451	Flags       uint32
452}
453
454type CryptoStatAEAD struct {
455	Type         [64]int8
456	Encrypt_cnt  uint64
457	Encrypt_tlen uint64
458	Decrypt_cnt  uint64
459	Decrypt_tlen uint64
460	Err_cnt      uint64
461}
462
463type CryptoStatAKCipher struct {
464	Type         [64]int8
465	Encrypt_cnt  uint64
466	Encrypt_tlen uint64
467	Decrypt_cnt  uint64
468	Decrypt_tlen uint64
469	Verify_cnt   uint64
470	Sign_cnt     uint64
471	Err_cnt      uint64
472}
473
474type CryptoStatCipher struct {
475	Type         [64]int8
476	Encrypt_cnt  uint64
477	Encrypt_tlen uint64
478	Decrypt_cnt  uint64
479	Decrypt_tlen uint64
480	Err_cnt      uint64
481}
482
483type CryptoStatCompress struct {
484	Type            [64]int8
485	Compress_cnt    uint64
486	Compress_tlen   uint64
487	Decompress_cnt  uint64
488	Decompress_tlen uint64
489	Err_cnt         uint64
490}
491
492type CryptoStatHash struct {
493	Type      [64]int8
494	Hash_cnt  uint64
495	Hash_tlen uint64
496	Err_cnt   uint64
497}
498
499type CryptoStatKPP struct {
500	Type                      [64]int8
501	Setsecret_cnt             uint64
502	Generate_public_key_cnt   uint64
503	Compute_shared_secret_cnt uint64
504	Err_cnt                   uint64
505}
506
507type CryptoStatRNG struct {
508	Type          [64]int8
509	Generate_cnt  uint64
510	Generate_tlen uint64
511	Seed_cnt      uint64
512	Err_cnt       uint64
513}
514
515type CryptoStatLarval struct {
516	Type [64]int8
517}
518
519type CryptoReportLarval struct {
520	Type [64]int8
521}
522
523type CryptoReportHash struct {
524	Type       [64]int8
525	Blocksize  uint32
526	Digestsize uint32
527}
528
529type CryptoReportCipher struct {
530	Type        [64]int8
531	Blocksize   uint32
532	Min_keysize uint32
533	Max_keysize uint32
534}
535
536type CryptoReportBlkCipher struct {
537	Type        [64]int8
538	Geniv       [64]int8
539	Blocksize   uint32
540	Min_keysize uint32
541	Max_keysize uint32
542	Ivsize      uint32
543}
544
545type CryptoReportAEAD struct {
546	Type        [64]int8
547	Geniv       [64]int8
548	Blocksize   uint32
549	Maxauthsize uint32
550	Ivsize      uint32
551}
552
553type CryptoReportComp struct {
554	Type [64]int8
555}
556
557type CryptoReportRNG struct {
558	Type     [64]int8
559	Seedsize uint32
560}
561
562type CryptoReportAKCipher struct {
563	Type [64]int8
564}
565
566type CryptoReportKPP struct {
567	Type [64]int8
568}
569
570type CryptoReportAcomp struct {
571	Type [64]int8
572}
573
574type LoopInfo struct {
575	Number           int32
576	Device           uint32
577	Inode            uint64
578	Rdevice          uint32
579	Offset           int32
580	Encrypt_type     int32
581	Encrypt_key_size int32
582	Flags            int32
583	Name             [64]int8
584	Encrypt_key      [32]uint8
585	Init             [2]uint64
586	Reserved         [4]int8
587	_                [4]byte
588}
589
590type TIPCSubscr struct {
591	Seq     TIPCServiceRange
592	Timeout uint32
593	Filter  uint32
594	Handle  [8]int8
595}
596
597type TIPCSIOCLNReq struct {
598	Peer     uint32
599	Id       uint32
600	Linkname [68]int8
601}
602
603type TIPCSIOCNodeIDReq struct {
604	Peer uint32
605	Id   [16]int8
606}
607
608type PPSKInfo struct {
609	Assert_sequence uint32
610	Clear_sequence  uint32
611	Assert_tu       PPSKTime
612	Clear_tu        PPSKTime
613	Current_mode    int32
614	_               [4]byte
615}
616
617const (
618	PPS_GETPARAMS = 0x400870a1
619	PPS_SETPARAMS = 0x800870a2
620	PPS_GETCAP    = 0x400870a3
621	PPS_FETCH     = 0xc00870a4
622)
623