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.
 
 

700 lines
12 KiB

  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. }
  305. type cpuMask uint64
  306. const (
  307. _NCPUBITS = 0x40
  308. )
  309. const (
  310. CBitFieldMaskBit0 = 0x1
  311. CBitFieldMaskBit1 = 0x2
  312. CBitFieldMaskBit2 = 0x4
  313. CBitFieldMaskBit3 = 0x8
  314. CBitFieldMaskBit4 = 0x10
  315. CBitFieldMaskBit5 = 0x20
  316. CBitFieldMaskBit6 = 0x40
  317. CBitFieldMaskBit7 = 0x80
  318. CBitFieldMaskBit8 = 0x100
  319. CBitFieldMaskBit9 = 0x200
  320. CBitFieldMaskBit10 = 0x400
  321. CBitFieldMaskBit11 = 0x800
  322. CBitFieldMaskBit12 = 0x1000
  323. CBitFieldMaskBit13 = 0x2000
  324. CBitFieldMaskBit14 = 0x4000
  325. CBitFieldMaskBit15 = 0x8000
  326. CBitFieldMaskBit16 = 0x10000
  327. CBitFieldMaskBit17 = 0x20000
  328. CBitFieldMaskBit18 = 0x40000
  329. CBitFieldMaskBit19 = 0x80000
  330. CBitFieldMaskBit20 = 0x100000
  331. CBitFieldMaskBit21 = 0x200000
  332. CBitFieldMaskBit22 = 0x400000
  333. CBitFieldMaskBit23 = 0x800000
  334. CBitFieldMaskBit24 = 0x1000000
  335. CBitFieldMaskBit25 = 0x2000000
  336. CBitFieldMaskBit26 = 0x4000000
  337. CBitFieldMaskBit27 = 0x8000000
  338. CBitFieldMaskBit28 = 0x10000000
  339. CBitFieldMaskBit29 = 0x20000000
  340. CBitFieldMaskBit30 = 0x40000000
  341. CBitFieldMaskBit31 = 0x80000000
  342. CBitFieldMaskBit32 = 0x100000000
  343. CBitFieldMaskBit33 = 0x200000000
  344. CBitFieldMaskBit34 = 0x400000000
  345. CBitFieldMaskBit35 = 0x800000000
  346. CBitFieldMaskBit36 = 0x1000000000
  347. CBitFieldMaskBit37 = 0x2000000000
  348. CBitFieldMaskBit38 = 0x4000000000
  349. CBitFieldMaskBit39 = 0x8000000000
  350. CBitFieldMaskBit40 = 0x10000000000
  351. CBitFieldMaskBit41 = 0x20000000000
  352. CBitFieldMaskBit42 = 0x40000000000
  353. CBitFieldMaskBit43 = 0x80000000000
  354. CBitFieldMaskBit44 = 0x100000000000
  355. CBitFieldMaskBit45 = 0x200000000000
  356. CBitFieldMaskBit46 = 0x400000000000
  357. CBitFieldMaskBit47 = 0x800000000000
  358. CBitFieldMaskBit48 = 0x1000000000000
  359. CBitFieldMaskBit49 = 0x2000000000000
  360. CBitFieldMaskBit50 = 0x4000000000000
  361. CBitFieldMaskBit51 = 0x8000000000000
  362. CBitFieldMaskBit52 = 0x10000000000000
  363. CBitFieldMaskBit53 = 0x20000000000000
  364. CBitFieldMaskBit54 = 0x40000000000000
  365. CBitFieldMaskBit55 = 0x80000000000000
  366. CBitFieldMaskBit56 = 0x100000000000000
  367. CBitFieldMaskBit57 = 0x200000000000000
  368. CBitFieldMaskBit58 = 0x400000000000000
  369. CBitFieldMaskBit59 = 0x800000000000000
  370. CBitFieldMaskBit60 = 0x1000000000000000
  371. CBitFieldMaskBit61 = 0x2000000000000000
  372. CBitFieldMaskBit62 = 0x4000000000000000
  373. CBitFieldMaskBit63 = 0x8000000000000000
  374. )
  375. type SockaddrStorage struct {
  376. Family uint16
  377. Data [118]byte
  378. _ uint64
  379. }
  380. type HDGeometry struct {
  381. Heads uint8
  382. Sectors uint8
  383. Cylinders uint16
  384. Start uint64
  385. }
  386. type Statfs_t struct {
  387. Type int64
  388. Bsize int64
  389. Blocks uint64
  390. Bfree uint64
  391. Bavail uint64
  392. Files uint64
  393. Ffree uint64
  394. Fsid Fsid
  395. Namelen int64
  396. Frsize int64
  397. Flags int64
  398. Spare [4]int64
  399. }
  400. type TpacketHdr struct {
  401. Status uint64
  402. Len uint32
  403. Snaplen uint32
  404. Mac uint16
  405. Net uint16
  406. Sec uint32
  407. Usec uint32
  408. _ [4]byte
  409. }
  410. const (
  411. SizeofTpacketHdr = 0x20
  412. )
  413. type RTCPLLInfo struct {
  414. Ctrl int32
  415. Value int32
  416. Max int32
  417. Min int32
  418. Posmult int32
  419. Negmult int32
  420. Clock int64
  421. }
  422. type BlkpgPartition struct {
  423. Start int64
  424. Length int64
  425. Pno int32
  426. Devname [64]uint8
  427. Volname [64]uint8
  428. _ [4]byte
  429. }
  430. const (
  431. BLKPG = 0x20001269
  432. )
  433. type XDPUmemReg struct {
  434. Addr uint64
  435. Len uint64
  436. Size uint32
  437. Headroom uint32
  438. Flags uint32
  439. _ [4]byte
  440. }
  441. type CryptoUserAlg struct {
  442. Name [64]uint8
  443. Driver_name [64]uint8
  444. Module_name [64]uint8
  445. Type uint32
  446. Mask uint32
  447. Refcnt uint32
  448. Flags uint32
  449. }
  450. type CryptoStatAEAD struct {
  451. Type [64]uint8
  452. Encrypt_cnt uint64
  453. Encrypt_tlen uint64
  454. Decrypt_cnt uint64
  455. Decrypt_tlen uint64
  456. Err_cnt uint64
  457. }
  458. type CryptoStatAKCipher struct {
  459. Type [64]uint8
  460. Encrypt_cnt uint64
  461. Encrypt_tlen uint64
  462. Decrypt_cnt uint64
  463. Decrypt_tlen uint64
  464. Verify_cnt uint64
  465. Sign_cnt uint64
  466. Err_cnt uint64
  467. }
  468. type CryptoStatCipher struct {
  469. Type [64]uint8
  470. Encrypt_cnt uint64
  471. Encrypt_tlen uint64
  472. Decrypt_cnt uint64
  473. Decrypt_tlen uint64
  474. Err_cnt uint64
  475. }
  476. type CryptoStatCompress struct {
  477. Type [64]uint8
  478. Compress_cnt uint64
  479. Compress_tlen uint64
  480. Decompress_cnt uint64
  481. Decompress_tlen uint64
  482. Err_cnt uint64
  483. }
  484. type CryptoStatHash struct {
  485. Type [64]uint8
  486. Hash_cnt uint64
  487. Hash_tlen uint64
  488. Err_cnt uint64
  489. }
  490. type CryptoStatKPP struct {
  491. Type [64]uint8
  492. Setsecret_cnt uint64
  493. Generate_public_key_cnt uint64
  494. Compute_shared_secret_cnt uint64
  495. Err_cnt uint64
  496. }
  497. type CryptoStatRNG struct {
  498. Type [64]uint8
  499. Generate_cnt uint64
  500. Generate_tlen uint64
  501. Seed_cnt uint64
  502. Err_cnt uint64
  503. }
  504. type CryptoStatLarval struct {
  505. Type [64]uint8
  506. }
  507. type CryptoReportLarval struct {
  508. Type [64]uint8
  509. }
  510. type CryptoReportHash struct {
  511. Type [64]uint8
  512. Blocksize uint32
  513. Digestsize uint32
  514. }
  515. type CryptoReportCipher struct {
  516. Type [64]uint8
  517. Blocksize uint32
  518. Min_keysize uint32
  519. Max_keysize uint32
  520. }
  521. type CryptoReportBlkCipher struct {
  522. Type [64]uint8
  523. Geniv [64]uint8
  524. Blocksize uint32
  525. Min_keysize uint32
  526. Max_keysize uint32
  527. Ivsize uint32
  528. }
  529. type CryptoReportAEAD struct {
  530. Type [64]uint8
  531. Geniv [64]uint8
  532. Blocksize uint32
  533. Maxauthsize uint32
  534. Ivsize uint32
  535. }
  536. type CryptoReportComp struct {
  537. Type [64]uint8
  538. }
  539. type CryptoReportRNG struct {
  540. Type [64]uint8
  541. Seedsize uint32
  542. }
  543. type CryptoReportAKCipher struct {
  544. Type [64]uint8
  545. }
  546. type CryptoReportKPP struct {
  547. Type [64]uint8
  548. }
  549. type CryptoReportAcomp struct {
  550. Type [64]uint8
  551. }
  552. type LoopInfo struct {
  553. Number int32
  554. Device uint64
  555. Inode uint64
  556. Rdevice uint64
  557. Offset int32
  558. Encrypt_type int32
  559. Encrypt_key_size int32
  560. Flags int32
  561. Name [64]uint8
  562. Encrypt_key [32]uint8
  563. Init [2]uint64
  564. Reserved [4]uint8
  565. _ [4]byte
  566. }
  567. type TIPCSubscr struct {
  568. Seq TIPCServiceRange
  569. Timeout uint32
  570. Filter uint32
  571. Handle [8]uint8
  572. }
  573. type TIPCSIOCLNReq struct {
  574. Peer uint32
  575. Id uint32
  576. Linkname [68]uint8
  577. }
  578. type TIPCSIOCNodeIDReq struct {
  579. Peer uint32
  580. Id [16]uint8
  581. }
  582. type PPSKInfo struct {
  583. Assert_sequence uint32
  584. Clear_sequence uint32
  585. Assert_tu PPSKTime
  586. Clear_tu PPSKTime
  587. Current_mode int32
  588. _ [4]byte
  589. }
  590. const (
  591. PPS_GETPARAMS = 0x400870a1
  592. PPS_SETPARAMS = 0x800870a2
  593. PPS_GETCAP = 0x400870a3
  594. PPS_FETCH = 0xc00870a4
  595. )
  596. const (
  597. PIDFD_NONBLOCK = 0x800
  598. )
  599. type SysvIpcPerm struct {
  600. Key int32
  601. Uid uint32
  602. Gid uint32
  603. Cuid uint32
  604. Cgid uint32
  605. Mode uint32
  606. Seq uint32
  607. _ uint32
  608. _ uint64
  609. _ uint64
  610. }
  611. type SysvShmDesc struct {
  612. Perm SysvIpcPerm
  613. Atime int64
  614. Dtime int64
  615. Ctime int64
  616. Segsz uint64
  617. Cpid int32
  618. Lpid int32
  619. Nattch uint64
  620. _ uint64
  621. _ uint64
  622. }