Debian Codegraph @

unix/ztypes_linux_riscv64.go

raw
1 // cgo -godefs -objdir=/tmp/riscv64/cgo -- -Wall -Werror -static -I/tmp/riscv64/include 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
6 package unix
7
8 const (
9 SizeofPtr = 0x8
10 SizeofLong = 0x8
11 )
12
13 type (
14 _C_long int64
15 )
16
17 type Timespec struct {
18 Sec int64
19 Nsec int64
20 }
21
22 type Timeval struct {
23 Sec int64
24 Usec int64
25 }
26
27 type Timex struct {
28 Modes uint32
29 Offset int64
30 Freq int64
31 Maxerror int64
32 Esterror int64
33 Status int32
34 Constant int64
35 Precision int64
36 Tolerance int64
37 Time Timeval
38 Tick int64
39 Ppsfreq int64
40 Jitter int64
41 Shift int32
42 Stabil int64
43 Jitcnt int64
44 Calcnt int64
45 Errcnt int64
46 Stbcnt int64
47 Tai int32
48 _ [44]byte
49 }
50
51 type Time_t int64
52
53 type Tms struct {
54 Utime int64
55 Stime int64
56 Cutime int64
57 Cstime int64
58 }
59
60 type Utimbuf struct {
61 Actime int64
62 Modtime int64
63 }
64
65 type Rusage struct {
66 Utime Timeval
67 Stime Timeval
68 Maxrss int64
69 Ixrss int64
70 Idrss int64
71 Isrss int64
72 Minflt int64
73 Majflt int64
74 Nswap int64
75 Inblock int64
76 Oublock int64
77 Msgsnd int64
78 Msgrcv int64
79 Nsignals int64
80 Nvcsw int64
81 Nivcsw int64
82 }
83
84 type Stat_t struct {
85 Dev uint64
86 Ino uint64
87 Mode uint32
88 Nlink uint32
89 Uid uint32
90 Gid uint32
91 Rdev uint64
92 _ uint64
93 Size int64
94 Blksize int32
95 _ int32
96 Blocks int64
97 Atim Timespec
98 Mtim Timespec
99 Ctim Timespec
100 _ [2]int32
101 }
102
103 type Dirent struct {
104 Ino uint64
105 Off int64
106 Reclen uint16
107 Type uint8
108 Name [256]uint8
109 _ [5]byte
110 }
111
112 type Flock_t struct {
113 Type int16
114 Whence int16
115 Start int64
116 Len int64
117 Pid int32
118 _ [4]byte
119 }
120
121 type DmNameList struct {
122 Dev uint64
123 Next uint32
124 Name [0]byte
125 _ [4]byte
126 }
127
128 const (
129 FADV_DONTNEED = 0x4
130 FADV_NOREUSE = 0x5
131 )
132
133 type RawSockaddrNFCLLCP struct {
134 Sa_family uint16
135 Dev_idx uint32
136 Target_idx uint32
137 Nfc_protocol uint32
138 Dsap uint8
139 Ssap uint8
140 Service_name [63]uint8
141 Service_name_len uint64
142 }
143
144 type RawSockaddr struct {
145 Family uint16
146 Data [14]uint8
147 }
148
149 type RawSockaddrAny struct {
150 Addr RawSockaddr
151 Pad [96]uint8
152 }
153
154 type Iovec struct {
155 Base *byte
156 Len uint64
157 }
158
159 type Msghdr struct {
160 Name *byte
161 Namelen uint32
162 Iov *Iovec
163 Iovlen uint64
164 Control *byte
165 Controllen uint64
166 Flags int32
167 _ [4]byte
168 }
169
170 type Cmsghdr struct {
171 Len uint64
172 Level int32
173 Type int32
174 }
175
176 type ifreq struct {
177 Ifrn [16]byte
178 Ifru [24]byte
179 }
180
181 const (
182 SizeofSockaddrNFCLLCP = 0x60
183 SizeofIovec = 0x10
184 SizeofMsghdr = 0x38
185 SizeofCmsghdr = 0x10
186 )
187
188 const (
189 SizeofSockFprog = 0x10
190 )
191
192 type PtraceRegs struct {
193 Pc uint64
194 Ra uint64
195 Sp uint64
196 Gp uint64
197 Tp uint64
198 T0 uint64
199 T1 uint64
200 T2 uint64
201 S0 uint64
202 S1 uint64
203 A0 uint64
204 A1 uint64
205 A2 uint64
206 A3 uint64
207 A4 uint64
208 A5 uint64
209 A6 uint64
210 A7 uint64
211 S2 uint64
212 S3 uint64
213 S4 uint64
214 S5 uint64
215 S6 uint64
216 S7 uint64
217 S8 uint64
218 S9 uint64
219 S10 uint64
220 S11 uint64
221 T3 uint64
222 T4 uint64
223 T5 uint64
224 T6 uint64
225 }
226
227 type FdSet struct {
228 Bits [16]int64
229 }
230
231 type Sysinfo_t struct {
232 Uptime int64
233 Loads [3]uint64
234 Totalram uint64
235 Freeram uint64
236 Sharedram uint64
237 Bufferram uint64
238 Totalswap uint64
239 Freeswap uint64
240 Procs uint16
241 Pad uint16
242 Totalhigh uint64
243 Freehigh uint64
244 Unit uint32
245 _ [0]uint8
246 _ [4]byte
247 }
248
249 type Ustat_t struct {
250 Tfree int32
251 Tinode uint64
252 Fname [6]uint8
253 Fpack [6]uint8
254 _ [4]byte
255 }
256
257 type EpollEvent struct {
258 Events uint32
259 _ int32
260 Fd int32
261 Pad int32
262 }
263
264 const (
265 OPEN_TREE_CLOEXEC = 0x80000
266 )
267
268 const (
269 POLLRDHUP = 0x2000
270 )
271
272 type Sigset_t struct {
273 Val [16]uint64
274 }
275
276 const _C__NSIG = 0x41
277
278 const (
279 SIG_BLOCK = 0x0
280 SIG_UNBLOCK = 0x1
281 SIG_SETMASK = 0x2
282 )
283
284 type Siginfo struct {
285 Signo int32
286 Errno int32
287 Code int32
288 _ int32
289 _ [112]byte
290 }
291
292 type Termios struct {
293 Iflag uint32
294 Oflag uint32
295 Cflag uint32
296 Lflag uint32
297 Line uint8
298 Cc [19]uint8
299 Ispeed uint32
300 Ospeed uint32
301 }
302
303 type Taskstats struct {
304 Version uint16
305 Ac_exitcode uint32
306 Ac_flag uint8
307 Ac_nice uint8
308 Cpu_count uint64
309 Cpu_delay_total uint64
310 Blkio_count uint64
311 Blkio_delay_total uint64
312 Swapin_count uint64
313 Swapin_delay_total uint64
314 Cpu_run_real_total uint64
315 Cpu_run_virtual_total uint64
316 Ac_comm [32]uint8
317 Ac_sched uint8
318 Ac_pad [3]uint8
319 _ [4]byte
320 Ac_uid uint32
321 Ac_gid uint32
322 Ac_pid uint32
323 Ac_ppid uint32
324 Ac_btime uint32
325 Ac_etime uint64
326 Ac_utime uint64
327 Ac_stime uint64
328 Ac_minflt uint64
329 Ac_majflt uint64
330 Coremem uint64
331 Virtmem uint64
332 Hiwater_rss uint64
333 Hiwater_vm uint64
334 Read_char uint64
335 Write_char uint64
336 Read_syscalls uint64
337 Write_syscalls uint64
338 Read_bytes uint64
339 Write_bytes uint64
340 Cancelled_write_bytes uint64
341 Nvcsw uint64
342 Nivcsw uint64
343 Ac_utimescaled uint64
344 Ac_stimescaled uint64
345 Cpu_scaled_run_real_total uint64
346 Freepages_count uint64
347 Freepages_delay_total uint64
348 Thrashing_count uint64
349 Thrashing_delay_total uint64
350 Ac_btime64 uint64
351 Compact_count uint64
352 Compact_delay_total uint64
353 Ac_tgid uint32
354 Ac_tgetime uint64
355 Ac_exe_dev uint64
356 Ac_exe_inode uint64
357 Wpcopy_count uint64
358 Wpcopy_delay_total uint64
359 Irq_count uint64
360 Irq_delay_total uint64
361 Cpu_delay_max uint64
362 Cpu_delay_min uint64
363 Blkio_delay_max uint64
364 Blkio_delay_min uint64
365 Swapin_delay_max uint64
366 Swapin_delay_min uint64
367 Freepages_delay_max uint64
368 Freepages_delay_min uint64
369 Thrashing_delay_max uint64
370 Thrashing_delay_min uint64
371 Compact_delay_max uint64
372 Compact_delay_min uint64
373 Wpcopy_delay_max uint64
374 Wpcopy_delay_min uint64
375 Irq_delay_max uint64
376 Irq_delay_min uint64
377 Cpu_delay_max_ts KernelTimespec
378 Blkio_delay_max_ts KernelTimespec
379 Swapin_delay_max_ts KernelTimespec
380 Freepages_delay_max_ts KernelTimespec
381 Thrashing_delay_max_ts KernelTimespec
382 Compact_delay_max_ts KernelTimespec
383 Wpcopy_delay_max_ts KernelTimespec
384 Irq_delay_max_ts KernelTimespec
385 }
386
387 type cpuMask uint64
388
389 const (
390 _NCPUBITS = 0x40
391 )
392
393 const (
394 CBitFieldMaskBit0 = 0x1
395 CBitFieldMaskBit1 = 0x2
396 CBitFieldMaskBit2 = 0x4
397 CBitFieldMaskBit3 = 0x8
398 CBitFieldMaskBit4 = 0x10
399 CBitFieldMaskBit5 = 0x20
400 CBitFieldMaskBit6 = 0x40
401 CBitFieldMaskBit7 = 0x80
402 CBitFieldMaskBit8 = 0x100
403 CBitFieldMaskBit9 = 0x200
404 CBitFieldMaskBit10 = 0x400
405 CBitFieldMaskBit11 = 0x800
406 CBitFieldMaskBit12 = 0x1000
407 CBitFieldMaskBit13 = 0x2000
408 CBitFieldMaskBit14 = 0x4000
409 CBitFieldMaskBit15 = 0x8000
410 CBitFieldMaskBit16 = 0x10000
411 CBitFieldMaskBit17 = 0x20000
412 CBitFieldMaskBit18 = 0x40000
413 CBitFieldMaskBit19 = 0x80000
414 CBitFieldMaskBit20 = 0x100000
415 CBitFieldMaskBit21 = 0x200000
416 CBitFieldMaskBit22 = 0x400000
417 CBitFieldMaskBit23 = 0x800000
418 CBitFieldMaskBit24 = 0x1000000
419 CBitFieldMaskBit25 = 0x2000000
420 CBitFieldMaskBit26 = 0x4000000
421 CBitFieldMaskBit27 = 0x8000000
422 CBitFieldMaskBit28 = 0x10000000
423 CBitFieldMaskBit29 = 0x20000000
424 CBitFieldMaskBit30 = 0x40000000
425 CBitFieldMaskBit31 = 0x80000000
426 CBitFieldMaskBit32 = 0x100000000
427 CBitFieldMaskBit33 = 0x200000000
428 CBitFieldMaskBit34 = 0x400000000
429 CBitFieldMaskBit35 = 0x800000000
430 CBitFieldMaskBit36 = 0x1000000000
431 CBitFieldMaskBit37 = 0x2000000000
432 CBitFieldMaskBit38 = 0x4000000000
433 CBitFieldMaskBit39 = 0x8000000000
434 CBitFieldMaskBit40 = 0x10000000000
435 CBitFieldMaskBit41 = 0x20000000000
436 CBitFieldMaskBit42 = 0x40000000000
437 CBitFieldMaskBit43 = 0x80000000000
438 CBitFieldMaskBit44 = 0x100000000000
439 CBitFieldMaskBit45 = 0x200000000000
440 CBitFieldMaskBit46 = 0x400000000000
441 CBitFieldMaskBit47 = 0x800000000000
442 CBitFieldMaskBit48 = 0x1000000000000
443 CBitFieldMaskBit49 = 0x2000000000000
444 CBitFieldMaskBit50 = 0x4000000000000
445 CBitFieldMaskBit51 = 0x8000000000000
446 CBitFieldMaskBit52 = 0x10000000000000
447 CBitFieldMaskBit53 = 0x20000000000000
448 CBitFieldMaskBit54 = 0x40000000000000
449 CBitFieldMaskBit55 = 0x80000000000000
450 CBitFieldMaskBit56 = 0x100000000000000
451 CBitFieldMaskBit57 = 0x200000000000000
452 CBitFieldMaskBit58 = 0x400000000000000
453 CBitFieldMaskBit59 = 0x800000000000000
454 CBitFieldMaskBit60 = 0x1000000000000000
455 CBitFieldMaskBit61 = 0x2000000000000000
456 CBitFieldMaskBit62 = 0x4000000000000000
457 CBitFieldMaskBit63 = 0x8000000000000000
458 )
459
460 type SockaddrStorage struct {
461 Family uint16
462 Data [118]byte
463 _ uint64
464 }
465
466 type HDGeometry struct {
467 Heads uint8
468 Sectors uint8
469 Cylinders uint16
470 Start uint64
471 }
472
473 type Statfs_t struct {
474 Type int64
475 Bsize int64
476 Blocks uint64
477 Bfree uint64
478 Bavail uint64
479 Files uint64
480 Ffree uint64
481 Fsid Fsid
482 Namelen int64
483 Frsize int64
484 Flags int64
485 Spare [4]int64
486 }
487
488 type TpacketHdr struct {
489 Status uint64
490 Len uint32
491 Snaplen uint32
492 Mac uint16
493 Net uint16
494 Sec uint32
495 Usec uint32
496 _ [4]byte
497 }
498
499 const (
500 SizeofTpacketHdr = 0x20
501 )
502
503 type RTCPLLInfo struct {
504 Ctrl int32
505 Value int32
506 Max int32
507 Min int32
508 Posmult int32
509 Negmult int32
510 Clock int64
511 }
512
513 type BlkpgPartition struct {
514 Start int64
515 Length int64
516 Pno int32
517 Devname [64]uint8
518 Volname [64]uint8
519 _ [4]byte
520 }
521
522 const (
523 BLKPG = 0x1269
524 )
525
526 type CryptoUserAlg struct {
527 Name [64]uint8
528 Driver_name [64]uint8
529 Module_name [64]uint8
530 Type uint32
531 Mask uint32
532 Refcnt uint32
533 Flags uint32
534 }
535
536 type CryptoStatAEAD struct {
537 Type [64]uint8
538 Encrypt_cnt uint64
539 Encrypt_tlen uint64
540 Decrypt_cnt uint64
541 Decrypt_tlen uint64
542 Err_cnt uint64
543 }
544
545 type CryptoStatAKCipher struct {
546 Type [64]uint8
547 Encrypt_cnt uint64
548 Encrypt_tlen uint64
549 Decrypt_cnt uint64
550 Decrypt_tlen uint64
551 Verify_cnt uint64
552 Sign_cnt uint64
553 Err_cnt uint64
554 }
555
556 type CryptoStatCipher struct {
557 Type [64]uint8
558 Encrypt_cnt uint64
559 Encrypt_tlen uint64
560 Decrypt_cnt uint64
561 Decrypt_tlen uint64
562 Err_cnt uint64
563 }
564
565 type CryptoStatCompress struct {
566 Type [64]uint8
567 Compress_cnt uint64
568 Compress_tlen uint64
569 Decompress_cnt uint64
570 Decompress_tlen uint64
571 Err_cnt uint64
572 }
573
574 type CryptoStatHash struct {
575 Type [64]uint8
576 Hash_cnt uint64
577 Hash_tlen uint64
578 Err_cnt uint64
579 }
580
581 type CryptoStatKPP struct {
582 Type [64]uint8
583 Setsecret_cnt uint64
584 Generate_public_key_cnt uint64
585 Compute_shared_secret_cnt uint64
586 Err_cnt uint64
587 }
588
589 type CryptoStatRNG struct {
590 Type [64]uint8
591 Generate_cnt uint64
592 Generate_tlen uint64
593 Seed_cnt uint64
594 Err_cnt uint64
595 }
596
597 type CryptoStatLarval struct {
598 Type [64]uint8
599 }
600
601 type CryptoReportLarval struct {
602 Type [64]uint8
603 }
604
605 type CryptoReportHash struct {
606 Type [64]uint8
607 Blocksize uint32
608 Digestsize uint32
609 }
610
611 type CryptoReportCipher struct {
612 Type [64]uint8
613 Blocksize uint32
614 Min_keysize uint32
615 Max_keysize uint32
616 }
617
618 type CryptoReportBlkCipher struct {
619 Type [64]uint8
620 Geniv [64]uint8
621 Blocksize uint32
622 Min_keysize uint32
623 Max_keysize uint32
624 Ivsize uint32
625 }
626
627 type CryptoReportAEAD struct {
628 Type [64]uint8
629 Geniv [64]uint8
630 Blocksize uint32
631 Maxauthsize uint32
632 Ivsize uint32
633 }
634
635 type CryptoReportComp struct {
636 Type [64]uint8
637 }
638
639 type CryptoReportRNG struct {
640 Type [64]uint8
641 Seedsize uint32
642 }
643
644 type CryptoReportAKCipher struct {
645 Type [64]uint8
646 }
647
648 type CryptoReportKPP struct {
649 Type [64]uint8
650 }
651
652 type CryptoReportAcomp struct {
653 Type [64]uint8
654 }
655
656 type LoopInfo struct {
657 Number int32
658 Device uint32
659 Inode uint64
660 Rdevice uint32
661 Offset int32
662 Encrypt_type int32
663 Encrypt_key_size int32
664 Flags int32
665 Name [64]uint8
666 Encrypt_key [32]uint8
667 Init [2]uint64
668 Reserved [4]uint8
669 _ [4]byte
670 }
671
672 type TIPCSubscr struct {
673 Seq TIPCServiceRange
674 Timeout uint32
675 Filter uint32
676 Handle [8]uint8
677 }
678
679 type TIPCSIOCLNReq struct {
680 Peer uint32
681 Id uint32
682 Linkname [68]uint8
683 }
684
685 type TIPCSIOCNodeIDReq struct {
686 Peer uint32
687 Id [16]uint8
688 }
689
690 type PPSKInfo struct {
691 Assert_sequence uint32
692 Clear_sequence uint32
693 Assert_tu PPSKTime
694 Clear_tu PPSKTime
695 Current_mode int32
696 _ [4]byte
697 }
698
699 const (
700 PPS_GETPARAMS = 0x800870a1
701 PPS_SETPARAMS = 0x400870a2
702 PPS_GETCAP = 0x800870a3
703 PPS_FETCH = 0xc00870a4
704 )
705
706 const (
707 PIDFD_NONBLOCK = 0x800
708 )
709
710 type SysvIpcPerm struct {
711 Key int32
712 Uid uint32
713 Gid uint32
714 Cuid uint32
715 Cgid uint32
716 Mode uint32
717 _ [0]uint8
718 Seq uint16
719 _ uint16
720 _ uint64
721 _ uint64
722 }
723 type SysvShmDesc struct {
724 Perm SysvIpcPerm
725 Segsz uint64
726 Atime int64
727 Dtime int64
728 Ctime int64
729 Cpid int32
730 Lpid int32
731 Nattch uint64
732 _ uint64
733 _ uint64
734 }
735
736 type RISCVHWProbePairs struct {
737 Key int64
738 Value uint64
739 }
740
741 const (
742 RISCV_HWPROBE_KEY_MVENDORID = 0x0
743 RISCV_HWPROBE_KEY_MARCHID = 0x1
744 RISCV_HWPROBE_KEY_MIMPID = 0x2
745 RISCV_HWPROBE_KEY_BASE_BEHAVIOR = 0x3
746 RISCV_HWPROBE_BASE_BEHAVIOR_IMA = 0x1
747 RISCV_HWPROBE_KEY_IMA_EXT_0 = 0x4
748 RISCV_HWPROBE_IMA_FD = 0x1
749 RISCV_HWPROBE_IMA_C = 0x2
750 RISCV_HWPROBE_IMA_V = 0x4
751 RISCV_HWPROBE_EXT_ZBA = 0x8
752 RISCV_HWPROBE_EXT_ZBB = 0x10
753 RISCV_HWPROBE_EXT_ZBS = 0x20
754 RISCV_HWPROBE_EXT_ZICBOZ = 0x40
755 RISCV_HWPROBE_EXT_ZBC = 0x80
756 RISCV_HWPROBE_EXT_ZBKB = 0x100
757 RISCV_HWPROBE_EXT_ZBKC = 0x200
758 RISCV_HWPROBE_EXT_ZBKX = 0x400
759 RISCV_HWPROBE_EXT_ZKND = 0x800
760 RISCV_HWPROBE_EXT_ZKNE = 0x1000
761 RISCV_HWPROBE_EXT_ZKNH = 0x2000
762 RISCV_HWPROBE_EXT_ZKSED = 0x4000
763 RISCV_HWPROBE_EXT_ZKSH = 0x8000
764 RISCV_HWPROBE_EXT_ZKT = 0x10000
765 RISCV_HWPROBE_EXT_ZVBB = 0x20000
766 RISCV_HWPROBE_EXT_ZVBC = 0x40000
767 RISCV_HWPROBE_EXT_ZVKB = 0x80000
768 RISCV_HWPROBE_EXT_ZVKG = 0x100000
769 RISCV_HWPROBE_EXT_ZVKNED = 0x200000
770 RISCV_HWPROBE_EXT_ZVKNHA = 0x400000
771 RISCV_HWPROBE_EXT_ZVKNHB = 0x800000
772 RISCV_HWPROBE_EXT_ZVKSED = 0x1000000
773 RISCV_HWPROBE_EXT_ZVKSH = 0x2000000
774 RISCV_HWPROBE_EXT_ZVKT = 0x4000000
775 RISCV_HWPROBE_EXT_ZFH = 0x8000000
776 RISCV_HWPROBE_EXT_ZFHMIN = 0x10000000
777 RISCV_HWPROBE_EXT_ZIHINTNTL = 0x20000000
778 RISCV_HWPROBE_EXT_ZVFH = 0x40000000
779 RISCV_HWPROBE_EXT_ZVFHMIN = 0x80000000
780 RISCV_HWPROBE_EXT_ZFA = 0x100000000
781 RISCV_HWPROBE_EXT_ZTSO = 0x200000000
782 RISCV_HWPROBE_EXT_ZACAS = 0x400000000
783 RISCV_HWPROBE_EXT_ZICOND = 0x800000000
784 RISCV_HWPROBE_EXT_ZIHINTPAUSE = 0x1000000000
785 RISCV_HWPROBE_KEY_CPUPERF_0 = 0x5
786 RISCV_HWPROBE_MISALIGNED_UNKNOWN = 0x0
787 RISCV_HWPROBE_MISALIGNED_EMULATED = 0x1
788 RISCV_HWPROBE_MISALIGNED_SLOW = 0x2
789 RISCV_HWPROBE_MISALIGNED_FAST = 0x3
790 RISCV_HWPROBE_MISALIGNED_UNSUPPORTED = 0x4
791 RISCV_HWPROBE_MISALIGNED_MASK = 0x7
792 RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE = 0x6
793 RISCV_HWPROBE_WHICH_CPUS = 0x1
794 )