github.com/ccccaoqing/test@v0.0.0-20220510085219-3985d23445c0/src/syscall/ztypes_solaris_amd64.go (about) 1 // Created by cgo -godefs - DO NOT EDIT 2 // cgo -godefs types_solaris.go 3 4 package syscall 5 6 const ( 7 sizeofPtr = 0x8 8 sizeofShort = 0x2 9 sizeofInt = 0x4 10 sizeofLong = 0x8 11 sizeofLongLong = 0x8 12 ) 13 14 type ( 15 _C_short int16 16 _C_int int32 17 _C_long int64 18 _C_long_long int64 19 ) 20 21 type Timespec struct { 22 Sec int64 23 Nsec int64 24 } 25 26 type Timeval struct { 27 Sec int64 28 Usec int64 29 } 30 31 type Timeval32 struct { 32 Sec int32 33 Usec int32 34 } 35 36 type Rusage struct { 37 Utime Timeval 38 Stime Timeval 39 Maxrss int64 40 Ixrss int64 41 Idrss int64 42 Isrss int64 43 Minflt int64 44 Majflt int64 45 Nswap int64 46 Inblock int64 47 Oublock int64 48 Msgsnd int64 49 Msgrcv int64 50 Nsignals int64 51 Nvcsw int64 52 Nivcsw int64 53 } 54 55 type Rlimit struct { 56 Cur uint64 57 Max uint64 58 } 59 60 type _Gid_t uint32 61 62 const ( 63 S_IFMT = 0xf000 64 S_IFIFO = 0x1000 65 S_IFCHR = 0x2000 66 S_IFDIR = 0x4000 67 S_IFBLK = 0x6000 68 S_IFREG = 0x8000 69 S_IFLNK = 0xa000 70 S_IFSOCK = 0xc000 71 S_ISUID = 0x800 72 S_ISGID = 0x400 73 S_ISVTX = 0x200 74 S_IRUSR = 0x100 75 S_IWUSR = 0x80 76 S_IXUSR = 0x40 77 ) 78 79 type Stat_t struct { 80 Dev uint64 81 Ino uint64 82 Mode uint32 83 Nlink uint32 84 Uid uint32 85 Gid uint32 86 Rdev uint64 87 Size int64 88 Atim Timespec 89 Mtim Timespec 90 Ctim Timespec 91 Blksize int32 92 Pad_cgo_0 [4]byte 93 Blocks int64 94 Fstype [16]int8 95 } 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 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 116 type RawSockaddrInet4 struct { 117 Family uint16 118 Port uint16 119 Addr [4]byte /* in_addr */ 120 Zero [8]int8 121 } 122 123 type RawSockaddrInet6 struct { 124 Family uint16 125 Port uint16 126 Flowinfo uint32 127 Addr [16]byte /* in6_addr */ 128 Scope_id uint32 129 X__sin6_src_id uint32 130 } 131 132 type RawSockaddrUnix struct { 133 Family uint16 134 Path [108]int8 135 } 136 137 type RawSockaddrDatalink struct { 138 Family uint16 139 Index uint16 140 Type uint8 141 Nlen uint8 142 Alen uint8 143 Slen uint8 144 Data [244]int8 145 } 146 147 type RawSockaddr struct { 148 Family uint16 149 Data [14]int8 150 } 151 152 type RawSockaddrAny struct { 153 Addr RawSockaddr 154 Pad [236]int8 155 } 156 157 type _Socklen uint32 158 159 type Linger struct { 160 Onoff int32 161 Linger int32 162 } 163 164 type Iovec struct { 165 Base *int8 166 Len uint64 167 } 168 169 type IPMreq struct { 170 Multiaddr [4]byte /* in_addr */ 171 Interface [4]byte /* in_addr */ 172 } 173 174 type IPv6Mreq struct { 175 Multiaddr [16]byte /* in6_addr */ 176 Interface uint32 177 } 178 179 type Msghdr struct { 180 Name *byte 181 Namelen uint32 182 Pad_cgo_0 [4]byte 183 Iov *Iovec 184 Iovlen int32 185 Pad_cgo_1 [4]byte 186 Accrights *int8 187 Accrightslen int32 188 Pad_cgo_2 [4]byte 189 } 190 191 type Cmsghdr struct { 192 Len uint32 193 Level int32 194 Type int32 195 } 196 197 type Inet6Pktinfo struct { 198 Addr [16]byte /* in6_addr */ 199 Ifindex uint32 200 } 201 202 type IPv6MTUInfo struct { 203 Addr RawSockaddrInet6 204 Mtu uint32 205 } 206 207 type ICMPv6Filter struct { 208 X__icmp6_filt [8]uint32 209 } 210 211 const ( 212 SizeofSockaddrInet4 = 0x10 213 SizeofSockaddrInet6 = 0x20 214 SizeofSockaddrAny = 0xfc 215 SizeofSockaddrUnix = 0x6e 216 SizeofSockaddrDatalink = 0xfc 217 SizeofLinger = 0x8 218 SizeofIPMreq = 0x8 219 SizeofIPv6Mreq = 0x14 220 SizeofMsghdr = 0x30 221 SizeofCmsghdr = 0xc 222 SizeofInet6Pktinfo = 0x14 223 SizeofIPv6MTUInfo = 0x24 224 SizeofICMPv6Filter = 0x20 225 ) 226 227 type FdSet struct { 228 Bits [1024]int64 229 } 230 231 const ( 232 SizeofIfMsghdr = 0x54 233 SizeofIfData = 0x44 234 SizeofIfaMsghdr = 0x14 235 SizeofRtMsghdr = 0x4c 236 SizeofRtMetrics = 0x28 237 ) 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 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 272 type IfaMsghdr struct { 273 Msglen uint16 274 Version uint8 275 Type uint8 276 Addrs int32 277 Flags int32 278 Index uint16 279 Pad_cgo_0 [2]byte 280 Metric int32 281 } 282 283 type RtMsghdr struct { 284 Msglen uint16 285 Version uint8 286 Type uint8 287 Index uint16 288 Pad_cgo_0 [2]byte 289 Flags int32 290 Addrs int32 291 Pid int32 292 Seq int32 293 Errno int32 294 Use int32 295 Inits uint32 296 Rmx RtMetrics 297 } 298 299 type RtMetrics struct { 300 Locks uint32 301 Mtu uint32 302 Hopcount uint32 303 Expire uint32 304 Recvpipe uint32 305 Sendpipe uint32 306 Ssthresh uint32 307 Rtt uint32 308 Rttvar uint32 309 Pksent uint32 310 } 311 312 const ( 313 SizeofBpfVersion = 0x4 314 SizeofBpfStat = 0x80 315 SizeofBpfProgram = 0x10 316 SizeofBpfInsn = 0x8 317 SizeofBpfHdr = 0x14 318 ) 319 320 type BpfVersion struct { 321 Major uint16 322 Minor uint16 323 } 324 325 type BpfStat struct { 326 Recv uint64 327 Drop uint64 328 Capt uint64 329 Padding [13]uint64 330 } 331 332 type BpfProgram struct { 333 Len uint32 334 Pad_cgo_0 [4]byte 335 Insns *BpfInsn 336 } 337 338 type BpfInsn struct { 339 Code uint16 340 Jt uint8 341 Jf uint8 342 K uint32 343 } 344 345 type BpfTimeval struct { 346 Sec int32 347 Usec int32 348 } 349 350 type BpfHdr struct { 351 Tstamp BpfTimeval 352 Caplen uint32 353 Datalen uint32 354 Hdrlen uint16 355 Pad_cgo_0 [2]byte 356 } 357 358 type Termios struct { 359 Iflag uint32 360 Oflag uint32 361 Cflag uint32 362 Lflag uint32 363 Cc [19]uint8 364 Pad_cgo_0 [1]byte 365 }