Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

713 linhas
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. type Siginfo struct {
  245. Signo int32
  246. Errno int32
  247. Code int32
  248. _ int32
  249. _ [112]byte
  250. }
  251. type Termios struct {
  252. Iflag uint32
  253. Oflag uint32
  254. Cflag uint32
  255. Lflag uint32
  256. Line uint8
  257. Cc [19]uint8
  258. Ispeed uint32
  259. Ospeed uint32
  260. }
  261. type Taskstats struct {
  262. Version uint16
  263. Ac_exitcode uint32
  264. Ac_flag uint8
  265. Ac_nice uint8
  266. Cpu_count uint64
  267. Cpu_delay_total uint64
  268. Blkio_count uint64
  269. Blkio_delay_total uint64
  270. Swapin_count uint64
  271. Swapin_delay_total uint64
  272. Cpu_run_real_total uint64
  273. Cpu_run_virtual_total uint64
  274. Ac_comm [32]uint8
  275. Ac_sched uint8
  276. Ac_pad [3]uint8
  277. _ [4]byte
  278. Ac_uid uint32
  279. Ac_gid uint32
  280. Ac_pid uint32
  281. Ac_ppid uint32
  282. Ac_btime uint32
  283. Ac_etime uint64
  284. Ac_utime uint64
  285. Ac_stime uint64
  286. Ac_minflt uint64
  287. Ac_majflt uint64
  288. Coremem uint64
  289. Virtmem uint64
  290. Hiwater_rss uint64
  291. Hiwater_vm uint64
  292. Read_char uint64
  293. Write_char uint64
  294. Read_syscalls uint64
  295. Write_syscalls uint64
  296. Read_bytes uint64
  297. Write_bytes uint64
  298. Cancelled_write_bytes uint64
  299. Nvcsw uint64
  300. Nivcsw uint64
  301. Ac_utimescaled uint64
  302. Ac_stimescaled uint64
  303. Cpu_scaled_run_real_total uint64
  304. Freepages_count uint64
  305. Freepages_delay_total uint64
  306. Thrashing_count uint64
  307. Thrashing_delay_total uint64
  308. Ac_btime64 uint64
  309. Compact_count uint64
  310. Compact_delay_total uint64
  311. Ac_tgid uint32
  312. Ac_tgetime uint64
  313. Ac_exe_dev uint64
  314. Ac_exe_inode uint64
  315. Wpcopy_count uint64
  316. Wpcopy_delay_total uint64
  317. }
  318. type cpuMask uint64
  319. const (
  320. _NCPUBITS = 0x40
  321. )
  322. const (
  323. CBitFieldMaskBit0 = 0x1
  324. CBitFieldMaskBit1 = 0x2
  325. CBitFieldMaskBit2 = 0x4
  326. CBitFieldMaskBit3 = 0x8
  327. CBitFieldMaskBit4 = 0x10
  328. CBitFieldMaskBit5 = 0x20
  329. CBitFieldMaskBit6 = 0x40
  330. CBitFieldMaskBit7 = 0x80
  331. CBitFieldMaskBit8 = 0x100
  332. CBitFieldMaskBit9 = 0x200
  333. CBitFieldMaskBit10 = 0x400
  334. CBitFieldMaskBit11 = 0x800
  335. CBitFieldMaskBit12 = 0x1000
  336. CBitFieldMaskBit13 = 0x2000
  337. CBitFieldMaskBit14 = 0x4000
  338. CBitFieldMaskBit15 = 0x8000
  339. CBitFieldMaskBit16 = 0x10000
  340. CBitFieldMaskBit17 = 0x20000
  341. CBitFieldMaskBit18 = 0x40000
  342. CBitFieldMaskBit19 = 0x80000
  343. CBitFieldMaskBit20 = 0x100000
  344. CBitFieldMaskBit21 = 0x200000
  345. CBitFieldMaskBit22 = 0x400000
  346. CBitFieldMaskBit23 = 0x800000
  347. CBitFieldMaskBit24 = 0x1000000
  348. CBitFieldMaskBit25 = 0x2000000
  349. CBitFieldMaskBit26 = 0x4000000
  350. CBitFieldMaskBit27 = 0x8000000
  351. CBitFieldMaskBit28 = 0x10000000
  352. CBitFieldMaskBit29 = 0x20000000
  353. CBitFieldMaskBit30 = 0x40000000
  354. CBitFieldMaskBit31 = 0x80000000
  355. CBitFieldMaskBit32 = 0x100000000
  356. CBitFieldMaskBit33 = 0x200000000
  357. CBitFieldMaskBit34 = 0x400000000
  358. CBitFieldMaskBit35 = 0x800000000
  359. CBitFieldMaskBit36 = 0x1000000000
  360. CBitFieldMaskBit37 = 0x2000000000
  361. CBitFieldMaskBit38 = 0x4000000000
  362. CBitFieldMaskBit39 = 0x8000000000
  363. CBitFieldMaskBit40 = 0x10000000000
  364. CBitFieldMaskBit41 = 0x20000000000
  365. CBitFieldMaskBit42 = 0x40000000000
  366. CBitFieldMaskBit43 = 0x80000000000
  367. CBitFieldMaskBit44 = 0x100000000000
  368. CBitFieldMaskBit45 = 0x200000000000
  369. CBitFieldMaskBit46 = 0x400000000000
  370. CBitFieldMaskBit47 = 0x800000000000
  371. CBitFieldMaskBit48 = 0x1000000000000
  372. CBitFieldMaskBit49 = 0x2000000000000
  373. CBitFieldMaskBit50 = 0x4000000000000
  374. CBitFieldMaskBit51 = 0x8000000000000
  375. CBitFieldMaskBit52 = 0x10000000000000
  376. CBitFieldMaskBit53 = 0x20000000000000
  377. CBitFieldMaskBit54 = 0x40000000000000
  378. CBitFieldMaskBit55 = 0x80000000000000
  379. CBitFieldMaskBit56 = 0x100000000000000
  380. CBitFieldMaskBit57 = 0x200000000000000
  381. CBitFieldMaskBit58 = 0x400000000000000
  382. CBitFieldMaskBit59 = 0x800000000000000
  383. CBitFieldMaskBit60 = 0x1000000000000000
  384. CBitFieldMaskBit61 = 0x2000000000000000
  385. CBitFieldMaskBit62 = 0x4000000000000000
  386. CBitFieldMaskBit63 = 0x8000000000000000
  387. )
  388. type SockaddrStorage struct {
  389. Family uint16
  390. _ [118]uint8
  391. _ uint64
  392. }
  393. type HDGeometry struct {
  394. Heads uint8
  395. Sectors uint8
  396. Cylinders uint16
  397. Start uint64
  398. }
  399. type Statfs_t struct {
  400. Type int64
  401. Bsize int64
  402. Blocks uint64
  403. Bfree uint64
  404. Bavail uint64
  405. Files uint64
  406. Ffree uint64
  407. Fsid Fsid
  408. Namelen int64
  409. Frsize int64
  410. Flags int64
  411. Spare [4]int64
  412. }
  413. type TpacketHdr struct {
  414. Status uint64
  415. Len uint32
  416. Snaplen uint32
  417. Mac uint16
  418. Net uint16
  419. Sec uint32
  420. Usec uint32
  421. _ [4]byte
  422. }
  423. const (
  424. SizeofTpacketHdr = 0x20
  425. )
  426. type RTCPLLInfo struct {
  427. Ctrl int32
  428. Value int32
  429. Max int32
  430. Min int32
  431. Posmult int32
  432. Negmult int32
  433. Clock int64
  434. }
  435. type BlkpgPartition struct {
  436. Start int64
  437. Length int64
  438. Pno int32
  439. Devname [64]uint8
  440. Volname [64]uint8
  441. _ [4]byte
  442. }
  443. const (
  444. BLKPG = 0x1269
  445. )
  446. type XDPUmemReg struct {
  447. Addr uint64
  448. Len uint64
  449. Size uint32
  450. Headroom uint32
  451. Flags uint32
  452. _ [4]byte
  453. }
  454. type CryptoUserAlg struct {
  455. Name [64]uint8
  456. Driver_name [64]uint8
  457. Module_name [64]uint8
  458. Type uint32
  459. Mask uint32
  460. Refcnt uint32
  461. Flags uint32
  462. }
  463. type CryptoStatAEAD struct {
  464. Type [64]uint8
  465. Encrypt_cnt uint64
  466. Encrypt_tlen uint64
  467. Decrypt_cnt uint64
  468. Decrypt_tlen uint64
  469. Err_cnt uint64
  470. }
  471. type CryptoStatAKCipher struct {
  472. Type [64]uint8
  473. Encrypt_cnt uint64
  474. Encrypt_tlen uint64
  475. Decrypt_cnt uint64
  476. Decrypt_tlen uint64
  477. Verify_cnt uint64
  478. Sign_cnt uint64
  479. Err_cnt uint64
  480. }
  481. type CryptoStatCipher struct {
  482. Type [64]uint8
  483. Encrypt_cnt uint64
  484. Encrypt_tlen uint64
  485. Decrypt_cnt uint64
  486. Decrypt_tlen uint64
  487. Err_cnt uint64
  488. }
  489. type CryptoStatCompress struct {
  490. Type [64]uint8
  491. Compress_cnt uint64
  492. Compress_tlen uint64
  493. Decompress_cnt uint64
  494. Decompress_tlen uint64
  495. Err_cnt uint64
  496. }
  497. type CryptoStatHash struct {
  498. Type [64]uint8
  499. Hash_cnt uint64
  500. Hash_tlen uint64
  501. Err_cnt uint64
  502. }
  503. type CryptoStatKPP struct {
  504. Type [64]uint8
  505. Setsecret_cnt uint64
  506. Generate_public_key_cnt uint64
  507. Compute_shared_secret_cnt uint64
  508. Err_cnt uint64
  509. }
  510. type CryptoStatRNG struct {
  511. Type [64]uint8
  512. Generate_cnt uint64
  513. Generate_tlen uint64
  514. Seed_cnt uint64
  515. Err_cnt uint64
  516. }
  517. type CryptoStatLarval struct {
  518. Type [64]uint8
  519. }
  520. type CryptoReportLarval struct {
  521. Type [64]uint8
  522. }
  523. type CryptoReportHash struct {
  524. Type [64]uint8
  525. Blocksize uint32
  526. Digestsize uint32
  527. }
  528. type CryptoReportCipher struct {
  529. Type [64]uint8
  530. Blocksize uint32
  531. Min_keysize uint32
  532. Max_keysize uint32
  533. }
  534. type CryptoReportBlkCipher struct {
  535. Type [64]uint8
  536. Geniv [64]uint8
  537. Blocksize uint32
  538. Min_keysize uint32
  539. Max_keysize uint32
  540. Ivsize uint32
  541. }
  542. type CryptoReportAEAD struct {
  543. Type [64]uint8
  544. Geniv [64]uint8
  545. Blocksize uint32
  546. Maxauthsize uint32
  547. Ivsize uint32
  548. }
  549. type CryptoReportComp struct {
  550. Type [64]uint8
  551. }
  552. type CryptoReportRNG struct {
  553. Type [64]uint8
  554. Seedsize uint32
  555. }
  556. type CryptoReportAKCipher struct {
  557. Type [64]uint8
  558. }
  559. type CryptoReportKPP struct {
  560. Type [64]uint8
  561. }
  562. type CryptoReportAcomp struct {
  563. Type [64]uint8
  564. }
  565. type LoopInfo struct {
  566. Number int32
  567. Device uint32
  568. Inode uint64
  569. Rdevice uint32
  570. Offset int32
  571. Encrypt_type int32
  572. Encrypt_key_size int32
  573. Flags int32
  574. Name [64]uint8
  575. Encrypt_key [32]uint8
  576. Init [2]uint64
  577. Reserved [4]uint8
  578. _ [4]byte
  579. }
  580. type TIPCSubscr struct {
  581. Seq TIPCServiceRange
  582. Timeout uint32
  583. Filter uint32
  584. Handle [8]uint8
  585. }
  586. type TIPCSIOCLNReq struct {
  587. Peer uint32
  588. Id uint32
  589. Linkname [68]uint8
  590. }
  591. type TIPCSIOCNodeIDReq struct {
  592. Peer uint32
  593. Id [16]uint8
  594. }
  595. type PPSKInfo struct {
  596. Assert_sequence uint32
  597. Clear_sequence uint32
  598. Assert_tu PPSKTime
  599. Clear_tu PPSKTime
  600. Current_mode int32
  601. _ [4]byte
  602. }
  603. const (
  604. PPS_GETPARAMS = 0x800870a1
  605. PPS_SETPARAMS = 0x400870a2
  606. PPS_GETCAP = 0x800870a3
  607. PPS_FETCH = 0xc00870a4
  608. )
  609. const (
  610. PIDFD_NONBLOCK = 0x800
  611. )
  612. type SysvIpcPerm struct {
  613. Key int32
  614. Uid uint32
  615. Gid uint32
  616. Cuid uint32
  617. Cgid uint32
  618. Mode uint32
  619. _ [0]uint8
  620. Seq uint16
  621. _ uint16
  622. _ uint64
  623. _ uint64
  624. }
  625. type SysvShmDesc struct {
  626. Perm SysvIpcPerm
  627. Segsz uint64
  628. Atime int64
  629. Dtime int64
  630. Ctime int64
  631. Cpid int32
  632. Lpid int32
  633. Nattch uint64
  634. _ uint64
  635. _ uint64
  636. }