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