David K. Bainbridge | 215e024 | 2017-09-05 23:18:24 -0700 | [diff] [blame] | 1 | // Created by cgo -godefs - DO NOT EDIT |
| 2 | // cgo -godefs types_netbsd.go |
| 3 | |
| 4 | // +build amd64,netbsd |
| 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 int32 |
| 31 | Pad_cgo_0 [4]byte |
| 32 | } |
| 33 | |
| 34 | type Rusage struct { |
| 35 | Utime Timeval |
| 36 | Stime Timeval |
| 37 | Maxrss int64 |
| 38 | Ixrss int64 |
| 39 | Idrss int64 |
| 40 | Isrss int64 |
| 41 | Minflt int64 |
| 42 | Majflt int64 |
| 43 | Nswap int64 |
| 44 | Inblock int64 |
| 45 | Oublock int64 |
| 46 | Msgsnd int64 |
| 47 | Msgrcv int64 |
| 48 | Nsignals int64 |
| 49 | Nvcsw int64 |
| 50 | Nivcsw int64 |
| 51 | } |
| 52 | |
| 53 | type Rlimit struct { |
| 54 | Cur uint64 |
| 55 | Max uint64 |
| 56 | } |
| 57 | |
| 58 | type _Gid_t uint32 |
| 59 | |
| 60 | type Stat_t struct { |
| 61 | Dev uint64 |
| 62 | Mode uint32 |
| 63 | Pad_cgo_0 [4]byte |
| 64 | Ino uint64 |
| 65 | Nlink uint32 |
| 66 | Uid uint32 |
| 67 | Gid uint32 |
| 68 | Pad_cgo_1 [4]byte |
| 69 | Rdev uint64 |
| 70 | Atimespec Timespec |
| 71 | Mtimespec Timespec |
| 72 | Ctimespec Timespec |
| 73 | Birthtimespec Timespec |
| 74 | Size int64 |
| 75 | Blocks int64 |
| 76 | Blksize uint32 |
| 77 | Flags uint32 |
| 78 | Gen uint32 |
| 79 | Spare [2]uint32 |
| 80 | Pad_cgo_2 [4]byte |
| 81 | } |
| 82 | |
| 83 | type Statfs_t [0]byte |
| 84 | |
| 85 | type Flock_t struct { |
| 86 | Start int64 |
| 87 | Len int64 |
| 88 | Pid int32 |
| 89 | Type int16 |
| 90 | Whence int16 |
| 91 | } |
| 92 | |
| 93 | type Dirent struct { |
| 94 | Fileno uint64 |
| 95 | Reclen uint16 |
| 96 | Namlen uint16 |
| 97 | Type uint8 |
| 98 | Name [512]int8 |
| 99 | Pad_cgo_0 [3]byte |
| 100 | } |
| 101 | |
| 102 | type Fsid struct { |
| 103 | X__fsid_val [2]int32 |
| 104 | } |
| 105 | |
| 106 | type RawSockaddrInet4 struct { |
| 107 | Len uint8 |
| 108 | Family uint8 |
| 109 | Port uint16 |
| 110 | Addr [4]byte /* in_addr */ |
| 111 | Zero [8]int8 |
| 112 | } |
| 113 | |
| 114 | type RawSockaddrInet6 struct { |
| 115 | Len uint8 |
| 116 | Family uint8 |
| 117 | Port uint16 |
| 118 | Flowinfo uint32 |
| 119 | Addr [16]byte /* in6_addr */ |
| 120 | Scope_id uint32 |
| 121 | } |
| 122 | |
| 123 | type RawSockaddrUnix struct { |
| 124 | Len uint8 |
| 125 | Family uint8 |
| 126 | Path [104]int8 |
| 127 | } |
| 128 | |
| 129 | type RawSockaddrDatalink struct { |
| 130 | Len uint8 |
| 131 | Family uint8 |
| 132 | Index uint16 |
| 133 | Type uint8 |
| 134 | Nlen uint8 |
| 135 | Alen uint8 |
| 136 | Slen uint8 |
| 137 | Data [12]int8 |
| 138 | } |
| 139 | |
| 140 | type RawSockaddr struct { |
| 141 | Len uint8 |
| 142 | Family uint8 |
| 143 | Data [14]int8 |
| 144 | } |
| 145 | |
| 146 | type RawSockaddrAny struct { |
| 147 | Addr RawSockaddr |
| 148 | Pad [92]int8 |
| 149 | } |
| 150 | |
| 151 | type _Socklen uint32 |
| 152 | |
| 153 | type Linger struct { |
| 154 | Onoff int32 |
| 155 | Linger int32 |
| 156 | } |
| 157 | |
| 158 | type Iovec struct { |
| 159 | Base *byte |
| 160 | Len uint64 |
| 161 | } |
| 162 | |
| 163 | type IPMreq struct { |
| 164 | Multiaddr [4]byte /* in_addr */ |
| 165 | Interface [4]byte /* in_addr */ |
| 166 | } |
| 167 | |
| 168 | type IPv6Mreq struct { |
| 169 | Multiaddr [16]byte /* in6_addr */ |
| 170 | Interface uint32 |
| 171 | } |
| 172 | |
| 173 | type Msghdr struct { |
| 174 | Name *byte |
| 175 | Namelen uint32 |
| 176 | Pad_cgo_0 [4]byte |
| 177 | Iov *Iovec |
| 178 | Iovlen int32 |
| 179 | Pad_cgo_1 [4]byte |
| 180 | Control *byte |
| 181 | Controllen uint32 |
| 182 | Flags int32 |
| 183 | } |
| 184 | |
| 185 | type Cmsghdr struct { |
| 186 | Len uint32 |
| 187 | Level int32 |
| 188 | Type int32 |
| 189 | } |
| 190 | |
| 191 | type Inet6Pktinfo struct { |
| 192 | Addr [16]byte /* in6_addr */ |
| 193 | Ifindex uint32 |
| 194 | } |
| 195 | |
| 196 | type IPv6MTUInfo struct { |
| 197 | Addr RawSockaddrInet6 |
| 198 | Mtu uint32 |
| 199 | } |
| 200 | |
| 201 | type ICMPv6Filter struct { |
| 202 | Filt [8]uint32 |
| 203 | } |
| 204 | |
| 205 | const ( |
| 206 | SizeofSockaddrInet4 = 0x10 |
| 207 | SizeofSockaddrInet6 = 0x1c |
| 208 | SizeofSockaddrAny = 0x6c |
| 209 | SizeofSockaddrUnix = 0x6a |
| 210 | SizeofSockaddrDatalink = 0x14 |
| 211 | SizeofLinger = 0x8 |
| 212 | SizeofIPMreq = 0x8 |
| 213 | SizeofIPv6Mreq = 0x14 |
| 214 | SizeofMsghdr = 0x30 |
| 215 | SizeofCmsghdr = 0xc |
| 216 | SizeofInet6Pktinfo = 0x14 |
| 217 | SizeofIPv6MTUInfo = 0x20 |
| 218 | SizeofICMPv6Filter = 0x20 |
| 219 | ) |
| 220 | |
| 221 | const ( |
| 222 | PTRACE_TRACEME = 0x0 |
| 223 | PTRACE_CONT = 0x7 |
| 224 | PTRACE_KILL = 0x8 |
| 225 | ) |
| 226 | |
| 227 | type Kevent_t struct { |
| 228 | Ident uint64 |
| 229 | Filter uint32 |
| 230 | Flags uint32 |
| 231 | Fflags uint32 |
| 232 | Pad_cgo_0 [4]byte |
| 233 | Data int64 |
| 234 | Udata int64 |
| 235 | } |
| 236 | |
| 237 | type FdSet struct { |
| 238 | Bits [8]uint32 |
| 239 | } |
| 240 | |
| 241 | const ( |
| 242 | SizeofIfMsghdr = 0x98 |
| 243 | SizeofIfData = 0x88 |
| 244 | SizeofIfaMsghdr = 0x18 |
| 245 | SizeofIfAnnounceMsghdr = 0x18 |
| 246 | SizeofRtMsghdr = 0x78 |
| 247 | SizeofRtMetrics = 0x50 |
| 248 | ) |
| 249 | |
| 250 | type IfMsghdr struct { |
| 251 | Msglen uint16 |
| 252 | Version uint8 |
| 253 | Type uint8 |
| 254 | Addrs int32 |
| 255 | Flags int32 |
| 256 | Index uint16 |
| 257 | Pad_cgo_0 [2]byte |
| 258 | Data IfData |
| 259 | } |
| 260 | |
| 261 | type IfData struct { |
| 262 | Type uint8 |
| 263 | Addrlen uint8 |
| 264 | Hdrlen uint8 |
| 265 | Pad_cgo_0 [1]byte |
| 266 | Link_state int32 |
| 267 | Mtu uint64 |
| 268 | Metric uint64 |
| 269 | Baudrate uint64 |
| 270 | Ipackets uint64 |
| 271 | Ierrors uint64 |
| 272 | Opackets uint64 |
| 273 | Oerrors uint64 |
| 274 | Collisions uint64 |
| 275 | Ibytes uint64 |
| 276 | Obytes uint64 |
| 277 | Imcasts uint64 |
| 278 | Omcasts uint64 |
| 279 | Iqdrops uint64 |
| 280 | Noproto uint64 |
| 281 | Lastchange Timespec |
| 282 | } |
| 283 | |
| 284 | type IfaMsghdr struct { |
| 285 | Msglen uint16 |
| 286 | Version uint8 |
| 287 | Type uint8 |
| 288 | Addrs int32 |
| 289 | Flags int32 |
| 290 | Metric int32 |
| 291 | Index uint16 |
| 292 | Pad_cgo_0 [6]byte |
| 293 | } |
| 294 | |
| 295 | type IfAnnounceMsghdr struct { |
| 296 | Msglen uint16 |
| 297 | Version uint8 |
| 298 | Type uint8 |
| 299 | Index uint16 |
| 300 | Name [16]int8 |
| 301 | What uint16 |
| 302 | } |
| 303 | |
| 304 | type RtMsghdr struct { |
| 305 | Msglen uint16 |
| 306 | Version uint8 |
| 307 | Type uint8 |
| 308 | Index uint16 |
| 309 | Pad_cgo_0 [2]byte |
| 310 | Flags int32 |
| 311 | Addrs int32 |
| 312 | Pid int32 |
| 313 | Seq int32 |
| 314 | Errno int32 |
| 315 | Use int32 |
| 316 | Inits int32 |
| 317 | Pad_cgo_1 [4]byte |
| 318 | Rmx RtMetrics |
| 319 | } |
| 320 | |
| 321 | type RtMetrics struct { |
| 322 | Locks uint64 |
| 323 | Mtu uint64 |
| 324 | Hopcount uint64 |
| 325 | Recvpipe uint64 |
| 326 | Sendpipe uint64 |
| 327 | Ssthresh uint64 |
| 328 | Rtt uint64 |
| 329 | Rttvar uint64 |
| 330 | Expire int64 |
| 331 | Pksent int64 |
| 332 | } |
| 333 | |
| 334 | type Mclpool [0]byte |
| 335 | |
| 336 | const ( |
| 337 | SizeofBpfVersion = 0x4 |
| 338 | SizeofBpfStat = 0x80 |
| 339 | SizeofBpfProgram = 0x10 |
| 340 | SizeofBpfInsn = 0x8 |
| 341 | SizeofBpfHdr = 0x20 |
| 342 | ) |
| 343 | |
| 344 | type BpfVersion struct { |
| 345 | Major uint16 |
| 346 | Minor uint16 |
| 347 | } |
| 348 | |
| 349 | type BpfStat struct { |
| 350 | Recv uint64 |
| 351 | Drop uint64 |
| 352 | Capt uint64 |
| 353 | Padding [13]uint64 |
| 354 | } |
| 355 | |
| 356 | type BpfProgram struct { |
| 357 | Len uint32 |
| 358 | Pad_cgo_0 [4]byte |
| 359 | Insns *BpfInsn |
| 360 | } |
| 361 | |
| 362 | type BpfInsn struct { |
| 363 | Code uint16 |
| 364 | Jt uint8 |
| 365 | Jf uint8 |
| 366 | K uint32 |
| 367 | } |
| 368 | |
| 369 | type BpfHdr struct { |
| 370 | Tstamp BpfTimeval |
| 371 | Caplen uint32 |
| 372 | Datalen uint32 |
| 373 | Hdrlen uint16 |
| 374 | Pad_cgo_0 [6]byte |
| 375 | } |
| 376 | |
| 377 | type BpfTimeval struct { |
| 378 | Sec int64 |
| 379 | Usec int64 |
| 380 | } |
| 381 | |
| 382 | type Termios struct { |
| 383 | Iflag uint32 |
| 384 | Oflag uint32 |
| 385 | Cflag uint32 |
| 386 | Lflag uint32 |
| 387 | Cc [20]uint8 |
| 388 | Ispeed int32 |
| 389 | Ospeed int32 |
| 390 | } |
| 391 | |
| 392 | const ( |
| 393 | AT_FDCWD = -0x64 |
| 394 | AT_SYMLINK_NOFOLLOW = 0x200 |
| 395 | ) |
| 396 | |
| 397 | type Sysctlnode struct { |
| 398 | Flags uint32 |
| 399 | Num int32 |
| 400 | Name [32]int8 |
| 401 | Ver uint32 |
| 402 | X__rsvd uint32 |
| 403 | Un [16]byte |
| 404 | X_sysctl_size [8]byte |
| 405 | X_sysctl_func [8]byte |
| 406 | X_sysctl_parent [8]byte |
| 407 | X_sysctl_desc [8]byte |
| 408 | } |