Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

692 rader
12 KiB

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