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