25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

697 satır
12 KiB

  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. // +build mips,linux
  5. package unix
  6. const (
  7. SizeofPtr = 0x4
  8. SizeofLong = 0x4
  9. )
  10. type (
  11. _C_long int32
  12. )
  13. type Timespec struct {
  14. Sec int32
  15. Nsec int32
  16. }
  17. type Timeval struct {
  18. Sec int32
  19. Usec int32
  20. }
  21. type Timex struct {
  22. Modes uint32
  23. Offset int32
  24. Freq int32
  25. Maxerror int32
  26. Esterror int32
  27. Status int32
  28. Constant int32
  29. Precision int32
  30. Tolerance int32
  31. Time Timeval
  32. Tick int32
  33. Ppsfreq int32
  34. Jitter int32
  35. Shift int32
  36. Stabil int32
  37. Jitcnt int32
  38. Calcnt int32
  39. Errcnt int32
  40. Stbcnt int32
  41. Tai int32
  42. _ [44]byte
  43. }
  44. type Time_t int32
  45. type Tms struct {
  46. Utime int32
  47. Stime int32
  48. Cutime int32
  49. Cstime int32
  50. }
  51. type Utimbuf struct {
  52. Actime int32
  53. Modtime int32
  54. }
  55. type Rusage struct {
  56. Utime Timeval
  57. Stime Timeval
  58. Maxrss int32
  59. Ixrss int32
  60. Idrss int32
  61. Isrss int32
  62. Minflt int32
  63. Majflt int32
  64. Nswap int32
  65. Inblock int32
  66. Oublock int32
  67. Msgsnd int32
  68. Msgrcv int32
  69. Nsignals int32
  70. Nvcsw int32
  71. Nivcsw int32
  72. }
  73. type Stat_t struct {
  74. Dev uint32
  75. Pad1 [3]int32
  76. Ino uint64
  77. Mode uint32
  78. Nlink uint32
  79. Uid uint32
  80. Gid uint32
  81. Rdev uint32
  82. Pad2 [3]int32
  83. Size int64
  84. Atim Timespec
  85. Mtim Timespec
  86. Ctim Timespec
  87. Blksize int32
  88. Pad4 int32
  89. Blocks int64
  90. Pad5 [14]int32
  91. }
  92. type Dirent struct {
  93. Ino uint64
  94. Off int64
  95. Reclen uint16
  96. Type uint8
  97. Name [256]int8
  98. _ [5]byte
  99. }
  100. type Flock_t struct {
  101. Type int16
  102. Whence int16
  103. _ [4]byte
  104. Start int64
  105. Len int64
  106. Pid int32
  107. _ [4]byte
  108. }
  109. type DmNameList struct {
  110. Dev uint64
  111. Next uint32
  112. Name [0]byte
  113. _ [4]byte
  114. }
  115. const (
  116. FADV_DONTNEED = 0x4
  117. FADV_NOREUSE = 0x5
  118. )
  119. type RawSockaddrNFCLLCP struct {
  120. Sa_family uint16
  121. Dev_idx uint32
  122. Target_idx uint32
  123. Nfc_protocol uint32
  124. Dsap uint8
  125. Ssap uint8
  126. Service_name [63]uint8
  127. Service_name_len uint32
  128. }
  129. type RawSockaddr struct {
  130. Family uint16
  131. Data [14]int8
  132. }
  133. type RawSockaddrAny struct {
  134. Addr RawSockaddr
  135. Pad [96]int8
  136. }
  137. type Iovec struct {
  138. Base *byte
  139. Len uint32
  140. }
  141. type Msghdr struct {
  142. Name *byte
  143. Namelen uint32
  144. Iov *Iovec
  145. Iovlen uint32
  146. Control *byte
  147. Controllen uint32
  148. Flags int32
  149. }
  150. type Cmsghdr struct {
  151. Len uint32
  152. Level int32
  153. Type int32
  154. }
  155. type ifreq struct {
  156. Ifrn [16]byte
  157. Ifru [16]byte
  158. }
  159. const (
  160. SizeofSockaddrNFCLLCP = 0x58
  161. SizeofIovec = 0x8
  162. SizeofMsghdr = 0x1c
  163. SizeofCmsghdr = 0xc
  164. )
  165. const (
  166. SizeofSockFprog = 0x8
  167. )
  168. type PtraceRegs struct {
  169. Regs [32]uint64
  170. Lo uint64
  171. Hi uint64
  172. Epc uint64
  173. Badvaddr uint64
  174. Status uint64
  175. Cause uint64
  176. }
  177. type FdSet struct {
  178. Bits [32]int32
  179. }
  180. type Sysinfo_t struct {
  181. Uptime int32
  182. Loads [3]uint32
  183. Totalram uint32
  184. Freeram uint32
  185. Sharedram uint32
  186. Bufferram uint32
  187. Totalswap uint32
  188. Freeswap uint32
  189. Procs uint16
  190. Pad uint16
  191. Totalhigh uint32
  192. Freehigh uint32
  193. Unit uint32
  194. _ [8]int8
  195. }
  196. type Ustat_t struct {
  197. Tfree int32
  198. Tinode uint32
  199. Fname [6]int8
  200. Fpack [6]int8
  201. }
  202. type EpollEvent struct {
  203. Events uint32
  204. PadFd 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 [32]uint32
  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. _ [116]byte
  228. }
  229. type Termios struct {
  230. Iflag uint32
  231. Oflag uint32
  232. Cflag uint32
  233. Lflag uint32
  234. Line uint8
  235. Cc [23]uint8
  236. Ispeed uint32
  237. Ospeed uint32
  238. }
  239. type Taskstats struct {
  240. Version uint16
  241. Ac_exitcode uint32
  242. Ac_flag uint8
  243. Ac_nice uint8
  244. _ [4]byte
  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. _ [4]byte
  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. _ [4]byte
  293. Ac_tgetime uint64
  294. Ac_exe_dev uint64
  295. Ac_exe_inode uint64
  296. Wpcopy_count uint64
  297. Wpcopy_delay_total uint64
  298. }
  299. type cpuMask uint32
  300. const (
  301. _NCPUBITS = 0x20
  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 [122]byte
  372. _ uint32
  373. }
  374. type HDGeometry struct {
  375. Heads uint8
  376. Sectors uint8
  377. Cylinders uint16
  378. Start uint32
  379. }
  380. type Statfs_t struct {
  381. Type int32
  382. Bsize int32
  383. Frsize int32
  384. _ [4]byte
  385. Blocks uint64
  386. Bfree uint64
  387. Files uint64
  388. Ffree uint64
  389. Bavail uint64
  390. Fsid Fsid
  391. Namelen int32
  392. Flags int32
  393. Spare [5]int32
  394. _ [4]byte
  395. }
  396. type TpacketHdr struct {
  397. Status uint32
  398. Len uint32
  399. Snaplen uint32
  400. Mac uint16
  401. Net uint16
  402. Sec uint32
  403. Usec uint32
  404. }
  405. const (
  406. SizeofTpacketHdr = 0x18
  407. )
  408. type RTCPLLInfo struct {
  409. Ctrl int32
  410. Value int32
  411. Max int32
  412. Min int32
  413. Posmult int32
  414. Negmult int32
  415. Clock int32
  416. }
  417. type BlkpgPartition struct {
  418. Start int64
  419. Length int64
  420. Pno int32
  421. Devname [64]uint8
  422. Volname [64]uint8
  423. _ [4]byte
  424. }
  425. const (
  426. BLKPG = 0x20001269
  427. )
  428. type XDPUmemReg struct {
  429. Addr uint64
  430. Len uint64
  431. Size uint32
  432. Headroom uint32
  433. Flags uint32
  434. _ [4]byte
  435. }
  436. type CryptoUserAlg struct {
  437. Name [64]int8
  438. Driver_name [64]int8
  439. Module_name [64]int8
  440. Type uint32
  441. Mask uint32
  442. Refcnt uint32
  443. Flags uint32
  444. }
  445. type CryptoStatAEAD struct {
  446. Type [64]int8
  447. Encrypt_cnt uint64
  448. Encrypt_tlen uint64
  449. Decrypt_cnt uint64
  450. Decrypt_tlen uint64
  451. Err_cnt uint64
  452. }
  453. type CryptoStatAKCipher struct {
  454. Type [64]int8
  455. Encrypt_cnt uint64
  456. Encrypt_tlen uint64
  457. Decrypt_cnt uint64
  458. Decrypt_tlen uint64
  459. Verify_cnt uint64
  460. Sign_cnt uint64
  461. Err_cnt uint64
  462. }
  463. type CryptoStatCipher struct {
  464. Type [64]int8
  465. Encrypt_cnt uint64
  466. Encrypt_tlen uint64
  467. Decrypt_cnt uint64
  468. Decrypt_tlen uint64
  469. Err_cnt uint64
  470. }
  471. type CryptoStatCompress struct {
  472. Type [64]int8
  473. Compress_cnt uint64
  474. Compress_tlen uint64
  475. Decompress_cnt uint64
  476. Decompress_tlen uint64
  477. Err_cnt uint64
  478. }
  479. type CryptoStatHash struct {
  480. Type [64]int8
  481. Hash_cnt uint64
  482. Hash_tlen uint64
  483. Err_cnt uint64
  484. }
  485. type CryptoStatKPP struct {
  486. Type [64]int8
  487. Setsecret_cnt uint64
  488. Generate_public_key_cnt uint64
  489. Compute_shared_secret_cnt uint64
  490. Err_cnt uint64
  491. }
  492. type CryptoStatRNG struct {
  493. Type [64]int8
  494. Generate_cnt uint64
  495. Generate_tlen uint64
  496. Seed_cnt uint64
  497. Err_cnt uint64
  498. }
  499. type CryptoStatLarval struct {
  500. Type [64]int8
  501. }
  502. type CryptoReportLarval struct {
  503. Type [64]int8
  504. }
  505. type CryptoReportHash struct {
  506. Type [64]int8
  507. Blocksize uint32
  508. Digestsize uint32
  509. }
  510. type CryptoReportCipher struct {
  511. Type [64]int8
  512. Blocksize uint32
  513. Min_keysize uint32
  514. Max_keysize uint32
  515. }
  516. type CryptoReportBlkCipher struct {
  517. Type [64]int8
  518. Geniv [64]int8
  519. Blocksize uint32
  520. Min_keysize uint32
  521. Max_keysize uint32
  522. Ivsize uint32
  523. }
  524. type CryptoReportAEAD struct {
  525. Type [64]int8
  526. Geniv [64]int8
  527. Blocksize uint32
  528. Maxauthsize uint32
  529. Ivsize uint32
  530. }
  531. type CryptoReportComp struct {
  532. Type [64]int8
  533. }
  534. type CryptoReportRNG struct {
  535. Type [64]int8
  536. Seedsize uint32
  537. }
  538. type CryptoReportAKCipher struct {
  539. Type [64]int8
  540. }
  541. type CryptoReportKPP struct {
  542. Type [64]int8
  543. }
  544. type CryptoReportAcomp struct {
  545. Type [64]int8
  546. }
  547. type LoopInfo struct {
  548. Number int32
  549. Device uint32
  550. Inode uint32
  551. Rdevice uint32
  552. Offset int32
  553. Encrypt_type int32
  554. Encrypt_key_size int32
  555. Flags int32
  556. Name [64]int8
  557. Encrypt_key [32]uint8
  558. Init [2]uint32
  559. Reserved [4]int8
  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 = 0x400470a1
  586. PPS_SETPARAMS = 0x800470a2
  587. PPS_GETCAP = 0x400470a3
  588. PPS_FETCH = 0xc00470a4
  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. _ uint32
  604. _ uint32
  605. }
  606. type SysvShmDesc struct {
  607. Perm SysvIpcPerm
  608. Segsz uint32
  609. Atime uint32
  610. Dtime uint32
  611. Ctime uint32
  612. Cpid int32
  613. Lpid int32
  614. Nattch uint32
  615. Atime_high uint16
  616. Dtime_high uint16
  617. Ctime_high uint16
  618. _ uint16
  619. }