選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

ztypes_linux_mips64.go 12KB

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