ztypes_linux_ppc64le.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. // +build ppc64le,linux
  2. // Created by cgo -godefs - DO NOT EDIT
  3. // cgo -godefs types_linux.go
  4. package unix
  5. const (
  6. sizeofPtr = 0x8
  7. sizeofShort = 0x2
  8. sizeofInt = 0x4
  9. sizeofLong = 0x8
  10. sizeofLongLong = 0x8
  11. PathMax = 0x1000
  12. )
  13. type (
  14. _C_short int16
  15. _C_int int32
  16. _C_long int64
  17. _C_long_long int64
  18. )
  19. type Timespec struct {
  20. Sec int64
  21. Nsec int64
  22. }
  23. type Timeval struct {
  24. Sec int64
  25. Usec int64
  26. }
  27. type Timex struct {
  28. Modes uint32
  29. Pad_cgo_0 [4]byte
  30. Offset int64
  31. Freq int64
  32. Maxerror int64
  33. Esterror int64
  34. Status int32
  35. Pad_cgo_1 [4]byte
  36. Constant int64
  37. Precision int64
  38. Tolerance int64
  39. Time Timeval
  40. Tick int64
  41. Ppsfreq int64
  42. Jitter int64
  43. Shift int32
  44. Pad_cgo_2 [4]byte
  45. Stabil int64
  46. Jitcnt int64
  47. Calcnt int64
  48. Errcnt int64
  49. Stbcnt int64
  50. Tai int32
  51. Pad_cgo_3 [44]byte
  52. }
  53. type Time_t int64
  54. type Tms struct {
  55. Utime int64
  56. Stime int64
  57. Cutime int64
  58. Cstime int64
  59. }
  60. type Utimbuf struct {
  61. Actime int64
  62. Modtime int64
  63. }
  64. type Rusage struct {
  65. Utime Timeval
  66. Stime Timeval
  67. Maxrss int64
  68. Ixrss int64
  69. Idrss int64
  70. Isrss int64
  71. Minflt int64
  72. Majflt int64
  73. Nswap int64
  74. Inblock int64
  75. Oublock int64
  76. Msgsnd int64
  77. Msgrcv int64
  78. Nsignals int64
  79. Nvcsw int64
  80. Nivcsw int64
  81. }
  82. type Rlimit struct {
  83. Cur uint64
  84. Max uint64
  85. }
  86. type _Gid_t uint32
  87. type Stat_t struct {
  88. Dev uint64
  89. Ino uint64
  90. Nlink uint64
  91. Mode uint32
  92. Uid uint32
  93. Gid uint32
  94. X__pad2 int32
  95. Rdev uint64
  96. Size int64
  97. Blksize int64
  98. Blocks int64
  99. Atim Timespec
  100. Mtim Timespec
  101. Ctim Timespec
  102. X__glibc_reserved4 uint64
  103. X__glibc_reserved5 uint64
  104. X__glibc_reserved6 uint64
  105. }
  106. type Statfs_t struct {
  107. Type int64
  108. Bsize int64
  109. Blocks uint64
  110. Bfree uint64
  111. Bavail uint64
  112. Files uint64
  113. Ffree uint64
  114. Fsid Fsid
  115. Namelen int64
  116. Frsize int64
  117. Flags int64
  118. Spare [4]int64
  119. }
  120. type Dirent struct {
  121. Ino uint64
  122. Off int64
  123. Reclen uint16
  124. Type uint8
  125. Name [256]uint8
  126. Pad_cgo_0 [5]byte
  127. }
  128. type Fsid struct {
  129. X__val [2]int32
  130. }
  131. type Flock_t struct {
  132. Type int16
  133. Whence int16
  134. Pad_cgo_0 [4]byte
  135. Start int64
  136. Len int64
  137. Pid int32
  138. Pad_cgo_1 [4]byte
  139. }
  140. const (
  141. FADV_NORMAL = 0x0
  142. FADV_RANDOM = 0x1
  143. FADV_SEQUENTIAL = 0x2
  144. FADV_WILLNEED = 0x3
  145. FADV_DONTNEED = 0x4
  146. FADV_NOREUSE = 0x5
  147. )
  148. type RawSockaddrInet4 struct {
  149. Family uint16
  150. Port uint16
  151. Addr [4]byte /* in_addr */
  152. Zero [8]uint8
  153. }
  154. type RawSockaddrInet6 struct {
  155. Family uint16
  156. Port uint16
  157. Flowinfo uint32
  158. Addr [16]byte /* in6_addr */
  159. Scope_id uint32
  160. }
  161. type RawSockaddrUnix struct {
  162. Family uint16
  163. Path [108]int8
  164. }
  165. type RawSockaddrLinklayer struct {
  166. Family uint16
  167. Protocol uint16
  168. Ifindex int32
  169. Hatype uint16
  170. Pkttype uint8
  171. Halen uint8
  172. Addr [8]uint8
  173. }
  174. type RawSockaddrNetlink struct {
  175. Family uint16
  176. Pad uint16
  177. Pid uint32
  178. Groups uint32
  179. }
  180. type RawSockaddrHCI struct {
  181. Family uint16
  182. Dev uint16
  183. Channel uint16
  184. }
  185. type RawSockaddr struct {
  186. Family uint16
  187. Data [14]uint8
  188. }
  189. type RawSockaddrAny struct {
  190. Addr RawSockaddr
  191. Pad [96]uint8
  192. }
  193. type _Socklen uint32
  194. type Linger struct {
  195. Onoff int32
  196. Linger int32
  197. }
  198. type Iovec struct {
  199. Base *byte
  200. Len uint64
  201. }
  202. type IPMreq struct {
  203. Multiaddr [4]byte /* in_addr */
  204. Interface [4]byte /* in_addr */
  205. }
  206. type IPMreqn struct {
  207. Multiaddr [4]byte /* in_addr */
  208. Address [4]byte /* in_addr */
  209. Ifindex int32
  210. }
  211. type IPv6Mreq struct {
  212. Multiaddr [16]byte /* in6_addr */
  213. Interface uint32
  214. }
  215. type Msghdr struct {
  216. Name *byte
  217. Namelen uint32
  218. Pad_cgo_0 [4]byte
  219. Iov *Iovec
  220. Iovlen uint64
  221. Control *byte
  222. Controllen uint64
  223. Flags int32
  224. Pad_cgo_1 [4]byte
  225. }
  226. type Cmsghdr struct {
  227. Len uint64
  228. Level int32
  229. Type int32
  230. X__cmsg_data [0]uint8
  231. }
  232. type Inet4Pktinfo struct {
  233. Ifindex int32
  234. Spec_dst [4]byte /* in_addr */
  235. Addr [4]byte /* in_addr */
  236. }
  237. type Inet6Pktinfo struct {
  238. Addr [16]byte /* in6_addr */
  239. Ifindex uint32
  240. }
  241. type IPv6MTUInfo struct {
  242. Addr RawSockaddrInet6
  243. Mtu uint32
  244. }
  245. type ICMPv6Filter struct {
  246. Data [8]uint32
  247. }
  248. type Ucred struct {
  249. Pid int32
  250. Uid uint32
  251. Gid uint32
  252. }
  253. type TCPInfo struct {
  254. State uint8
  255. Ca_state uint8
  256. Retransmits uint8
  257. Probes uint8
  258. Backoff uint8
  259. Options uint8
  260. Pad_cgo_0 [2]byte
  261. Rto uint32
  262. Ato uint32
  263. Snd_mss uint32
  264. Rcv_mss uint32
  265. Unacked uint32
  266. Sacked uint32
  267. Lost uint32
  268. Retrans uint32
  269. Fackets uint32
  270. Last_data_sent uint32
  271. Last_ack_sent uint32
  272. Last_data_recv uint32
  273. Last_ack_recv uint32
  274. Pmtu uint32
  275. Rcv_ssthresh uint32
  276. Rtt uint32
  277. Rttvar uint32
  278. Snd_ssthresh uint32
  279. Snd_cwnd uint32
  280. Advmss uint32
  281. Reordering uint32
  282. Rcv_rtt uint32
  283. Rcv_space uint32
  284. Total_retrans uint32
  285. }
  286. const (
  287. SizeofSockaddrInet4 = 0x10
  288. SizeofSockaddrInet6 = 0x1c
  289. SizeofSockaddrAny = 0x70
  290. SizeofSockaddrUnix = 0x6e
  291. SizeofSockaddrLinklayer = 0x14
  292. SizeofSockaddrNetlink = 0xc
  293. SizeofSockaddrHCI = 0x6
  294. SizeofLinger = 0x8
  295. SizeofIPMreq = 0x8
  296. SizeofIPMreqn = 0xc
  297. SizeofIPv6Mreq = 0x14
  298. SizeofMsghdr = 0x38
  299. SizeofCmsghdr = 0x10
  300. SizeofInet4Pktinfo = 0xc
  301. SizeofInet6Pktinfo = 0x14
  302. SizeofIPv6MTUInfo = 0x20
  303. SizeofICMPv6Filter = 0x20
  304. SizeofUcred = 0xc
  305. SizeofTCPInfo = 0x68
  306. )
  307. const (
  308. IFA_UNSPEC = 0x0
  309. IFA_ADDRESS = 0x1
  310. IFA_LOCAL = 0x2
  311. IFA_LABEL = 0x3
  312. IFA_BROADCAST = 0x4
  313. IFA_ANYCAST = 0x5
  314. IFA_CACHEINFO = 0x6
  315. IFA_MULTICAST = 0x7
  316. IFLA_UNSPEC = 0x0
  317. IFLA_ADDRESS = 0x1
  318. IFLA_BROADCAST = 0x2
  319. IFLA_IFNAME = 0x3
  320. IFLA_MTU = 0x4
  321. IFLA_LINK = 0x5
  322. IFLA_QDISC = 0x6
  323. IFLA_STATS = 0x7
  324. IFLA_COST = 0x8
  325. IFLA_PRIORITY = 0x9
  326. IFLA_MASTER = 0xa
  327. IFLA_WIRELESS = 0xb
  328. IFLA_PROTINFO = 0xc
  329. IFLA_TXQLEN = 0xd
  330. IFLA_MAP = 0xe
  331. IFLA_WEIGHT = 0xf
  332. IFLA_OPERSTATE = 0x10
  333. IFLA_LINKMODE = 0x11
  334. IFLA_LINKINFO = 0x12
  335. IFLA_NET_NS_PID = 0x13
  336. IFLA_IFALIAS = 0x14
  337. IFLA_MAX = 0x22
  338. RT_SCOPE_UNIVERSE = 0x0
  339. RT_SCOPE_SITE = 0xc8
  340. RT_SCOPE_LINK = 0xfd
  341. RT_SCOPE_HOST = 0xfe
  342. RT_SCOPE_NOWHERE = 0xff
  343. RT_TABLE_UNSPEC = 0x0
  344. RT_TABLE_COMPAT = 0xfc
  345. RT_TABLE_DEFAULT = 0xfd
  346. RT_TABLE_MAIN = 0xfe
  347. RT_TABLE_LOCAL = 0xff
  348. RT_TABLE_MAX = 0xffffffff
  349. RTA_UNSPEC = 0x0
  350. RTA_DST = 0x1
  351. RTA_SRC = 0x2
  352. RTA_IIF = 0x3
  353. RTA_OIF = 0x4
  354. RTA_GATEWAY = 0x5
  355. RTA_PRIORITY = 0x6
  356. RTA_PREFSRC = 0x7
  357. RTA_METRICS = 0x8
  358. RTA_MULTIPATH = 0x9
  359. RTA_FLOW = 0xb
  360. RTA_CACHEINFO = 0xc
  361. RTA_TABLE = 0xf
  362. RTN_UNSPEC = 0x0
  363. RTN_UNICAST = 0x1
  364. RTN_LOCAL = 0x2
  365. RTN_BROADCAST = 0x3
  366. RTN_ANYCAST = 0x4
  367. RTN_MULTICAST = 0x5
  368. RTN_BLACKHOLE = 0x6
  369. RTN_UNREACHABLE = 0x7
  370. RTN_PROHIBIT = 0x8
  371. RTN_THROW = 0x9
  372. RTN_NAT = 0xa
  373. RTN_XRESOLVE = 0xb
  374. RTNLGRP_NONE = 0x0
  375. RTNLGRP_LINK = 0x1
  376. RTNLGRP_NOTIFY = 0x2
  377. RTNLGRP_NEIGH = 0x3
  378. RTNLGRP_TC = 0x4
  379. RTNLGRP_IPV4_IFADDR = 0x5
  380. RTNLGRP_IPV4_MROUTE = 0x6
  381. RTNLGRP_IPV4_ROUTE = 0x7
  382. RTNLGRP_IPV4_RULE = 0x8
  383. RTNLGRP_IPV6_IFADDR = 0x9
  384. RTNLGRP_IPV6_MROUTE = 0xa
  385. RTNLGRP_IPV6_ROUTE = 0xb
  386. RTNLGRP_IPV6_IFINFO = 0xc
  387. RTNLGRP_IPV6_PREFIX = 0x12
  388. RTNLGRP_IPV6_RULE = 0x13
  389. RTNLGRP_ND_USEROPT = 0x14
  390. SizeofNlMsghdr = 0x10
  391. SizeofNlMsgerr = 0x14
  392. SizeofRtGenmsg = 0x1
  393. SizeofNlAttr = 0x4
  394. SizeofRtAttr = 0x4
  395. SizeofIfInfomsg = 0x10
  396. SizeofIfAddrmsg = 0x8
  397. SizeofRtMsg = 0xc
  398. SizeofRtNexthop = 0x8
  399. )
  400. type NlMsghdr struct {
  401. Len uint32
  402. Type uint16
  403. Flags uint16
  404. Seq uint32
  405. Pid uint32
  406. }
  407. type NlMsgerr struct {
  408. Error int32
  409. Msg NlMsghdr
  410. }
  411. type RtGenmsg struct {
  412. Family uint8
  413. }
  414. type NlAttr struct {
  415. Len uint16
  416. Type uint16
  417. }
  418. type RtAttr struct {
  419. Len uint16
  420. Type uint16
  421. }
  422. type IfInfomsg struct {
  423. Family uint8
  424. X__ifi_pad uint8
  425. Type uint16
  426. Index int32
  427. Flags uint32
  428. Change uint32
  429. }
  430. type IfAddrmsg struct {
  431. Family uint8
  432. Prefixlen uint8
  433. Flags uint8
  434. Scope uint8
  435. Index uint32
  436. }
  437. type RtMsg struct {
  438. Family uint8
  439. Dst_len uint8
  440. Src_len uint8
  441. Tos uint8
  442. Table uint8
  443. Protocol uint8
  444. Scope uint8
  445. Type uint8
  446. Flags uint32
  447. }
  448. type RtNexthop struct {
  449. Len uint16
  450. Flags uint8
  451. Hops uint8
  452. Ifindex int32
  453. }
  454. const (
  455. SizeofSockFilter = 0x8
  456. SizeofSockFprog = 0x10
  457. )
  458. type SockFilter struct {
  459. Code uint16
  460. Jt uint8
  461. Jf uint8
  462. K uint32
  463. }
  464. type SockFprog struct {
  465. Len uint16
  466. Pad_cgo_0 [6]byte
  467. Filter *SockFilter
  468. }
  469. type InotifyEvent struct {
  470. Wd int32
  471. Mask uint32
  472. Cookie uint32
  473. Len uint32
  474. Name [0]uint8
  475. }
  476. const SizeofInotifyEvent = 0x10
  477. type PtraceRegs struct {
  478. Gpr [32]uint64
  479. Nip uint64
  480. Msr uint64
  481. Orig_gpr3 uint64
  482. Ctr uint64
  483. Link uint64
  484. Xer uint64
  485. Ccr uint64
  486. Softe uint64
  487. Trap uint64
  488. Dar uint64
  489. Dsisr uint64
  490. Result uint64
  491. }
  492. type FdSet struct {
  493. Bits [16]int64
  494. }
  495. type Sysinfo_t struct {
  496. Uptime int64
  497. Loads [3]uint64
  498. Totalram uint64
  499. Freeram uint64
  500. Sharedram uint64
  501. Bufferram uint64
  502. Totalswap uint64
  503. Freeswap uint64
  504. Procs uint16
  505. Pad uint16
  506. Pad_cgo_0 [4]byte
  507. Totalhigh uint64
  508. Freehigh uint64
  509. Unit uint32
  510. X_f [0]uint8
  511. Pad_cgo_1 [4]byte
  512. }
  513. type Utsname struct {
  514. Sysname [65]uint8
  515. Nodename [65]uint8
  516. Release [65]uint8
  517. Version [65]uint8
  518. Machine [65]uint8
  519. Domainname [65]uint8
  520. }
  521. type Ustat_t struct {
  522. Tfree int32
  523. Pad_cgo_0 [4]byte
  524. Tinode uint64
  525. Fname [6]uint8
  526. Fpack [6]uint8
  527. Pad_cgo_1 [4]byte
  528. }
  529. type EpollEvent struct {
  530. Events uint32
  531. X_padFd int32
  532. Fd int32
  533. Pad int32
  534. }
  535. const (
  536. AT_FDCWD = -0x64
  537. AT_REMOVEDIR = 0x200
  538. AT_SYMLINK_FOLLOW = 0x400
  539. AT_SYMLINK_NOFOLLOW = 0x100
  540. )
  541. type PollFd struct {
  542. Fd int32
  543. Events int16
  544. Revents int16
  545. }
  546. const (
  547. POLLIN = 0x1
  548. POLLPRI = 0x2
  549. POLLOUT = 0x4
  550. POLLRDHUP = 0x2000
  551. POLLERR = 0x8
  552. POLLHUP = 0x10
  553. POLLNVAL = 0x20
  554. )
  555. type Sigset_t struct {
  556. X__val [16]uint64
  557. }
  558. type Termios struct {
  559. Iflag uint32
  560. Oflag uint32
  561. Cflag uint32
  562. Lflag uint32
  563. Cc [19]uint8
  564. Line uint8
  565. Ispeed uint32
  566. Ospeed uint32
  567. }