github.com/ie310mu/ie310go/forks/golang.org/x/sys@v0.0.0-20190821095322-9a46783d4de5/unix/ztypes_dragonfly_amd64.go (about) 1 // cgo -godefs types_dragonfly.go | go run mkpost.go 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 4 // +build amd64,dragonfly 5 6 package unix 7 8 const ( 9 SizeofPtr = 0x8 10 SizeofShort = 0x2 11 SizeofInt = 0x4 12 SizeofLong = 0x8 13 SizeofLongLong = 0x8 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 Rusage struct { 34 Utime Timeval 35 Stime Timeval 36 Maxrss int64 37 Ixrss int64 38 Idrss int64 39 Isrss int64 40 Minflt int64 41 Majflt int64 42 Nswap int64 43 Inblock int64 44 Oublock int64 45 Msgsnd int64 46 Msgrcv int64 47 Nsignals int64 48 Nvcsw int64 49 Nivcsw int64 50 } 51 52 type Rlimit struct { 53 Cur int64 54 Max int64 55 } 56 57 type _Gid_t uint32 58 59 type Stat_t struct { 60 Ino uint64 61 Nlink uint32 62 Dev uint32 63 Mode uint16 64 _1 uint16 65 Uid uint32 66 Gid uint32 67 Rdev uint32 68 Atim Timespec 69 Mtim Timespec 70 Ctim Timespec 71 Size int64 72 Blocks int64 73 Blksize uint32 74 Flags uint32 75 Gen uint32 76 Lspare int32 77 Qspare1 int64 78 Qspare2 int64 79 } 80 81 type Statfs_t struct { 82 Spare2 int64 83 Bsize int64 84 Iosize int64 85 Blocks int64 86 Bfree int64 87 Bavail int64 88 Files int64 89 Ffree int64 90 Fsid Fsid 91 Owner uint32 92 Type int32 93 Flags int32 94 _ [4]byte 95 Syncwrites int64 96 Asyncwrites int64 97 Fstypename [16]int8 98 Mntonname [80]int8 99 Syncreads int64 100 Asyncreads int64 101 Spares1 int16 102 Mntfromname [80]int8 103 Spares2 int16 104 _ [4]byte 105 Spare [2]int64 106 } 107 108 type Flock_t struct { 109 Start int64 110 Len int64 111 Pid int32 112 Type int16 113 Whence int16 114 } 115 116 type Dirent struct { 117 Fileno uint64 118 Namlen uint16 119 Type uint8 120 Unused1 uint8 121 Unused2 uint32 122 Name [256]int8 123 } 124 125 type Fsid struct { 126 Val [2]int32 127 } 128 129 const ( 130 PathMax = 0x400 131 ) 132 133 type RawSockaddrInet4 struct { 134 Len uint8 135 Family uint8 136 Port uint16 137 Addr [4]byte /* in_addr */ 138 Zero [8]int8 139 } 140 141 type RawSockaddrInet6 struct { 142 Len uint8 143 Family uint8 144 Port uint16 145 Flowinfo uint32 146 Addr [16]byte /* in6_addr */ 147 Scope_id uint32 148 } 149 150 type RawSockaddrUnix struct { 151 Len uint8 152 Family uint8 153 Path [104]int8 154 } 155 156 type RawSockaddrDatalink struct { 157 Len uint8 158 Family uint8 159 Index uint16 160 Type uint8 161 Nlen uint8 162 Alen uint8 163 Slen uint8 164 Data [12]int8 165 Rcf uint16 166 Route [16]uint16 167 } 168 169 type RawSockaddr struct { 170 Len uint8 171 Family uint8 172 Data [14]int8 173 } 174 175 type RawSockaddrAny struct { 176 Addr RawSockaddr 177 Pad [92]int8 178 } 179 180 type _Socklen uint32 181 182 type Linger struct { 183 Onoff int32 184 Linger int32 185 } 186 187 type Iovec struct { 188 Base *byte 189 Len uint64 190 } 191 192 type IPMreq struct { 193 Multiaddr [4]byte /* in_addr */ 194 Interface [4]byte /* in_addr */ 195 } 196 197 type IPv6Mreq struct { 198 Multiaddr [16]byte /* in6_addr */ 199 Interface uint32 200 } 201 202 type Msghdr struct { 203 Name *byte 204 Namelen uint32 205 _ [4]byte 206 Iov *Iovec 207 Iovlen int32 208 _ [4]byte 209 Control *byte 210 Controllen uint32 211 Flags int32 212 } 213 214 type Cmsghdr struct { 215 Len uint32 216 Level int32 217 Type int32 218 } 219 220 type Inet6Pktinfo struct { 221 Addr [16]byte /* in6_addr */ 222 Ifindex uint32 223 } 224 225 type IPv6MTUInfo struct { 226 Addr RawSockaddrInet6 227 Mtu uint32 228 } 229 230 type ICMPv6Filter struct { 231 Filt [8]uint32 232 } 233 234 const ( 235 SizeofSockaddrInet4 = 0x10 236 SizeofSockaddrInet6 = 0x1c 237 SizeofSockaddrAny = 0x6c 238 SizeofSockaddrUnix = 0x6a 239 SizeofSockaddrDatalink = 0x36 240 SizeofLinger = 0x8 241 SizeofIPMreq = 0x8 242 SizeofIPv6Mreq = 0x14 243 SizeofMsghdr = 0x30 244 SizeofCmsghdr = 0xc 245 SizeofInet6Pktinfo = 0x14 246 SizeofIPv6MTUInfo = 0x20 247 SizeofICMPv6Filter = 0x20 248 ) 249 250 const ( 251 PTRACE_TRACEME = 0x0 252 PTRACE_CONT = 0x7 253 PTRACE_KILL = 0x8 254 ) 255 256 type Kevent_t struct { 257 Ident uint64 258 Filter int16 259 Flags uint16 260 Fflags uint32 261 Data int64 262 Udata *byte 263 } 264 265 type FdSet struct { 266 Bits [16]uint64 267 } 268 269 const ( 270 SizeofIfMsghdr = 0xb0 271 SizeofIfData = 0xa0 272 SizeofIfaMsghdr = 0x14 273 SizeofIfmaMsghdr = 0x10 274 SizeofIfAnnounceMsghdr = 0x18 275 SizeofRtMsghdr = 0x98 276 SizeofRtMetrics = 0x70 277 ) 278 279 type IfMsghdr struct { 280 Msglen uint16 281 Version uint8 282 Type uint8 283 Addrs int32 284 Flags int32 285 Index uint16 286 _ [2]byte 287 Data IfData 288 } 289 290 type IfData struct { 291 Type uint8 292 Physical uint8 293 Addrlen uint8 294 Hdrlen uint8 295 Recvquota uint8 296 Xmitquota uint8 297 _ [2]byte 298 Mtu uint64 299 Metric uint64 300 Link_state uint64 301 Baudrate uint64 302 Ipackets uint64 303 Ierrors uint64 304 Opackets uint64 305 Oerrors uint64 306 Collisions uint64 307 Ibytes uint64 308 Obytes uint64 309 Imcasts uint64 310 Omcasts uint64 311 Iqdrops uint64 312 Noproto uint64 313 Hwassist uint64 314 Oqdrops uint64 315 Lastchange Timeval 316 } 317 318 type IfaMsghdr struct { 319 Msglen uint16 320 Version uint8 321 Type uint8 322 Addrs int32 323 Flags int32 324 Index uint16 325 _ [2]byte 326 Metric int32 327 } 328 329 type IfmaMsghdr struct { 330 Msglen uint16 331 Version uint8 332 Type uint8 333 Addrs int32 334 Flags int32 335 Index uint16 336 _ [2]byte 337 } 338 339 type IfAnnounceMsghdr struct { 340 Msglen uint16 341 Version uint8 342 Type uint8 343 Index uint16 344 Name [16]int8 345 What uint16 346 } 347 348 type RtMsghdr struct { 349 Msglen uint16 350 Version uint8 351 Type uint8 352 Index uint16 353 _ [2]byte 354 Flags int32 355 Addrs int32 356 Pid int32 357 Seq int32 358 Errno int32 359 Use int32 360 Inits uint64 361 Rmx RtMetrics 362 } 363 364 type RtMetrics struct { 365 Locks uint64 366 Mtu uint64 367 Pksent uint64 368 Expire uint64 369 Sendpipe uint64 370 Ssthresh uint64 371 Rtt uint64 372 Rttvar uint64 373 Recvpipe uint64 374 Hopcount uint64 375 Mssopt uint16 376 Pad uint16 377 _ [4]byte 378 Msl uint64 379 Iwmaxsegs uint64 380 Iwcapsegs uint64 381 } 382 383 const ( 384 SizeofBpfVersion = 0x4 385 SizeofBpfStat = 0x8 386 SizeofBpfProgram = 0x10 387 SizeofBpfInsn = 0x8 388 SizeofBpfHdr = 0x20 389 ) 390 391 type BpfVersion struct { 392 Major uint16 393 Minor uint16 394 } 395 396 type BpfStat struct { 397 Recv uint32 398 Drop uint32 399 } 400 401 type BpfProgram struct { 402 Len uint32 403 _ [4]byte 404 Insns *BpfInsn 405 } 406 407 type BpfInsn struct { 408 Code uint16 409 Jt uint8 410 Jf uint8 411 K uint32 412 } 413 414 type BpfHdr struct { 415 Tstamp Timeval 416 Caplen uint32 417 Datalen uint32 418 Hdrlen uint16 419 _ [6]byte 420 } 421 422 type Termios struct { 423 Iflag uint32 424 Oflag uint32 425 Cflag uint32 426 Lflag uint32 427 Cc [20]uint8 428 Ispeed uint32 429 Ospeed uint32 430 } 431 432 type Winsize struct { 433 Row uint16 434 Col uint16 435 Xpixel uint16 436 Ypixel uint16 437 } 438 439 const ( 440 AT_FDCWD = 0xfffafdcd 441 AT_SYMLINK_NOFOLLOW = 0x1 442 ) 443 444 type PollFd struct { 445 Fd int32 446 Events int16 447 Revents int16 448 } 449 450 const ( 451 POLLERR = 0x8 452 POLLHUP = 0x10 453 POLLIN = 0x1 454 POLLNVAL = 0x20 455 POLLOUT = 0x4 456 POLLPRI = 0x2 457 POLLRDBAND = 0x80 458 POLLRDNORM = 0x40 459 POLLWRBAND = 0x100 460 POLLWRNORM = 0x4 461 ) 462 463 type Utsname struct { 464 Sysname [32]byte 465 Nodename [32]byte 466 Release [32]byte 467 Version [32]byte 468 Machine [32]byte 469 }