You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ztypes_linux_riscv64.go 13KB

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