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_ppc64le.go 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build ppc64le,linux
  4. package unix
  5. const (
  6. SizeofPtr = 0x8
  7. SizeofLong = 0x8
  8. )
  9. type (
  10. _C_long int64
  11. )
  12. type Timespec struct {
  13. Sec int64
  14. Nsec int64
  15. }
  16. type Timeval struct {
  17. Sec int64
  18. Usec int64
  19. }
  20. type Timex struct {
  21. Modes uint32
  22. Offset int64
  23. Freq int64
  24. Maxerror int64
  25. Esterror int64
  26. Status int32
  27. Constant int64
  28. Precision int64
  29. Tolerance int64
  30. Time Timeval
  31. Tick int64
  32. Ppsfreq int64
  33. Jitter int64
  34. Shift int32
  35. Stabil int64
  36. Jitcnt int64
  37. Calcnt int64
  38. Errcnt int64
  39. Stbcnt int64
  40. Tai int32
  41. _ [44]byte
  42. }
  43. type Time_t int64
  44. type Tms struct {
  45. Utime int64
  46. Stime int64
  47. Cutime int64
  48. Cstime int64
  49. }
  50. type Utimbuf struct {
  51. Actime int64
  52. Modtime int64
  53. }
  54. type Rusage struct {
  55. Utime Timeval
  56. Stime Timeval
  57. Maxrss int64
  58. Ixrss int64
  59. Idrss int64
  60. Isrss int64
  61. Minflt int64
  62. Majflt int64
  63. Nswap int64
  64. Inblock int64
  65. Oublock int64
  66. Msgsnd int64
  67. Msgrcv int64
  68. Nsignals int64
  69. Nvcsw int64
  70. Nivcsw int64
  71. }
  72. type Stat_t struct {
  73. Dev uint64
  74. Ino uint64
  75. Nlink uint64
  76. Mode uint32
  77. Uid uint32
  78. Gid uint32
  79. _ int32
  80. Rdev uint64
  81. Size int64
  82. Blksize int64
  83. Blocks int64
  84. Atim Timespec
  85. Mtim Timespec
  86. Ctim Timespec
  87. _ uint64
  88. _ uint64
  89. _ uint64
  90. }
  91. type Dirent struct {
  92. Ino uint64
  93. Off int64
  94. Reclen uint16
  95. Type uint8
  96. Name [256]uint8
  97. _ [5]byte
  98. }
  99. type Flock_t struct {
  100. Type int16
  101. Whence int16
  102. Start int64
  103. Len int64
  104. Pid int32
  105. _ [4]byte
  106. }
  107. type DmNameList struct {
  108. Dev uint64
  109. Next uint32
  110. Name [0]byte
  111. _ [4]byte
  112. }
  113. const (
  114. FADV_DONTNEED = 0x4
  115. FADV_NOREUSE = 0x5
  116. )
  117. type RawSockaddr struct {
  118. Family uint16
  119. Data [14]uint8
  120. }
  121. type RawSockaddrAny struct {
  122. Addr RawSockaddr
  123. Pad [96]uint8
  124. }
  125. type Iovec struct {
  126. Base *byte
  127. Len uint64
  128. }
  129. type Msghdr struct {
  130. Name *byte
  131. Namelen uint32
  132. Iov *Iovec
  133. Iovlen uint64
  134. Control *byte
  135. Controllen uint64
  136. Flags int32
  137. _ [4]byte
  138. }
  139. type Cmsghdr struct {
  140. Len uint64
  141. Level int32
  142. Type int32
  143. }
  144. const (
  145. SizeofIovec = 0x10
  146. SizeofMsghdr = 0x38
  147. SizeofCmsghdr = 0x10
  148. )
  149. const (
  150. SizeofSockFprog = 0x10
  151. )
  152. type PtraceRegs struct {
  153. Gpr [32]uint64
  154. Nip uint64
  155. Msr uint64
  156. Orig_gpr3 uint64
  157. Ctr uint64
  158. Link uint64
  159. Xer uint64
  160. Ccr uint64
  161. Softe uint64
  162. Trap uint64
  163. Dar uint64
  164. Dsisr uint64
  165. Result uint64
  166. }
  167. type FdSet struct {
  168. Bits [16]int64
  169. }
  170. type Sysinfo_t struct {
  171. Uptime int64
  172. Loads [3]uint64
  173. Totalram uint64
  174. Freeram uint64
  175. Sharedram uint64
  176. Bufferram uint64
  177. Totalswap uint64
  178. Freeswap uint64
  179. Procs uint16
  180. Pad uint16
  181. Totalhigh uint64
  182. Freehigh uint64
  183. Unit uint32
  184. _ [0]uint8
  185. _ [4]byte
  186. }
  187. type Ustat_t struct {
  188. Tfree int32
  189. Tinode uint64
  190. Fname [6]uint8
  191. Fpack [6]uint8
  192. _ [4]byte
  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 [16]uint64
  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. Cpu_count uint64
  223. Cpu_delay_total uint64
  224. Blkio_count uint64
  225. Blkio_delay_total uint64
  226. Swapin_count uint64
  227. Swapin_delay_total uint64
  228. Cpu_run_real_total uint64
  229. Cpu_run_virtual_total uint64
  230. Ac_comm [32]uint8
  231. Ac_sched uint8
  232. Ac_pad [3]uint8
  233. _ [4]byte
  234. Ac_uid uint32
  235. Ac_gid uint32
  236. Ac_pid uint32
  237. Ac_ppid uint32
  238. Ac_btime uint32
  239. Ac_etime uint64
  240. Ac_utime uint64
  241. Ac_stime uint64
  242. Ac_minflt uint64
  243. Ac_majflt uint64
  244. Coremem uint64
  245. Virtmem uint64
  246. Hiwater_rss uint64
  247. Hiwater_vm uint64
  248. Read_char uint64
  249. Write_char uint64
  250. Read_syscalls uint64
  251. Write_syscalls uint64
  252. Read_bytes uint64
  253. Write_bytes uint64
  254. Cancelled_write_bytes uint64
  255. Nvcsw uint64
  256. Nivcsw uint64
  257. Ac_utimescaled uint64
  258. Ac_stimescaled uint64
  259. Cpu_scaled_run_real_total uint64
  260. Freepages_count uint64
  261. Freepages_delay_total uint64
  262. Thrashing_count uint64
  263. Thrashing_delay_total uint64
  264. Ac_btime64 uint64
  265. }
  266. type cpuMask uint64
  267. const (
  268. _NCPUBITS = 0x40
  269. )
  270. const (
  271. CBitFieldMaskBit0 = 0x1
  272. CBitFieldMaskBit1 = 0x2
  273. CBitFieldMaskBit2 = 0x4
  274. CBitFieldMaskBit3 = 0x8
  275. CBitFieldMaskBit4 = 0x10
  276. CBitFieldMaskBit5 = 0x20
  277. CBitFieldMaskBit6 = 0x40
  278. CBitFieldMaskBit7 = 0x80
  279. CBitFieldMaskBit8 = 0x100
  280. CBitFieldMaskBit9 = 0x200
  281. CBitFieldMaskBit10 = 0x400
  282. CBitFieldMaskBit11 = 0x800
  283. CBitFieldMaskBit12 = 0x1000
  284. CBitFieldMaskBit13 = 0x2000
  285. CBitFieldMaskBit14 = 0x4000
  286. CBitFieldMaskBit15 = 0x8000
  287. CBitFieldMaskBit16 = 0x10000
  288. CBitFieldMaskBit17 = 0x20000
  289. CBitFieldMaskBit18 = 0x40000
  290. CBitFieldMaskBit19 = 0x80000
  291. CBitFieldMaskBit20 = 0x100000
  292. CBitFieldMaskBit21 = 0x200000
  293. CBitFieldMaskBit22 = 0x400000
  294. CBitFieldMaskBit23 = 0x800000
  295. CBitFieldMaskBit24 = 0x1000000
  296. CBitFieldMaskBit25 = 0x2000000
  297. CBitFieldMaskBit26 = 0x4000000
  298. CBitFieldMaskBit27 = 0x8000000
  299. CBitFieldMaskBit28 = 0x10000000
  300. CBitFieldMaskBit29 = 0x20000000
  301. CBitFieldMaskBit30 = 0x40000000
  302. CBitFieldMaskBit31 = 0x80000000
  303. CBitFieldMaskBit32 = 0x100000000
  304. CBitFieldMaskBit33 = 0x200000000
  305. CBitFieldMaskBit34 = 0x400000000
  306. CBitFieldMaskBit35 = 0x800000000
  307. CBitFieldMaskBit36 = 0x1000000000
  308. CBitFieldMaskBit37 = 0x2000000000
  309. CBitFieldMaskBit38 = 0x4000000000
  310. CBitFieldMaskBit39 = 0x8000000000
  311. CBitFieldMaskBit40 = 0x10000000000
  312. CBitFieldMaskBit41 = 0x20000000000
  313. CBitFieldMaskBit42 = 0x40000000000
  314. CBitFieldMaskBit43 = 0x80000000000
  315. CBitFieldMaskBit44 = 0x100000000000
  316. CBitFieldMaskBit45 = 0x200000000000
  317. CBitFieldMaskBit46 = 0x400000000000
  318. CBitFieldMaskBit47 = 0x800000000000
  319. CBitFieldMaskBit48 = 0x1000000000000
  320. CBitFieldMaskBit49 = 0x2000000000000
  321. CBitFieldMaskBit50 = 0x4000000000000
  322. CBitFieldMaskBit51 = 0x8000000000000
  323. CBitFieldMaskBit52 = 0x10000000000000
  324. CBitFieldMaskBit53 = 0x20000000000000
  325. CBitFieldMaskBit54 = 0x40000000000000
  326. CBitFieldMaskBit55 = 0x80000000000000
  327. CBitFieldMaskBit56 = 0x100000000000000
  328. CBitFieldMaskBit57 = 0x200000000000000
  329. CBitFieldMaskBit58 = 0x400000000000000
  330. CBitFieldMaskBit59 = 0x800000000000000
  331. CBitFieldMaskBit60 = 0x1000000000000000
  332. CBitFieldMaskBit61 = 0x2000000000000000
  333. CBitFieldMaskBit62 = 0x4000000000000000
  334. CBitFieldMaskBit63 = 0x8000000000000000
  335. )
  336. type SockaddrStorage struct {
  337. Family uint16
  338. _ [118]uint8
  339. _ uint64
  340. }
  341. type HDGeometry struct {
  342. Heads uint8
  343. Sectors uint8
  344. Cylinders uint16
  345. Start uint64
  346. }
  347. type Statfs_t struct {
  348. Type int64
  349. Bsize int64
  350. Blocks uint64
  351. Bfree uint64
  352. Bavail uint64
  353. Files uint64
  354. Ffree uint64
  355. Fsid Fsid
  356. Namelen int64
  357. Frsize int64
  358. Flags int64
  359. Spare [4]int64
  360. }
  361. type TpacketHdr struct {
  362. Status uint64
  363. Len uint32
  364. Snaplen uint32
  365. Mac uint16
  366. Net uint16
  367. Sec uint32
  368. Usec uint32
  369. _ [4]byte
  370. }
  371. const (
  372. SizeofTpacketHdr = 0x20
  373. )
  374. type RTCPLLInfo struct {
  375. Ctrl int32
  376. Value int32
  377. Max int32
  378. Min int32
  379. Posmult int32
  380. Negmult int32
  381. Clock int64
  382. }
  383. type BlkpgPartition struct {
  384. Start int64
  385. Length int64
  386. Pno int32
  387. Devname [64]uint8
  388. Volname [64]uint8
  389. _ [4]byte
  390. }
  391. const (
  392. BLKPG = 0x20001269
  393. )
  394. type XDPUmemReg struct {
  395. Addr uint64
  396. Len uint64
  397. Size uint32
  398. Headroom uint32
  399. Flags uint32
  400. _ [4]byte
  401. }
  402. type CryptoUserAlg struct {
  403. Name [64]uint8
  404. Driver_name [64]uint8
  405. Module_name [64]uint8
  406. Type uint32
  407. Mask uint32
  408. Refcnt uint32
  409. Flags uint32
  410. }
  411. type CryptoStatAEAD struct {
  412. Type [64]uint8
  413. Encrypt_cnt uint64
  414. Encrypt_tlen uint64
  415. Decrypt_cnt uint64
  416. Decrypt_tlen uint64
  417. Err_cnt uint64
  418. }
  419. type CryptoStatAKCipher struct {
  420. Type [64]uint8
  421. Encrypt_cnt uint64
  422. Encrypt_tlen uint64
  423. Decrypt_cnt uint64
  424. Decrypt_tlen uint64
  425. Verify_cnt uint64
  426. Sign_cnt uint64
  427. Err_cnt uint64
  428. }
  429. type CryptoStatCipher struct {
  430. Type [64]uint8
  431. Encrypt_cnt uint64
  432. Encrypt_tlen uint64
  433. Decrypt_cnt uint64
  434. Decrypt_tlen uint64
  435. Err_cnt uint64
  436. }
  437. type CryptoStatCompress struct {
  438. Type [64]uint8
  439. Compress_cnt uint64
  440. Compress_tlen uint64
  441. Decompress_cnt uint64
  442. Decompress_tlen uint64
  443. Err_cnt uint64
  444. }
  445. type CryptoStatHash struct {
  446. Type [64]uint8
  447. Hash_cnt uint64
  448. Hash_tlen uint64
  449. Err_cnt uint64
  450. }
  451. type CryptoStatKPP struct {
  452. Type [64]uint8
  453. Setsecret_cnt uint64
  454. Generate_public_key_cnt uint64
  455. Compute_shared_secret_cnt uint64
  456. Err_cnt uint64
  457. }
  458. type CryptoStatRNG struct {
  459. Type [64]uint8
  460. Generate_cnt uint64
  461. Generate_tlen uint64
  462. Seed_cnt uint64
  463. Err_cnt uint64
  464. }
  465. type CryptoStatLarval struct {
  466. Type [64]uint8
  467. }
  468. type CryptoReportLarval struct {
  469. Type [64]uint8
  470. }
  471. type CryptoReportHash struct {
  472. Type [64]uint8
  473. Blocksize uint32
  474. Digestsize uint32
  475. }
  476. type CryptoReportCipher struct {
  477. Type [64]uint8
  478. Blocksize uint32
  479. Min_keysize uint32
  480. Max_keysize uint32
  481. }
  482. type CryptoReportBlkCipher struct {
  483. Type [64]uint8
  484. Geniv [64]uint8
  485. Blocksize uint32
  486. Min_keysize uint32
  487. Max_keysize uint32
  488. Ivsize uint32
  489. }
  490. type CryptoReportAEAD struct {
  491. Type [64]uint8
  492. Geniv [64]uint8
  493. Blocksize uint32
  494. Maxauthsize uint32
  495. Ivsize uint32
  496. }
  497. type CryptoReportComp struct {
  498. Type [64]uint8
  499. }
  500. type CryptoReportRNG struct {
  501. Type [64]uint8
  502. Seedsize uint32
  503. }
  504. type CryptoReportAKCipher struct {
  505. Type [64]uint8
  506. }
  507. type CryptoReportKPP struct {
  508. Type [64]uint8
  509. }
  510. type CryptoReportAcomp struct {
  511. Type [64]uint8
  512. }
  513. type LoopInfo struct {
  514. Number int32
  515. Device uint64
  516. Inode uint64
  517. Rdevice uint64
  518. Offset int32
  519. Encrypt_type int32
  520. Encrypt_key_size int32
  521. Flags int32
  522. Name [64]uint8
  523. Encrypt_key [32]uint8
  524. Init [2]uint64
  525. Reserved [4]uint8
  526. _ [4]byte
  527. }
  528. type TIPCSubscr struct {
  529. Seq TIPCServiceRange
  530. Timeout uint32
  531. Filter uint32
  532. Handle [8]uint8
  533. }
  534. type TIPCSIOCLNReq struct {
  535. Peer uint32
  536. Id uint32
  537. Linkname [68]uint8
  538. }
  539. type TIPCSIOCNodeIDReq struct {
  540. Peer uint32
  541. Id [16]uint8
  542. }