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

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