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.

ztypes_linux_ppc.go 13KB

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