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