25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

691 lines
12 KiB

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