github.com/ccccaoqing/test@v0.0.0-20220510085219-3985d23445c0/src/syscall/ztypes_freebsd_amd64.go (about) 1 // Created by cgo -godefs - DO NOT EDIT 2 // cgo -godefs types_freebsd.go 3 4 package syscall 5 6 const ( 7 sizeofPtr = 0x8 8 sizeofShort = 0x2 9 sizeofInt = 0x4 10 sizeofLong = 0x8 11 sizeofLongLong = 0x8 12 ) 13 14 type ( 15 _C_short int16 16 _C_int int32 17 _C_long int64 18 _C_long_long int64 19 ) 20 21 type Timespec struct { 22 Sec int64 23 Nsec int64 24 } 25 26 type Timeval struct { 27 Sec int64 28 Usec int64 29 } 30 31 type Rusage struct { 32 Utime Timeval 33 Stime Timeval 34 Maxrss int64 35 Ixrss int64 36 Idrss int64 37 Isrss int64 38 Minflt int64 39 Majflt int64 40 Nswap int64 41 Inblock int64 42 Oublock int64 43 Msgsnd int64 44 Msgrcv int64 45 Nsignals int64 46 Nvcsw int64 47 Nivcsw int64 48 } 49 50 type Rlimit struct { 51 Cur int64 52 Max int64 53 } 54 55 type _Gid_t uint32 56 57 const ( 58 S_IFMT = 0xf000 59 S_IFIFO = 0x1000 60 S_IFCHR = 0x2000 61 S_IFDIR = 0x4000 62 S_IFBLK = 0x6000 63 S_IFREG = 0x8000 64 S_IFLNK = 0xa000 65 S_IFSOCK = 0xc000 66 S_ISUID = 0x800 67 S_ISGID = 0x400 68 S_ISVTX = 0x200 69 S_IRUSR = 0x100 70 S_IWUSR = 0x80 71 S_IXUSR = 0x40 72 ) 73 74 type Stat_t struct { 75 Dev uint32 76 Ino uint32 77 Mode uint16 78 Nlink uint16 79 Uid uint32 80 Gid uint32 81 Rdev uint32 82 Atimespec Timespec 83 Mtimespec Timespec 84 Ctimespec Timespec 85 Size int64 86 Blocks int64 87 Blksize uint32 88 Flags uint32 89 Gen uint32 90 Lspare int32 91 Birthtimespec Timespec 92 } 93 94 type Statfs_t struct { 95 Version uint32 96 Type uint32 97 Flags uint64 98 Bsize uint64 99 Iosize uint64 100 Blocks uint64 101 Bfree uint64 102 Bavail int64 103 Files uint64 104 Ffree int64 105 Syncwrites uint64 106 Asyncwrites uint64 107 Syncreads uint64 108 Asyncreads uint64 109 Spare [10]uint64 110 Namemax uint32 111 Owner uint32 112 Fsid Fsid 113 Charspare [80]int8 114 Fstypename [16]int8 115 Mntfromname [88]int8 116 Mntonname [88]int8 117 } 118 119 type Flock_t struct { 120 Start int64 121 Len int64 122 Pid int32 123 Type int16 124 Whence int16 125 Sysid int32 126 Pad_cgo_0 [4]byte 127 } 128 129 type Dirent struct { 130 Fileno uint32 131 Reclen uint16 132 Type uint8 133 Namlen uint8 134 Name [256]int8 135 } 136 137 type Fsid struct { 138 Val [2]int32 139 } 140 141 type RawSockaddrInet4 struct { 142 Len uint8 143 Family uint8 144 Port uint16 145 Addr [4]byte /* in_addr */ 146 Zero [8]int8 147 } 148 149 type RawSockaddrInet6 struct { 150 Len uint8 151 Family uint8 152 Port uint16 153 Flowinfo uint32 154 Addr [16]byte /* in6_addr */ 155 Scope_id uint32 156 } 157 158 type RawSockaddrUnix struct { 159 Len uint8 160 Family uint8 161 Path [104]int8 162 } 163 164 type RawSockaddrDatalink struct { 165 Len uint8 166 Family uint8 167 Index uint16 168 Type uint8 169 Nlen uint8 170 Alen uint8 171 Slen uint8 172 Data [46]int8 173 } 174 175 type RawSockaddr struct { 176 Len uint8 177 Family uint8 178 Data [14]int8 179 } 180 181 type RawSockaddrAny struct { 182 Addr RawSockaddr 183 Pad [92]int8 184 } 185 186 type _Socklen uint32 187 188 type Linger struct { 189 Onoff int32 190 Linger int32 191 } 192 193 type Iovec struct { 194 Base *byte 195 Len uint64 196 } 197 198 type IPMreq struct { 199 Multiaddr [4]byte /* in_addr */ 200 Interface [4]byte /* in_addr */ 201 } 202 203 type IPMreqn struct { 204 Multiaddr [4]byte /* in_addr */ 205 Address [4]byte /* in_addr */ 206 Ifindex int32 207 } 208 209 type IPv6Mreq struct { 210 Multiaddr [16]byte /* in6_addr */ 211 Interface uint32 212 } 213 214 type Msghdr struct { 215 Name *byte 216 Namelen uint32 217 Pad_cgo_0 [4]byte 218 Iov *Iovec 219 Iovlen int32 220 Pad_cgo_1 [4]byte 221 Control *byte 222 Controllen uint32 223 Flags int32 224 } 225 226 type Cmsghdr struct { 227 Len uint32 228 Level int32 229 Type int32 230 } 231 232 type Inet6Pktinfo struct { 233 Addr [16]byte /* in6_addr */ 234 Ifindex uint32 235 } 236 237 type IPv6MTUInfo struct { 238 Addr RawSockaddrInet6 239 Mtu uint32 240 } 241 242 type ICMPv6Filter struct { 243 Filt [8]uint32 244 } 245 246 const ( 247 SizeofSockaddrInet4 = 0x10 248 SizeofSockaddrInet6 = 0x1c 249 SizeofSockaddrAny = 0x6c 250 SizeofSockaddrUnix = 0x6a 251 SizeofSockaddrDatalink = 0x36 252 SizeofLinger = 0x8 253 SizeofIPMreq = 0x8 254 SizeofIPMreqn = 0xc 255 SizeofIPv6Mreq = 0x14 256 SizeofMsghdr = 0x30 257 SizeofCmsghdr = 0xc 258 SizeofInet6Pktinfo = 0x14 259 SizeofIPv6MTUInfo = 0x20 260 SizeofICMPv6Filter = 0x20 261 ) 262 263 const ( 264 PTRACE_TRACEME = 0x0 265 PTRACE_CONT = 0x7 266 PTRACE_KILL = 0x8 267 ) 268 269 type Kevent_t struct { 270 Ident uint64 271 Filter int16 272 Flags uint16 273 Fflags uint32 274 Data int64 275 Udata *byte 276 } 277 278 type FdSet struct { 279 X__fds_bits [16]uint64 280 } 281 282 const ( 283 sizeofIfMsghdr = 0xa8 284 SizeofIfMsghdr = 0xa8 285 sizeofIfData = 0x98 286 SizeofIfData = 0x98 287 SizeofIfaMsghdr = 0x14 288 SizeofIfmaMsghdr = 0x10 289 SizeofIfAnnounceMsghdr = 0x18 290 SizeofRtMsghdr = 0x98 291 SizeofRtMetrics = 0x70 292 ) 293 294 type ifMsghdr struct { 295 Msglen uint16 296 Version uint8 297 Type uint8 298 Addrs int32 299 Flags int32 300 Index uint16 301 Pad_cgo_0 [2]byte 302 Data ifData 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 ifData struct { 317 Type uint8 318 Physical uint8 319 Addrlen uint8 320 Hdrlen uint8 321 Link_state uint8 322 Vhid uint8 323 Baudrate_pf uint8 324 Datalen uint8 325 Mtu uint64 326 Metric uint64 327 Baudrate uint64 328 Ipackets uint64 329 Ierrors uint64 330 Opackets uint64 331 Oerrors uint64 332 Collisions uint64 333 Ibytes uint64 334 Obytes uint64 335 Imcasts uint64 336 Omcasts uint64 337 Iqdrops uint64 338 Noproto uint64 339 Hwassist uint64 340 Epoch int64 341 Lastchange Timeval 342 } 343 344 type IfData struct { 345 Type uint8 346 Physical uint8 347 Addrlen uint8 348 Hdrlen uint8 349 Link_state uint8 350 Spare_char1 uint8 351 Spare_char2 uint8 352 Datalen uint8 353 Mtu uint64 354 Metric uint64 355 Baudrate uint64 356 Ipackets uint64 357 Ierrors uint64 358 Opackets uint64 359 Oerrors uint64 360 Collisions uint64 361 Ibytes uint64 362 Obytes uint64 363 Imcasts uint64 364 Omcasts uint64 365 Iqdrops uint64 366 Noproto uint64 367 Hwassist uint64 368 Epoch int64 369 Lastchange Timeval 370 } 371 372 type IfaMsghdr struct { 373 Msglen uint16 374 Version uint8 375 Type uint8 376 Addrs int32 377 Flags int32 378 Index uint16 379 Pad_cgo_0 [2]byte 380 Metric int32 381 } 382 383 type IfmaMsghdr 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 } 392 393 type IfAnnounceMsghdr struct { 394 Msglen uint16 395 Version uint8 396 Type uint8 397 Index uint16 398 Name [16]int8 399 What uint16 400 } 401 402 type RtMsghdr struct { 403 Msglen uint16 404 Version uint8 405 Type uint8 406 Index uint16 407 Pad_cgo_0 [2]byte 408 Flags int32 409 Addrs int32 410 Pid int32 411 Seq int32 412 Errno int32 413 Fmask int32 414 Inits uint64 415 Rmx RtMetrics 416 } 417 418 type RtMetrics struct { 419 Locks uint64 420 Mtu uint64 421 Hopcount uint64 422 Expire uint64 423 Recvpipe uint64 424 Sendpipe uint64 425 Ssthresh uint64 426 Rtt uint64 427 Rttvar uint64 428 Pksent uint64 429 Weight uint64 430 Filler [3]uint64 431 } 432 433 const ( 434 SizeofBpfVersion = 0x4 435 SizeofBpfStat = 0x8 436 SizeofBpfZbuf = 0x18 437 SizeofBpfProgram = 0x10 438 SizeofBpfInsn = 0x8 439 SizeofBpfHdr = 0x20 440 SizeofBpfZbufHeader = 0x20 441 ) 442 443 type BpfVersion struct { 444 Major uint16 445 Minor uint16 446 } 447 448 type BpfStat struct { 449 Recv uint32 450 Drop uint32 451 } 452 453 type BpfZbuf struct { 454 Bufa *byte 455 Bufb *byte 456 Buflen uint64 457 } 458 459 type BpfProgram struct { 460 Len uint32 461 Pad_cgo_0 [4]byte 462 Insns *BpfInsn 463 } 464 465 type BpfInsn struct { 466 Code uint16 467 Jt uint8 468 Jf uint8 469 K uint32 470 } 471 472 type BpfHdr struct { 473 Tstamp Timeval 474 Caplen uint32 475 Datalen uint32 476 Hdrlen uint16 477 Pad_cgo_0 [6]byte 478 } 479 480 type BpfZbufHeader struct { 481 Kernel_gen uint32 482 Kernel_len uint32 483 User_gen uint32 484 X_bzh_pad [5]uint32 485 } 486 487 type Termios struct { 488 Iflag uint32 489 Oflag uint32 490 Cflag uint32 491 Lflag uint32 492 Cc [20]uint8 493 Ispeed uint32 494 Ospeed uint32 495 }