github.com/neonyo/sys@v0.0.0-20230720094341-b1ee14be3ce8/unix/ztypes_freebsd_arm.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 arm && freebsd 5 // +build arm,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 int64 26 Nsec int32 27 _ [4]byte 28 } 29 30 type Timeval struct { 31 Sec int64 32 Usec int32 33 _ [4]byte 34 } 35 36 type Time_t int64 37 38 type Rusage struct { 39 Utime Timeval 40 Stime Timeval 41 Maxrss int32 42 Ixrss int32 43 Idrss int32 44 Isrss int32 45 Minflt int32 46 Majflt int32 47 Nswap int32 48 Inblock int32 49 Oublock int32 50 Msgsnd int32 51 Msgrcv int32 52 Nsignals int32 53 Nvcsw int32 54 Nivcsw int32 55 } 56 57 type Rlimit struct { 58 Cur int64 59 Max int64 60 } 61 62 type _Gid_t uint32 63 64 const ( 65 _statfsVersion = 0x20140518 66 _dirblksiz = 0x400 67 ) 68 69 type Stat_t struct { 70 Dev uint64 71 Ino uint64 72 Nlink uint64 73 Mode uint16 74 _0 int16 75 Uid uint32 76 Gid uint32 77 _1 int32 78 Rdev uint64 79 Atim Timespec 80 Mtim Timespec 81 Ctim Timespec 82 Btim Timespec 83 Size int64 84 Blocks int64 85 Blksize int32 86 Flags uint32 87 Gen uint64 88 Spare [10]uint64 89 } 90 91 type Statfs_t struct { 92 Version uint32 93 Type uint32 94 Flags uint64 95 Bsize uint64 96 Iosize uint64 97 Blocks uint64 98 Bfree uint64 99 Bavail int64 100 Files uint64 101 Ffree int64 102 Syncwrites uint64 103 Asyncwrites uint64 104 Syncreads uint64 105 Asyncreads uint64 106 Spare [10]uint64 107 Namemax uint32 108 Owner uint32 109 Fsid Fsid 110 Charspare [80]int8 111 Fstypename [16]byte 112 Mntfromname [1024]byte 113 Mntonname [1024]byte 114 } 115 116 type Flock_t struct { 117 Start int64 118 Len int64 119 Pid int32 120 Type int16 121 Whence int16 122 Sysid int32 123 _ [4]byte 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 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 R [13]uint32 333 Sp uint32 334 Lr uint32 335 Pc uint32 336 Cpsr uint32 337 } 338 339 type FpReg struct { 340 Fpsr uint32 341 Fpr [8]FpExtendedPrecision 342 } 343 344 type FpExtendedPrecision struct { 345 Exponent uint32 346 Mantissa_hi uint32 347 Mantissa_lo uint32 348 } 349 350 type PtraceIoDesc struct { 351 Op int32 352 Offs uintptr 353 Addr *byte 354 Len uint32 355 } 356 357 type Kevent_t struct { 358 Ident uint32 359 Filter int16 360 Flags uint16 361 Fflags uint32 362 _ [4]byte 363 Data int64 364 Udata *byte 365 _ [4]byte 366 Ext [4]uint64 367 } 368 369 type FdSet struct { 370 Bits [32]uint32 371 } 372 373 const ( 374 sizeofIfMsghdr = 0xa8 375 SizeofIfMsghdr = 0x70 376 sizeofIfData = 0x98 377 SizeofIfData = 0x60 378 SizeofIfaMsghdr = 0x14 379 SizeofIfmaMsghdr = 0x10 380 SizeofIfAnnounceMsghdr = 0x18 381 SizeofRtMsghdr = 0x5c 382 SizeofRtMetrics = 0x38 383 ) 384 385 type ifMsghdr struct { 386 Msglen uint16 387 Version uint8 388 Type uint8 389 Addrs int32 390 Flags int32 391 Index uint16 392 _ uint16 393 Data ifData 394 } 395 396 type IfMsghdr struct { 397 Msglen uint16 398 Version uint8 399 Type uint8 400 Addrs int32 401 Flags int32 402 Index uint16 403 Data IfData 404 } 405 406 type ifData struct { 407 Type uint8 408 Physical uint8 409 Addrlen uint8 410 Hdrlen uint8 411 Link_state uint8 412 Vhid uint8 413 Datalen uint16 414 Mtu uint32 415 Metric uint32 416 Baudrate uint64 417 Ipackets uint64 418 Ierrors uint64 419 Opackets uint64 420 Oerrors uint64 421 Collisions uint64 422 Ibytes uint64 423 Obytes uint64 424 Imcasts uint64 425 Omcasts uint64 426 Iqdrops uint64 427 Oqdrops uint64 428 Noproto uint64 429 Hwassist uint64 430 _ [8]byte 431 _ [16]byte 432 } 433 434 type IfData struct { 435 Type uint8 436 Physical uint8 437 Addrlen uint8 438 Hdrlen uint8 439 Link_state uint8 440 Spare_char1 uint8 441 Spare_char2 uint8 442 Datalen uint8 443 Mtu uint32 444 Metric uint32 445 Baudrate uint32 446 Ipackets uint32 447 Ierrors uint32 448 Opackets uint32 449 Oerrors uint32 450 Collisions uint32 451 Ibytes uint32 452 Obytes uint32 453 Imcasts uint32 454 Omcasts uint32 455 Iqdrops uint32 456 Noproto uint32 457 Hwassist uint32 458 _ [4]byte 459 Epoch int64 460 Lastchange Timeval 461 } 462 463 type IfaMsghdr struct { 464 Msglen uint16 465 Version uint8 466 Type uint8 467 Addrs int32 468 Flags int32 469 Index uint16 470 _ uint16 471 Metric int32 472 } 473 474 type IfmaMsghdr struct { 475 Msglen uint16 476 Version uint8 477 Type uint8 478 Addrs int32 479 Flags int32 480 Index uint16 481 _ uint16 482 } 483 484 type IfAnnounceMsghdr struct { 485 Msglen uint16 486 Version uint8 487 Type uint8 488 Index uint16 489 Name [16]int8 490 What uint16 491 } 492 493 type RtMsghdr struct { 494 Msglen uint16 495 Version uint8 496 Type uint8 497 Index uint16 498 _ uint16 499 Flags int32 500 Addrs int32 501 Pid int32 502 Seq int32 503 Errno int32 504 Fmask int32 505 Inits uint32 506 Rmx RtMetrics 507 } 508 509 type RtMetrics struct { 510 Locks uint32 511 Mtu uint32 512 Hopcount uint32 513 Expire uint32 514 Recvpipe uint32 515 Sendpipe uint32 516 Ssthresh uint32 517 Rtt uint32 518 Rttvar uint32 519 Pksent uint32 520 Weight uint32 521 Filler [3]uint32 522 } 523 524 const ( 525 SizeofBpfVersion = 0x4 526 SizeofBpfStat = 0x8 527 SizeofBpfZbuf = 0xc 528 SizeofBpfProgram = 0x8 529 SizeofBpfInsn = 0x8 530 SizeofBpfHdr = 0x20 531 SizeofBpfZbufHeader = 0x20 532 ) 533 534 type BpfVersion struct { 535 Major uint16 536 Minor uint16 537 } 538 539 type BpfStat struct { 540 Recv uint32 541 Drop uint32 542 } 543 544 type BpfZbuf struct { 545 Bufa *byte 546 Bufb *byte 547 Buflen uint32 548 } 549 550 type BpfProgram struct { 551 Len uint32 552 Insns *BpfInsn 553 } 554 555 type BpfInsn struct { 556 Code uint16 557 Jt uint8 558 Jf uint8 559 K uint32 560 } 561 562 type BpfHdr struct { 563 Tstamp Timeval 564 Caplen uint32 565 Datalen uint32 566 Hdrlen uint16 567 _ [6]byte 568 } 569 570 type BpfZbufHeader struct { 571 Kernel_gen uint32 572 Kernel_len uint32 573 User_gen uint32 574 _ [5]uint32 575 } 576 577 type Termios struct { 578 Iflag uint32 579 Oflag uint32 580 Cflag uint32 581 Lflag uint32 582 Cc [20]uint8 583 Ispeed uint32 584 Ospeed uint32 585 } 586 587 type Winsize struct { 588 Row uint16 589 Col uint16 590 Xpixel uint16 591 Ypixel uint16 592 } 593 594 const ( 595 AT_FDCWD = -0x64 596 AT_EACCESS = 0x100 597 AT_SYMLINK_NOFOLLOW = 0x200 598 AT_SYMLINK_FOLLOW = 0x400 599 AT_REMOVEDIR = 0x800 600 ) 601 602 type PollFd struct { 603 Fd int32 604 Events int16 605 Revents int16 606 } 607 608 const ( 609 POLLERR = 0x8 610 POLLHUP = 0x10 611 POLLIN = 0x1 612 POLLINIGNEOF = 0x2000 613 POLLNVAL = 0x20 614 POLLOUT = 0x4 615 POLLPRI = 0x2 616 POLLRDBAND = 0x80 617 POLLRDNORM = 0x40 618 POLLWRBAND = 0x100 619 POLLWRNORM = 0x4 620 ) 621 622 type CapRights struct { 623 Rights [2]uint64 624 } 625 626 type Utsname struct { 627 Sysname [256]byte 628 Nodename [256]byte 629 Release [256]byte 630 Version [256]byte 631 Machine [256]byte 632 } 633 634 const SizeofClockinfo = 0x14 635 636 type Clockinfo struct { 637 Hz int32 638 Tick int32 639 Spare int32 640 Stathz int32 641 Profhz int32 642 }