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_mips.go 11KB

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