ztypes_linux_sparc64.go 11 KB

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