ztypes_linux_riscv64.go 11 KB

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