ztypes_linux_mipsle.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  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 mipsle && linux
  4. // +build mipsle,linux
  5. package unix
  6. const (
  7. SizeofPtr = 0x4
  8. SizeofLong = 0x4
  9. )
  10. type (
  11. _C_long int32
  12. )
  13. type Timespec struct {
  14. Sec int32
  15. Nsec int32
  16. }
  17. type Timeval struct {
  18. Sec int32
  19. Usec int32
  20. }
  21. type Timex struct {
  22. Modes uint32
  23. Offset int32
  24. Freq int32
  25. Maxerror int32
  26. Esterror int32
  27. Status int32
  28. Constant int32
  29. Precision int32
  30. Tolerance int32
  31. Time Timeval
  32. Tick int32
  33. Ppsfreq int32
  34. Jitter int32
  35. Shift int32
  36. Stabil int32
  37. Jitcnt int32
  38. Calcnt int32
  39. Errcnt int32
  40. Stbcnt int32
  41. Tai int32
  42. _ [44]byte
  43. }
  44. type Time_t int32
  45. type Tms struct {
  46. Utime int32
  47. Stime int32
  48. Cutime int32
  49. Cstime int32
  50. }
  51. type Utimbuf struct {
  52. Actime int32
  53. Modtime int32
  54. }
  55. type Rusage struct {
  56. Utime Timeval
  57. Stime Timeval
  58. Maxrss int32
  59. Ixrss int32
  60. Idrss int32
  61. Isrss int32
  62. Minflt int32
  63. Majflt int32
  64. Nswap int32
  65. Inblock int32
  66. Oublock int32
  67. Msgsnd int32
  68. Msgrcv int32
  69. Nsignals int32
  70. Nvcsw int32
  71. Nivcsw int32
  72. }
  73. type Stat_t struct {
  74. Dev uint32
  75. Pad1 [3]int32
  76. Ino uint64
  77. Mode uint32
  78. Nlink uint32
  79. Uid uint32
  80. Gid uint32
  81. Rdev uint32
  82. Pad2 [3]int32
  83. Size int64
  84. Atim Timespec
  85. Mtim Timespec
  86. Ctim Timespec
  87. Blksize int32
  88. Pad4 int32
  89. Blocks int64
  90. Pad5 [14]int32
  91. }
  92. type Dirent struct {
  93. Ino uint64
  94. Off int64
  95. Reclen uint16
  96. Type uint8
  97. Name [256]int8
  98. _ [5]byte
  99. }
  100. type Flock_t struct {
  101. Type int16
  102. Whence int16
  103. _ [4]byte
  104. Start int64
  105. Len int64
  106. Pid int32
  107. _ [4]byte
  108. }
  109. type DmNameList struct {
  110. Dev uint64
  111. Next uint32
  112. Name [0]byte
  113. _ [4]byte
  114. }
  115. const (
  116. FADV_DONTNEED = 0x4
  117. FADV_NOREUSE = 0x5
  118. )
  119. type RawSockaddr struct {
  120. Family uint16
  121. Data [14]int8
  122. }
  123. type RawSockaddrAny struct {
  124. Addr RawSockaddr
  125. Pad [96]int8
  126. }
  127. type Iovec struct {
  128. Base *byte
  129. Len uint32
  130. }
  131. type Msghdr struct {
  132. Name *byte
  133. Namelen uint32
  134. Iov *Iovec
  135. Iovlen uint32
  136. Control *byte
  137. Controllen uint32
  138. Flags int32
  139. }
  140. type Cmsghdr struct {
  141. Len uint32
  142. Level int32
  143. Type int32
  144. }
  145. const (
  146. SizeofIovec = 0x8
  147. SizeofMsghdr = 0x1c
  148. SizeofCmsghdr = 0xc
  149. )
  150. const (
  151. SizeofSockFprog = 0x8
  152. )
  153. type PtraceRegs struct {
  154. Regs [32]uint64
  155. Lo uint64
  156. Hi uint64
  157. Epc uint64
  158. Badvaddr uint64
  159. Status uint64
  160. Cause uint64
  161. }
  162. type FdSet struct {
  163. Bits [32]int32
  164. }
  165. type Sysinfo_t struct {
  166. Uptime int32
  167. Loads [3]uint32
  168. Totalram uint32
  169. Freeram uint32
  170. Sharedram uint32
  171. Bufferram uint32
  172. Totalswap uint32
  173. Freeswap uint32
  174. Procs uint16
  175. Pad uint16
  176. Totalhigh uint32
  177. Freehigh uint32
  178. Unit uint32
  179. _ [8]int8
  180. }
  181. type Ustat_t struct {
  182. Tfree int32
  183. Tinode uint32
  184. Fname [6]int8
  185. Fpack [6]int8
  186. }
  187. type EpollEvent struct {
  188. Events uint32
  189. PadFd int32
  190. Fd int32
  191. Pad int32
  192. }
  193. const (
  194. POLLRDHUP = 0x2000
  195. )
  196. type Sigset_t struct {
  197. Val [32]uint32
  198. }
  199. const _C__NSIG = 0x80
  200. type Termios struct {
  201. Iflag uint32
  202. Oflag uint32
  203. Cflag uint32
  204. Lflag uint32
  205. Line uint8
  206. Cc [23]uint8
  207. Ispeed uint32
  208. Ospeed uint32
  209. }
  210. type Taskstats struct {
  211. Version uint16
  212. Ac_exitcode uint32
  213. Ac_flag uint8
  214. Ac_nice uint8
  215. _ [4]byte
  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. _ [4]byte
  234. Ac_etime uint64
  235. Ac_utime uint64
  236. Ac_stime uint64
  237. Ac_minflt uint64
  238. Ac_majflt uint64
  239. Coremem uint64
  240. Virtmem uint64
  241. Hiwater_rss uint64
  242. Hiwater_vm uint64
  243. Read_char uint64
  244. Write_char uint64
  245. Read_syscalls uint64
  246. Write_syscalls uint64
  247. Read_bytes uint64
  248. Write_bytes uint64
  249. Cancelled_write_bytes uint64
  250. Nvcsw uint64
  251. Nivcsw uint64
  252. Ac_utimescaled uint64
  253. Ac_stimescaled uint64
  254. Cpu_scaled_run_real_total uint64
  255. Freepages_count uint64
  256. Freepages_delay_total uint64
  257. Thrashing_count uint64
  258. Thrashing_delay_total uint64
  259. Ac_btime64 uint64
  260. }
  261. type cpuMask uint32
  262. const (
  263. _NCPUBITS = 0x20
  264. )
  265. const (
  266. CBitFieldMaskBit0 = 0x1
  267. CBitFieldMaskBit1 = 0x2
  268. CBitFieldMaskBit2 = 0x4
  269. CBitFieldMaskBit3 = 0x8
  270. CBitFieldMaskBit4 = 0x10
  271. CBitFieldMaskBit5 = 0x20
  272. CBitFieldMaskBit6 = 0x40
  273. CBitFieldMaskBit7 = 0x80
  274. CBitFieldMaskBit8 = 0x100
  275. CBitFieldMaskBit9 = 0x200
  276. CBitFieldMaskBit10 = 0x400
  277. CBitFieldMaskBit11 = 0x800
  278. CBitFieldMaskBit12 = 0x1000
  279. CBitFieldMaskBit13 = 0x2000
  280. CBitFieldMaskBit14 = 0x4000
  281. CBitFieldMaskBit15 = 0x8000
  282. CBitFieldMaskBit16 = 0x10000
  283. CBitFieldMaskBit17 = 0x20000
  284. CBitFieldMaskBit18 = 0x40000
  285. CBitFieldMaskBit19 = 0x80000
  286. CBitFieldMaskBit20 = 0x100000
  287. CBitFieldMaskBit21 = 0x200000
  288. CBitFieldMaskBit22 = 0x400000
  289. CBitFieldMaskBit23 = 0x800000
  290. CBitFieldMaskBit24 = 0x1000000
  291. CBitFieldMaskBit25 = 0x2000000
  292. CBitFieldMaskBit26 = 0x4000000
  293. CBitFieldMaskBit27 = 0x8000000
  294. CBitFieldMaskBit28 = 0x10000000
  295. CBitFieldMaskBit29 = 0x20000000
  296. CBitFieldMaskBit30 = 0x40000000
  297. CBitFieldMaskBit31 = 0x80000000
  298. CBitFieldMaskBit32 = 0x100000000
  299. CBitFieldMaskBit33 = 0x200000000
  300. CBitFieldMaskBit34 = 0x400000000
  301. CBitFieldMaskBit35 = 0x800000000
  302. CBitFieldMaskBit36 = 0x1000000000
  303. CBitFieldMaskBit37 = 0x2000000000
  304. CBitFieldMaskBit38 = 0x4000000000
  305. CBitFieldMaskBit39 = 0x8000000000
  306. CBitFieldMaskBit40 = 0x10000000000
  307. CBitFieldMaskBit41 = 0x20000000000
  308. CBitFieldMaskBit42 = 0x40000000000
  309. CBitFieldMaskBit43 = 0x80000000000
  310. CBitFieldMaskBit44 = 0x100000000000
  311. CBitFieldMaskBit45 = 0x200000000000
  312. CBitFieldMaskBit46 = 0x400000000000
  313. CBitFieldMaskBit47 = 0x800000000000
  314. CBitFieldMaskBit48 = 0x1000000000000
  315. CBitFieldMaskBit49 = 0x2000000000000
  316. CBitFieldMaskBit50 = 0x4000000000000
  317. CBitFieldMaskBit51 = 0x8000000000000
  318. CBitFieldMaskBit52 = 0x10000000000000
  319. CBitFieldMaskBit53 = 0x20000000000000
  320. CBitFieldMaskBit54 = 0x40000000000000
  321. CBitFieldMaskBit55 = 0x80000000000000
  322. CBitFieldMaskBit56 = 0x100000000000000
  323. CBitFieldMaskBit57 = 0x200000000000000
  324. CBitFieldMaskBit58 = 0x400000000000000
  325. CBitFieldMaskBit59 = 0x800000000000000
  326. CBitFieldMaskBit60 = 0x1000000000000000
  327. CBitFieldMaskBit61 = 0x2000000000000000
  328. CBitFieldMaskBit62 = 0x4000000000000000
  329. CBitFieldMaskBit63 = 0x8000000000000000
  330. )
  331. type SockaddrStorage struct {
  332. Family uint16
  333. _ [122]int8
  334. _ uint32
  335. }
  336. type HDGeometry struct {
  337. Heads uint8
  338. Sectors uint8
  339. Cylinders uint16
  340. Start uint32
  341. }
  342. type Statfs_t struct {
  343. Type int32
  344. Bsize int32
  345. Frsize int32
  346. _ [4]byte
  347. Blocks uint64
  348. Bfree uint64
  349. Files uint64
  350. Ffree uint64
  351. Bavail uint64
  352. Fsid Fsid
  353. Namelen int32
  354. Flags int32
  355. Spare [5]int32
  356. _ [4]byte
  357. }
  358. type TpacketHdr struct {
  359. Status uint32
  360. Len uint32
  361. Snaplen uint32
  362. Mac uint16
  363. Net uint16
  364. Sec uint32
  365. Usec uint32
  366. }
  367. const (
  368. SizeofTpacketHdr = 0x18
  369. )
  370. type RTCPLLInfo struct {
  371. Ctrl int32
  372. Value int32
  373. Max int32
  374. Min int32
  375. Posmult int32
  376. Negmult int32
  377. Clock int32
  378. }
  379. type BlkpgPartition struct {
  380. Start int64
  381. Length int64
  382. Pno int32
  383. Devname [64]uint8
  384. Volname [64]uint8
  385. _ [4]byte
  386. }
  387. const (
  388. BLKPG = 0x20001269
  389. )
  390. type XDPUmemReg struct {
  391. Addr uint64
  392. Len uint64
  393. Size uint32
  394. Headroom uint32
  395. Flags uint32
  396. _ [4]byte
  397. }
  398. type CryptoUserAlg struct {
  399. Name [64]int8
  400. Driver_name [64]int8
  401. Module_name [64]int8
  402. Type uint32
  403. Mask uint32
  404. Refcnt uint32
  405. Flags uint32
  406. }
  407. type CryptoStatAEAD struct {
  408. Type [64]int8
  409. Encrypt_cnt uint64
  410. Encrypt_tlen uint64
  411. Decrypt_cnt uint64
  412. Decrypt_tlen uint64
  413. Err_cnt uint64
  414. }
  415. type CryptoStatAKCipher struct {
  416. Type [64]int8
  417. Encrypt_cnt uint64
  418. Encrypt_tlen uint64
  419. Decrypt_cnt uint64
  420. Decrypt_tlen uint64
  421. Verify_cnt uint64
  422. Sign_cnt uint64
  423. Err_cnt uint64
  424. }
  425. type CryptoStatCipher struct {
  426. Type [64]int8
  427. Encrypt_cnt uint64
  428. Encrypt_tlen uint64
  429. Decrypt_cnt uint64
  430. Decrypt_tlen uint64
  431. Err_cnt uint64
  432. }
  433. type CryptoStatCompress struct {
  434. Type [64]int8
  435. Compress_cnt uint64
  436. Compress_tlen uint64
  437. Decompress_cnt uint64
  438. Decompress_tlen uint64
  439. Err_cnt uint64
  440. }
  441. type CryptoStatHash struct {
  442. Type [64]int8
  443. Hash_cnt uint64
  444. Hash_tlen uint64
  445. Err_cnt uint64
  446. }
  447. type CryptoStatKPP struct {
  448. Type [64]int8
  449. Setsecret_cnt uint64
  450. Generate_public_key_cnt uint64
  451. Compute_shared_secret_cnt uint64
  452. Err_cnt uint64
  453. }
  454. type CryptoStatRNG struct {
  455. Type [64]int8
  456. Generate_cnt uint64
  457. Generate_tlen uint64
  458. Seed_cnt uint64
  459. Err_cnt uint64
  460. }
  461. type CryptoStatLarval struct {
  462. Type [64]int8
  463. }
  464. type CryptoReportLarval struct {
  465. Type [64]int8
  466. }
  467. type CryptoReportHash struct {
  468. Type [64]int8
  469. Blocksize uint32
  470. Digestsize uint32
  471. }
  472. type CryptoReportCipher struct {
  473. Type [64]int8
  474. Blocksize uint32
  475. Min_keysize uint32
  476. Max_keysize uint32
  477. }
  478. type CryptoReportBlkCipher struct {
  479. Type [64]int8
  480. Geniv [64]int8
  481. Blocksize uint32
  482. Min_keysize uint32
  483. Max_keysize uint32
  484. Ivsize uint32
  485. }
  486. type CryptoReportAEAD struct {
  487. Type [64]int8
  488. Geniv [64]int8
  489. Blocksize uint32
  490. Maxauthsize uint32
  491. Ivsize uint32
  492. }
  493. type CryptoReportComp struct {
  494. Type [64]int8
  495. }
  496. type CryptoReportRNG struct {
  497. Type [64]int8
  498. Seedsize uint32
  499. }
  500. type CryptoReportAKCipher struct {
  501. Type [64]int8
  502. }
  503. type CryptoReportKPP struct {
  504. Type [64]int8
  505. }
  506. type CryptoReportAcomp struct {
  507. Type [64]int8
  508. }
  509. type LoopInfo struct {
  510. Number int32
  511. Device uint32
  512. Inode uint32
  513. Rdevice uint32
  514. Offset int32
  515. Encrypt_type int32
  516. Encrypt_key_size int32
  517. Flags int32
  518. Name [64]int8
  519. Encrypt_key [32]uint8
  520. Init [2]uint32
  521. Reserved [4]int8
  522. }
  523. type TIPCSubscr struct {
  524. Seq TIPCServiceRange
  525. Timeout uint32
  526. Filter uint32
  527. Handle [8]int8
  528. }
  529. type TIPCSIOCLNReq struct {
  530. Peer uint32
  531. Id uint32
  532. Linkname [68]int8
  533. }
  534. type TIPCSIOCNodeIDReq struct {
  535. Peer uint32
  536. Id [16]int8
  537. }
  538. type PPSKInfo struct {
  539. Assert_sequence uint32
  540. Clear_sequence uint32
  541. Assert_tu PPSKTime
  542. Clear_tu PPSKTime
  543. Current_mode int32
  544. _ [4]byte
  545. }
  546. const (
  547. PPS_GETPARAMS = 0x400470a1
  548. PPS_SETPARAMS = 0x800470a2
  549. PPS_GETCAP = 0x400470a3
  550. PPS_FETCH = 0xc00470a4
  551. )