Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

705 rader
12 KiB

  1. // cgo -godefs -objdir=/tmp/ppc/cgo -- -Wall -Werror -static -I/tmp/ppc/include linux/types.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build ppc && linux
  4. // +build ppc,linux
  5. package unix
  6. const (
  7. SizeofPtr = 0x4
  8. SizeofLong = 0x4
  9. )
  10. type (
  11. _C_long int32
  12. )
  13. type Timespec struct {
  14. Sec int32
  15. Nsec int32
  16. }
  17. type Timeval struct {
  18. Sec int32
  19. Usec int32
  20. }
  21. type Timex struct {
  22. Modes uint32
  23. Offset int32
  24. Freq int32
  25. Maxerror int32
  26. Esterror int32
  27. Status int32
  28. Constant int32
  29. Precision int32
  30. Tolerance int32
  31. Time Timeval
  32. Tick int32
  33. Ppsfreq int32
  34. Jitter int32
  35. Shift int32
  36. Stabil int32
  37. Jitcnt int32
  38. Calcnt int32
  39. Errcnt int32
  40. Stbcnt int32
  41. Tai int32
  42. _ [44]byte
  43. }
  44. type Time_t int32
  45. type Tms struct {
  46. Utime int32
  47. Stime int32
  48. Cutime int32
  49. Cstime int32
  50. }
  51. type Utimbuf struct {
  52. Actime int32
  53. Modtime int32
  54. }
  55. type Rusage struct {
  56. Utime Timeval
  57. Stime Timeval
  58. Maxrss int32
  59. Ixrss int32
  60. Idrss int32
  61. Isrss int32
  62. Minflt int32
  63. Majflt int32
  64. Nswap int32
  65. Inblock int32
  66. Oublock int32
  67. Msgsnd int32
  68. Msgrcv int32
  69. Nsignals int32
  70. Nvcsw int32
  71. Nivcsw int32
  72. }
  73. type Stat_t struct {
  74. Dev uint64
  75. Ino uint64
  76. Mode uint32
  77. Nlink uint32
  78. Uid uint32
  79. Gid uint32
  80. Rdev uint64
  81. _ uint16
  82. _ [4]byte
  83. Size int64
  84. Blksize int32
  85. _ [4]byte
  86. Blocks int64
  87. Atim Timespec
  88. Mtim Timespec
  89. Ctim Timespec
  90. _ uint32
  91. _ uint32
  92. }
  93. type Dirent struct {
  94. Ino uint64
  95. Off int64
  96. Reclen uint16
  97. Type uint8
  98. Name [256]uint8
  99. _ [5]byte
  100. }
  101. type Flock_t struct {
  102. Type int16
  103. Whence int16
  104. _ [4]byte
  105. Start int64
  106. Len int64
  107. Pid int32
  108. _ [4]byte
  109. }
  110. type DmNameList struct {
  111. Dev uint64
  112. Next uint32
  113. Name [0]byte
  114. _ [4]byte
  115. }
  116. const (
  117. FADV_DONTNEED = 0x4
  118. FADV_NOREUSE = 0x5
  119. )
  120. type RawSockaddrNFCLLCP struct {
  121. Sa_family uint16
  122. Dev_idx uint32
  123. Target_idx uint32
  124. Nfc_protocol uint32
  125. Dsap uint8
  126. Ssap uint8
  127. Service_name [63]uint8
  128. Service_name_len uint32
  129. }
  130. type RawSockaddr struct {
  131. Family uint16
  132. Data [14]uint8
  133. }
  134. type RawSockaddrAny struct {
  135. Addr RawSockaddr
  136. Pad [96]uint8
  137. }
  138. type Iovec struct {
  139. Base *byte
  140. Len uint32
  141. }
  142. type Msghdr struct {
  143. Name *byte
  144. Namelen uint32
  145. Iov *Iovec
  146. Iovlen uint32
  147. Control *byte
  148. Controllen uint32
  149. Flags int32
  150. }
  151. type Cmsghdr struct {
  152. Len uint32
  153. Level int32
  154. Type int32
  155. }
  156. type ifreq struct {
  157. Ifrn [16]byte
  158. Ifru [16]byte
  159. }
  160. const (
  161. SizeofSockaddrNFCLLCP = 0x58
  162. SizeofIovec = 0x8
  163. SizeofMsghdr = 0x1c
  164. SizeofCmsghdr = 0xc
  165. )
  166. const (
  167. SizeofSockFprog = 0x8
  168. )
  169. type PtraceRegs struct {
  170. Gpr [32]uint32
  171. Nip uint32
  172. Msr uint32
  173. Orig_gpr3 uint32
  174. Ctr uint32
  175. Link uint32
  176. Xer uint32
  177. Ccr uint32
  178. Mq uint32
  179. Trap uint32
  180. Dar uint32
  181. Dsisr uint32
  182. Result uint32
  183. }
  184. type FdSet struct {
  185. Bits [32]int32
  186. }
  187. type Sysinfo_t struct {
  188. Uptime int32
  189. Loads [3]uint32
  190. Totalram uint32
  191. Freeram uint32
  192. Sharedram uint32
  193. Bufferram uint32
  194. Totalswap uint32
  195. Freeswap uint32
  196. Procs uint16
  197. Pad uint16
  198. Totalhigh uint32
  199. Freehigh uint32
  200. Unit uint32
  201. _ [8]uint8
  202. }
  203. type Ustat_t struct {
  204. Tfree int32
  205. Tinode uint32
  206. Fname [6]uint8
  207. Fpack [6]uint8
  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 [32]uint32
  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. _ [116]byte
  235. }
  236. type Termios struct {
  237. Iflag uint32
  238. Oflag uint32
  239. Cflag uint32
  240. Lflag uint32
  241. Cc [19]uint8
  242. Line uint8
  243. Ispeed uint32
  244. Ospeed uint32
  245. }
  246. type Taskstats struct {
  247. Version uint16
  248. Ac_exitcode uint32
  249. Ac_flag uint8
  250. Ac_nice uint8
  251. _ [4]byte
  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. _ [4]byte
  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. _ [4]byte
  300. Ac_tgetime uint64
  301. Ac_exe_dev uint64
  302. Ac_exe_inode uint64
  303. Wpcopy_count uint64
  304. Wpcopy_delay_total uint64
  305. }
  306. type cpuMask uint32
  307. const (
  308. _NCPUBITS = 0x20
  309. )
  310. const (
  311. CBitFieldMaskBit0 = 0x8000000000000000
  312. CBitFieldMaskBit1 = 0x4000000000000000
  313. CBitFieldMaskBit2 = 0x2000000000000000
  314. CBitFieldMaskBit3 = 0x1000000000000000
  315. CBitFieldMaskBit4 = 0x800000000000000
  316. CBitFieldMaskBit5 = 0x400000000000000
  317. CBitFieldMaskBit6 = 0x200000000000000
  318. CBitFieldMaskBit7 = 0x100000000000000
  319. CBitFieldMaskBit8 = 0x80000000000000
  320. CBitFieldMaskBit9 = 0x40000000000000
  321. CBitFieldMaskBit10 = 0x20000000000000
  322. CBitFieldMaskBit11 = 0x10000000000000
  323. CBitFieldMaskBit12 = 0x8000000000000
  324. CBitFieldMaskBit13 = 0x4000000000000
  325. CBitFieldMaskBit14 = 0x2000000000000
  326. CBitFieldMaskBit15 = 0x1000000000000
  327. CBitFieldMaskBit16 = 0x800000000000
  328. CBitFieldMaskBit17 = 0x400000000000
  329. CBitFieldMaskBit18 = 0x200000000000
  330. CBitFieldMaskBit19 = 0x100000000000
  331. CBitFieldMaskBit20 = 0x80000000000
  332. CBitFieldMaskBit21 = 0x40000000000
  333. CBitFieldMaskBit22 = 0x20000000000
  334. CBitFieldMaskBit23 = 0x10000000000
  335. CBitFieldMaskBit24 = 0x8000000000
  336. CBitFieldMaskBit25 = 0x4000000000
  337. CBitFieldMaskBit26 = 0x2000000000
  338. CBitFieldMaskBit27 = 0x1000000000
  339. CBitFieldMaskBit28 = 0x800000000
  340. CBitFieldMaskBit29 = 0x400000000
  341. CBitFieldMaskBit30 = 0x200000000
  342. CBitFieldMaskBit31 = 0x100000000
  343. CBitFieldMaskBit32 = 0x80000000
  344. CBitFieldMaskBit33 = 0x40000000
  345. CBitFieldMaskBit34 = 0x20000000
  346. CBitFieldMaskBit35 = 0x10000000
  347. CBitFieldMaskBit36 = 0x8000000
  348. CBitFieldMaskBit37 = 0x4000000
  349. CBitFieldMaskBit38 = 0x2000000
  350. CBitFieldMaskBit39 = 0x1000000
  351. CBitFieldMaskBit40 = 0x800000
  352. CBitFieldMaskBit41 = 0x400000
  353. CBitFieldMaskBit42 = 0x200000
  354. CBitFieldMaskBit43 = 0x100000
  355. CBitFieldMaskBit44 = 0x80000
  356. CBitFieldMaskBit45 = 0x40000
  357. CBitFieldMaskBit46 = 0x20000
  358. CBitFieldMaskBit47 = 0x10000
  359. CBitFieldMaskBit48 = 0x8000
  360. CBitFieldMaskBit49 = 0x4000
  361. CBitFieldMaskBit50 = 0x2000
  362. CBitFieldMaskBit51 = 0x1000
  363. CBitFieldMaskBit52 = 0x800
  364. CBitFieldMaskBit53 = 0x400
  365. CBitFieldMaskBit54 = 0x200
  366. CBitFieldMaskBit55 = 0x100
  367. CBitFieldMaskBit56 = 0x80
  368. CBitFieldMaskBit57 = 0x40
  369. CBitFieldMaskBit58 = 0x20
  370. CBitFieldMaskBit59 = 0x10
  371. CBitFieldMaskBit60 = 0x8
  372. CBitFieldMaskBit61 = 0x4
  373. CBitFieldMaskBit62 = 0x2
  374. CBitFieldMaskBit63 = 0x1
  375. )
  376. type SockaddrStorage struct {
  377. Family uint16
  378. Data [122]byte
  379. _ uint32
  380. }
  381. type HDGeometry struct {
  382. Heads uint8
  383. Sectors uint8
  384. Cylinders uint16
  385. Start uint32
  386. }
  387. type Statfs_t struct {
  388. Type int32
  389. Bsize int32
  390. Blocks uint64
  391. Bfree uint64
  392. Bavail uint64
  393. Files uint64
  394. Ffree uint64
  395. Fsid Fsid
  396. Namelen int32
  397. Frsize int32
  398. Flags int32
  399. Spare [4]int32
  400. _ [4]byte
  401. }
  402. type TpacketHdr struct {
  403. Status uint32
  404. Len uint32
  405. Snaplen uint32
  406. Mac uint16
  407. Net uint16
  408. Sec uint32
  409. Usec uint32
  410. }
  411. const (
  412. SizeofTpacketHdr = 0x18
  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 int32
  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 uint32
  556. Inode uint32
  557. Rdevice uint32
  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]uint32
  565. Reserved [4]uint8
  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 = 0x400470a1
  592. PPS_SETPARAMS = 0x800470a2
  593. PPS_GETCAP = 0x400470a3
  594. PPS_FETCH = 0xc00470a4
  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_high uint32
  614. Atime uint32
  615. Dtime_high uint32
  616. Dtime uint32
  617. Ctime_high uint32
  618. Ctime uint32
  619. _ uint32
  620. Segsz uint32
  621. Cpid int32
  622. Lpid int32
  623. Nattch uint32
  624. _ uint32
  625. _ uint32
  626. _ [4]byte
  627. }