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.
 
 

719 lines
12 KiB

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