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 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +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 RawSockaddr struct {
  117. Family uint16
  118. Data [14]uint8
  119. }
  120. type RawSockaddrAny struct {
  121. Addr RawSockaddr
  122. Pad [96]uint8
  123. }
  124. type Iovec struct {
  125. Base *byte
  126. Len uint64
  127. }
  128. type Msghdr struct {
  129. Name *byte
  130. Namelen uint32
  131. Iov *Iovec
  132. Iovlen uint64
  133. Control *byte
  134. Controllen uint64
  135. Flags int32
  136. _ [4]byte
  137. }
  138. type Cmsghdr struct {
  139. Len uint64
  140. Level int32
  141. Type int32
  142. }
  143. const (
  144. SizeofIovec = 0x10
  145. SizeofMsghdr = 0x38
  146. SizeofCmsghdr = 0x10
  147. )
  148. const (
  149. SizeofSockFprog = 0x10
  150. )
  151. type PtraceRegs struct {
  152. Pc uint64
  153. Ra uint64
  154. Sp uint64
  155. Gp uint64
  156. Tp uint64
  157. T0 uint64
  158. T1 uint64
  159. T2 uint64
  160. S0 uint64
  161. S1 uint64
  162. A0 uint64
  163. A1 uint64
  164. A2 uint64
  165. A3 uint64
  166. A4 uint64
  167. A5 uint64
  168. A6 uint64
  169. A7 uint64
  170. S2 uint64
  171. S3 uint64
  172. S4 uint64
  173. S5 uint64
  174. S6 uint64
  175. S7 uint64
  176. S8 uint64
  177. S9 uint64
  178. S10 uint64
  179. S11 uint64
  180. T3 uint64
  181. T4 uint64
  182. T5 uint64
  183. T6 uint64
  184. }
  185. type FdSet struct {
  186. Bits [16]int64
  187. }
  188. type Sysinfo_t struct {
  189. Uptime int64
  190. Loads [3]uint64
  191. Totalram uint64
  192. Freeram uint64
  193. Sharedram uint64
  194. Bufferram uint64
  195. Totalswap uint64
  196. Freeswap uint64
  197. Procs uint16
  198. Pad uint16
  199. Totalhigh uint64
  200. Freehigh uint64
  201. Unit uint32
  202. _ [0]uint8
  203. _ [4]byte
  204. }
  205. type Ustat_t struct {
  206. Tfree int32
  207. Tinode uint64
  208. Fname [6]uint8
  209. Fpack [6]uint8
  210. _ [4]byte
  211. }
  212. type EpollEvent struct {
  213. Events uint32
  214. _ int32
  215. Fd int32
  216. Pad int32
  217. }
  218. const (
  219. POLLRDHUP = 0x2000
  220. )
  221. type Sigset_t struct {
  222. Val [16]uint64
  223. }
  224. const _C__NSIG = 0x41
  225. type Termios struct {
  226. Iflag uint32
  227. Oflag uint32
  228. Cflag uint32
  229. Lflag uint32
  230. Line uint8
  231. Cc [19]uint8
  232. Ispeed uint32
  233. Ospeed uint32
  234. }
  235. type Taskstats struct {
  236. Version uint16
  237. Ac_exitcode uint32
  238. Ac_flag uint8
  239. Ac_nice uint8
  240. Cpu_count uint64
  241. Cpu_delay_total uint64
  242. Blkio_count uint64
  243. Blkio_delay_total uint64
  244. Swapin_count uint64
  245. Swapin_delay_total uint64
  246. Cpu_run_real_total uint64
  247. Cpu_run_virtual_total uint64
  248. Ac_comm [32]uint8
  249. Ac_sched uint8
  250. Ac_pad [3]uint8
  251. _ [4]byte
  252. Ac_uid uint32
  253. Ac_gid uint32
  254. Ac_pid uint32
  255. Ac_ppid uint32
  256. Ac_btime uint32
  257. Ac_etime uint64
  258. Ac_utime uint64
  259. Ac_stime uint64
  260. Ac_minflt uint64
  261. Ac_majflt uint64
  262. Coremem uint64
  263. Virtmem uint64
  264. Hiwater_rss uint64
  265. Hiwater_vm uint64
  266. Read_char uint64
  267. Write_char uint64
  268. Read_syscalls uint64
  269. Write_syscalls uint64
  270. Read_bytes uint64
  271. Write_bytes uint64
  272. Cancelled_write_bytes uint64
  273. Nvcsw uint64
  274. Nivcsw uint64
  275. Ac_utimescaled uint64
  276. Ac_stimescaled uint64
  277. Cpu_scaled_run_real_total uint64
  278. Freepages_count uint64
  279. Freepages_delay_total uint64
  280. Thrashing_count uint64
  281. Thrashing_delay_total uint64
  282. Ac_btime64 uint64
  283. }
  284. type cpuMask uint64
  285. const (
  286. _NCPUBITS = 0x40
  287. )
  288. const (
  289. CBitFieldMaskBit0 = 0x1
  290. CBitFieldMaskBit1 = 0x2
  291. CBitFieldMaskBit2 = 0x4
  292. CBitFieldMaskBit3 = 0x8
  293. CBitFieldMaskBit4 = 0x10
  294. CBitFieldMaskBit5 = 0x20
  295. CBitFieldMaskBit6 = 0x40
  296. CBitFieldMaskBit7 = 0x80
  297. CBitFieldMaskBit8 = 0x100
  298. CBitFieldMaskBit9 = 0x200
  299. CBitFieldMaskBit10 = 0x400
  300. CBitFieldMaskBit11 = 0x800
  301. CBitFieldMaskBit12 = 0x1000
  302. CBitFieldMaskBit13 = 0x2000
  303. CBitFieldMaskBit14 = 0x4000
  304. CBitFieldMaskBit15 = 0x8000
  305. CBitFieldMaskBit16 = 0x10000
  306. CBitFieldMaskBit17 = 0x20000
  307. CBitFieldMaskBit18 = 0x40000
  308. CBitFieldMaskBit19 = 0x80000
  309. CBitFieldMaskBit20 = 0x100000
  310. CBitFieldMaskBit21 = 0x200000
  311. CBitFieldMaskBit22 = 0x400000
  312. CBitFieldMaskBit23 = 0x800000
  313. CBitFieldMaskBit24 = 0x1000000
  314. CBitFieldMaskBit25 = 0x2000000
  315. CBitFieldMaskBit26 = 0x4000000
  316. CBitFieldMaskBit27 = 0x8000000
  317. CBitFieldMaskBit28 = 0x10000000
  318. CBitFieldMaskBit29 = 0x20000000
  319. CBitFieldMaskBit30 = 0x40000000
  320. CBitFieldMaskBit31 = 0x80000000
  321. CBitFieldMaskBit32 = 0x100000000
  322. CBitFieldMaskBit33 = 0x200000000
  323. CBitFieldMaskBit34 = 0x400000000
  324. CBitFieldMaskBit35 = 0x800000000
  325. CBitFieldMaskBit36 = 0x1000000000
  326. CBitFieldMaskBit37 = 0x2000000000
  327. CBitFieldMaskBit38 = 0x4000000000
  328. CBitFieldMaskBit39 = 0x8000000000
  329. CBitFieldMaskBit40 = 0x10000000000
  330. CBitFieldMaskBit41 = 0x20000000000
  331. CBitFieldMaskBit42 = 0x40000000000
  332. CBitFieldMaskBit43 = 0x80000000000
  333. CBitFieldMaskBit44 = 0x100000000000
  334. CBitFieldMaskBit45 = 0x200000000000
  335. CBitFieldMaskBit46 = 0x400000000000
  336. CBitFieldMaskBit47 = 0x800000000000
  337. CBitFieldMaskBit48 = 0x1000000000000
  338. CBitFieldMaskBit49 = 0x2000000000000
  339. CBitFieldMaskBit50 = 0x4000000000000
  340. CBitFieldMaskBit51 = 0x8000000000000
  341. CBitFieldMaskBit52 = 0x10000000000000
  342. CBitFieldMaskBit53 = 0x20000000000000
  343. CBitFieldMaskBit54 = 0x40000000000000
  344. CBitFieldMaskBit55 = 0x80000000000000
  345. CBitFieldMaskBit56 = 0x100000000000000
  346. CBitFieldMaskBit57 = 0x200000000000000
  347. CBitFieldMaskBit58 = 0x400000000000000
  348. CBitFieldMaskBit59 = 0x800000000000000
  349. CBitFieldMaskBit60 = 0x1000000000000000
  350. CBitFieldMaskBit61 = 0x2000000000000000
  351. CBitFieldMaskBit62 = 0x4000000000000000
  352. CBitFieldMaskBit63 = 0x8000000000000000
  353. )
  354. type SockaddrStorage struct {
  355. Family uint16
  356. _ [118]uint8
  357. _ uint64
  358. }
  359. type HDGeometry struct {
  360. Heads uint8
  361. Sectors uint8
  362. Cylinders uint16
  363. Start uint64
  364. }
  365. type Statfs_t struct {
  366. Type int64
  367. Bsize int64
  368. Blocks uint64
  369. Bfree uint64
  370. Bavail uint64
  371. Files uint64
  372. Ffree uint64
  373. Fsid Fsid
  374. Namelen int64
  375. Frsize int64
  376. Flags int64
  377. Spare [4]int64
  378. }
  379. type TpacketHdr struct {
  380. Status uint64
  381. Len uint32
  382. Snaplen uint32
  383. Mac uint16
  384. Net uint16
  385. Sec uint32
  386. Usec uint32
  387. _ [4]byte
  388. }
  389. const (
  390. SizeofTpacketHdr = 0x20
  391. )
  392. type RTCPLLInfo struct {
  393. Ctrl int32
  394. Value int32
  395. Max int32
  396. Min int32
  397. Posmult int32
  398. Negmult int32
  399. Clock int64
  400. }
  401. type BlkpgPartition struct {
  402. Start int64
  403. Length int64
  404. Pno int32
  405. Devname [64]uint8
  406. Volname [64]uint8
  407. _ [4]byte
  408. }
  409. const (
  410. BLKPG = 0x1269
  411. )
  412. type XDPUmemReg struct {
  413. Addr uint64
  414. Len uint64
  415. Size uint32
  416. Headroom uint32
  417. Flags uint32
  418. _ [4]byte
  419. }
  420. type CryptoUserAlg struct {
  421. Name [64]uint8
  422. Driver_name [64]uint8
  423. Module_name [64]uint8
  424. Type uint32
  425. Mask uint32
  426. Refcnt uint32
  427. Flags uint32
  428. }
  429. type CryptoStatAEAD struct {
  430. Type [64]uint8
  431. Encrypt_cnt uint64
  432. Encrypt_tlen uint64
  433. Decrypt_cnt uint64
  434. Decrypt_tlen uint64
  435. Err_cnt uint64
  436. }
  437. type CryptoStatAKCipher struct {
  438. Type [64]uint8
  439. Encrypt_cnt uint64
  440. Encrypt_tlen uint64
  441. Decrypt_cnt uint64
  442. Decrypt_tlen uint64
  443. Verify_cnt uint64
  444. Sign_cnt uint64
  445. Err_cnt uint64
  446. }
  447. type CryptoStatCipher struct {
  448. Type [64]uint8
  449. Encrypt_cnt uint64
  450. Encrypt_tlen uint64
  451. Decrypt_cnt uint64
  452. Decrypt_tlen uint64
  453. Err_cnt uint64
  454. }
  455. type CryptoStatCompress struct {
  456. Type [64]uint8
  457. Compress_cnt uint64
  458. Compress_tlen uint64
  459. Decompress_cnt uint64
  460. Decompress_tlen uint64
  461. Err_cnt uint64
  462. }
  463. type CryptoStatHash struct {
  464. Type [64]uint8
  465. Hash_cnt uint64
  466. Hash_tlen uint64
  467. Err_cnt uint64
  468. }
  469. type CryptoStatKPP struct {
  470. Type [64]uint8
  471. Setsecret_cnt uint64
  472. Generate_public_key_cnt uint64
  473. Compute_shared_secret_cnt uint64
  474. Err_cnt uint64
  475. }
  476. type CryptoStatRNG struct {
  477. Type [64]uint8
  478. Generate_cnt uint64
  479. Generate_tlen uint64
  480. Seed_cnt uint64
  481. Err_cnt uint64
  482. }
  483. type CryptoStatLarval struct {
  484. Type [64]uint8
  485. }
  486. type CryptoReportLarval struct {
  487. Type [64]uint8
  488. }
  489. type CryptoReportHash struct {
  490. Type [64]uint8
  491. Blocksize uint32
  492. Digestsize uint32
  493. }
  494. type CryptoReportCipher struct {
  495. Type [64]uint8
  496. Blocksize uint32
  497. Min_keysize uint32
  498. Max_keysize uint32
  499. }
  500. type CryptoReportBlkCipher struct {
  501. Type [64]uint8
  502. Geniv [64]uint8
  503. Blocksize uint32
  504. Min_keysize uint32
  505. Max_keysize uint32
  506. Ivsize uint32
  507. }
  508. type CryptoReportAEAD struct {
  509. Type [64]uint8
  510. Geniv [64]uint8
  511. Blocksize uint32
  512. Maxauthsize uint32
  513. Ivsize uint32
  514. }
  515. type CryptoReportComp struct {
  516. Type [64]uint8
  517. }
  518. type CryptoReportRNG struct {
  519. Type [64]uint8
  520. Seedsize uint32
  521. }
  522. type CryptoReportAKCipher struct {
  523. Type [64]uint8
  524. }
  525. type CryptoReportKPP struct {
  526. Type [64]uint8
  527. }
  528. type CryptoReportAcomp struct {
  529. Type [64]uint8
  530. }
  531. type LoopInfo struct {
  532. Number int32
  533. Device uint32
  534. Inode uint64
  535. Rdevice uint32
  536. Offset int32
  537. Encrypt_type int32
  538. Encrypt_key_size int32
  539. Flags int32
  540. Name [64]uint8
  541. Encrypt_key [32]uint8
  542. Init [2]uint64
  543. Reserved [4]uint8
  544. _ [4]byte
  545. }
  546. type TIPCSubscr struct {
  547. Seq TIPCServiceRange
  548. Timeout uint32
  549. Filter uint32
  550. Handle [8]uint8
  551. }
  552. type TIPCSIOCLNReq struct {
  553. Peer uint32
  554. Id uint32
  555. Linkname [68]uint8
  556. }
  557. type TIPCSIOCNodeIDReq struct {
  558. Peer uint32
  559. Id [16]uint8
  560. }