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