Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ztypes_linux_mips.go 12KB

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