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