github.com/dolotech/hongbao@v0.0.0-20191130105438-fd59d7a5dda5/src/golang.org/x/sys/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 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 Linger struct { 202 Onoff int32 203 Linger int32 204 } 205 206 type Iovec struct { 207 Base *byte 208 Len uint32 209 } 210 211 type IPMreq struct { 212 Multiaddr [4]byte /* in_addr */ 213 Interface [4]byte /* in_addr */ 214 } 215 216 type IPMreqn struct { 217 Multiaddr [4]byte /* in_addr */ 218 Address [4]byte /* in_addr */ 219 Ifindex int32 220 } 221 222 type IPv6Mreq struct { 223 Multiaddr [16]byte /* in6_addr */ 224 Interface uint32 225 } 226 227 type Msghdr struct { 228 Name *byte 229 Namelen uint32 230 Iov *Iovec 231 Iovlen int32 232 Control *byte 233 Controllen uint32 234 Flags int32 235 } 236 237 type Cmsghdr struct { 238 Len uint32 239 Level int32 240 Type int32 241 } 242 243 type Inet6Pktinfo struct { 244 Addr [16]byte /* in6_addr */ 245 Ifindex uint32 246 } 247 248 type IPv6MTUInfo struct { 249 Addr RawSockaddrInet6 250 Mtu uint32 251 } 252 253 type ICMPv6Filter struct { 254 Filt [8]uint32 255 } 256 257 const ( 258 SizeofSockaddrInet4 = 0x10 259 SizeofSockaddrInet6 = 0x1c 260 SizeofSockaddrAny = 0x6c 261 SizeofSockaddrUnix = 0x6a 262 SizeofSockaddrDatalink = 0x36 263 SizeofLinger = 0x8 264 SizeofIPMreq = 0x8 265 SizeofIPMreqn = 0xc 266 SizeofIPv6Mreq = 0x14 267 SizeofMsghdr = 0x1c 268 SizeofCmsghdr = 0xc 269 SizeofInet6Pktinfo = 0x14 270 SizeofIPv6MTUInfo = 0x20 271 SizeofICMPv6Filter = 0x20 272 ) 273 274 const ( 275 PTRACE_TRACEME = 0x0 276 PTRACE_CONT = 0x7 277 PTRACE_KILL = 0x8 278 ) 279 280 type Kevent_t struct { 281 Ident uint32 282 Filter int16 283 Flags uint16 284 Fflags uint32 285 Data int32 286 Udata *byte 287 } 288 289 type FdSet struct { 290 X__fds_bits [32]uint32 291 } 292 293 const ( 294 sizeofIfMsghdr = 0xa8 295 SizeofIfMsghdr = 0x70 296 sizeofIfData = 0x98 297 SizeofIfData = 0x60 298 SizeofIfaMsghdr = 0x14 299 SizeofIfmaMsghdr = 0x10 300 SizeofIfAnnounceMsghdr = 0x18 301 SizeofRtMsghdr = 0x5c 302 SizeofRtMetrics = 0x38 303 ) 304 305 type ifMsghdr struct { 306 Msglen uint16 307 Version uint8 308 Type uint8 309 Addrs int32 310 Flags int32 311 Index uint16 312 Pad_cgo_0 [2]byte 313 Data ifData 314 } 315 316 type IfMsghdr struct { 317 Msglen uint16 318 Version uint8 319 Type uint8 320 Addrs int32 321 Flags int32 322 Index uint16 323 Pad_cgo_0 [2]byte 324 Data IfData 325 } 326 327 type ifData struct { 328 Type uint8 329 Physical uint8 330 Addrlen uint8 331 Hdrlen uint8 332 Link_state uint8 333 Vhid uint8 334 Datalen uint16 335 Mtu uint32 336 Metric uint32 337 Baudrate uint64 338 Ipackets uint64 339 Ierrors uint64 340 Opackets uint64 341 Oerrors uint64 342 Collisions uint64 343 Ibytes uint64 344 Obytes uint64 345 Imcasts uint64 346 Omcasts uint64 347 Iqdrops uint64 348 Oqdrops uint64 349 Noproto uint64 350 Hwassist uint64 351 X__ifi_epoch [8]byte 352 X__ifi_lastchange [16]byte 353 } 354 355 type IfData struct { 356 Type uint8 357 Physical uint8 358 Addrlen uint8 359 Hdrlen uint8 360 Link_state uint8 361 Spare_char1 uint8 362 Spare_char2 uint8 363 Datalen uint8 364 Mtu uint32 365 Metric uint32 366 Baudrate uint32 367 Ipackets uint32 368 Ierrors uint32 369 Opackets uint32 370 Oerrors uint32 371 Collisions uint32 372 Ibytes uint32 373 Obytes uint32 374 Imcasts uint32 375 Omcasts uint32 376 Iqdrops uint32 377 Noproto uint32 378 Hwassist uint32 379 Pad_cgo_0 [4]byte 380 Epoch int64 381 Lastchange Timeval 382 } 383 384 type IfaMsghdr struct { 385 Msglen uint16 386 Version uint8 387 Type uint8 388 Addrs int32 389 Flags int32 390 Index uint16 391 Pad_cgo_0 [2]byte 392 Metric int32 393 } 394 395 type IfmaMsghdr struct { 396 Msglen uint16 397 Version uint8 398 Type uint8 399 Addrs int32 400 Flags int32 401 Index uint16 402 Pad_cgo_0 [2]byte 403 } 404 405 type IfAnnounceMsghdr struct { 406 Msglen uint16 407 Version uint8 408 Type uint8 409 Index uint16 410 Name [16]int8 411 What uint16 412 } 413 414 type RtMsghdr struct { 415 Msglen uint16 416 Version uint8 417 Type uint8 418 Index uint16 419 Pad_cgo_0 [2]byte 420 Flags int32 421 Addrs int32 422 Pid int32 423 Seq int32 424 Errno int32 425 Fmask int32 426 Inits uint32 427 Rmx RtMetrics 428 } 429 430 type RtMetrics struct { 431 Locks uint32 432 Mtu uint32 433 Hopcount uint32 434 Expire uint32 435 Recvpipe uint32 436 Sendpipe uint32 437 Ssthresh uint32 438 Rtt uint32 439 Rttvar uint32 440 Pksent uint32 441 Weight uint32 442 Filler [3]uint32 443 } 444 445 const ( 446 SizeofBpfVersion = 0x4 447 SizeofBpfStat = 0x8 448 SizeofBpfZbuf = 0xc 449 SizeofBpfProgram = 0x8 450 SizeofBpfInsn = 0x8 451 SizeofBpfHdr = 0x20 452 SizeofBpfZbufHeader = 0x20 453 ) 454 455 type BpfVersion struct { 456 Major uint16 457 Minor uint16 458 } 459 460 type BpfStat struct { 461 Recv uint32 462 Drop uint32 463 } 464 465 type BpfZbuf struct { 466 Bufa *byte 467 Bufb *byte 468 Buflen uint32 469 } 470 471 type BpfProgram struct { 472 Len uint32 473 Insns *BpfInsn 474 } 475 476 type BpfInsn struct { 477 Code uint16 478 Jt uint8 479 Jf uint8 480 K uint32 481 } 482 483 type BpfHdr struct { 484 Tstamp Timeval 485 Caplen uint32 486 Datalen uint32 487 Hdrlen uint16 488 Pad_cgo_0 [6]byte 489 } 490 491 type BpfZbufHeader struct { 492 Kernel_gen uint32 493 Kernel_len uint32 494 User_gen uint32 495 X_bzh_pad [5]uint32 496 } 497 498 type Termios struct { 499 Iflag uint32 500 Oflag uint32 501 Cflag uint32 502 Lflag uint32 503 Cc [20]uint8 504 Ispeed uint32 505 Ospeed uint32 506 } 507 508 type Winsize struct { 509 Row uint16 510 Col uint16 511 Xpixel uint16 512 Ypixel uint16 513 } 514 515 const ( 516 AT_FDCWD = -0x64 517 AT_REMOVEDIR = 0x800 518 AT_SYMLINK_FOLLOW = 0x400 519 AT_SYMLINK_NOFOLLOW = 0x200 520 ) 521 522 type CapRights struct { 523 Rights [2]uint64 524 }