github.com/aayushi-bansal/sys@v0.0.0-20180118120756-90d962a959d8/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 // +build arm,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 int64 25 Nsec int32 26 Pad_cgo_0 [4]byte 27 } 28 29 type Timeval struct { 30 Sec int64 31 Usec int32 32 Pad_cgo_0 [4]byte 33 } 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 S_IFMT = 0xf000 63 S_IFIFO = 0x1000 64 S_IFCHR = 0x2000 65 S_IFDIR = 0x4000 66 S_IFBLK = 0x6000 67 S_IFREG = 0x8000 68 S_IFLNK = 0xa000 69 S_IFSOCK = 0xc000 70 S_ISUID = 0x800 71 S_ISGID = 0x400 72 S_ISVTX = 0x200 73 S_IRUSR = 0x100 74 S_IWUSR = 0x80 75 S_IXUSR = 0x40 76 ) 77 78 type Stat_t struct { 79 Dev uint32 80 Ino uint32 81 Mode uint16 82 Nlink uint16 83 Uid uint32 84 Gid uint32 85 Rdev uint32 86 Atimespec Timespec 87 Mtimespec Timespec 88 Ctimespec Timespec 89 Size int64 90 Blocks int64 91 Blksize int32 92 Flags uint32 93 Gen uint32 94 Lspare int32 95 Birthtimespec Timespec 96 } 97 98 type Statfs_t struct { 99 Version uint32 100 Type uint32 101 Flags uint64 102 Bsize uint64 103 Iosize uint64 104 Blocks uint64 105 Bfree uint64 106 Bavail int64 107 Files uint64 108 Ffree int64 109 Syncwrites uint64 110 Asyncwrites uint64 111 Syncreads uint64 112 Asyncreads uint64 113 Spare [10]uint64 114 Namemax uint32 115 Owner uint32 116 Fsid Fsid 117 Charspare [80]int8 118 Fstypename [16]int8 119 Mntfromname [88]int8 120 Mntonname [88]int8 121 } 122 123 type Flock_t struct { 124 Start int64 125 Len int64 126 Pid int32 127 Type int16 128 Whence int16 129 Sysid int32 130 Pad_cgo_0 [4]byte 131 } 132 133 type Dirent struct { 134 Fileno uint32 135 Reclen uint16 136 Type uint8 137 Namlen uint8 138 Name [256]int8 139 } 140 141 type Fsid struct { 142 Val [2]int32 143 } 144 145 const ( 146 PathMax = 0x400 147 ) 148 149 const ( 150 FADV_NORMAL = 0x0 151 FADV_RANDOM = 0x1 152 FADV_SEQUENTIAL = 0x2 153 FADV_WILLNEED = 0x3 154 FADV_DONTNEED = 0x4 155 FADV_NOREUSE = 0x5 156 ) 157 158 type RawSockaddrInet4 struct { 159 Len uint8 160 Family uint8 161 Port uint16 162 Addr [4]byte /* in_addr */ 163 Zero [8]int8 164 } 165 166 type RawSockaddrInet6 struct { 167 Len uint8 168 Family uint8 169 Port uint16 170 Flowinfo uint32 171 Addr [16]byte /* in6_addr */ 172 Scope_id uint32 173 } 174 175 type RawSockaddrUnix struct { 176 Len uint8 177 Family uint8 178 Path [104]int8 179 } 180 181 type RawSockaddrDatalink struct { 182 Len uint8 183 Family uint8 184 Index uint16 185 Type uint8 186 Nlen uint8 187 Alen uint8 188 Slen uint8 189 Data [46]int8 190 } 191 192 type RawSockaddr struct { 193 Len uint8 194 Family uint8 195 Data [14]int8 196 } 197 198 type RawSockaddrAny struct { 199 Addr RawSockaddr 200 Pad [92]int8 201 } 202 203 type _Socklen uint32 204 205 type Linger struct { 206 Onoff int32 207 Linger int32 208 } 209 210 type Iovec struct { 211 Base *byte 212 Len uint32 213 } 214 215 type IPMreq struct { 216 Multiaddr [4]byte /* in_addr */ 217 Interface [4]byte /* in_addr */ 218 } 219 220 type IPMreqn struct { 221 Multiaddr [4]byte /* in_addr */ 222 Address [4]byte /* in_addr */ 223 Ifindex int32 224 } 225 226 type IPv6Mreq struct { 227 Multiaddr [16]byte /* in6_addr */ 228 Interface uint32 229 } 230 231 type Msghdr struct { 232 Name *byte 233 Namelen uint32 234 Iov *Iovec 235 Iovlen int32 236 Control *byte 237 Controllen uint32 238 Flags int32 239 } 240 241 type Cmsghdr struct { 242 Len uint32 243 Level int32 244 Type int32 245 } 246 247 type Inet6Pktinfo struct { 248 Addr [16]byte /* in6_addr */ 249 Ifindex uint32 250 } 251 252 type IPv6MTUInfo struct { 253 Addr RawSockaddrInet6 254 Mtu uint32 255 } 256 257 type ICMPv6Filter struct { 258 Filt [8]uint32 259 } 260 261 const ( 262 SizeofSockaddrInet4 = 0x10 263 SizeofSockaddrInet6 = 0x1c 264 SizeofSockaddrAny = 0x6c 265 SizeofSockaddrUnix = 0x6a 266 SizeofSockaddrDatalink = 0x36 267 SizeofLinger = 0x8 268 SizeofIPMreq = 0x8 269 SizeofIPMreqn = 0xc 270 SizeofIPv6Mreq = 0x14 271 SizeofMsghdr = 0x1c 272 SizeofCmsghdr = 0xc 273 SizeofInet6Pktinfo = 0x14 274 SizeofIPv6MTUInfo = 0x20 275 SizeofICMPv6Filter = 0x20 276 ) 277 278 const ( 279 PTRACE_TRACEME = 0x0 280 PTRACE_CONT = 0x7 281 PTRACE_KILL = 0x8 282 ) 283 284 type Kevent_t struct { 285 Ident uint32 286 Filter int16 287 Flags uint16 288 Fflags uint32 289 Data int32 290 Udata *byte 291 } 292 293 type FdSet struct { 294 X__fds_bits [32]uint32 295 } 296 297 const ( 298 sizeofIfMsghdr = 0xa8 299 SizeofIfMsghdr = 0x70 300 sizeofIfData = 0x98 301 SizeofIfData = 0x60 302 SizeofIfaMsghdr = 0x14 303 SizeofIfmaMsghdr = 0x10 304 SizeofIfAnnounceMsghdr = 0x18 305 SizeofRtMsghdr = 0x5c 306 SizeofRtMetrics = 0x38 307 ) 308 309 type ifMsghdr struct { 310 Msglen uint16 311 Version uint8 312 Type uint8 313 Addrs int32 314 Flags int32 315 Index uint16 316 Pad_cgo_0 [2]byte 317 Data ifData 318 } 319 320 type IfMsghdr struct { 321 Msglen uint16 322 Version uint8 323 Type uint8 324 Addrs int32 325 Flags int32 326 Index uint16 327 Pad_cgo_0 [2]byte 328 Data IfData 329 } 330 331 type ifData struct { 332 Type uint8 333 Physical uint8 334 Addrlen uint8 335 Hdrlen uint8 336 Link_state uint8 337 Vhid uint8 338 Datalen uint16 339 Mtu uint32 340 Metric uint32 341 Baudrate uint64 342 Ipackets uint64 343 Ierrors uint64 344 Opackets uint64 345 Oerrors uint64 346 Collisions uint64 347 Ibytes uint64 348 Obytes uint64 349 Imcasts uint64 350 Omcasts uint64 351 Iqdrops uint64 352 Oqdrops uint64 353 Noproto uint64 354 Hwassist uint64 355 X__ifi_epoch [8]byte 356 X__ifi_lastchange [16]byte 357 } 358 359 type IfData struct { 360 Type uint8 361 Physical uint8 362 Addrlen uint8 363 Hdrlen uint8 364 Link_state uint8 365 Spare_char1 uint8 366 Spare_char2 uint8 367 Datalen uint8 368 Mtu uint32 369 Metric uint32 370 Baudrate uint32 371 Ipackets uint32 372 Ierrors uint32 373 Opackets uint32 374 Oerrors uint32 375 Collisions uint32 376 Ibytes uint32 377 Obytes uint32 378 Imcasts uint32 379 Omcasts uint32 380 Iqdrops uint32 381 Noproto uint32 382 Hwassist uint32 383 Pad_cgo_0 [4]byte 384 Epoch int64 385 Lastchange Timeval 386 } 387 388 type IfaMsghdr struct { 389 Msglen uint16 390 Version uint8 391 Type uint8 392 Addrs int32 393 Flags int32 394 Index uint16 395 Pad_cgo_0 [2]byte 396 Metric int32 397 } 398 399 type IfmaMsghdr struct { 400 Msglen uint16 401 Version uint8 402 Type uint8 403 Addrs int32 404 Flags int32 405 Index uint16 406 Pad_cgo_0 [2]byte 407 } 408 409 type IfAnnounceMsghdr struct { 410 Msglen uint16 411 Version uint8 412 Type uint8 413 Index uint16 414 Name [16]int8 415 What uint16 416 } 417 418 type RtMsghdr struct { 419 Msglen uint16 420 Version uint8 421 Type uint8 422 Index uint16 423 Pad_cgo_0 [2]byte 424 Flags int32 425 Addrs int32 426 Pid int32 427 Seq int32 428 Errno int32 429 Fmask int32 430 Inits uint32 431 Rmx RtMetrics 432 } 433 434 type RtMetrics struct { 435 Locks uint32 436 Mtu uint32 437 Hopcount uint32 438 Expire uint32 439 Recvpipe uint32 440 Sendpipe uint32 441 Ssthresh uint32 442 Rtt uint32 443 Rttvar uint32 444 Pksent uint32 445 Weight uint32 446 Filler [3]uint32 447 } 448 449 const ( 450 SizeofBpfVersion = 0x4 451 SizeofBpfStat = 0x8 452 SizeofBpfZbuf = 0xc 453 SizeofBpfProgram = 0x8 454 SizeofBpfInsn = 0x8 455 SizeofBpfHdr = 0x20 456 SizeofBpfZbufHeader = 0x20 457 ) 458 459 type BpfVersion struct { 460 Major uint16 461 Minor uint16 462 } 463 464 type BpfStat struct { 465 Recv uint32 466 Drop uint32 467 } 468 469 type BpfZbuf struct { 470 Bufa *byte 471 Bufb *byte 472 Buflen uint32 473 } 474 475 type BpfProgram struct { 476 Len uint32 477 Insns *BpfInsn 478 } 479 480 type BpfInsn struct { 481 Code uint16 482 Jt uint8 483 Jf uint8 484 K uint32 485 } 486 487 type BpfHdr struct { 488 Tstamp Timeval 489 Caplen uint32 490 Datalen uint32 491 Hdrlen uint16 492 Pad_cgo_0 [6]byte 493 } 494 495 type BpfZbufHeader struct { 496 Kernel_gen uint32 497 Kernel_len uint32 498 User_gen uint32 499 X_bzh_pad [5]uint32 500 } 501 502 type Termios struct { 503 Iflag uint32 504 Oflag uint32 505 Cflag uint32 506 Lflag uint32 507 Cc [20]uint8 508 Ispeed uint32 509 Ospeed uint32 510 } 511 512 type Winsize struct { 513 Row uint16 514 Col uint16 515 Xpixel uint16 516 Ypixel uint16 517 } 518 519 const ( 520 AT_FDCWD = -0x64 521 AT_REMOVEDIR = 0x800 522 AT_SYMLINK_FOLLOW = 0x400 523 AT_SYMLINK_NOFOLLOW = 0x200 524 ) 525 526 type PollFd struct { 527 Fd int32 528 Events int16 529 Revents int16 530 } 531 532 const ( 533 POLLERR = 0x8 534 POLLHUP = 0x10 535 POLLIN = 0x1 536 POLLINIGNEOF = 0x2000 537 POLLNVAL = 0x20 538 POLLOUT = 0x4 539 POLLPRI = 0x2 540 POLLRDBAND = 0x80 541 POLLRDNORM = 0x40 542 POLLWRBAND = 0x100 543 POLLWRNORM = 0x4 544 ) 545 546 type CapRights struct { 547 Rights [2]uint64 548 } 549 550 type Utsname struct { 551 Sysname [256]byte 552 Nodename [256]byte 553 Release [256]byte 554 Version [256]byte 555 Machine [256]byte 556 }