Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

ztypes_linux_loong64.go 12KB

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