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