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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  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. // +build ppc64le,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 RawSockaddrNFCLLCP struct {
  119. Sa_family uint16
  120. Dev_idx uint32
  121. Target_idx uint32
  122. Nfc_protocol uint32
  123. Dsap uint8
  124. Ssap uint8
  125. Service_name [63]uint8
  126. Service_name_len uint64
  127. }
  128. type RawSockaddr struct {
  129. Family uint16
  130. Data [14]uint8
  131. }
  132. type RawSockaddrAny struct {
  133. Addr RawSockaddr
  134. Pad [96]uint8
  135. }
  136. type Iovec struct {
  137. Base *byte
  138. Len uint64
  139. }
  140. type Msghdr struct {
  141. Name *byte
  142. Namelen uint32
  143. Iov *Iovec
  144. Iovlen uint64
  145. Control *byte
  146. Controllen uint64
  147. Flags int32
  148. _ [4]byte
  149. }
  150. type Cmsghdr struct {
  151. Len uint64
  152. Level int32
  153. Type int32
  154. }
  155. type ifreq struct {
  156. Ifrn [16]byte
  157. Ifru [24]byte
  158. }
  159. const (
  160. SizeofSockaddrNFCLLCP = 0x60
  161. SizeofIovec = 0x10
  162. SizeofMsghdr = 0x38
  163. SizeofCmsghdr = 0x10
  164. )
  165. const (
  166. SizeofSockFprog = 0x10
  167. )
  168. type PtraceRegs struct {
  169. Gpr [32]uint64
  170. Nip uint64
  171. Msr uint64
  172. Orig_gpr3 uint64
  173. Ctr uint64
  174. Link uint64
  175. Xer uint64
  176. Ccr uint64
  177. Softe uint64
  178. Trap uint64
  179. Dar uint64
  180. Dsisr uint64
  181. Result uint64
  182. }
  183. type FdSet struct {
  184. Bits [16]int64
  185. }
  186. type Sysinfo_t struct {
  187. Uptime int64
  188. Loads [3]uint64
  189. Totalram uint64
  190. Freeram uint64
  191. Sharedram uint64
  192. Bufferram uint64
  193. Totalswap uint64
  194. Freeswap uint64
  195. Procs uint16
  196. Pad uint16
  197. Totalhigh uint64
  198. Freehigh uint64
  199. Unit uint32
  200. _ [0]uint8
  201. _ [4]byte
  202. }
  203. type Ustat_t struct {
  204. Tfree int32
  205. Tinode uint64
  206. Fname [6]uint8
  207. Fpack [6]uint8
  208. _ [4]byte
  209. }
  210. type EpollEvent struct {
  211. Events uint32
  212. _ int32
  213. Fd int32
  214. Pad int32
  215. }
  216. const (
  217. OPEN_TREE_CLOEXEC = 0x80000
  218. )
  219. const (
  220. POLLRDHUP = 0x2000
  221. )
  222. type Sigset_t struct {
  223. Val [16]uint64
  224. }
  225. const _C__NSIG = 0x41
  226. const (
  227. SIG_BLOCK = 0x0
  228. SIG_UNBLOCK = 0x1
  229. SIG_SETMASK = 0x2
  230. )
  231. type Siginfo struct {
  232. Signo int32
  233. Errno int32
  234. Code int32
  235. _ int32
  236. _ [112]byte
  237. }
  238. type Termios struct {
  239. Iflag uint32
  240. Oflag uint32
  241. Cflag uint32
  242. Lflag uint32
  243. Cc [19]uint8
  244. Line uint8
  245. Ispeed uint32
  246. Ospeed uint32
  247. }
  248. type Taskstats struct {
  249. Version uint16
  250. Ac_exitcode uint32
  251. Ac_flag uint8
  252. Ac_nice uint8
  253. Cpu_count uint64
  254. Cpu_delay_total uint64
  255. Blkio_count uint64
  256. Blkio_delay_total uint64
  257. Swapin_count uint64
  258. Swapin_delay_total uint64
  259. Cpu_run_real_total uint64
  260. Cpu_run_virtual_total uint64
  261. Ac_comm [32]uint8
  262. Ac_sched uint8
  263. Ac_pad [3]uint8
  264. _ [4]byte
  265. Ac_uid uint32
  266. Ac_gid uint32
  267. Ac_pid uint32
  268. Ac_ppid uint32
  269. Ac_btime uint32
  270. Ac_etime uint64
  271. Ac_utime uint64
  272. Ac_stime uint64
  273. Ac_minflt uint64
  274. Ac_majflt uint64
  275. Coremem uint64
  276. Virtmem uint64
  277. Hiwater_rss uint64
  278. Hiwater_vm uint64
  279. Read_char uint64
  280. Write_char uint64
  281. Read_syscalls uint64
  282. Write_syscalls uint64
  283. Read_bytes uint64
  284. Write_bytes uint64
  285. Cancelled_write_bytes uint64
  286. Nvcsw uint64
  287. Nivcsw uint64
  288. Ac_utimescaled uint64
  289. Ac_stimescaled uint64
  290. Cpu_scaled_run_real_total uint64
  291. Freepages_count uint64
  292. Freepages_delay_total uint64
  293. Thrashing_count uint64
  294. Thrashing_delay_total uint64
  295. Ac_btime64 uint64
  296. Compact_count uint64
  297. Compact_delay_total uint64
  298. Ac_tgid uint32
  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 uint64
  308. const (
  309. _NCPUBITS = 0x40
  310. )
  311. const (
  312. CBitFieldMaskBit0 = 0x1
  313. CBitFieldMaskBit1 = 0x2
  314. CBitFieldMaskBit2 = 0x4
  315. CBitFieldMaskBit3 = 0x8
  316. CBitFieldMaskBit4 = 0x10
  317. CBitFieldMaskBit5 = 0x20
  318. CBitFieldMaskBit6 = 0x40
  319. CBitFieldMaskBit7 = 0x80
  320. CBitFieldMaskBit8 = 0x100
  321. CBitFieldMaskBit9 = 0x200
  322. CBitFieldMaskBit10 = 0x400
  323. CBitFieldMaskBit11 = 0x800
  324. CBitFieldMaskBit12 = 0x1000
  325. CBitFieldMaskBit13 = 0x2000
  326. CBitFieldMaskBit14 = 0x4000
  327. CBitFieldMaskBit15 = 0x8000
  328. CBitFieldMaskBit16 = 0x10000
  329. CBitFieldMaskBit17 = 0x20000
  330. CBitFieldMaskBit18 = 0x40000
  331. CBitFieldMaskBit19 = 0x80000
  332. CBitFieldMaskBit20 = 0x100000
  333. CBitFieldMaskBit21 = 0x200000
  334. CBitFieldMaskBit22 = 0x400000
  335. CBitFieldMaskBit23 = 0x800000
  336. CBitFieldMaskBit24 = 0x1000000
  337. CBitFieldMaskBit25 = 0x2000000
  338. CBitFieldMaskBit26 = 0x4000000
  339. CBitFieldMaskBit27 = 0x8000000
  340. CBitFieldMaskBit28 = 0x10000000
  341. CBitFieldMaskBit29 = 0x20000000
  342. CBitFieldMaskBit30 = 0x40000000
  343. CBitFieldMaskBit31 = 0x80000000
  344. CBitFieldMaskBit32 = 0x100000000
  345. CBitFieldMaskBit33 = 0x200000000
  346. CBitFieldMaskBit34 = 0x400000000
  347. CBitFieldMaskBit35 = 0x800000000
  348. CBitFieldMaskBit36 = 0x1000000000
  349. CBitFieldMaskBit37 = 0x2000000000
  350. CBitFieldMaskBit38 = 0x4000000000
  351. CBitFieldMaskBit39 = 0x8000000000
  352. CBitFieldMaskBit40 = 0x10000000000
  353. CBitFieldMaskBit41 = 0x20000000000
  354. CBitFieldMaskBit42 = 0x40000000000
  355. CBitFieldMaskBit43 = 0x80000000000
  356. CBitFieldMaskBit44 = 0x100000000000
  357. CBitFieldMaskBit45 = 0x200000000000
  358. CBitFieldMaskBit46 = 0x400000000000
  359. CBitFieldMaskBit47 = 0x800000000000
  360. CBitFieldMaskBit48 = 0x1000000000000
  361. CBitFieldMaskBit49 = 0x2000000000000
  362. CBitFieldMaskBit50 = 0x4000000000000
  363. CBitFieldMaskBit51 = 0x8000000000000
  364. CBitFieldMaskBit52 = 0x10000000000000
  365. CBitFieldMaskBit53 = 0x20000000000000
  366. CBitFieldMaskBit54 = 0x40000000000000
  367. CBitFieldMaskBit55 = 0x80000000000000
  368. CBitFieldMaskBit56 = 0x100000000000000
  369. CBitFieldMaskBit57 = 0x200000000000000
  370. CBitFieldMaskBit58 = 0x400000000000000
  371. CBitFieldMaskBit59 = 0x800000000000000
  372. CBitFieldMaskBit60 = 0x1000000000000000
  373. CBitFieldMaskBit61 = 0x2000000000000000
  374. CBitFieldMaskBit62 = 0x4000000000000000
  375. CBitFieldMaskBit63 = 0x8000000000000000
  376. )
  377. type SockaddrStorage struct {
  378. Family uint16
  379. Data [118]byte
  380. _ uint64
  381. }
  382. type HDGeometry struct {
  383. Heads uint8
  384. Sectors uint8
  385. Cylinders uint16
  386. Start uint64
  387. }
  388. type Statfs_t struct {
  389. Type int64
  390. Bsize int64
  391. Blocks uint64
  392. Bfree uint64
  393. Bavail uint64
  394. Files uint64
  395. Ffree uint64
  396. Fsid Fsid
  397. Namelen int64
  398. Frsize int64
  399. Flags int64
  400. Spare [4]int64
  401. }
  402. type TpacketHdr struct {
  403. Status uint64
  404. Len uint32
  405. Snaplen uint32
  406. Mac uint16
  407. Net uint16
  408. Sec uint32
  409. Usec uint32
  410. _ [4]byte
  411. }
  412. const (
  413. SizeofTpacketHdr = 0x20
  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 int64
  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 uint64
  557. Inode uint64
  558. Rdevice uint64
  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]uint64
  566. Reserved [4]uint8
  567. _ [4]byte
  568. }
  569. type TIPCSubscr struct {
  570. Seq TIPCServiceRange
  571. Timeout uint32
  572. Filter uint32
  573. Handle [8]uint8
  574. }
  575. type TIPCSIOCLNReq struct {
  576. Peer uint32
  577. Id uint32
  578. Linkname [68]uint8
  579. }
  580. type TIPCSIOCNodeIDReq struct {
  581. Peer uint32
  582. Id [16]uint8
  583. }
  584. type PPSKInfo struct {
  585. Assert_sequence uint32
  586. Clear_sequence uint32
  587. Assert_tu PPSKTime
  588. Clear_tu PPSKTime
  589. Current_mode int32
  590. _ [4]byte
  591. }
  592. const (
  593. PPS_GETPARAMS = 0x400870a1
  594. PPS_SETPARAMS = 0x800870a2
  595. PPS_GETCAP = 0x400870a3
  596. PPS_FETCH = 0xc00870a4
  597. )
  598. const (
  599. PIDFD_NONBLOCK = 0x800
  600. )
  601. type SysvIpcPerm struct {
  602. Key int32
  603. Uid uint32
  604. Gid uint32
  605. Cuid uint32
  606. Cgid uint32
  607. Mode uint32
  608. Seq uint32
  609. _ uint32
  610. _ uint64
  611. _ uint64
  612. }
  613. type SysvShmDesc struct {
  614. Perm SysvIpcPerm
  615. Atime int64
  616. Dtime int64
  617. Ctime int64
  618. Segsz uint64
  619. Cpid int32
  620. Lpid int32
  621. Nattch uint64
  622. _ uint64
  623. _ uint64
  624. }