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