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