You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ztypes_linux_mipsle.go 11KB

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