Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

699 строки
12 KiB

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