ztypes_linux_mips64.go 11 KB

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