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.
 
 

688 line
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. type Siginfo struct {
  220. Signo int32
  221. Code int32
  222. Errno int32
  223. _ int32
  224. _ [112]byte
  225. }
  226. type Termios struct {
  227. Iflag uint32
  228. Oflag uint32
  229. Cflag uint32
  230. Lflag uint32
  231. Line uint8
  232. Cc [23]uint8
  233. Ispeed uint32
  234. Ospeed uint32
  235. }
  236. type Taskstats struct {
  237. Version uint16
  238. Ac_exitcode uint32
  239. Ac_flag uint8
  240. Ac_nice uint8
  241. Cpu_count uint64
  242. Cpu_delay_total uint64
  243. Blkio_count uint64
  244. Blkio_delay_total uint64
  245. Swapin_count uint64
  246. Swapin_delay_total uint64
  247. Cpu_run_real_total uint64
  248. Cpu_run_virtual_total uint64
  249. Ac_comm [32]int8
  250. Ac_sched uint8
  251. Ac_pad [3]uint8
  252. _ [4]byte
  253. Ac_uid uint32
  254. Ac_gid uint32
  255. Ac_pid uint32
  256. Ac_ppid uint32
  257. Ac_btime uint32
  258. Ac_etime uint64
  259. Ac_utime uint64
  260. Ac_stime uint64
  261. Ac_minflt uint64
  262. Ac_majflt uint64
  263. Coremem uint64
  264. Virtmem uint64
  265. Hiwater_rss uint64
  266. Hiwater_vm uint64
  267. Read_char uint64
  268. Write_char uint64
  269. Read_syscalls uint64
  270. Write_syscalls uint64
  271. Read_bytes uint64
  272. Write_bytes uint64
  273. Cancelled_write_bytes uint64
  274. Nvcsw uint64
  275. Nivcsw uint64
  276. Ac_utimescaled uint64
  277. Ac_stimescaled uint64
  278. Cpu_scaled_run_real_total uint64
  279. Freepages_count uint64
  280. Freepages_delay_total uint64
  281. Thrashing_count uint64
  282. Thrashing_delay_total uint64
  283. Ac_btime64 uint64
  284. Compact_count uint64
  285. Compact_delay_total uint64
  286. Ac_tgid uint32
  287. Ac_tgetime uint64
  288. Ac_exe_dev uint64
  289. Ac_exe_inode uint64
  290. Wpcopy_count uint64
  291. Wpcopy_delay_total uint64
  292. }
  293. type cpuMask uint64
  294. const (
  295. _NCPUBITS = 0x40
  296. )
  297. const (
  298. CBitFieldMaskBit0 = 0x1
  299. CBitFieldMaskBit1 = 0x2
  300. CBitFieldMaskBit2 = 0x4
  301. CBitFieldMaskBit3 = 0x8
  302. CBitFieldMaskBit4 = 0x10
  303. CBitFieldMaskBit5 = 0x20
  304. CBitFieldMaskBit6 = 0x40
  305. CBitFieldMaskBit7 = 0x80
  306. CBitFieldMaskBit8 = 0x100
  307. CBitFieldMaskBit9 = 0x200
  308. CBitFieldMaskBit10 = 0x400
  309. CBitFieldMaskBit11 = 0x800
  310. CBitFieldMaskBit12 = 0x1000
  311. CBitFieldMaskBit13 = 0x2000
  312. CBitFieldMaskBit14 = 0x4000
  313. CBitFieldMaskBit15 = 0x8000
  314. CBitFieldMaskBit16 = 0x10000
  315. CBitFieldMaskBit17 = 0x20000
  316. CBitFieldMaskBit18 = 0x40000
  317. CBitFieldMaskBit19 = 0x80000
  318. CBitFieldMaskBit20 = 0x100000
  319. CBitFieldMaskBit21 = 0x200000
  320. CBitFieldMaskBit22 = 0x400000
  321. CBitFieldMaskBit23 = 0x800000
  322. CBitFieldMaskBit24 = 0x1000000
  323. CBitFieldMaskBit25 = 0x2000000
  324. CBitFieldMaskBit26 = 0x4000000
  325. CBitFieldMaskBit27 = 0x8000000
  326. CBitFieldMaskBit28 = 0x10000000
  327. CBitFieldMaskBit29 = 0x20000000
  328. CBitFieldMaskBit30 = 0x40000000
  329. CBitFieldMaskBit31 = 0x80000000
  330. CBitFieldMaskBit32 = 0x100000000
  331. CBitFieldMaskBit33 = 0x200000000
  332. CBitFieldMaskBit34 = 0x400000000
  333. CBitFieldMaskBit35 = 0x800000000
  334. CBitFieldMaskBit36 = 0x1000000000
  335. CBitFieldMaskBit37 = 0x2000000000
  336. CBitFieldMaskBit38 = 0x4000000000
  337. CBitFieldMaskBit39 = 0x8000000000
  338. CBitFieldMaskBit40 = 0x10000000000
  339. CBitFieldMaskBit41 = 0x20000000000
  340. CBitFieldMaskBit42 = 0x40000000000
  341. CBitFieldMaskBit43 = 0x80000000000
  342. CBitFieldMaskBit44 = 0x100000000000
  343. CBitFieldMaskBit45 = 0x200000000000
  344. CBitFieldMaskBit46 = 0x400000000000
  345. CBitFieldMaskBit47 = 0x800000000000
  346. CBitFieldMaskBit48 = 0x1000000000000
  347. CBitFieldMaskBit49 = 0x2000000000000
  348. CBitFieldMaskBit50 = 0x4000000000000
  349. CBitFieldMaskBit51 = 0x8000000000000
  350. CBitFieldMaskBit52 = 0x10000000000000
  351. CBitFieldMaskBit53 = 0x20000000000000
  352. CBitFieldMaskBit54 = 0x40000000000000
  353. CBitFieldMaskBit55 = 0x80000000000000
  354. CBitFieldMaskBit56 = 0x100000000000000
  355. CBitFieldMaskBit57 = 0x200000000000000
  356. CBitFieldMaskBit58 = 0x400000000000000
  357. CBitFieldMaskBit59 = 0x800000000000000
  358. CBitFieldMaskBit60 = 0x1000000000000000
  359. CBitFieldMaskBit61 = 0x2000000000000000
  360. CBitFieldMaskBit62 = 0x4000000000000000
  361. CBitFieldMaskBit63 = 0x8000000000000000
  362. )
  363. type SockaddrStorage struct {
  364. Family uint16
  365. _ [118]int8
  366. _ uint64
  367. }
  368. type HDGeometry struct {
  369. Heads uint8
  370. Sectors uint8
  371. Cylinders uint16
  372. Start uint64
  373. }
  374. type Statfs_t struct {
  375. Type int64
  376. Bsize int64
  377. Frsize int64
  378. Blocks uint64
  379. Bfree uint64
  380. Files uint64
  381. Ffree uint64
  382. Bavail uint64
  383. Fsid Fsid
  384. Namelen int64
  385. Flags int64
  386. Spare [5]int64
  387. }
  388. type TpacketHdr struct {
  389. Status uint64
  390. Len uint32
  391. Snaplen uint32
  392. Mac uint16
  393. Net uint16
  394. Sec uint32
  395. Usec uint32
  396. _ [4]byte
  397. }
  398. const (
  399. SizeofTpacketHdr = 0x20
  400. )
  401. type RTCPLLInfo struct {
  402. Ctrl int32
  403. Value int32
  404. Max int32
  405. Min int32
  406. Posmult int32
  407. Negmult int32
  408. Clock int64
  409. }
  410. type BlkpgPartition struct {
  411. Start int64
  412. Length int64
  413. Pno int32
  414. Devname [64]uint8
  415. Volname [64]uint8
  416. _ [4]byte
  417. }
  418. const (
  419. BLKPG = 0x20001269
  420. )
  421. type XDPUmemReg struct {
  422. Addr uint64
  423. Len uint64
  424. Size uint32
  425. Headroom uint32
  426. Flags uint32
  427. _ [4]byte
  428. }
  429. type CryptoUserAlg struct {
  430. Name [64]int8
  431. Driver_name [64]int8
  432. Module_name [64]int8
  433. Type uint32
  434. Mask uint32
  435. Refcnt uint32
  436. Flags uint32
  437. }
  438. type CryptoStatAEAD struct {
  439. Type [64]int8
  440. Encrypt_cnt uint64
  441. Encrypt_tlen uint64
  442. Decrypt_cnt uint64
  443. Decrypt_tlen uint64
  444. Err_cnt uint64
  445. }
  446. type CryptoStatAKCipher struct {
  447. Type [64]int8
  448. Encrypt_cnt uint64
  449. Encrypt_tlen uint64
  450. Decrypt_cnt uint64
  451. Decrypt_tlen uint64
  452. Verify_cnt uint64
  453. Sign_cnt uint64
  454. Err_cnt uint64
  455. }
  456. type CryptoStatCipher struct {
  457. Type [64]int8
  458. Encrypt_cnt uint64
  459. Encrypt_tlen uint64
  460. Decrypt_cnt uint64
  461. Decrypt_tlen uint64
  462. Err_cnt uint64
  463. }
  464. type CryptoStatCompress struct {
  465. Type [64]int8
  466. Compress_cnt uint64
  467. Compress_tlen uint64
  468. Decompress_cnt uint64
  469. Decompress_tlen uint64
  470. Err_cnt uint64
  471. }
  472. type CryptoStatHash struct {
  473. Type [64]int8
  474. Hash_cnt uint64
  475. Hash_tlen uint64
  476. Err_cnt uint64
  477. }
  478. type CryptoStatKPP struct {
  479. Type [64]int8
  480. Setsecret_cnt uint64
  481. Generate_public_key_cnt uint64
  482. Compute_shared_secret_cnt uint64
  483. Err_cnt uint64
  484. }
  485. type CryptoStatRNG struct {
  486. Type [64]int8
  487. Generate_cnt uint64
  488. Generate_tlen uint64
  489. Seed_cnt uint64
  490. Err_cnt uint64
  491. }
  492. type CryptoStatLarval struct {
  493. Type [64]int8
  494. }
  495. type CryptoReportLarval struct {
  496. Type [64]int8
  497. }
  498. type CryptoReportHash struct {
  499. Type [64]int8
  500. Blocksize uint32
  501. Digestsize uint32
  502. }
  503. type CryptoReportCipher struct {
  504. Type [64]int8
  505. Blocksize uint32
  506. Min_keysize uint32
  507. Max_keysize uint32
  508. }
  509. type CryptoReportBlkCipher struct {
  510. Type [64]int8
  511. Geniv [64]int8
  512. Blocksize uint32
  513. Min_keysize uint32
  514. Max_keysize uint32
  515. Ivsize uint32
  516. }
  517. type CryptoReportAEAD struct {
  518. Type [64]int8
  519. Geniv [64]int8
  520. Blocksize uint32
  521. Maxauthsize uint32
  522. Ivsize uint32
  523. }
  524. type CryptoReportComp struct {
  525. Type [64]int8
  526. }
  527. type CryptoReportRNG struct {
  528. Type [64]int8
  529. Seedsize uint32
  530. }
  531. type CryptoReportAKCipher struct {
  532. Type [64]int8
  533. }
  534. type CryptoReportKPP struct {
  535. Type [64]int8
  536. }
  537. type CryptoReportAcomp struct {
  538. Type [64]int8
  539. }
  540. type LoopInfo struct {
  541. Number int32
  542. Device uint32
  543. Inode uint64
  544. Rdevice uint32
  545. Offset int32
  546. Encrypt_type int32
  547. Encrypt_key_size int32
  548. Flags int32
  549. Name [64]int8
  550. Encrypt_key [32]uint8
  551. Init [2]uint64
  552. Reserved [4]int8
  553. _ [4]byte
  554. }
  555. type TIPCSubscr struct {
  556. Seq TIPCServiceRange
  557. Timeout uint32
  558. Filter uint32
  559. Handle [8]int8
  560. }
  561. type TIPCSIOCLNReq struct {
  562. Peer uint32
  563. Id uint32
  564. Linkname [68]int8
  565. }
  566. type TIPCSIOCNodeIDReq struct {
  567. Peer uint32
  568. Id [16]int8
  569. }
  570. type PPSKInfo struct {
  571. Assert_sequence uint32
  572. Clear_sequence uint32
  573. Assert_tu PPSKTime
  574. Clear_tu PPSKTime
  575. Current_mode int32
  576. _ [4]byte
  577. }
  578. const (
  579. PPS_GETPARAMS = 0x400870a1
  580. PPS_SETPARAMS = 0x800870a2
  581. PPS_GETCAP = 0x400870a3
  582. PPS_FETCH = 0xc00870a4
  583. )
  584. const (
  585. PIDFD_NONBLOCK = 0x80
  586. )
  587. type SysvIpcPerm struct {
  588. Key int32
  589. Uid uint32
  590. Gid uint32
  591. Cuid uint32
  592. Cgid uint32
  593. Mode uint32
  594. _ [0]uint8
  595. Seq uint16
  596. _ uint16
  597. _ uint64
  598. _ uint64
  599. }
  600. type SysvShmDesc struct {
  601. Perm SysvIpcPerm
  602. Segsz uint64
  603. Atime int64
  604. Dtime int64
  605. Ctime int64
  606. Cpid int32
  607. Lpid int32
  608. Nattch uint64
  609. _ uint64
  610. _ uint64
  611. }