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