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.

ztypes_solaris_amd64.go 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. // cgo -godefs types_solaris.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build amd64,solaris
  4. package unix
  5. const (
  6. SizeofPtr = 0x8
  7. SizeofShort = 0x2
  8. SizeofInt = 0x4
  9. SizeofLong = 0x8
  10. SizeofLongLong = 0x8
  11. PathMax = 0x400
  12. MaxHostNameLen = 0x100
  13. )
  14. type (
  15. _C_short int16
  16. _C_int int32
  17. _C_long int64
  18. _C_long_long int64
  19. )
  20. type Timespec struct {
  21. Sec int64
  22. Nsec int64
  23. }
  24. type Timeval struct {
  25. Sec int64
  26. Usec int64
  27. }
  28. type Timeval32 struct {
  29. Sec int32
  30. Usec int32
  31. }
  32. type Tms struct {
  33. Utime int64
  34. Stime int64
  35. Cutime int64
  36. Cstime int64
  37. }
  38. type Utimbuf struct {
  39. Actime int64
  40. Modtime int64
  41. }
  42. type Rusage struct {
  43. Utime Timeval
  44. Stime Timeval
  45. Maxrss int64
  46. Ixrss int64
  47. Idrss int64
  48. Isrss int64
  49. Minflt int64
  50. Majflt int64
  51. Nswap int64
  52. Inblock int64
  53. Oublock int64
  54. Msgsnd int64
  55. Msgrcv int64
  56. Nsignals int64
  57. Nvcsw int64
  58. Nivcsw int64
  59. }
  60. type Rlimit struct {
  61. Cur uint64
  62. Max uint64
  63. }
  64. type _Gid_t uint32
  65. type Stat_t struct {
  66. Dev uint64
  67. Ino uint64
  68. Mode uint32
  69. Nlink uint32
  70. Uid uint32
  71. Gid uint32
  72. Rdev uint64
  73. Size int64
  74. Atim Timespec
  75. Mtim Timespec
  76. Ctim Timespec
  77. Blksize int32
  78. _ [4]byte
  79. Blocks int64
  80. Fstype [16]int8
  81. }
  82. type Flock_t struct {
  83. Type int16
  84. Whence int16
  85. _ [4]byte
  86. Start int64
  87. Len int64
  88. Sysid int32
  89. Pid int32
  90. Pad [4]int64
  91. }
  92. type Dirent struct {
  93. Ino uint64
  94. Off int64
  95. Reclen uint16
  96. Name [1]int8
  97. _ [5]byte
  98. }
  99. type _Fsblkcnt_t uint64
  100. type Statvfs_t struct {
  101. Bsize uint64
  102. Frsize uint64
  103. Blocks uint64
  104. Bfree uint64
  105. Bavail uint64
  106. Files uint64
  107. Ffree uint64
  108. Favail uint64
  109. Fsid uint64
  110. Basetype [16]int8
  111. Flag uint64
  112. Namemax uint64
  113. Fstr [32]int8
  114. }
  115. type RawSockaddrInet4 struct {
  116. Family uint16
  117. Port uint16
  118. Addr [4]byte /* in_addr */
  119. Zero [8]int8
  120. }
  121. type RawSockaddrInet6 struct {
  122. Family uint16
  123. Port uint16
  124. Flowinfo uint32
  125. Addr [16]byte /* in6_addr */
  126. Scope_id uint32
  127. X__sin6_src_id uint32
  128. }
  129. type RawSockaddrUnix struct {
  130. Family uint16
  131. Path [108]int8
  132. }
  133. type RawSockaddrDatalink struct {
  134. Family uint16
  135. Index uint16
  136. Type uint8
  137. Nlen uint8
  138. Alen uint8
  139. Slen uint8
  140. Data [244]int8
  141. }
  142. type RawSockaddr struct {
  143. Family uint16
  144. Data [14]int8
  145. }
  146. type RawSockaddrAny struct {
  147. Addr RawSockaddr
  148. Pad [236]int8
  149. }
  150. type _Socklen uint32
  151. type Linger struct {
  152. Onoff int32
  153. Linger int32
  154. }
  155. type Iovec struct {
  156. Base *int8
  157. Len uint64
  158. }
  159. type IPMreq struct {
  160. Multiaddr [4]byte /* in_addr */
  161. Interface [4]byte /* in_addr */
  162. }
  163. type IPv6Mreq struct {
  164. Multiaddr [16]byte /* in6_addr */
  165. Interface uint32
  166. }
  167. type Msghdr struct {
  168. Name *byte
  169. Namelen uint32
  170. _ [4]byte
  171. Iov *Iovec
  172. Iovlen int32
  173. _ [4]byte
  174. Accrights *int8
  175. Accrightslen int32
  176. _ [4]byte
  177. }
  178. type Cmsghdr struct {
  179. Len uint32
  180. Level int32
  181. Type int32
  182. }
  183. type Inet4Pktinfo struct {
  184. Ifindex uint32
  185. Spec_dst [4]byte /* in_addr */
  186. Addr [4]byte /* in_addr */
  187. }
  188. type Inet6Pktinfo struct {
  189. Addr [16]byte /* in6_addr */
  190. Ifindex uint32
  191. }
  192. type IPv6MTUInfo struct {
  193. Addr RawSockaddrInet6
  194. Mtu uint32
  195. }
  196. type ICMPv6Filter struct {
  197. X__icmp6_filt [8]uint32
  198. }
  199. const (
  200. SizeofSockaddrInet4 = 0x10
  201. SizeofSockaddrInet6 = 0x20
  202. SizeofSockaddrAny = 0xfc
  203. SizeofSockaddrUnix = 0x6e
  204. SizeofSockaddrDatalink = 0xfc
  205. SizeofLinger = 0x8
  206. SizeofIPMreq = 0x8
  207. SizeofIPv6Mreq = 0x14
  208. SizeofMsghdr = 0x30
  209. SizeofCmsghdr = 0xc
  210. SizeofInet4Pktinfo = 0xc
  211. SizeofInet6Pktinfo = 0x14
  212. SizeofIPv6MTUInfo = 0x24
  213. SizeofICMPv6Filter = 0x20
  214. )
  215. type FdSet struct {
  216. Bits [1024]int64
  217. }
  218. type Utsname struct {
  219. Sysname [257]byte
  220. Nodename [257]byte
  221. Release [257]byte
  222. Version [257]byte
  223. Machine [257]byte
  224. }
  225. type Ustat_t struct {
  226. Tfree int64
  227. Tinode uint64
  228. Fname [6]int8
  229. Fpack [6]int8
  230. _ [4]byte
  231. }
  232. const (
  233. AT_FDCWD = 0xffd19553
  234. AT_SYMLINK_NOFOLLOW = 0x1000
  235. AT_SYMLINK_FOLLOW = 0x2000
  236. AT_REMOVEDIR = 0x1
  237. AT_EACCESS = 0x4
  238. )
  239. const (
  240. SizeofIfMsghdr = 0x54
  241. SizeofIfData = 0x44
  242. SizeofIfaMsghdr = 0x14
  243. SizeofRtMsghdr = 0x4c
  244. SizeofRtMetrics = 0x28
  245. )
  246. type IfMsghdr struct {
  247. Msglen uint16
  248. Version uint8
  249. Type uint8
  250. Addrs int32
  251. Flags int32
  252. Index uint16
  253. _ [2]byte
  254. Data IfData
  255. }
  256. type IfData struct {
  257. Type uint8
  258. Addrlen uint8
  259. Hdrlen uint8
  260. _ [1]byte
  261. Mtu uint32
  262. Metric uint32
  263. Baudrate uint32
  264. Ipackets uint32
  265. Ierrors uint32
  266. Opackets uint32
  267. Oerrors uint32
  268. Collisions uint32
  269. Ibytes uint32
  270. Obytes uint32
  271. Imcasts uint32
  272. Omcasts uint32
  273. Iqdrops uint32
  274. Noproto uint32
  275. Lastchange Timeval32
  276. }
  277. type IfaMsghdr struct {
  278. Msglen uint16
  279. Version uint8
  280. Type uint8
  281. Addrs int32
  282. Flags int32
  283. Index uint16
  284. _ [2]byte
  285. Metric int32
  286. }
  287. type RtMsghdr struct {
  288. Msglen uint16
  289. Version uint8
  290. Type uint8
  291. Index uint16
  292. _ [2]byte
  293. Flags int32
  294. Addrs int32
  295. Pid int32
  296. Seq int32
  297. Errno int32
  298. Use int32
  299. Inits uint32
  300. Rmx RtMetrics
  301. }
  302. type RtMetrics struct {
  303. Locks uint32
  304. Mtu uint32
  305. Hopcount uint32
  306. Expire uint32
  307. Recvpipe uint32
  308. Sendpipe uint32
  309. Ssthresh uint32
  310. Rtt uint32
  311. Rttvar uint32
  312. Pksent uint32
  313. }
  314. const (
  315. SizeofBpfVersion = 0x4
  316. SizeofBpfStat = 0x80
  317. SizeofBpfProgram = 0x10
  318. SizeofBpfInsn = 0x8
  319. SizeofBpfHdr = 0x14
  320. )
  321. type BpfVersion struct {
  322. Major uint16
  323. Minor uint16
  324. }
  325. type BpfStat struct {
  326. Recv uint64
  327. Drop uint64
  328. Capt uint64
  329. Padding [13]uint64
  330. }
  331. type BpfProgram struct {
  332. Len uint32
  333. _ [4]byte
  334. Insns *BpfInsn
  335. }
  336. type BpfInsn struct {
  337. Code uint16
  338. Jt uint8
  339. Jf uint8
  340. K uint32
  341. }
  342. type BpfTimeval struct {
  343. Sec int32
  344. Usec int32
  345. }
  346. type BpfHdr struct {
  347. Tstamp BpfTimeval
  348. Caplen uint32
  349. Datalen uint32
  350. Hdrlen uint16
  351. _ [2]byte
  352. }
  353. type Termios struct {
  354. Iflag uint32
  355. Oflag uint32
  356. Cflag uint32
  357. Lflag uint32
  358. Cc [19]uint8
  359. _ [1]byte
  360. }
  361. type Termio struct {
  362. Iflag uint16
  363. Oflag uint16
  364. Cflag uint16
  365. Lflag uint16
  366. Line int8
  367. Cc [8]uint8
  368. _ [1]byte
  369. }
  370. type Winsize struct {
  371. Row uint16
  372. Col uint16
  373. Xpixel uint16
  374. Ypixel uint16
  375. }
  376. type PollFd struct {
  377. Fd int32
  378. Events int16
  379. Revents int16
  380. }
  381. const (
  382. POLLERR = 0x8
  383. POLLHUP = 0x10
  384. POLLIN = 0x1
  385. POLLNVAL = 0x20
  386. POLLOUT = 0x4
  387. POLLPRI = 0x2
  388. POLLRDBAND = 0x80
  389. POLLRDNORM = 0x40
  390. POLLWRBAND = 0x100
  391. POLLWRNORM = 0x4
  392. )