Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

694 Zeilen
12 KiB

  1. // cgo -godefs -objdir=/tmp/ppc64/cgo -- -Wall -Werror -static -I/tmp/ppc64/include linux/types.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build ppc64 && linux
  4. // +build ppc64,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. type Siginfo struct {
  227. Signo int32
  228. Errno int32
  229. Code int32
  230. _ int32
  231. _ [112]byte
  232. }
  233. type Termios struct {
  234. Iflag uint32
  235. Oflag uint32
  236. Cflag uint32
  237. Lflag uint32
  238. Cc [19]uint8
  239. Line uint8
  240. Ispeed uint32
  241. Ospeed uint32
  242. }
  243. type Taskstats struct {
  244. Version uint16
  245. Ac_exitcode uint32
  246. Ac_flag uint8
  247. Ac_nice uint8
  248. Cpu_count uint64
  249. Cpu_delay_total uint64
  250. Blkio_count uint64
  251. Blkio_delay_total uint64
  252. Swapin_count uint64
  253. Swapin_delay_total uint64
  254. Cpu_run_real_total uint64
  255. Cpu_run_virtual_total uint64
  256. Ac_comm [32]uint8
  257. Ac_sched uint8
  258. Ac_pad [3]uint8
  259. _ [4]byte
  260. Ac_uid uint32
  261. Ac_gid uint32
  262. Ac_pid uint32
  263. Ac_ppid uint32
  264. Ac_btime uint32
  265. Ac_etime uint64
  266. Ac_utime uint64
  267. Ac_stime uint64
  268. Ac_minflt uint64
  269. Ac_majflt uint64
  270. Coremem uint64
  271. Virtmem uint64
  272. Hiwater_rss uint64
  273. Hiwater_vm uint64
  274. Read_char uint64
  275. Write_char uint64
  276. Read_syscalls uint64
  277. Write_syscalls uint64
  278. Read_bytes uint64
  279. Write_bytes uint64
  280. Cancelled_write_bytes uint64
  281. Nvcsw uint64
  282. Nivcsw uint64
  283. Ac_utimescaled uint64
  284. Ac_stimescaled uint64
  285. Cpu_scaled_run_real_total uint64
  286. Freepages_count uint64
  287. Freepages_delay_total uint64
  288. Thrashing_count uint64
  289. Thrashing_delay_total uint64
  290. Ac_btime64 uint64
  291. Compact_count uint64
  292. Compact_delay_total uint64
  293. Ac_tgid uint32
  294. Ac_tgetime uint64
  295. Ac_exe_dev uint64
  296. Ac_exe_inode uint64
  297. Wpcopy_count uint64
  298. Wpcopy_delay_total uint64
  299. }
  300. type cpuMask uint64
  301. const (
  302. _NCPUBITS = 0x40
  303. )
  304. const (
  305. CBitFieldMaskBit0 = 0x8000000000000000
  306. CBitFieldMaskBit1 = 0x4000000000000000
  307. CBitFieldMaskBit2 = 0x2000000000000000
  308. CBitFieldMaskBit3 = 0x1000000000000000
  309. CBitFieldMaskBit4 = 0x800000000000000
  310. CBitFieldMaskBit5 = 0x400000000000000
  311. CBitFieldMaskBit6 = 0x200000000000000
  312. CBitFieldMaskBit7 = 0x100000000000000
  313. CBitFieldMaskBit8 = 0x80000000000000
  314. CBitFieldMaskBit9 = 0x40000000000000
  315. CBitFieldMaskBit10 = 0x20000000000000
  316. CBitFieldMaskBit11 = 0x10000000000000
  317. CBitFieldMaskBit12 = 0x8000000000000
  318. CBitFieldMaskBit13 = 0x4000000000000
  319. CBitFieldMaskBit14 = 0x2000000000000
  320. CBitFieldMaskBit15 = 0x1000000000000
  321. CBitFieldMaskBit16 = 0x800000000000
  322. CBitFieldMaskBit17 = 0x400000000000
  323. CBitFieldMaskBit18 = 0x200000000000
  324. CBitFieldMaskBit19 = 0x100000000000
  325. CBitFieldMaskBit20 = 0x80000000000
  326. CBitFieldMaskBit21 = 0x40000000000
  327. CBitFieldMaskBit22 = 0x20000000000
  328. CBitFieldMaskBit23 = 0x10000000000
  329. CBitFieldMaskBit24 = 0x8000000000
  330. CBitFieldMaskBit25 = 0x4000000000
  331. CBitFieldMaskBit26 = 0x2000000000
  332. CBitFieldMaskBit27 = 0x1000000000
  333. CBitFieldMaskBit28 = 0x800000000
  334. CBitFieldMaskBit29 = 0x400000000
  335. CBitFieldMaskBit30 = 0x200000000
  336. CBitFieldMaskBit31 = 0x100000000
  337. CBitFieldMaskBit32 = 0x80000000
  338. CBitFieldMaskBit33 = 0x40000000
  339. CBitFieldMaskBit34 = 0x20000000
  340. CBitFieldMaskBit35 = 0x10000000
  341. CBitFieldMaskBit36 = 0x8000000
  342. CBitFieldMaskBit37 = 0x4000000
  343. CBitFieldMaskBit38 = 0x2000000
  344. CBitFieldMaskBit39 = 0x1000000
  345. CBitFieldMaskBit40 = 0x800000
  346. CBitFieldMaskBit41 = 0x400000
  347. CBitFieldMaskBit42 = 0x200000
  348. CBitFieldMaskBit43 = 0x100000
  349. CBitFieldMaskBit44 = 0x80000
  350. CBitFieldMaskBit45 = 0x40000
  351. CBitFieldMaskBit46 = 0x20000
  352. CBitFieldMaskBit47 = 0x10000
  353. CBitFieldMaskBit48 = 0x8000
  354. CBitFieldMaskBit49 = 0x4000
  355. CBitFieldMaskBit50 = 0x2000
  356. CBitFieldMaskBit51 = 0x1000
  357. CBitFieldMaskBit52 = 0x800
  358. CBitFieldMaskBit53 = 0x400
  359. CBitFieldMaskBit54 = 0x200
  360. CBitFieldMaskBit55 = 0x100
  361. CBitFieldMaskBit56 = 0x80
  362. CBitFieldMaskBit57 = 0x40
  363. CBitFieldMaskBit58 = 0x20
  364. CBitFieldMaskBit59 = 0x10
  365. CBitFieldMaskBit60 = 0x8
  366. CBitFieldMaskBit61 = 0x4
  367. CBitFieldMaskBit62 = 0x2
  368. CBitFieldMaskBit63 = 0x1
  369. )
  370. type SockaddrStorage struct {
  371. Family uint16
  372. _ [118]uint8
  373. _ uint64
  374. }
  375. type HDGeometry struct {
  376. Heads uint8
  377. Sectors uint8
  378. Cylinders uint16
  379. Start uint64
  380. }
  381. type Statfs_t struct {
  382. Type int64
  383. Bsize int64
  384. Blocks uint64
  385. Bfree uint64
  386. Bavail uint64
  387. Files uint64
  388. Ffree uint64
  389. Fsid Fsid
  390. Namelen int64
  391. Frsize int64
  392. Flags int64
  393. Spare [4]int64
  394. }
  395. type TpacketHdr struct {
  396. Status uint64
  397. Len uint32
  398. Snaplen uint32
  399. Mac uint16
  400. Net uint16
  401. Sec uint32
  402. Usec uint32
  403. _ [4]byte
  404. }
  405. const (
  406. SizeofTpacketHdr = 0x20
  407. )
  408. type RTCPLLInfo struct {
  409. Ctrl int32
  410. Value int32
  411. Max int32
  412. Min int32
  413. Posmult int32
  414. Negmult int32
  415. Clock int64
  416. }
  417. type BlkpgPartition struct {
  418. Start int64
  419. Length int64
  420. Pno int32
  421. Devname [64]uint8
  422. Volname [64]uint8
  423. _ [4]byte
  424. }
  425. const (
  426. BLKPG = 0x20001269
  427. )
  428. type XDPUmemReg struct {
  429. Addr uint64
  430. Len uint64
  431. Size uint32
  432. Headroom uint32
  433. Flags uint32
  434. _ [4]byte
  435. }
  436. type CryptoUserAlg struct {
  437. Name [64]uint8
  438. Driver_name [64]uint8
  439. Module_name [64]uint8
  440. Type uint32
  441. Mask uint32
  442. Refcnt uint32
  443. Flags uint32
  444. }
  445. type CryptoStatAEAD struct {
  446. Type [64]uint8
  447. Encrypt_cnt uint64
  448. Encrypt_tlen uint64
  449. Decrypt_cnt uint64
  450. Decrypt_tlen uint64
  451. Err_cnt uint64
  452. }
  453. type CryptoStatAKCipher struct {
  454. Type [64]uint8
  455. Encrypt_cnt uint64
  456. Encrypt_tlen uint64
  457. Decrypt_cnt uint64
  458. Decrypt_tlen uint64
  459. Verify_cnt uint64
  460. Sign_cnt uint64
  461. Err_cnt uint64
  462. }
  463. type CryptoStatCipher struct {
  464. Type [64]uint8
  465. Encrypt_cnt uint64
  466. Encrypt_tlen uint64
  467. Decrypt_cnt uint64
  468. Decrypt_tlen uint64
  469. Err_cnt uint64
  470. }
  471. type CryptoStatCompress struct {
  472. Type [64]uint8
  473. Compress_cnt uint64
  474. Compress_tlen uint64
  475. Decompress_cnt uint64
  476. Decompress_tlen uint64
  477. Err_cnt uint64
  478. }
  479. type CryptoStatHash struct {
  480. Type [64]uint8
  481. Hash_cnt uint64
  482. Hash_tlen uint64
  483. Err_cnt uint64
  484. }
  485. type CryptoStatKPP struct {
  486. Type [64]uint8
  487. Setsecret_cnt uint64
  488. Generate_public_key_cnt uint64
  489. Compute_shared_secret_cnt uint64
  490. Err_cnt uint64
  491. }
  492. type CryptoStatRNG struct {
  493. Type [64]uint8
  494. Generate_cnt uint64
  495. Generate_tlen uint64
  496. Seed_cnt uint64
  497. Err_cnt uint64
  498. }
  499. type CryptoStatLarval struct {
  500. Type [64]uint8
  501. }
  502. type CryptoReportLarval struct {
  503. Type [64]uint8
  504. }
  505. type CryptoReportHash struct {
  506. Type [64]uint8
  507. Blocksize uint32
  508. Digestsize uint32
  509. }
  510. type CryptoReportCipher struct {
  511. Type [64]uint8
  512. Blocksize uint32
  513. Min_keysize uint32
  514. Max_keysize uint32
  515. }
  516. type CryptoReportBlkCipher struct {
  517. Type [64]uint8
  518. Geniv [64]uint8
  519. Blocksize uint32
  520. Min_keysize uint32
  521. Max_keysize uint32
  522. Ivsize uint32
  523. }
  524. type CryptoReportAEAD struct {
  525. Type [64]uint8
  526. Geniv [64]uint8
  527. Blocksize uint32
  528. Maxauthsize uint32
  529. Ivsize uint32
  530. }
  531. type CryptoReportComp struct {
  532. Type [64]uint8
  533. }
  534. type CryptoReportRNG struct {
  535. Type [64]uint8
  536. Seedsize uint32
  537. }
  538. type CryptoReportAKCipher struct {
  539. Type [64]uint8
  540. }
  541. type CryptoReportKPP struct {
  542. Type [64]uint8
  543. }
  544. type CryptoReportAcomp struct {
  545. Type [64]uint8
  546. }
  547. type LoopInfo struct {
  548. Number int32
  549. Device uint64
  550. Inode uint64
  551. Rdevice uint64
  552. Offset int32
  553. Encrypt_type int32
  554. Encrypt_key_size int32
  555. Flags int32
  556. Name [64]uint8
  557. Encrypt_key [32]uint8
  558. Init [2]uint64
  559. Reserved [4]uint8
  560. _ [4]byte
  561. }
  562. type TIPCSubscr struct {
  563. Seq TIPCServiceRange
  564. Timeout uint32
  565. Filter uint32
  566. Handle [8]uint8
  567. }
  568. type TIPCSIOCLNReq struct {
  569. Peer uint32
  570. Id uint32
  571. Linkname [68]uint8
  572. }
  573. type TIPCSIOCNodeIDReq struct {
  574. Peer uint32
  575. Id [16]uint8
  576. }
  577. type PPSKInfo struct {
  578. Assert_sequence uint32
  579. Clear_sequence uint32
  580. Assert_tu PPSKTime
  581. Clear_tu PPSKTime
  582. Current_mode int32
  583. _ [4]byte
  584. }
  585. const (
  586. PPS_GETPARAMS = 0x400870a1
  587. PPS_SETPARAMS = 0x800870a2
  588. PPS_GETCAP = 0x400870a3
  589. PPS_FETCH = 0xc00870a4
  590. )
  591. const (
  592. PIDFD_NONBLOCK = 0x800
  593. )
  594. type SysvIpcPerm struct {
  595. Key int32
  596. Uid uint32
  597. Gid uint32
  598. Cuid uint32
  599. Cgid uint32
  600. Mode uint32
  601. Seq uint32
  602. _ uint32
  603. _ uint64
  604. _ uint64
  605. }
  606. type SysvShmDesc struct {
  607. Perm SysvIpcPerm
  608. Atime int64
  609. Dtime int64
  610. Ctime int64
  611. Segsz uint64
  612. Cpid int32
  613. Lpid int32
  614. Nattch uint64
  615. _ uint64
  616. _ uint64
  617. }