William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 1 | // cgo -godefs types_solaris.go | go run mkpost.go |
| 2 | // Code generated by the command above; see README.md. DO NOT EDIT. |
| 3 | |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame] | 4 | //go:build amd64 && solaris |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 5 | // +build amd64,solaris |
| 6 | |
| 7 | package unix |
| 8 | |
| 9 | const ( |
| 10 | SizeofPtr = 0x8 |
| 11 | SizeofShort = 0x2 |
| 12 | SizeofInt = 0x4 |
| 13 | SizeofLong = 0x8 |
| 14 | SizeofLongLong = 0x8 |
| 15 | PathMax = 0x400 |
| 16 | MaxHostNameLen = 0x100 |
| 17 | ) |
| 18 | |
| 19 | type ( |
| 20 | _C_short int16 |
| 21 | _C_int int32 |
| 22 | _C_long int64 |
| 23 | _C_long_long int64 |
| 24 | ) |
| 25 | |
| 26 | type Timespec struct { |
| 27 | Sec int64 |
| 28 | Nsec int64 |
| 29 | } |
| 30 | |
| 31 | type Timeval struct { |
| 32 | Sec int64 |
| 33 | Usec int64 |
| 34 | } |
| 35 | |
| 36 | type Timeval32 struct { |
| 37 | Sec int32 |
| 38 | Usec int32 |
| 39 | } |
| 40 | |
| 41 | type Tms struct { |
| 42 | Utime int64 |
| 43 | Stime int64 |
| 44 | Cutime int64 |
| 45 | Cstime int64 |
| 46 | } |
| 47 | |
| 48 | type Utimbuf struct { |
| 49 | Actime int64 |
| 50 | Modtime int64 |
| 51 | } |
| 52 | |
| 53 | type Rusage struct { |
| 54 | Utime Timeval |
| 55 | Stime Timeval |
| 56 | Maxrss int64 |
| 57 | Ixrss int64 |
| 58 | Idrss int64 |
| 59 | Isrss int64 |
| 60 | Minflt int64 |
| 61 | Majflt int64 |
| 62 | Nswap int64 |
| 63 | Inblock int64 |
| 64 | Oublock int64 |
| 65 | Msgsnd int64 |
| 66 | Msgrcv int64 |
| 67 | Nsignals int64 |
| 68 | Nvcsw int64 |
| 69 | Nivcsw int64 |
| 70 | } |
| 71 | |
| 72 | type Rlimit struct { |
| 73 | Cur uint64 |
| 74 | Max uint64 |
| 75 | } |
| 76 | |
| 77 | type _Gid_t uint32 |
| 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 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 92 | Blocks int64 |
| 93 | Fstype [16]int8 |
| 94 | } |
| 95 | |
| 96 | type Flock_t struct { |
| 97 | Type int16 |
| 98 | Whence int16 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 99 | Start int64 |
| 100 | Len int64 |
| 101 | Sysid int32 |
| 102 | Pid int32 |
| 103 | Pad [4]int64 |
| 104 | } |
| 105 | |
| 106 | type Dirent struct { |
| 107 | Ino uint64 |
| 108 | Off int64 |
| 109 | Reclen uint16 |
| 110 | Name [1]int8 |
| 111 | _ [5]byte |
| 112 | } |
| 113 | |
| 114 | type _Fsblkcnt_t uint64 |
| 115 | |
| 116 | type Statvfs_t struct { |
| 117 | Bsize uint64 |
| 118 | Frsize uint64 |
| 119 | Blocks uint64 |
| 120 | Bfree uint64 |
| 121 | Bavail uint64 |
| 122 | Files uint64 |
| 123 | Ffree uint64 |
| 124 | Favail uint64 |
| 125 | Fsid uint64 |
| 126 | Basetype [16]int8 |
| 127 | Flag uint64 |
| 128 | Namemax uint64 |
| 129 | Fstr [32]int8 |
| 130 | } |
| 131 | |
| 132 | type RawSockaddrInet4 struct { |
| 133 | Family uint16 |
| 134 | Port uint16 |
| 135 | Addr [4]byte /* in_addr */ |
| 136 | Zero [8]int8 |
| 137 | } |
| 138 | |
| 139 | type RawSockaddrInet6 struct { |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame] | 140 | Family uint16 |
| 141 | Port uint16 |
| 142 | Flowinfo uint32 |
| 143 | Addr [16]byte /* in6_addr */ |
| 144 | Scope_id uint32 |
| 145 | _ uint32 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 146 | } |
| 147 | |
| 148 | type RawSockaddrUnix struct { |
| 149 | Family uint16 |
| 150 | Path [108]int8 |
| 151 | } |
| 152 | |
| 153 | type RawSockaddrDatalink struct { |
| 154 | Family uint16 |
| 155 | Index uint16 |
| 156 | Type uint8 |
| 157 | Nlen uint8 |
| 158 | Alen uint8 |
| 159 | Slen uint8 |
| 160 | Data [244]int8 |
| 161 | } |
| 162 | |
| 163 | type RawSockaddr struct { |
| 164 | Family uint16 |
| 165 | Data [14]int8 |
| 166 | } |
| 167 | |
| 168 | type RawSockaddrAny struct { |
| 169 | Addr RawSockaddr |
| 170 | Pad [236]int8 |
| 171 | } |
| 172 | |
| 173 | type _Socklen uint32 |
| 174 | |
| 175 | type Linger struct { |
| 176 | Onoff int32 |
| 177 | Linger int32 |
| 178 | } |
| 179 | |
| 180 | type Iovec struct { |
| 181 | Base *int8 |
| 182 | Len uint64 |
| 183 | } |
| 184 | |
| 185 | type IPMreq struct { |
| 186 | Multiaddr [4]byte /* in_addr */ |
| 187 | Interface [4]byte /* in_addr */ |
| 188 | } |
| 189 | |
| 190 | type IPv6Mreq struct { |
| 191 | Multiaddr [16]byte /* in6_addr */ |
| 192 | Interface uint32 |
| 193 | } |
| 194 | |
| 195 | type Msghdr struct { |
| 196 | Name *byte |
| 197 | Namelen uint32 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 198 | Iov *Iovec |
| 199 | Iovlen int32 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 200 | Accrights *int8 |
| 201 | Accrightslen int32 |
| 202 | _ [4]byte |
| 203 | } |
| 204 | |
| 205 | type Cmsghdr struct { |
| 206 | Len uint32 |
| 207 | Level int32 |
| 208 | Type int32 |
| 209 | } |
| 210 | |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame] | 211 | type Inet4Pktinfo struct { |
| 212 | Ifindex uint32 |
| 213 | Spec_dst [4]byte /* in_addr */ |
| 214 | Addr [4]byte /* in_addr */ |
| 215 | } |
| 216 | |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 217 | type Inet6Pktinfo struct { |
| 218 | Addr [16]byte /* in6_addr */ |
| 219 | Ifindex uint32 |
| 220 | } |
| 221 | |
| 222 | type IPv6MTUInfo struct { |
| 223 | Addr RawSockaddrInet6 |
| 224 | Mtu uint32 |
| 225 | } |
| 226 | |
| 227 | type ICMPv6Filter struct { |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame] | 228 | Filt [8]uint32 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 229 | } |
| 230 | |
| 231 | const ( |
| 232 | SizeofSockaddrInet4 = 0x10 |
| 233 | SizeofSockaddrInet6 = 0x20 |
| 234 | SizeofSockaddrAny = 0xfc |
| 235 | SizeofSockaddrUnix = 0x6e |
| 236 | SizeofSockaddrDatalink = 0xfc |
| 237 | SizeofLinger = 0x8 |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame] | 238 | SizeofIovec = 0x10 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 239 | SizeofIPMreq = 0x8 |
| 240 | SizeofIPv6Mreq = 0x14 |
| 241 | SizeofMsghdr = 0x30 |
| 242 | SizeofCmsghdr = 0xc |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame] | 243 | SizeofInet4Pktinfo = 0xc |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 244 | SizeofInet6Pktinfo = 0x14 |
| 245 | SizeofIPv6MTUInfo = 0x24 |
| 246 | SizeofICMPv6Filter = 0x20 |
| 247 | ) |
| 248 | |
| 249 | type FdSet struct { |
| 250 | Bits [1024]int64 |
| 251 | } |
| 252 | |
| 253 | type Utsname struct { |
| 254 | Sysname [257]byte |
| 255 | Nodename [257]byte |
| 256 | Release [257]byte |
| 257 | Version [257]byte |
| 258 | Machine [257]byte |
| 259 | } |
| 260 | |
| 261 | type Ustat_t struct { |
| 262 | Tfree int64 |
| 263 | Tinode uint64 |
| 264 | Fname [6]int8 |
| 265 | Fpack [6]int8 |
| 266 | _ [4]byte |
| 267 | } |
| 268 | |
| 269 | const ( |
| 270 | AT_FDCWD = 0xffd19553 |
| 271 | AT_SYMLINK_NOFOLLOW = 0x1000 |
| 272 | AT_SYMLINK_FOLLOW = 0x2000 |
| 273 | AT_REMOVEDIR = 0x1 |
| 274 | AT_EACCESS = 0x4 |
| 275 | ) |
| 276 | |
| 277 | const ( |
| 278 | SizeofIfMsghdr = 0x54 |
| 279 | SizeofIfData = 0x44 |
| 280 | SizeofIfaMsghdr = 0x14 |
| 281 | SizeofRtMsghdr = 0x4c |
| 282 | SizeofRtMetrics = 0x28 |
| 283 | ) |
| 284 | |
| 285 | type IfMsghdr struct { |
| 286 | Msglen uint16 |
| 287 | Version uint8 |
| 288 | Type uint8 |
| 289 | Addrs int32 |
| 290 | Flags int32 |
| 291 | Index uint16 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 292 | Data IfData |
| 293 | } |
| 294 | |
| 295 | type IfData struct { |
| 296 | Type uint8 |
| 297 | Addrlen uint8 |
| 298 | Hdrlen uint8 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 299 | Mtu uint32 |
| 300 | Metric uint32 |
| 301 | Baudrate uint32 |
| 302 | Ipackets uint32 |
| 303 | Ierrors uint32 |
| 304 | Opackets uint32 |
| 305 | Oerrors uint32 |
| 306 | Collisions uint32 |
| 307 | Ibytes uint32 |
| 308 | Obytes uint32 |
| 309 | Imcasts uint32 |
| 310 | Omcasts uint32 |
| 311 | Iqdrops uint32 |
| 312 | Noproto uint32 |
| 313 | Lastchange Timeval32 |
| 314 | } |
| 315 | |
| 316 | type IfaMsghdr struct { |
| 317 | Msglen uint16 |
| 318 | Version uint8 |
| 319 | Type uint8 |
| 320 | Addrs int32 |
| 321 | Flags int32 |
| 322 | Index uint16 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 323 | Metric int32 |
| 324 | } |
| 325 | |
| 326 | type RtMsghdr struct { |
| 327 | Msglen uint16 |
| 328 | Version uint8 |
| 329 | Type uint8 |
| 330 | Index uint16 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 331 | Flags int32 |
| 332 | Addrs int32 |
| 333 | Pid int32 |
| 334 | Seq int32 |
| 335 | Errno int32 |
| 336 | Use int32 |
| 337 | Inits uint32 |
| 338 | Rmx RtMetrics |
| 339 | } |
| 340 | |
| 341 | type RtMetrics struct { |
| 342 | Locks uint32 |
| 343 | Mtu uint32 |
| 344 | Hopcount uint32 |
| 345 | Expire uint32 |
| 346 | Recvpipe uint32 |
| 347 | Sendpipe uint32 |
| 348 | Ssthresh uint32 |
| 349 | Rtt uint32 |
| 350 | Rttvar uint32 |
| 351 | Pksent uint32 |
| 352 | } |
| 353 | |
| 354 | const ( |
| 355 | SizeofBpfVersion = 0x4 |
| 356 | SizeofBpfStat = 0x80 |
| 357 | SizeofBpfProgram = 0x10 |
| 358 | SizeofBpfInsn = 0x8 |
| 359 | SizeofBpfHdr = 0x14 |
| 360 | ) |
| 361 | |
| 362 | type BpfVersion struct { |
| 363 | Major uint16 |
| 364 | Minor uint16 |
| 365 | } |
| 366 | |
| 367 | type BpfStat struct { |
khenaidoo | 106c61a | 2021-08-11 18:05:46 -0400 | [diff] [blame] | 368 | Recv uint64 |
| 369 | Drop uint64 |
| 370 | Capt uint64 |
| 371 | _ [13]uint64 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 372 | } |
| 373 | |
| 374 | type BpfProgram struct { |
| 375 | Len uint32 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 376 | Insns *BpfInsn |
| 377 | } |
| 378 | |
| 379 | type BpfInsn struct { |
| 380 | Code uint16 |
| 381 | Jt uint8 |
| 382 | Jf uint8 |
| 383 | K uint32 |
| 384 | } |
| 385 | |
| 386 | type BpfTimeval struct { |
| 387 | Sec int32 |
| 388 | Usec int32 |
| 389 | } |
| 390 | |
| 391 | type BpfHdr struct { |
| 392 | Tstamp BpfTimeval |
| 393 | Caplen uint32 |
| 394 | Datalen uint32 |
| 395 | Hdrlen uint16 |
| 396 | _ [2]byte |
| 397 | } |
| 398 | |
| 399 | type Termios struct { |
| 400 | Iflag uint32 |
| 401 | Oflag uint32 |
| 402 | Cflag uint32 |
| 403 | Lflag uint32 |
| 404 | Cc [19]uint8 |
| 405 | _ [1]byte |
| 406 | } |
| 407 | |
| 408 | type Termio struct { |
| 409 | Iflag uint16 |
| 410 | Oflag uint16 |
| 411 | Cflag uint16 |
| 412 | Lflag uint16 |
| 413 | Line int8 |
| 414 | Cc [8]uint8 |
| 415 | _ [1]byte |
| 416 | } |
| 417 | |
| 418 | type Winsize struct { |
| 419 | Row uint16 |
| 420 | Col uint16 |
| 421 | Xpixel uint16 |
| 422 | Ypixel uint16 |
| 423 | } |
| 424 | |
| 425 | type PollFd struct { |
| 426 | Fd int32 |
| 427 | Events int16 |
| 428 | Revents int16 |
| 429 | } |
| 430 | |
| 431 | const ( |
| 432 | POLLERR = 0x8 |
| 433 | POLLHUP = 0x10 |
| 434 | POLLIN = 0x1 |
| 435 | POLLNVAL = 0x20 |
| 436 | POLLOUT = 0x4 |
| 437 | POLLPRI = 0x2 |
| 438 | POLLRDBAND = 0x80 |
| 439 | POLLRDNORM = 0x40 |
| 440 | POLLWRBAND = 0x100 |
| 441 | POLLWRNORM = 0x4 |
| 442 | ) |