ztypes_linux_ppc.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. // cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/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 RawSockaddr struct {
  121. Family uint16
  122. Data [14]uint8
  123. }
  124. type RawSockaddrAny struct {
  125. Addr RawSockaddr
  126. Pad [96]uint8
  127. }
  128. type Iovec struct {
  129. Base *byte
  130. Len uint32
  131. }
  132. type Msghdr struct {
  133. Name *byte
  134. Namelen uint32
  135. Iov *Iovec
  136. Iovlen uint32
  137. Control *byte
  138. Controllen uint32
  139. Flags int32
  140. }
  141. type Cmsghdr struct {
  142. Len uint32
  143. Level int32
  144. Type int32
  145. }
  146. const (
  147. SizeofIovec = 0x8
  148. SizeofMsghdr = 0x1c
  149. SizeofCmsghdr = 0xc
  150. )
  151. const (
  152. SizeofSockFprog = 0x8
  153. )
  154. type PtraceRegs struct {
  155. Gpr [32]uint32
  156. Nip uint32
  157. Msr uint32
  158. Orig_gpr3 uint32
  159. Ctr uint32
  160. Link uint32
  161. Xer uint32
  162. Ccr uint32
  163. Mq uint32
  164. Trap uint32
  165. Dar uint32
  166. Dsisr uint32
  167. Result uint32
  168. }
  169. type FdSet struct {
  170. Bits [32]int32
  171. }
  172. type Sysinfo_t struct {
  173. Uptime int32
  174. Loads [3]uint32
  175. Totalram uint32
  176. Freeram uint32
  177. Sharedram uint32
  178. Bufferram uint32
  179. Totalswap uint32
  180. Freeswap uint32
  181. Procs uint16
  182. Pad uint16
  183. Totalhigh uint32
  184. Freehigh uint32
  185. Unit uint32
  186. _ [8]uint8
  187. }
  188. type Ustat_t struct {
  189. Tfree int32
  190. Tinode uint32
  191. Fname [6]uint8
  192. Fpack [6]uint8
  193. }
  194. type EpollEvent struct {
  195. Events uint32
  196. _ int32
  197. Fd int32
  198. Pad int32
  199. }
  200. const (
  201. POLLRDHUP = 0x2000
  202. )
  203. type Sigset_t struct {
  204. Val [32]uint32
  205. }
  206. const _C__NSIG = 0x41
  207. type Termios struct {
  208. Iflag uint32
  209. Oflag uint32
  210. Cflag uint32
  211. Lflag uint32
  212. Cc [19]uint8
  213. Line uint8
  214. Ispeed uint32
  215. Ospeed uint32
  216. }
  217. type Taskstats struct {
  218. Version uint16
  219. Ac_exitcode uint32
  220. Ac_flag uint8
  221. Ac_nice uint8
  222. _ [4]byte
  223. Cpu_count uint64
  224. Cpu_delay_total uint64
  225. Blkio_count uint64
  226. Blkio_delay_total uint64
  227. Swapin_count uint64
  228. Swapin_delay_total uint64
  229. Cpu_run_real_total uint64
  230. Cpu_run_virtual_total uint64
  231. Ac_comm [32]uint8
  232. Ac_sched uint8
  233. Ac_pad [3]uint8
  234. _ [4]byte
  235. Ac_uid uint32
  236. Ac_gid uint32
  237. Ac_pid uint32
  238. Ac_ppid uint32
  239. Ac_btime uint32
  240. _ [4]byte
  241. Ac_etime uint64
  242. Ac_utime uint64
  243. Ac_stime uint64
  244. Ac_minflt uint64
  245. Ac_majflt uint64
  246. Coremem uint64
  247. Virtmem uint64
  248. Hiwater_rss uint64
  249. Hiwater_vm uint64
  250. Read_char uint64
  251. Write_char uint64
  252. Read_syscalls uint64
  253. Write_syscalls uint64
  254. Read_bytes uint64
  255. Write_bytes uint64
  256. Cancelled_write_bytes uint64
  257. Nvcsw uint64
  258. Nivcsw uint64
  259. Ac_utimescaled uint64
  260. Ac_stimescaled uint64
  261. Cpu_scaled_run_real_total uint64
  262. Freepages_count uint64
  263. Freepages_delay_total uint64
  264. Thrashing_count uint64
  265. Thrashing_delay_total uint64
  266. Ac_btime64 uint64
  267. }
  268. type cpuMask uint32
  269. const (
  270. _NCPUBITS = 0x20
  271. )
  272. const (
  273. CBitFieldMaskBit0 = 0x8000000000000000
  274. CBitFieldMaskBit1 = 0x4000000000000000
  275. CBitFieldMaskBit2 = 0x2000000000000000
  276. CBitFieldMaskBit3 = 0x1000000000000000
  277. CBitFieldMaskBit4 = 0x800000000000000
  278. CBitFieldMaskBit5 = 0x400000000000000
  279. CBitFieldMaskBit6 = 0x200000000000000
  280. CBitFieldMaskBit7 = 0x100000000000000
  281. CBitFieldMaskBit8 = 0x80000000000000
  282. CBitFieldMaskBit9 = 0x40000000000000
  283. CBitFieldMaskBit10 = 0x20000000000000
  284. CBitFieldMaskBit11 = 0x10000000000000
  285. CBitFieldMaskBit12 = 0x8000000000000
  286. CBitFieldMaskBit13 = 0x4000000000000
  287. CBitFieldMaskBit14 = 0x2000000000000
  288. CBitFieldMaskBit15 = 0x1000000000000
  289. CBitFieldMaskBit16 = 0x800000000000
  290. CBitFieldMaskBit17 = 0x400000000000
  291. CBitFieldMaskBit18 = 0x200000000000
  292. CBitFieldMaskBit19 = 0x100000000000
  293. CBitFieldMaskBit20 = 0x80000000000
  294. CBitFieldMaskBit21 = 0x40000000000
  295. CBitFieldMaskBit22 = 0x20000000000
  296. CBitFieldMaskBit23 = 0x10000000000
  297. CBitFieldMaskBit24 = 0x8000000000
  298. CBitFieldMaskBit25 = 0x4000000000
  299. CBitFieldMaskBit26 = 0x2000000000
  300. CBitFieldMaskBit27 = 0x1000000000
  301. CBitFieldMaskBit28 = 0x800000000
  302. CBitFieldMaskBit29 = 0x400000000
  303. CBitFieldMaskBit30 = 0x200000000
  304. CBitFieldMaskBit31 = 0x100000000
  305. CBitFieldMaskBit32 = 0x80000000
  306. CBitFieldMaskBit33 = 0x40000000
  307. CBitFieldMaskBit34 = 0x20000000
  308. CBitFieldMaskBit35 = 0x10000000
  309. CBitFieldMaskBit36 = 0x8000000
  310. CBitFieldMaskBit37 = 0x4000000
  311. CBitFieldMaskBit38 = 0x2000000
  312. CBitFieldMaskBit39 = 0x1000000
  313. CBitFieldMaskBit40 = 0x800000
  314. CBitFieldMaskBit41 = 0x400000
  315. CBitFieldMaskBit42 = 0x200000
  316. CBitFieldMaskBit43 = 0x100000
  317. CBitFieldMaskBit44 = 0x80000
  318. CBitFieldMaskBit45 = 0x40000
  319. CBitFieldMaskBit46 = 0x20000
  320. CBitFieldMaskBit47 = 0x10000
  321. CBitFieldMaskBit48 = 0x8000
  322. CBitFieldMaskBit49 = 0x4000
  323. CBitFieldMaskBit50 = 0x2000
  324. CBitFieldMaskBit51 = 0x1000
  325. CBitFieldMaskBit52 = 0x800
  326. CBitFieldMaskBit53 = 0x400
  327. CBitFieldMaskBit54 = 0x200
  328. CBitFieldMaskBit55 = 0x100
  329. CBitFieldMaskBit56 = 0x80
  330. CBitFieldMaskBit57 = 0x40
  331. CBitFieldMaskBit58 = 0x20
  332. CBitFieldMaskBit59 = 0x10
  333. CBitFieldMaskBit60 = 0x8
  334. CBitFieldMaskBit61 = 0x4
  335. CBitFieldMaskBit62 = 0x2
  336. CBitFieldMaskBit63 = 0x1
  337. )
  338. type SockaddrStorage struct {
  339. Family uint16
  340. _ [122]uint8
  341. _ uint32
  342. }
  343. type HDGeometry struct {
  344. Heads uint8
  345. Sectors uint8
  346. Cylinders uint16
  347. Start uint32
  348. }
  349. type Statfs_t struct {
  350. Type int32
  351. Bsize int32
  352. Blocks uint64
  353. Bfree uint64
  354. Bavail uint64
  355. Files uint64
  356. Ffree uint64
  357. Fsid Fsid
  358. Namelen int32
  359. Frsize int32
  360. Flags int32
  361. Spare [4]int32
  362. _ [4]byte
  363. }
  364. type TpacketHdr struct {
  365. Status uint32
  366. Len uint32
  367. Snaplen uint32
  368. Mac uint16
  369. Net uint16
  370. Sec uint32
  371. Usec uint32
  372. }
  373. const (
  374. SizeofTpacketHdr = 0x18
  375. )
  376. type RTCPLLInfo struct {
  377. Ctrl int32
  378. Value int32
  379. Max int32
  380. Min int32
  381. Posmult int32
  382. Negmult int32
  383. Clock int32
  384. }
  385. type BlkpgPartition struct {
  386. Start int64
  387. Length int64
  388. Pno int32
  389. Devname [64]uint8
  390. Volname [64]uint8
  391. _ [4]byte
  392. }
  393. const (
  394. BLKPG = 0x20001269
  395. )
  396. type XDPUmemReg struct {
  397. Addr uint64
  398. Len uint64
  399. Size uint32
  400. Headroom uint32
  401. Flags uint32
  402. _ [4]byte
  403. }
  404. type CryptoUserAlg struct {
  405. Name [64]uint8
  406. Driver_name [64]uint8
  407. Module_name [64]uint8
  408. Type uint32
  409. Mask uint32
  410. Refcnt uint32
  411. Flags uint32
  412. }
  413. type CryptoStatAEAD struct {
  414. Type [64]uint8
  415. Encrypt_cnt uint64
  416. Encrypt_tlen uint64
  417. Decrypt_cnt uint64
  418. Decrypt_tlen uint64
  419. Err_cnt uint64
  420. }
  421. type CryptoStatAKCipher struct {
  422. Type [64]uint8
  423. Encrypt_cnt uint64
  424. Encrypt_tlen uint64
  425. Decrypt_cnt uint64
  426. Decrypt_tlen uint64
  427. Verify_cnt uint64
  428. Sign_cnt uint64
  429. Err_cnt uint64
  430. }
  431. type CryptoStatCipher struct {
  432. Type [64]uint8
  433. Encrypt_cnt uint64
  434. Encrypt_tlen uint64
  435. Decrypt_cnt uint64
  436. Decrypt_tlen uint64
  437. Err_cnt uint64
  438. }
  439. type CryptoStatCompress struct {
  440. Type [64]uint8
  441. Compress_cnt uint64
  442. Compress_tlen uint64
  443. Decompress_cnt uint64
  444. Decompress_tlen uint64
  445. Err_cnt uint64
  446. }
  447. type CryptoStatHash struct {
  448. Type [64]uint8
  449. Hash_cnt uint64
  450. Hash_tlen uint64
  451. Err_cnt uint64
  452. }
  453. type CryptoStatKPP struct {
  454. Type [64]uint8
  455. Setsecret_cnt uint64
  456. Generate_public_key_cnt uint64
  457. Compute_shared_secret_cnt uint64
  458. Err_cnt uint64
  459. }
  460. type CryptoStatRNG struct {
  461. Type [64]uint8
  462. Generate_cnt uint64
  463. Generate_tlen uint64
  464. Seed_cnt uint64
  465. Err_cnt uint64
  466. }
  467. type CryptoStatLarval struct {
  468. Type [64]uint8
  469. }
  470. type CryptoReportLarval struct {
  471. Type [64]uint8
  472. }
  473. type CryptoReportHash struct {
  474. Type [64]uint8
  475. Blocksize uint32
  476. Digestsize uint32
  477. }
  478. type CryptoReportCipher struct {
  479. Type [64]uint8
  480. Blocksize uint32
  481. Min_keysize uint32
  482. Max_keysize uint32
  483. }
  484. type CryptoReportBlkCipher struct {
  485. Type [64]uint8
  486. Geniv [64]uint8
  487. Blocksize uint32
  488. Min_keysize uint32
  489. Max_keysize uint32
  490. Ivsize uint32
  491. }
  492. type CryptoReportAEAD struct {
  493. Type [64]uint8
  494. Geniv [64]uint8
  495. Blocksize uint32
  496. Maxauthsize uint32
  497. Ivsize uint32
  498. }
  499. type CryptoReportComp struct {
  500. Type [64]uint8
  501. }
  502. type CryptoReportRNG struct {
  503. Type [64]uint8
  504. Seedsize uint32
  505. }
  506. type CryptoReportAKCipher struct {
  507. Type [64]uint8
  508. }
  509. type CryptoReportKPP struct {
  510. Type [64]uint8
  511. }
  512. type CryptoReportAcomp struct {
  513. Type [64]uint8
  514. }
  515. type LoopInfo struct {
  516. Number int32
  517. Device uint32
  518. Inode uint32
  519. Rdevice uint32
  520. Offset int32
  521. Encrypt_type int32
  522. Encrypt_key_size int32
  523. Flags int32
  524. Name [64]uint8
  525. Encrypt_key [32]uint8
  526. Init [2]uint32
  527. Reserved [4]uint8
  528. }
  529. type TIPCSubscr struct {
  530. Seq TIPCServiceRange
  531. Timeout uint32
  532. Filter uint32
  533. Handle [8]uint8
  534. }
  535. type TIPCSIOCLNReq struct {
  536. Peer uint32
  537. Id uint32
  538. Linkname [68]uint8
  539. }
  540. type TIPCSIOCNodeIDReq struct {
  541. Peer uint32
  542. Id [16]uint8
  543. }
  544. type PPSKInfo struct {
  545. Assert_sequence uint32
  546. Clear_sequence uint32
  547. Assert_tu PPSKTime
  548. Clear_tu PPSKTime
  549. Current_mode int32
  550. _ [4]byte
  551. }
  552. const (
  553. PPS_GETPARAMS = 0x400470a1
  554. PPS_SETPARAMS = 0x800470a2
  555. PPS_GETCAP = 0x400470a3
  556. PPS_FETCH = 0xc00470a4
  557. )