github.com/Kalvelign/golang-windows-sys-lib@v0.0.0-20221121121202-63da651435e1/unix/ztypes_freebsd_386.go (about) 1 // cgo -godefs types_freebsd.go | go run mkpost.go 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 4 //go:build 386 && freebsd 5 // +build 386,freebsd 6 7 package unix 8 9 const ( 10 SizeofPtr = 0x4 11 SizeofShort = 0x2 12 SizeofInt = 0x4 13 SizeofLong = 0x4 14 SizeofLongLong = 0x8 15 ) 16 17 type ( 18 _C_short int16 19 _C_int int32 20 _C_long int32 21 _C_long_long int64 22 ) 23 24 type Timespec struct { 25 Sec int32 26 Nsec int32 27 } 28 29 type Timeval struct { 30 Sec int32 31 Usec int32 32 } 33 34 type Time_t int32 35 36 type Rusage struct { 37 Utime Timeval 38 Stime Timeval 39 Maxrss int32 40 Ixrss int32 41 Idrss int32 42 Isrss int32 43 Minflt int32 44 Majflt int32 45 Nswap int32 46 Inblock int32 47 Oublock int32 48 Msgsnd int32 49 Msgrcv int32 50 Nsignals int32 51 Nvcsw int32 52 Nivcsw int32 53 } 54 55 type Rlimit struct { 56 Cur int64 57 Max int64 58 } 59 60 type _Gid_t uint32 61 62 const ( 63 _statfsVersion = 0x20140518 64 _dirblksiz = 0x400 65 ) 66 67 type Stat_t struct { 68 Dev uint64 69 Ino uint64 70 Nlink uint64 71 Mode uint16 72 _0 int16 73 Uid uint32 74 Gid uint32 75 _1 int32 76 Rdev uint64 77 _ int32 78 Atim Timespec 79 _ int32 80 Mtim Timespec 81 _ int32 82 Ctim Timespec 83 _ int32 84 Btim Timespec 85 Size int64 86 Blocks int64 87 Blksize int32 88 Flags uint32 89 Gen uint64 90 Spare [10]uint64 91 } 92 93 type Statfs_t struct { 94 Version uint32 95 Type uint32 96 Flags uint64 97 Bsize uint64 98 Iosize uint64 99 Blocks uint64 100 Bfree uint64 101 Bavail int64 102 Files uint64 103 Ffree int64 104 Syncwrites uint64 105 Asyncwrites uint64 106 Syncreads uint64 107 Asyncreads uint64 108 Spare [10]uint64 109 Namemax uint32 110 Owner uint32 111 Fsid Fsid 112 Charspare [80]int8 113 Fstypename [16]byte 114 Mntfromname [1024]byte 115 Mntonname [1024]byte 116 } 117 118 type Flock_t struct { 119 Start int64 120 Len int64 121 Pid int32 122 Type int16 123 Whence int16 124 Sysid int32 125 } 126 127 type Dirent struct { 128 Fileno uint64 129 Off int64 130 Reclen uint16 131 Type uint8 132 Pad0 uint8 133 Namlen uint16 134 Pad1 uint16 135 Name [256]int8 136 } 137 138 type Fsid struct { 139 Val [2]int32 140 } 141 142 const ( 143 PathMax = 0x400 144 ) 145 146 const ( 147 FADV_NORMAL = 0x0 148 FADV_RANDOM = 0x1 149 FADV_SEQUENTIAL = 0x2 150 FADV_WILLNEED = 0x3 151 FADV_DONTNEED = 0x4 152 FADV_NOREUSE = 0x5 153 ) 154 155 type RawSockaddrInet4 struct { 156 Len uint8 157 Family uint8 158 Port uint16 159 Addr [4]byte /* in_addr */ 160 Zero [8]int8 161 } 162 163 type RawSockaddrInet6 struct { 164 Len uint8 165 Family uint8 166 Port uint16 167 Flowinfo uint32 168 Addr [16]byte /* in6_addr */ 169 Scope_id uint32 170 } 171 172 type RawSockaddrUnix struct { 173 Len uint8 174 Family uint8 175 Path [104]int8 176 } 177 178 type RawSockaddrDatalink struct { 179 Len uint8 180 Family uint8 181 Index uint16 182 Type uint8 183 Nlen uint8 184 Alen uint8 185 Slen uint8 186 Data [46]int8 187 } 188 189 type RawSockaddr struct { 190 Len uint8 191 Family uint8 192 Data [14]int8 193 } 194 195 type RawSockaddrAny struct { 196 Addr RawSockaddr 197 Pad [92]int8 198 } 199 200 type _Socklen uint32 201 202 type Xucred struct { 203 Version uint32 204 Uid uint32 205 Ngroups int16 206 Groups [16]uint32 207 _ *byte 208 } 209 210 type Linger struct { 211 Onoff int32 212 Linger int32 213 } 214 215 type Iovec struct { 216 Base *byte 217 Len uint32 218 } 219 220 type IPMreq struct { 221 Multiaddr [4]byte /* in_addr */ 222 Interface [4]byte /* in_addr */ 223 } 224 225 type IPMreqn struct { 226 Multiaddr [4]byte /* in_addr */ 227 Address [4]byte /* in_addr */ 228 Ifindex int32 229 } 230 231 type IPv6Mreq struct { 232 Multiaddr [16]byte /* in6_addr */ 233 Interface uint32 234 } 235 236 type Msghdr struct { 237 Name *byte 238 Namelen uint32 239 Iov *Iovec 240 Iovlen int32 241 Control *byte 242 Controllen uint32 243 Flags int32 244 } 245 246 type Cmsghdr struct { 247 Len uint32 248 Level int32 249 Type int32 250 } 251 252 type Inet6Pktinfo struct { 253 Addr [16]byte /* in6_addr */ 254 Ifindex uint32 255 } 256 257 type IPv6MTUInfo struct { 258 Addr RawSockaddrInet6 259 Mtu uint32 260 } 261 262 type ICMPv6Filter struct { 263 Filt [8]uint32 264 } 265 266 const ( 267 SizeofSockaddrInet4 = 0x10 268 SizeofSockaddrInet6 = 0x1c 269 SizeofSockaddrAny = 0x6c 270 SizeofSockaddrUnix = 0x6a 271 SizeofSockaddrDatalink = 0x36 272 SizeofXucred = 0x50 273 SizeofLinger = 0x8 274 SizeofIovec = 0x8 275 SizeofIPMreq = 0x8 276 SizeofIPMreqn = 0xc 277 SizeofIPv6Mreq = 0x14 278 SizeofMsghdr = 0x1c 279 SizeofCmsghdr = 0xc 280 SizeofInet6Pktinfo = 0x14 281 SizeofIPv6MTUInfo = 0x20 282 SizeofICMPv6Filter = 0x20 283 ) 284 285 const ( 286 PTRACE_TRACEME = 0x0 287 PTRACE_CONT = 0x7 288 PTRACE_KILL = 0x8 289 ) 290 291 type PtraceLwpInfoStruct struct { 292 Lwpid int32 293 Event int32 294 Flags int32 295 Sigmask Sigset_t 296 Siglist Sigset_t 297 Siginfo __PtraceSiginfo 298 Tdname [20]int8 299 Child_pid int32 300 Syscall_code uint32 301 Syscall_narg uint32 302 } 303 304 type __Siginfo struct { 305 Signo int32 306 Errno int32 307 Code int32 308 Pid int32 309 Uid uint32 310 Status int32 311 Addr *byte 312 Value [4]byte 313 _ [32]byte 314 } 315 type __PtraceSiginfo struct { 316 Signo int32 317 Errno int32 318 Code int32 319 Pid int32 320 Uid uint32 321 Status int32 322 Addr uintptr 323 Value [4]byte 324 _ [32]byte 325 } 326 327 type Sigset_t struct { 328 Val [4]uint32 329 } 330 331 type Reg struct { 332 Fs uint32 333 Es uint32 334 Ds uint32 335 Edi uint32 336 Esi uint32 337 Ebp uint32 338 Isp uint32 339 Ebx uint32 340 Edx uint32 341 Ecx uint32 342 Eax uint32 343 Trapno uint32 344 Err uint32 345 Eip uint32 346 Cs uint32 347 Eflags uint32 348 Esp uint32 349 Ss uint32 350 Gs uint32 351 } 352 353 type FpReg struct { 354 Env [7]uint32 355 Acc [8][10]uint8 356 Ex_sw uint32 357 Pad [64]uint8 358 } 359 360 type FpExtendedPrecision struct{} 361 362 type PtraceIoDesc struct { 363 Op int32 364 Offs uintptr 365 Addr uintptr 366 Len uint32 367 } 368 369 type Kevent_t struct { 370 Ident uint32 371 Filter int16 372 Flags uint16 373 Fflags uint32 374 Data int64 375 Udata *byte 376 Ext [4]uint64 377 } 378 379 type FdSet struct { 380 Bits [32]uint32 381 } 382 383 const ( 384 sizeofIfMsghdr = 0xa8 385 SizeofIfMsghdr = 0x60 386 sizeofIfData = 0x98 387 SizeofIfData = 0x50 388 SizeofIfaMsghdr = 0x14 389 SizeofIfmaMsghdr = 0x10 390 SizeofIfAnnounceMsghdr = 0x18 391 SizeofRtMsghdr = 0x5c 392 SizeofRtMetrics = 0x38 393 ) 394 395 type ifMsghdr struct { 396 Msglen uint16 397 Version uint8 398 Type uint8 399 Addrs int32 400 Flags int32 401 Index uint16 402 _ uint16 403 Data ifData 404 } 405 406 type IfMsghdr struct { 407 Msglen uint16 408 Version uint8 409 Type uint8 410 Addrs int32 411 Flags int32 412 Index uint16 413 Data IfData 414 } 415 416 type ifData struct { 417 Type uint8 418 Physical uint8 419 Addrlen uint8 420 Hdrlen uint8 421 Link_state uint8 422 Vhid uint8 423 Datalen uint16 424 Mtu uint32 425 Metric uint32 426 Baudrate uint64 427 Ipackets uint64 428 Ierrors uint64 429 Opackets uint64 430 Oerrors uint64 431 Collisions uint64 432 Ibytes uint64 433 Obytes uint64 434 Imcasts uint64 435 Omcasts uint64 436 Iqdrops uint64 437 Oqdrops uint64 438 Noproto uint64 439 Hwassist uint64 440 _ [8]byte 441 _ [16]byte 442 } 443 444 type IfData struct { 445 Type uint8 446 Physical uint8 447 Addrlen uint8 448 Hdrlen uint8 449 Link_state uint8 450 Spare_char1 uint8 451 Spare_char2 uint8 452 Datalen uint8 453 Mtu uint32 454 Metric uint32 455 Baudrate uint32 456 Ipackets uint32 457 Ierrors uint32 458 Opackets uint32 459 Oerrors uint32 460 Collisions uint32 461 Ibytes uint32 462 Obytes uint32 463 Imcasts uint32 464 Omcasts uint32 465 Iqdrops uint32 466 Noproto uint32 467 Hwassist uint32 468 Epoch int32 469 Lastchange Timeval 470 } 471 472 type IfaMsghdr struct { 473 Msglen uint16 474 Version uint8 475 Type uint8 476 Addrs int32 477 Flags int32 478 Index uint16 479 _ uint16 480 Metric int32 481 } 482 483 type IfmaMsghdr struct { 484 Msglen uint16 485 Version uint8 486 Type uint8 487 Addrs int32 488 Flags int32 489 Index uint16 490 _ uint16 491 } 492 493 type IfAnnounceMsghdr struct { 494 Msglen uint16 495 Version uint8 496 Type uint8 497 Index uint16 498 Name [16]int8 499 What uint16 500 } 501 502 type RtMsghdr struct { 503 Msglen uint16 504 Version uint8 505 Type uint8 506 Index uint16 507 _ uint16 508 Flags int32 509 Addrs int32 510 Pid int32 511 Seq int32 512 Errno int32 513 Fmask int32 514 Inits uint32 515 Rmx RtMetrics 516 } 517 518 type RtMetrics struct { 519 Locks uint32 520 Mtu uint32 521 Hopcount uint32 522 Expire uint32 523 Recvpipe uint32 524 Sendpipe uint32 525 Ssthresh uint32 526 Rtt uint32 527 Rttvar uint32 528 Pksent uint32 529 Weight uint32 530 Filler [3]uint32 531 } 532 533 const ( 534 SizeofBpfVersion = 0x4 535 SizeofBpfStat = 0x8 536 SizeofBpfZbuf = 0xc 537 SizeofBpfProgram = 0x8 538 SizeofBpfInsn = 0x8 539 SizeofBpfHdr = 0x14 540 SizeofBpfZbufHeader = 0x20 541 ) 542 543 type BpfVersion struct { 544 Major uint16 545 Minor uint16 546 } 547 548 type BpfStat struct { 549 Recv uint32 550 Drop uint32 551 } 552 553 type BpfZbuf struct { 554 Bufa *byte 555 Bufb *byte 556 Buflen uint32 557 } 558 559 type BpfProgram struct { 560 Len uint32 561 Insns *BpfInsn 562 } 563 564 type BpfInsn struct { 565 Code uint16 566 Jt uint8 567 Jf uint8 568 K uint32 569 } 570 571 type BpfHdr struct { 572 Tstamp Timeval 573 Caplen uint32 574 Datalen uint32 575 Hdrlen uint16 576 _ [2]byte 577 } 578 579 type BpfZbufHeader struct { 580 Kernel_gen uint32 581 Kernel_len uint32 582 User_gen uint32 583 _ [5]uint32 584 } 585 586 type Termios struct { 587 Iflag uint32 588 Oflag uint32 589 Cflag uint32 590 Lflag uint32 591 Cc [20]uint8 592 Ispeed uint32 593 Ospeed uint32 594 } 595 596 type Winsize struct { 597 Row uint16 598 Col uint16 599 Xpixel uint16 600 Ypixel uint16 601 } 602 603 const ( 604 AT_FDCWD = -0x64 605 AT_EACCESS = 0x100 606 AT_SYMLINK_NOFOLLOW = 0x200 607 AT_SYMLINK_FOLLOW = 0x400 608 AT_REMOVEDIR = 0x800 609 ) 610 611 type PollFd struct { 612 Fd int32 613 Events int16 614 Revents int16 615 } 616 617 const ( 618 POLLERR = 0x8 619 POLLHUP = 0x10 620 POLLIN = 0x1 621 POLLINIGNEOF = 0x2000 622 POLLNVAL = 0x20 623 POLLOUT = 0x4 624 POLLPRI = 0x2 625 POLLRDBAND = 0x80 626 POLLRDNORM = 0x40 627 POLLWRBAND = 0x100 628 POLLWRNORM = 0x4 629 ) 630 631 type CapRights struct { 632 Rights [2]uint64 633 } 634 635 type Utsname struct { 636 Sysname [256]byte 637 Nodename [256]byte 638 Release [256]byte 639 Version [256]byte 640 Machine [256]byte 641 } 642 643 const SizeofClockinfo = 0x14 644 645 type Clockinfo struct { 646 Hz int32 647 Tick int32 648 Spare int32 649 Stathz int32 650 Profhz int32 651 }