| 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 |
//go: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 |
_ [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 |
SizeofIovec = 0x10 |
| 259 |
SizeofIPMreq = 0x8 |
| 260 |
SizeofIPv6Mreq = 0x14 |
| 261 |
SizeofMsghdr = 0x30 |
| 262 |
SizeofCmsghdr = 0xc |
| 263 |
SizeofInet6Pktinfo = 0x14 |
| 264 |
SizeofIPv6MTUInfo = 0x20 |
| 265 |
SizeofICMPv6Filter = 0x20 |
| 266 |
) |
| 267 |
|
| 268 |
const ( |
| 269 |
PTRACE_TRACEME = 0x0 |
| 270 |
PTRACE_CONT = 0x7 |
| 271 |
PTRACE_KILL = 0x8 |
| 272 |
) |
| 273 |
|
| 274 |
type Kevent_t struct { |
| 275 |
Ident uint64 |
| 276 |
Filter uint32 |
| 277 |
Flags uint32 |
| 278 |
Fflags uint32 |
| 279 |
Pad_cgo_0 [4]byte |
| 280 |
Data int64 |
| 281 |
Udata int64 |
| 282 |
} |
| 283 |
|
| 284 |
type FdSet struct { |
| 285 |
Bits [8]uint32 |
| 286 |
} |
| 287 |
|
| 288 |
const ( |
| 289 |
SizeofIfMsghdr = 0x98 |
| 290 |
SizeofIfData = 0x88 |
| 291 |
SizeofIfaMsghdr = 0x18 |
| 292 |
SizeofIfAnnounceMsghdr = 0x18 |
| 293 |
SizeofRtMsghdr = 0x78 |
| 294 |
SizeofRtMetrics = 0x50 |
| 295 |
) |
| 296 |
|
| 297 |
type IfMsghdr struct { |
| 298 |
Msglen uint16 |
| 299 |
Version uint8 |
| 300 |
Type uint8 |
| 301 |
Addrs int32 |
| 302 |
Flags int32 |
| 303 |
Index uint16 |
| 304 |
Pad_cgo_0 [2]byte |
| 305 |
Data IfData |
| 306 |
} |
| 307 |
|
| 308 |
type IfData struct { |
| 309 |
Type uint8 |
| 310 |
Addrlen uint8 |
| 311 |
Hdrlen uint8 |
| 312 |
Pad_cgo_0 [1]byte |
| 313 |
Link_state int32 |
| 314 |
Mtu uint64 |
| 315 |
Metric uint64 |
| 316 |
Baudrate uint64 |
| 317 |
Ipackets uint64 |
| 318 |
Ierrors uint64 |
| 319 |
Opackets uint64 |
| 320 |
Oerrors uint64 |
| 321 |
Collisions uint64 |
| 322 |
Ibytes uint64 |
| 323 |
Obytes uint64 |
| 324 |
Imcasts uint64 |
| 325 |
Omcasts uint64 |
| 326 |
Iqdrops uint64 |
| 327 |
Noproto uint64 |
| 328 |
Lastchange Timespec |
| 329 |
} |
| 330 |
|
| 331 |
type IfaMsghdr struct { |
| 332 |
Msglen uint16 |
| 333 |
Version uint8 |
| 334 |
Type uint8 |
| 335 |
Addrs int32 |
| 336 |
Flags int32 |
| 337 |
Metric int32 |
| 338 |
Index uint16 |
| 339 |
Pad_cgo_0 [6]byte |
| 340 |
} |
| 341 |
|
| 342 |
type IfAnnounceMsghdr struct { |
| 343 |
Msglen uint16 |
| 344 |
Version uint8 |
| 345 |
Type uint8 |
| 346 |
Index uint16 |
| 347 |
Name [16]int8 |
| 348 |
What uint16 |
| 349 |
} |
| 350 |
|
| 351 |
type RtMsghdr struct { |
| 352 |
Msglen uint16 |
| 353 |
Version uint8 |
| 354 |
Type uint8 |
| 355 |
Index uint16 |
| 356 |
Pad_cgo_0 [2]byte |
| 357 |
Flags int32 |
| 358 |
Addrs int32 |
| 359 |
Pid int32 |
| 360 |
Seq int32 |
| 361 |
Errno int32 |
| 362 |
Use int32 |
| 363 |
Inits int32 |
| 364 |
Pad_cgo_1 [4]byte |
| 365 |
Rmx RtMetrics |
| 366 |
} |
| 367 |
|
| 368 |
type RtMetrics struct { |
| 369 |
Locks uint64 |
| 370 |
Mtu uint64 |
| 371 |
Hopcount uint64 |
| 372 |
Recvpipe uint64 |
| 373 |
Sendpipe uint64 |
| 374 |
Ssthresh uint64 |
| 375 |
Rtt uint64 |
| 376 |
Rttvar uint64 |
| 377 |
Expire int64 |
| 378 |
Pksent int64 |
| 379 |
} |
| 380 |
|
| 381 |
type Mclpool [0]byte |
| 382 |
|
| 383 |
const ( |
| 384 |
SizeofBpfVersion = 0x4 |
| 385 |
SizeofBpfStat = 0x80 |
| 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 uint64 |
| 398 |
Drop uint64 |
| 399 |
Capt uint64 |
| 400 |
Padding [13]uint64 |
| 401 |
} |
| 402 |
|
| 403 |
type BpfProgram struct { |
| 404 |
Len uint32 |
| 405 |
Pad_cgo_0 [4]byte |
| 406 |
Insns *BpfInsn |
| 407 |
} |
| 408 |
|
| 409 |
type BpfInsn struct { |
| 410 |
Code uint16 |
| 411 |
Jt uint8 |
| 412 |
Jf uint8 |
| 413 |
K uint32 |
| 414 |
} |
| 415 |
|
| 416 |
type BpfHdr struct { |
| 417 |
Tstamp BpfTimeval |
| 418 |
Caplen uint32 |
| 419 |
Datalen uint32 |
| 420 |
Hdrlen uint16 |
| 421 |
Pad_cgo_0 [6]byte |
| 422 |
} |
| 423 |
|
| 424 |
type BpfTimeval struct { |
| 425 |
Sec int64 |
| 426 |
Usec int64 |
| 427 |
} |
| 428 |
|
| 429 |
type Termios struct { |
| 430 |
Iflag uint32 |
| 431 |
Oflag uint32 |
| 432 |
Cflag uint32 |
| 433 |
Lflag uint32 |
| 434 |
Cc [20]uint8 |
| 435 |
Ispeed int32 |
| 436 |
Ospeed int32 |
| 437 |
} |
| 438 |
|
| 439 |
type Winsize struct { |
| 440 |
Row uint16 |
| 441 |
Col uint16 |
| 442 |
Xpixel uint16 |
| 443 |
Ypixel uint16 |
| 444 |
} |
| 445 |
|
| 446 |
type Ptmget struct { |
| 447 |
Cfd int32 |
| 448 |
Sfd int32 |
| 449 |
Cn [1024]byte |
| 450 |
Sn [1024]byte |
| 451 |
} |
| 452 |
|
| 453 |
const ( |
| 454 |
AT_FDCWD = -0x64 |
| 455 |
AT_EACCESS = 0x100 |
| 456 |
AT_SYMLINK_NOFOLLOW = 0x200 |
| 457 |
AT_SYMLINK_FOLLOW = 0x400 |
| 458 |
AT_REMOVEDIR = 0x800 |
| 459 |
) |
| 460 |
|
| 461 |
type PollFd struct { |
| 462 |
Fd int32 |
| 463 |
Events int16 |
| 464 |
Revents int16 |
| 465 |
} |
| 466 |
|
| 467 |
const ( |
| 468 |
POLLERR = 0x8 |
| 469 |
POLLHUP = 0x10 |
| 470 |
POLLIN = 0x1 |
| 471 |
POLLNVAL = 0x20 |
| 472 |
POLLOUT = 0x4 |
| 473 |
POLLPRI = 0x2 |
| 474 |
POLLRDBAND = 0x80 |
| 475 |
POLLRDNORM = 0x40 |
| 476 |
POLLWRBAND = 0x100 |
| 477 |
POLLWRNORM = 0x4 |
| 478 |
) |
| 479 |
|
| 480 |
type Sysctlnode struct { |
| 481 |
Flags uint32 |
| 482 |
Num int32 |
| 483 |
Name [32]int8 |
| 484 |
Ver uint32 |
| 485 |
X__rsvd uint32 |
| 486 |
Un [16]byte |
| 487 |
X_sysctl_size [8]byte |
| 488 |
X_sysctl_func [8]byte |
| 489 |
X_sysctl_parent [8]byte |
| 490 |
X_sysctl_desc [8]byte |
| 491 |
} |
| 492 |
|
| 493 |
type Utsname struct { |
| 494 |
Sysname [256]byte |
| 495 |
Nodename [256]byte |
| 496 |
Release [256]byte |
| 497 |
Version [256]byte |
| 498 |
Machine [256]byte |
| 499 |
} |
| 500 |
|
| 501 |
const SizeofUvmexp = 0x278 |
| 502 |
|
| 503 |
type Uvmexp struct { |
| 504 |
Pagesize int64 |
| 505 |
Pagemask int64 |
| 506 |
Pageshift int64 |
| 507 |
Npages int64 |
| 508 |
Free int64 |
| 509 |
Active int64 |
| 510 |
Inactive int64 |
| 511 |
Paging int64 |
| 512 |
Wired int64 |
| 513 |
Zeropages int64 |
| 514 |
Reserve_pagedaemon int64 |
| 515 |
Reserve_kernel int64 |
| 516 |
Freemin int64 |
| 517 |
Freetarg int64 |
| 518 |
Inactarg int64 |
| 519 |
Wiredmax int64 |
| 520 |
Nswapdev int64 |
| 521 |
Swpages int64 |
| 522 |
Swpginuse int64 |
| 523 |
Swpgonly int64 |
| 524 |
Nswget int64 |
| 525 |
Unused1 int64 |
| 526 |
Cpuhit int64 |
| 527 |
Cpumiss int64 |
| 528 |
Faults int64 |
| 529 |
Traps int64 |
| 530 |
Intrs int64 |
| 531 |
Swtch int64 |
| 532 |
Softs int64 |
| 533 |
Syscalls int64 |
| 534 |
Pageins int64 |
| 535 |
Swapins int64 |
| 536 |
Swapouts int64 |
| 537 |
Pgswapin int64 |
| 538 |
Pgswapout int64 |
| 539 |
Forks int64 |
| 540 |
Forks_ppwait int64 |
| 541 |
Forks_sharevm int64 |
| 542 |
Pga_zerohit int64 |
| 543 |
Pga_zeromiss int64 |
| 544 |
Zeroaborts int64 |
| 545 |
Fltnoram int64 |
| 546 |
Fltnoanon int64 |
| 547 |
Fltpgwait int64 |
| 548 |
Fltpgrele int64 |
| 549 |
Fltrelck int64 |
| 550 |
Fltrelckok int64 |
| 551 |
Fltanget int64 |
| 552 |
Fltanretry int64 |
| 553 |
Fltamcopy int64 |
| 554 |
Fltnamap int64 |
| 555 |
Fltnomap int64 |
| 556 |
Fltlget int64 |
| 557 |
Fltget int64 |
| 558 |
Flt_anon int64 |
| 559 |
Flt_acow int64 |
| 560 |
Flt_obj int64 |
| 561 |
Flt_prcopy int64 |
| 562 |
Flt_przero int64 |
| 563 |
Pdwoke int64 |
| 564 |
Pdrevs int64 |
| 565 |
Unused4 int64 |
| 566 |
Pdfreed int64 |
| 567 |
Pdscans int64 |
| 568 |
Pdanscan int64 |
| 569 |
Pdobscan int64 |
| 570 |
Pdreact int64 |
| 571 |
Pdbusy int64 |
| 572 |
Pdpageouts int64 |
| 573 |
Pdpending int64 |
| 574 |
Pddeact int64 |
| 575 |
Anonpages int64 |
| 576 |
Filepages int64 |
| 577 |
Execpages int64 |
| 578 |
Colorhit int64 |
| 579 |
Colormiss int64 |
| 580 |
Ncolors int64 |
| 581 |
Bootpages int64 |
| 582 |
Poolpages int64 |
| 583 |
} |
| 584 |
|
| 585 |
const SizeofClockinfo = 0x14 |
| 586 |
|
| 587 |
type Clockinfo struct { |
| 588 |
Hz int32 |
| 589 |
Tick int32 |
| 590 |
Tickadj int32 |
| 591 |
Stathz int32 |
| 592 |
Profhz int32 |
| 593 |
} |