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

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