Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

424 wiersze
6.3 KiB

  1. // +build amd64,solaris
  2. // Created by cgo -godefs - DO NOT EDIT
  3. // cgo -godefs types_solaris.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 = 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. const (
  66. S_IFMT = 0xf000
  67. S_IFIFO = 0x1000
  68. S_IFCHR = 0x2000
  69. S_IFDIR = 0x4000
  70. S_IFBLK = 0x6000
  71. S_IFREG = 0x8000
  72. S_IFLNK = 0xa000
  73. S_IFSOCK = 0xc000
  74. S_ISUID = 0x800
  75. S_ISGID = 0x400
  76. S_ISVTX = 0x200
  77. S_IRUSR = 0x100
  78. S_IWUSR = 0x80
  79. S_IXUSR = 0x40
  80. )
  81. type Stat_t struct {
  82. Dev uint64
  83. Ino uint64
  84. Mode uint32
  85. Nlink uint32
  86. Uid uint32
  87. Gid uint32
  88. Rdev uint64
  89. Size int64
  90. Atim Timespec
  91. Mtim Timespec
  92. Ctim Timespec
  93. Blksize int32
  94. Pad_cgo_0 [4]byte
  95. Blocks int64
  96. Fstype [16]int8
  97. }
  98. type Flock_t struct {
  99. Type int16
  100. Whence int16
  101. Pad_cgo_0 [4]byte
  102. Start int64
  103. Len int64
  104. Sysid int32
  105. Pid int32
  106. Pad [4]int64
  107. }
  108. type Dirent struct {
  109. Ino uint64
  110. Off int64
  111. Reclen uint16
  112. Name [1]int8
  113. Pad_cgo_0 [5]byte
  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. Pad_cgo_0 [4]byte
  171. Iov *Iovec
  172. Iovlen int32
  173. Pad_cgo_1 [4]byte
  174. Accrights *int8
  175. Accrightslen int32
  176. Pad_cgo_2 [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]int8
  214. Nodename [257]int8
  215. Release [257]int8
  216. Version [257]int8
  217. Machine [257]int8
  218. }
  219. type Ustat_t struct {
  220. Tfree int64
  221. Tinode uint64
  222. Fname [6]int8
  223. Fpack [6]int8
  224. Pad_cgo_0 [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. Pad_cgo_0 [2]byte
  248. Data IfData
  249. }
  250. type IfData struct {
  251. Type uint8
  252. Addrlen uint8
  253. Hdrlen uint8
  254. Pad_cgo_0 [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. Pad_cgo_0 [2]byte
  279. Metric int32
  280. }
  281. type RtMsghdr struct {
  282. Msglen uint16
  283. Version uint8
  284. Type uint8
  285. Index uint16
  286. Pad_cgo_0 [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. Pad_cgo_0 [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. Pad_cgo_0 [2]byte
  346. }
  347. const _SC_PAGESIZE = 0xb
  348. type Termios struct {
  349. Iflag uint32
  350. Oflag uint32
  351. Cflag uint32
  352. Lflag uint32
  353. Cc [19]uint8
  354. Pad_cgo_0 [1]byte
  355. }
  356. type Termio struct {
  357. Iflag uint16
  358. Oflag uint16
  359. Cflag uint16
  360. Lflag uint16
  361. Line int8
  362. Cc [8]uint8
  363. Pad_cgo_0 [1]byte
  364. }
  365. type Winsize struct {
  366. Row uint16
  367. Col uint16
  368. Xpixel uint16
  369. Ypixel uint16
  370. }