1// cgo -godefs types_openbsd.go | go run mkpost.go 2// Code generated by the command above; see README.md. DO NOT EDIT. 3 4// +build amd64,openbsd 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 uint64 54 Max uint64 55} 56 57type _Gid_t uint32 58 59type Stat_t struct { 60 Mode uint32 61 Dev int32 62 Ino uint64 63 Nlink uint32 64 Uid uint32 65 Gid uint32 66 Rdev int32 67 Atim Timespec 68 Mtim Timespec 69 Ctim Timespec 70 Size int64 71 Blocks int64 72 Blksize int32 73 Flags uint32 74 Gen uint32 75 _ [4]byte 76 _ Timespec 77} 78 79type Statfs_t struct { 80 F_flags uint32 81 F_bsize uint32 82 F_iosize uint32 83 _ [4]byte 84 F_blocks uint64 85 F_bfree uint64 86 F_bavail int64 87 F_files uint64 88 F_ffree uint64 89 F_favail int64 90 F_syncwrites uint64 91 F_syncreads uint64 92 F_asyncwrites uint64 93 F_asyncreads uint64 94 F_fsid Fsid 95 F_namemax uint32 96 F_owner uint32 97 F_ctime uint64 98 F_fstypename [16]int8 99 F_mntonname [90]int8 100 F_mntfromname [90]int8 101 F_mntfromspec [90]int8 102 _ [2]byte 103 Mount_info [160]byte 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 Off int64 117 Reclen uint16 118 Type uint8 119 Namlen uint8 120 _ [4]uint8 121 Name [256]int8 122} 123 124type Fsid struct { 125 Val [2]int32 126} 127 128const ( 129 PathMax = 0x400 130) 131 132type RawSockaddrInet4 struct { 133 Len uint8 134 Family uint8 135 Port uint16 136 Addr [4]byte /* in_addr */ 137 Zero [8]int8 138} 139 140type RawSockaddrInet6 struct { 141 Len uint8 142 Family uint8 143 Port uint16 144 Flowinfo uint32 145 Addr [16]byte /* in6_addr */ 146 Scope_id uint32 147} 148 149type RawSockaddrUnix struct { 150 Len uint8 151 Family uint8 152 Path [104]int8 153} 154 155type RawSockaddrDatalink struct { 156 Len uint8 157 Family uint8 158 Index uint16 159 Type uint8 160 Nlen uint8 161 Alen uint8 162 Slen uint8 163 Data [24]int8 164} 165 166type RawSockaddr struct { 167 Len uint8 168 Family uint8 169 Data [14]int8 170} 171 172type RawSockaddrAny struct { 173 Addr RawSockaddr 174 Pad [92]int8 175} 176 177type _Socklen uint32 178 179type Linger struct { 180 Onoff int32 181 Linger int32 182} 183 184type Iovec struct { 185 Base *byte 186 Len uint64 187} 188 189type IPMreq struct { 190 Multiaddr [4]byte /* in_addr */ 191 Interface [4]byte /* in_addr */ 192} 193 194type IPv6Mreq struct { 195 Multiaddr [16]byte /* in6_addr */ 196 Interface uint32 197} 198 199type Msghdr struct { 200 Name *byte 201 Namelen uint32 202 _ [4]byte 203 Iov *Iovec 204 Iovlen uint32 205 _ [4]byte 206 Control *byte 207 Controllen uint32 208 Flags int32 209} 210 211type Cmsghdr struct { 212 Len uint32 213 Level int32 214 Type int32 215} 216 217type Inet6Pktinfo struct { 218 Addr [16]byte /* in6_addr */ 219 Ifindex uint32 220} 221 222type IPv6MTUInfo struct { 223 Addr RawSockaddrInet6 224 Mtu uint32 225} 226 227type ICMPv6Filter struct { 228 Filt [8]uint32 229} 230 231const ( 232 SizeofSockaddrInet4 = 0x10 233 SizeofSockaddrInet6 = 0x1c 234 SizeofSockaddrAny = 0x6c 235 SizeofSockaddrUnix = 0x6a 236 SizeofSockaddrDatalink = 0x20 237 SizeofLinger = 0x8 238 SizeofIovec = 0x10 239 SizeofIPMreq = 0x8 240 SizeofIPv6Mreq = 0x14 241 SizeofMsghdr = 0x30 242 SizeofCmsghdr = 0xc 243 SizeofInet6Pktinfo = 0x14 244 SizeofIPv6MTUInfo = 0x20 245 SizeofICMPv6Filter = 0x20 246) 247 248const ( 249 PTRACE_TRACEME = 0x0 250 PTRACE_CONT = 0x7 251 PTRACE_KILL = 0x8 252) 253 254type Kevent_t struct { 255 Ident uint64 256 Filter int16 257 Flags uint16 258 Fflags uint32 259 Data int64 260 Udata *byte 261} 262 263type FdSet struct { 264 Bits [32]uint32 265} 266 267const ( 268 SizeofIfMsghdr = 0xa8 269 SizeofIfData = 0x90 270 SizeofIfaMsghdr = 0x18 271 SizeofIfAnnounceMsghdr = 0x1a 272 SizeofRtMsghdr = 0x60 273 SizeofRtMetrics = 0x38 274) 275 276type IfMsghdr struct { 277 Msglen uint16 278 Version uint8 279 Type uint8 280 Hdrlen uint16 281 Index uint16 282 Tableid uint16 283 Pad1 uint8 284 Pad2 uint8 285 Addrs int32 286 Flags int32 287 Xflags int32 288 Data IfData 289} 290 291type IfData struct { 292 Type uint8 293 Addrlen uint8 294 Hdrlen uint8 295 Link_state uint8 296 Mtu uint32 297 Metric uint32 298 Rdomain uint32 299 Baudrate uint64 300 Ipackets uint64 301 Ierrors uint64 302 Opackets uint64 303 Oerrors uint64 304 Collisions uint64 305 Ibytes uint64 306 Obytes uint64 307 Imcasts uint64 308 Omcasts uint64 309 Iqdrops uint64 310 Oqdrops uint64 311 Noproto uint64 312 Capabilities uint32 313 _ [4]byte 314 Lastchange Timeval 315} 316 317type IfaMsghdr struct { 318 Msglen uint16 319 Version uint8 320 Type uint8 321 Hdrlen uint16 322 Index uint16 323 Tableid uint16 324 Pad1 uint8 325 Pad2 uint8 326 Addrs int32 327 Flags int32 328 Metric int32 329} 330 331type IfAnnounceMsghdr struct { 332 Msglen uint16 333 Version uint8 334 Type uint8 335 Hdrlen uint16 336 Index uint16 337 What uint16 338 Name [16]int8 339} 340 341type RtMsghdr struct { 342 Msglen uint16 343 Version uint8 344 Type uint8 345 Hdrlen uint16 346 Index uint16 347 Tableid uint16 348 Priority uint8 349 Mpls uint8 350 Addrs int32 351 Flags int32 352 Fmask int32 353 Pid int32 354 Seq int32 355 Errno int32 356 Inits uint32 357 Rmx RtMetrics 358} 359 360type RtMetrics struct { 361 Pksent uint64 362 Expire int64 363 Locks uint32 364 Mtu uint32 365 Refcnt uint32 366 Hopcount uint32 367 Recvpipe uint32 368 Sendpipe uint32 369 Ssthresh uint32 370 Rtt uint32 371 Rttvar uint32 372 Pad uint32 373} 374 375type Mclpool struct{} 376 377const ( 378 SizeofBpfVersion = 0x4 379 SizeofBpfStat = 0x8 380 SizeofBpfProgram = 0x10 381 SizeofBpfInsn = 0x8 382 SizeofBpfHdr = 0x14 383) 384 385type BpfVersion struct { 386 Major uint16 387 Minor uint16 388} 389 390type BpfStat struct { 391 Recv uint32 392 Drop uint32 393} 394 395type BpfProgram struct { 396 Len uint32 397 _ [4]byte 398 Insns *BpfInsn 399} 400 401type BpfInsn struct { 402 Code uint16 403 Jt uint8 404 Jf uint8 405 K uint32 406} 407 408type BpfHdr struct { 409 Tstamp BpfTimeval 410 Caplen uint32 411 Datalen uint32 412 Hdrlen uint16 413 _ [2]byte 414} 415 416type BpfTimeval struct { 417 Sec uint32 418 Usec uint32 419} 420 421type Termios struct { 422 Iflag uint32 423 Oflag uint32 424 Cflag uint32 425 Lflag uint32 426 Cc [20]uint8 427 Ispeed int32 428 Ospeed int32 429} 430 431type Winsize struct { 432 Row uint16 433 Col uint16 434 Xpixel uint16 435 Ypixel uint16 436} 437 438const ( 439 AT_FDCWD = -0x64 440 AT_SYMLINK_FOLLOW = 0x4 441 AT_SYMLINK_NOFOLLOW = 0x2 442) 443 444type PollFd struct { 445 Fd int32 446 Events int16 447 Revents int16 448} 449 450const ( 451 POLLERR = 0x8 452 POLLHUP = 0x10 453 POLLIN = 0x1 454 POLLNVAL = 0x20 455 POLLOUT = 0x4 456 POLLPRI = 0x2 457 POLLRDBAND = 0x80 458 POLLRDNORM = 0x40 459 POLLWRBAND = 0x100 460 POLLWRNORM = 0x4 461) 462 463type Sigset_t uint32 464 465type Utsname struct { 466 Sysname [256]byte 467 Nodename [256]byte 468 Release [256]byte 469 Version [256]byte 470 Machine [256]byte 471} 472 473const SizeofUvmexp = 0x158 474 475type Uvmexp struct { 476 Pagesize int32 477 Pagemask int32 478 Pageshift int32 479 Npages int32 480 Free int32 481 Active int32 482 Inactive int32 483 Paging int32 484 Wired int32 485 Zeropages int32 486 Reserve_pagedaemon int32 487 Reserve_kernel int32 488 Anonpages int32 489 Vnodepages int32 490 Vtextpages int32 491 Freemin int32 492 Freetarg int32 493 Inactarg int32 494 Wiredmax int32 495 Anonmin int32 496 Vtextmin int32 497 Vnodemin int32 498 Anonminpct int32 499 Vtextminpct int32 500 Vnodeminpct int32 501 Nswapdev int32 502 Swpages int32 503 Swpginuse int32 504 Swpgonly int32 505 Nswget int32 506 Nanon int32 507 Nanonneeded int32 508 Nfreeanon int32 509 Faults int32 510 Traps int32 511 Intrs int32 512 Swtch int32 513 Softs int32 514 Syscalls int32 515 Pageins int32 516 Obsolete_swapins int32 517 Obsolete_swapouts int32 518 Pgswapin int32 519 Pgswapout int32 520 Forks int32 521 Forks_ppwait int32 522 Forks_sharevm int32 523 Pga_zerohit int32 524 Pga_zeromiss int32 525 Zeroaborts int32 526 Fltnoram int32 527 Fltnoanon int32 528 Fltnoamap int32 529 Fltpgwait int32 530 Fltpgrele int32 531 Fltrelck int32 532 Fltrelckok int32 533 Fltanget int32 534 Fltanretry int32 535 Fltamcopy int32 536 Fltnamap int32 537 Fltnomap int32 538 Fltlget int32 539 Fltget int32 540 Flt_anon int32 541 Flt_acow int32 542 Flt_obj int32 543 Flt_prcopy int32 544 Flt_przero int32 545 Pdwoke int32 546 Pdrevs int32 547 Pdswout int32 548 Pdfreed int32 549 Pdscans int32 550 Pdanscan int32 551 Pdobscan int32 552 Pdreact int32 553 Pdbusy int32 554 Pdpageouts int32 555 Pdpending int32 556 Pddeact int32 557 Pdreanon int32 558 Pdrevnode int32 559 Pdrevtext int32 560 Fpswtch int32 561 Kmapent int32 562} 563 564const SizeofClockinfo = 0x14 565 566type Clockinfo struct { 567 Hz int32 568 Tick int32 569 Tickadj int32 570 Stathz int32 571 Profhz int32 572} 573