github.com/dolotech/hongbao@v0.0.0-20191130105438-fd59d7a5dda5/src/golang.org/x/sys/unix/ztypes_freebsd_amd64.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 // +build amd64,freebsd 5 6 package unix 7 8 const ( 9 sizeofPtr = 0x8 10 sizeofShort = 0x2 11 sizeofInt = 0x4 12 sizeofLong = 0x8 13 sizeofLongLong = 0x8 14 ) 15 16 type ( 17 _C_short int16 18 _C_int int32 19 _C_long int64 20 _C_long_long int64 21 ) 22 23 type Timespec struct { 24 Sec int64 25 Nsec int64 26 } 27 28 type Timeval struct { 29 Sec int64 30 Usec int64 31 } 32 33 type Rusage struct { 34 Utime Timeval 35 Stime Timeval 36 Maxrss int64 37 Ixrss int64 38 Idrss int64 39 Isrss int64 40 Minflt int64 41 Majflt int64 42 Nswap int64 43 Inblock int64 44 Oublock int64 45 Msgsnd int64 46 Msgrcv int64 47 Nsignals int64 48 Nvcsw int64 49 Nivcsw int64 50 } 51 52 type Rlimit struct { 53 Cur int64 54 Max int64 55 } 56 57 type _Gid_t uint32 58 59 const ( 60 S_IFMT = 0xf000 61 S_IFIFO = 0x1000 62 S_IFCHR = 0x2000 63 S_IFDIR = 0x4000 64 S_IFBLK = 0x6000 65 S_IFREG = 0x8000 66 S_IFLNK = 0xa000 67 S_IFSOCK = 0xc000 68 S_ISUID = 0x800 69 S_ISGID = 0x400 70 S_ISVTX = 0x200 71 S_IRUSR = 0x100 72 S_IWUSR = 0x80 73 S_IXUSR = 0x40 74 ) 75 76 type Stat_t struct { 77 Dev uint32 78 Ino uint32 79 Mode uint16 80 Nlink uint16 81 Uid uint32 82 Gid uint32 83 Rdev uint32 84 Atimespec Timespec 85 Mtimespec Timespec 86 Ctimespec Timespec 87 Size int64 88 Blocks int64 89 Blksize int32 90 Flags uint32 91 Gen uint32 92 Lspare int32 93 Birthtimespec Timespec 94 } 95 96 type Statfs_t struct { 97 Version uint32 98 Type uint32 99 Flags uint64 100 Bsize uint64 101 Iosize uint64 102 Blocks uint64 103 Bfree uint64 104 Bavail int64 105 Files uint64 106 Ffree int64 107 Syncwrites uint64 108 Asyncwrites uint64 109 Syncreads uint64 110 Asyncreads uint64 111 Spare [10]uint64 112 Namemax uint32 113 Owner uint32 114 Fsid Fsid 115 Charspare [80]int8 116 Fstypename [16]int8 117 Mntfromname [88]int8 118 Mntonname [88]int8 119 } 120 121 type Flock_t struct { 122 Start int64 123 Len int64 124 Pid int32 125 Type int16 126 Whence int16 127 Sysid int32 128 Pad_cgo_0 [4]byte 129 } 130 131 type Dirent struct { 132 Fileno uint32 133 Reclen uint16 134 Type uint8 135 Namlen uint8 136 Name [256]int8 137 } 138 139 type Fsid struct { 140 Val [2]int32 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 Linger struct { 200 Onoff int32 201 Linger int32 202 } 203 204 type Iovec struct { 205 Base *byte 206 Len uint64 207 } 208 209 type IPMreq struct { 210 Multiaddr [4]byte /* in_addr */ 211 Interface [4]byte /* in_addr */ 212 } 213 214 type IPMreqn struct { 215 Multiaddr [4]byte /* in_addr */ 216 Address [4]byte /* in_addr */ 217 Ifindex int32 218 } 219 220 type IPv6Mreq struct { 221 Multiaddr [16]byte /* in6_addr */ 222 Interface uint32 223 } 224 225 type Msghdr struct { 226 Name *byte 227 Namelen uint32 228 Pad_cgo_0 [4]byte 229 Iov *Iovec 230 Iovlen int32 231 Pad_cgo_1 [4]byte 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 = 0x30 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 uint64 282 Filter int16 283 Flags uint16 284 Fflags uint32 285 Data int64 286 Udata *byte 287 } 288 289 type FdSet struct { 290 X__fds_bits [16]uint64 291 } 292 293 const ( 294 sizeofIfMsghdr = 0xa8 295 SizeofIfMsghdr = 0xa8 296 sizeofIfData = 0x98 297 SizeofIfData = 0x98 298 SizeofIfaMsghdr = 0x14 299 SizeofIfmaMsghdr = 0x10 300 SizeofIfAnnounceMsghdr = 0x18 301 SizeofRtMsghdr = 0x98 302 SizeofRtMetrics = 0x70 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 uint64 365 Metric uint64 366 Baudrate uint64 367 Ipackets uint64 368 Ierrors uint64 369 Opackets uint64 370 Oerrors uint64 371 Collisions uint64 372 Ibytes uint64 373 Obytes uint64 374 Imcasts uint64 375 Omcasts uint64 376 Iqdrops uint64 377 Noproto uint64 378 Hwassist uint64 379 Epoch int64 380 Lastchange Timeval 381 } 382 383 type IfaMsghdr struct { 384 Msglen uint16 385 Version uint8 386 Type uint8 387 Addrs int32 388 Flags int32 389 Index uint16 390 Pad_cgo_0 [2]byte 391 Metric int32 392 } 393 394 type IfmaMsghdr struct { 395 Msglen uint16 396 Version uint8 397 Type uint8 398 Addrs int32 399 Flags int32 400 Index uint16 401 Pad_cgo_0 [2]byte 402 } 403 404 type IfAnnounceMsghdr struct { 405 Msglen uint16 406 Version uint8 407 Type uint8 408 Index uint16 409 Name [16]int8 410 What uint16 411 } 412 413 type RtMsghdr struct { 414 Msglen uint16 415 Version uint8 416 Type uint8 417 Index uint16 418 Pad_cgo_0 [2]byte 419 Flags int32 420 Addrs int32 421 Pid int32 422 Seq int32 423 Errno int32 424 Fmask int32 425 Inits uint64 426 Rmx RtMetrics 427 } 428 429 type RtMetrics struct { 430 Locks uint64 431 Mtu uint64 432 Hopcount uint64 433 Expire uint64 434 Recvpipe uint64 435 Sendpipe uint64 436 Ssthresh uint64 437 Rtt uint64 438 Rttvar uint64 439 Pksent uint64 440 Weight uint64 441 Filler [3]uint64 442 } 443 444 const ( 445 SizeofBpfVersion = 0x4 446 SizeofBpfStat = 0x8 447 SizeofBpfZbuf = 0x18 448 SizeofBpfProgram = 0x10 449 SizeofBpfInsn = 0x8 450 SizeofBpfHdr = 0x20 451 SizeofBpfZbufHeader = 0x20 452 ) 453 454 type BpfVersion struct { 455 Major uint16 456 Minor uint16 457 } 458 459 type BpfStat struct { 460 Recv uint32 461 Drop uint32 462 } 463 464 type BpfZbuf struct { 465 Bufa *byte 466 Bufb *byte 467 Buflen uint64 468 } 469 470 type BpfProgram struct { 471 Len uint32 472 Pad_cgo_0 [4]byte 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 }