Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

694 linhas
12 KiB

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