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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  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 Inet6Pktinfo struct {
  184. Addr [16]byte /* in6_addr */
  185. Ifindex uint32
  186. }
  187. type IPv6MTUInfo struct {
  188. Addr RawSockaddrInet6
  189. Mtu uint32
  190. }
  191. type ICMPv6Filter struct {
  192. X__icmp6_filt [8]uint32
  193. }
  194. const (
  195. SizeofSockaddrInet4 = 0x10
  196. SizeofSockaddrInet6 = 0x20
  197. SizeofSockaddrAny = 0xfc
  198. SizeofSockaddrUnix = 0x6e
  199. SizeofSockaddrDatalink = 0xfc
  200. SizeofLinger = 0x8
  201. SizeofIPMreq = 0x8
  202. SizeofIPv6Mreq = 0x14
  203. SizeofMsghdr = 0x30
  204. SizeofCmsghdr = 0xc
  205. SizeofInet6Pktinfo = 0x14
  206. SizeofIPv6MTUInfo = 0x24
  207. SizeofICMPv6Filter = 0x20
  208. )
  209. type FdSet struct {
  210. Bits [1024]int64
  211. }
  212. type Utsname struct {
  213. Sysname [257]byte
  214. Nodename [257]byte
  215. Release [257]byte
  216. Version [257]byte
  217. Machine [257]byte
  218. }
  219. type Ustat_t struct {
  220. Tfree int64
  221. Tinode uint64
  222. Fname [6]int8
  223. Fpack [6]int8
  224. _ [4]byte
  225. }
  226. const (
  227. AT_FDCWD = 0xffd19553
  228. AT_SYMLINK_NOFOLLOW = 0x1000
  229. AT_SYMLINK_FOLLOW = 0x2000
  230. AT_REMOVEDIR = 0x1
  231. AT_EACCESS = 0x4
  232. )
  233. const (
  234. SizeofIfMsghdr = 0x54
  235. SizeofIfData = 0x44
  236. SizeofIfaMsghdr = 0x14
  237. SizeofRtMsghdr = 0x4c
  238. SizeofRtMetrics = 0x28
  239. )
  240. type IfMsghdr struct {
  241. Msglen uint16
  242. Version uint8
  243. Type uint8
  244. Addrs int32
  245. Flags int32
  246. Index uint16
  247. _ [2]byte
  248. Data IfData
  249. }
  250. type IfData struct {
  251. Type uint8
  252. Addrlen uint8
  253. Hdrlen uint8
  254. _ [1]byte
  255. Mtu uint32
  256. Metric uint32
  257. Baudrate uint32
  258. Ipackets uint32
  259. Ierrors uint32
  260. Opackets uint32
  261. Oerrors uint32
  262. Collisions uint32
  263. Ibytes uint32
  264. Obytes uint32
  265. Imcasts uint32
  266. Omcasts uint32
  267. Iqdrops uint32
  268. Noproto uint32
  269. Lastchange Timeval32
  270. }
  271. type IfaMsghdr struct {
  272. Msglen uint16
  273. Version uint8
  274. Type uint8
  275. Addrs int32
  276. Flags int32
  277. Index uint16
  278. _ [2]byte
  279. Metric int32
  280. }
  281. type RtMsghdr struct {
  282. Msglen uint16
  283. Version uint8
  284. Type uint8
  285. Index uint16
  286. _ [2]byte
  287. Flags int32
  288. Addrs int32
  289. Pid int32
  290. Seq int32
  291. Errno int32
  292. Use int32
  293. Inits uint32
  294. Rmx RtMetrics
  295. }
  296. type RtMetrics struct {
  297. Locks uint32
  298. Mtu uint32
  299. Hopcount uint32
  300. Expire uint32
  301. Recvpipe uint32
  302. Sendpipe uint32
  303. Ssthresh uint32
  304. Rtt uint32
  305. Rttvar uint32
  306. Pksent uint32
  307. }
  308. const (
  309. SizeofBpfVersion = 0x4
  310. SizeofBpfStat = 0x80
  311. SizeofBpfProgram = 0x10
  312. SizeofBpfInsn = 0x8
  313. SizeofBpfHdr = 0x14
  314. )
  315. type BpfVersion struct {
  316. Major uint16
  317. Minor uint16
  318. }
  319. type BpfStat struct {
  320. Recv uint64
  321. Drop uint64
  322. Capt uint64
  323. Padding [13]uint64
  324. }
  325. type BpfProgram struct {
  326. Len uint32
  327. _ [4]byte
  328. Insns *BpfInsn
  329. }
  330. type BpfInsn struct {
  331. Code uint16
  332. Jt uint8
  333. Jf uint8
  334. K uint32
  335. }
  336. type BpfTimeval struct {
  337. Sec int32
  338. Usec int32
  339. }
  340. type BpfHdr struct {
  341. Tstamp BpfTimeval
  342. Caplen uint32
  343. Datalen uint32
  344. Hdrlen uint16
  345. _ [2]byte
  346. }
  347. type Termios struct {
  348. Iflag uint32
  349. Oflag uint32
  350. Cflag uint32
  351. Lflag uint32
  352. Cc [19]uint8
  353. _ [1]byte
  354. }
  355. type Termio struct {
  356. Iflag uint16
  357. Oflag uint16
  358. Cflag uint16
  359. Lflag uint16
  360. Line int8
  361. Cc [8]uint8
  362. _ [1]byte
  363. }
  364. type Winsize struct {
  365. Row uint16
  366. Col uint16
  367. Xpixel uint16
  368. Ypixel uint16
  369. }
  370. type PollFd struct {
  371. Fd int32
  372. Events int16
  373. Revents int16
  374. }
  375. const (
  376. POLLERR = 0x8
  377. POLLHUP = 0x10
  378. POLLIN = 0x1
  379. POLLNVAL = 0x20
  380. POLLOUT = 0x4
  381. POLLPRI = 0x2
  382. POLLRDBAND = 0x80
  383. POLLRDNORM = 0x40
  384. POLLWRBAND = 0x100
  385. POLLWRNORM = 0x4
  386. )