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 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. // cgo -godefs -objdir=/tmp/ppc64le/cgo -- -Wall -Werror -static -I/tmp/ppc64le/include linux/types.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go: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 RawSockaddrNFCLLCP struct {
  118. Sa_family uint16
  119. Dev_idx uint32
  120. Target_idx uint32
  121. Nfc_protocol uint32
  122. Dsap uint8
  123. Ssap uint8
  124. Service_name [63]uint8
  125. Service_name_len uint64
  126. }
  127. type RawSockaddr struct {
  128. Family uint16
  129. Data [14]uint8
  130. }
  131. type RawSockaddrAny struct {
  132. Addr RawSockaddr
  133. Pad [96]uint8
  134. }
  135. type Iovec struct {
  136. Base *byte
  137. Len uint64
  138. }
  139. type Msghdr struct {
  140. Name *byte
  141. Namelen uint32
  142. Iov *Iovec
  143. Iovlen uint64
  144. Control *byte
  145. Controllen uint64
  146. Flags int32
  147. _ [4]byte
  148. }
  149. type Cmsghdr struct {
  150. Len uint64
  151. Level int32
  152. Type int32
  153. }
  154. type ifreq struct {
  155. Ifrn [16]byte
  156. Ifru [24]byte
  157. }
  158. const (
  159. SizeofSockaddrNFCLLCP = 0x60
  160. SizeofIovec = 0x10
  161. SizeofMsghdr = 0x38
  162. SizeofCmsghdr = 0x10
  163. )
  164. const (
  165. SizeofSockFprog = 0x10
  166. )
  167. type PtraceRegs struct {
  168. Gpr [32]uint64
  169. Nip uint64
  170. Msr uint64
  171. Orig_gpr3 uint64
  172. Ctr uint64
  173. Link uint64
  174. Xer uint64
  175. Ccr uint64
  176. Softe uint64
  177. Trap uint64
  178. Dar uint64
  179. Dsisr uint64
  180. Result uint64
  181. }
  182. type FdSet struct {
  183. Bits [16]int64
  184. }
  185. type Sysinfo_t struct {
  186. Uptime int64
  187. Loads [3]uint64
  188. Totalram uint64
  189. Freeram uint64
  190. Sharedram uint64
  191. Bufferram uint64
  192. Totalswap uint64
  193. Freeswap uint64
  194. Procs uint16
  195. Pad uint16
  196. Totalhigh uint64
  197. Freehigh uint64
  198. Unit uint32
  199. _ [0]uint8
  200. _ [4]byte
  201. }
  202. type Ustat_t struct {
  203. Tfree int32
  204. Tinode uint64
  205. Fname [6]uint8
  206. Fpack [6]uint8
  207. _ [4]byte
  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 [16]uint64
  223. }
  224. const _C__NSIG = 0x41
  225. const (
  226. SIG_BLOCK = 0x0
  227. SIG_UNBLOCK = 0x1
  228. SIG_SETMASK = 0x2
  229. )
  230. type Siginfo struct {
  231. Signo int32
  232. Errno int32
  233. Code int32
  234. _ int32
  235. _ [112]byte
  236. }
  237. type Termios struct {
  238. Iflag uint32
  239. Oflag uint32
  240. Cflag uint32
  241. Lflag uint32
  242. Cc [19]uint8
  243. Line uint8
  244. Ispeed uint32
  245. Ospeed uint32
  246. }
  247. type Taskstats struct {
  248. Version uint16
  249. Ac_exitcode uint32
  250. Ac_flag uint8
  251. Ac_nice uint8
  252. Cpu_count uint64
  253. Cpu_delay_total uint64
  254. Blkio_count uint64
  255. Blkio_delay_total uint64
  256. Swapin_count uint64
  257. Swapin_delay_total uint64
  258. Cpu_run_real_total uint64
  259. Cpu_run_virtual_total uint64
  260. Ac_comm [32]uint8
  261. Ac_sched uint8
  262. Ac_pad [3]uint8
  263. _ [4]byte
  264. Ac_uid uint32
  265. Ac_gid uint32
  266. Ac_pid uint32
  267. Ac_ppid uint32
  268. Ac_btime uint32
  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. Ac_tgetime uint64
  299. Ac_exe_dev uint64
  300. Ac_exe_inode uint64
  301. Wpcopy_count uint64
  302. Wpcopy_delay_total uint64
  303. Irq_count uint64
  304. Irq_delay_total uint64
  305. }
  306. type cpuMask uint64
  307. const (
  308. _NCPUBITS = 0x40
  309. )
  310. const (
  311. CBitFieldMaskBit0 = 0x1
  312. CBitFieldMaskBit1 = 0x2
  313. CBitFieldMaskBit2 = 0x4
  314. CBitFieldMaskBit3 = 0x8
  315. CBitFieldMaskBit4 = 0x10
  316. CBitFieldMaskBit5 = 0x20
  317. CBitFieldMaskBit6 = 0x40
  318. CBitFieldMaskBit7 = 0x80
  319. CBitFieldMaskBit8 = 0x100
  320. CBitFieldMaskBit9 = 0x200
  321. CBitFieldMaskBit10 = 0x400
  322. CBitFieldMaskBit11 = 0x800
  323. CBitFieldMaskBit12 = 0x1000
  324. CBitFieldMaskBit13 = 0x2000
  325. CBitFieldMaskBit14 = 0x4000
  326. CBitFieldMaskBit15 = 0x8000
  327. CBitFieldMaskBit16 = 0x10000
  328. CBitFieldMaskBit17 = 0x20000
  329. CBitFieldMaskBit18 = 0x40000
  330. CBitFieldMaskBit19 = 0x80000
  331. CBitFieldMaskBit20 = 0x100000
  332. CBitFieldMaskBit21 = 0x200000
  333. CBitFieldMaskBit22 = 0x400000
  334. CBitFieldMaskBit23 = 0x800000
  335. CBitFieldMaskBit24 = 0x1000000
  336. CBitFieldMaskBit25 = 0x2000000
  337. CBitFieldMaskBit26 = 0x4000000
  338. CBitFieldMaskBit27 = 0x8000000
  339. CBitFieldMaskBit28 = 0x10000000
  340. CBitFieldMaskBit29 = 0x20000000
  341. CBitFieldMaskBit30 = 0x40000000
  342. CBitFieldMaskBit31 = 0x80000000
  343. CBitFieldMaskBit32 = 0x100000000
  344. CBitFieldMaskBit33 = 0x200000000
  345. CBitFieldMaskBit34 = 0x400000000
  346. CBitFieldMaskBit35 = 0x800000000
  347. CBitFieldMaskBit36 = 0x1000000000
  348. CBitFieldMaskBit37 = 0x2000000000
  349. CBitFieldMaskBit38 = 0x4000000000
  350. CBitFieldMaskBit39 = 0x8000000000
  351. CBitFieldMaskBit40 = 0x10000000000
  352. CBitFieldMaskBit41 = 0x20000000000
  353. CBitFieldMaskBit42 = 0x40000000000
  354. CBitFieldMaskBit43 = 0x80000000000
  355. CBitFieldMaskBit44 = 0x100000000000
  356. CBitFieldMaskBit45 = 0x200000000000
  357. CBitFieldMaskBit46 = 0x400000000000
  358. CBitFieldMaskBit47 = 0x800000000000
  359. CBitFieldMaskBit48 = 0x1000000000000
  360. CBitFieldMaskBit49 = 0x2000000000000
  361. CBitFieldMaskBit50 = 0x4000000000000
  362. CBitFieldMaskBit51 = 0x8000000000000
  363. CBitFieldMaskBit52 = 0x10000000000000
  364. CBitFieldMaskBit53 = 0x20000000000000
  365. CBitFieldMaskBit54 = 0x40000000000000
  366. CBitFieldMaskBit55 = 0x80000000000000
  367. CBitFieldMaskBit56 = 0x100000000000000
  368. CBitFieldMaskBit57 = 0x200000000000000
  369. CBitFieldMaskBit58 = 0x400000000000000
  370. CBitFieldMaskBit59 = 0x800000000000000
  371. CBitFieldMaskBit60 = 0x1000000000000000
  372. CBitFieldMaskBit61 = 0x2000000000000000
  373. CBitFieldMaskBit62 = 0x4000000000000000
  374. CBitFieldMaskBit63 = 0x8000000000000000
  375. )
  376. type SockaddrStorage struct {
  377. Family uint16
  378. Data [118]byte
  379. _ uint64
  380. }
  381. type HDGeometry struct {
  382. Heads uint8
  383. Sectors uint8
  384. Cylinders uint16
  385. Start uint64
  386. }
  387. type Statfs_t struct {
  388. Type int64
  389. Bsize int64
  390. Blocks uint64
  391. Bfree uint64
  392. Bavail uint64
  393. Files uint64
  394. Ffree uint64
  395. Fsid Fsid
  396. Namelen int64
  397. Frsize int64
  398. Flags int64
  399. Spare [4]int64
  400. }
  401. type TpacketHdr struct {
  402. Status uint64
  403. Len uint32
  404. Snaplen uint32
  405. Mac uint16
  406. Net uint16
  407. Sec uint32
  408. Usec uint32
  409. _ [4]byte
  410. }
  411. const (
  412. SizeofTpacketHdr = 0x20
  413. )
  414. type RTCPLLInfo struct {
  415. Ctrl int32
  416. Value int32
  417. Max int32
  418. Min int32
  419. Posmult int32
  420. Negmult int32
  421. Clock int64
  422. }
  423. type BlkpgPartition struct {
  424. Start int64
  425. Length int64
  426. Pno int32
  427. Devname [64]uint8
  428. Volname [64]uint8
  429. _ [4]byte
  430. }
  431. const (
  432. BLKPG = 0x20001269
  433. )
  434. type XDPUmemReg struct {
  435. Addr uint64
  436. Len uint64
  437. Size uint32
  438. Headroom uint32
  439. Flags uint32
  440. _ [4]byte
  441. }
  442. type CryptoUserAlg struct {
  443. Name [64]uint8
  444. Driver_name [64]uint8
  445. Module_name [64]uint8
  446. Type uint32
  447. Mask uint32
  448. Refcnt uint32
  449. Flags uint32
  450. }
  451. type CryptoStatAEAD struct {
  452. Type [64]uint8
  453. Encrypt_cnt uint64
  454. Encrypt_tlen uint64
  455. Decrypt_cnt uint64
  456. Decrypt_tlen uint64
  457. Err_cnt uint64
  458. }
  459. type CryptoStatAKCipher struct {
  460. Type [64]uint8
  461. Encrypt_cnt uint64
  462. Encrypt_tlen uint64
  463. Decrypt_cnt uint64
  464. Decrypt_tlen uint64
  465. Verify_cnt uint64
  466. Sign_cnt uint64
  467. Err_cnt uint64
  468. }
  469. type CryptoStatCipher struct {
  470. Type [64]uint8
  471. Encrypt_cnt uint64
  472. Encrypt_tlen uint64
  473. Decrypt_cnt uint64
  474. Decrypt_tlen uint64
  475. Err_cnt uint64
  476. }
  477. type CryptoStatCompress struct {
  478. Type [64]uint8
  479. Compress_cnt uint64
  480. Compress_tlen uint64
  481. Decompress_cnt uint64
  482. Decompress_tlen uint64
  483. Err_cnt uint64
  484. }
  485. type CryptoStatHash struct {
  486. Type [64]uint8
  487. Hash_cnt uint64
  488. Hash_tlen uint64
  489. Err_cnt uint64
  490. }
  491. type CryptoStatKPP struct {
  492. Type [64]uint8
  493. Setsecret_cnt uint64
  494. Generate_public_key_cnt uint64
  495. Compute_shared_secret_cnt uint64
  496. Err_cnt uint64
  497. }
  498. type CryptoStatRNG struct {
  499. Type [64]uint8
  500. Generate_cnt uint64
  501. Generate_tlen uint64
  502. Seed_cnt uint64
  503. Err_cnt uint64
  504. }
  505. type CryptoStatLarval struct {
  506. Type [64]uint8
  507. }
  508. type CryptoReportLarval struct {
  509. Type [64]uint8
  510. }
  511. type CryptoReportHash struct {
  512. Type [64]uint8
  513. Blocksize uint32
  514. Digestsize uint32
  515. }
  516. type CryptoReportCipher struct {
  517. Type [64]uint8
  518. Blocksize uint32
  519. Min_keysize uint32
  520. Max_keysize uint32
  521. }
  522. type CryptoReportBlkCipher struct {
  523. Type [64]uint8
  524. Geniv [64]uint8
  525. Blocksize uint32
  526. Min_keysize uint32
  527. Max_keysize uint32
  528. Ivsize uint32
  529. }
  530. type CryptoReportAEAD struct {
  531. Type [64]uint8
  532. Geniv [64]uint8
  533. Blocksize uint32
  534. Maxauthsize uint32
  535. Ivsize uint32
  536. }
  537. type CryptoReportComp struct {
  538. Type [64]uint8
  539. }
  540. type CryptoReportRNG struct {
  541. Type [64]uint8
  542. Seedsize uint32
  543. }
  544. type CryptoReportAKCipher struct {
  545. Type [64]uint8
  546. }
  547. type CryptoReportKPP struct {
  548. Type [64]uint8
  549. }
  550. type CryptoReportAcomp struct {
  551. Type [64]uint8
  552. }
  553. type LoopInfo struct {
  554. Number int32
  555. Device uint64
  556. Inode uint64
  557. Rdevice uint64
  558. Offset int32
  559. Encrypt_type int32
  560. Encrypt_key_size int32
  561. Flags int32
  562. Name [64]uint8
  563. Encrypt_key [32]uint8
  564. Init [2]uint64
  565. Reserved [4]uint8
  566. _ [4]byte
  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 = 0x400870a1
  593. PPS_SETPARAMS = 0x800870a2
  594. PPS_GETCAP = 0x400870a3
  595. PPS_FETCH = 0xc00870a4
  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 int64
  615. Dtime int64
  616. Ctime int64
  617. Segsz uint64
  618. Cpid int32
  619. Lpid int32
  620. Nattch uint64
  621. _ uint64
  622. _ uint64
  623. }