github.com/ccccaoqing/test@v0.0.0-20220510085219-3985d23445c0/src/syscall/ztypes_dragonfly_386.go (about) 1 // Created by cgo -godefs - DO NOT EDIT 2 // cgo -godefs types_dragonfly.go 3 4 package syscall 5 6 const ( 7 sizeofPtr = 0x4 8 sizeofShort = 0x2 9 sizeofInt = 0x4 10 sizeofLong = 0x4 11 sizeofLongLong = 0x8 12 ) 13 14 type ( 15 _C_short int16 16 _C_int int32 17 _C_long int32 18 _C_long_long int64 19 ) 20 21 type Timespec struct { 22 Sec int32 23 Nsec int32 24 } 25 26 type Timeval struct { 27 Sec int32 28 Usec int32 29 } 30 31 type Rusage struct { 32 Utime Timeval 33 Stime Timeval 34 Maxrss int32 35 Ixrss int32 36 Idrss int32 37 Isrss int32 38 Minflt int32 39 Majflt int32 40 Nswap int32 41 Inblock int32 42 Oublock int32 43 Msgsnd int32 44 Msgrcv int32 45 Nsignals int32 46 Nvcsw int32 47 Nivcsw int32 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 Ino uint64 76 Nlink uint32 77 Dev uint32 78 Mode uint16 79 Padding1 uint16 80 Uid uint32 81 Gid uint32 82 Rdev uint32 83 Atim Timespec 84 Mtim Timespec 85 Ctim Timespec 86 Size int64 87 Blocks int64 88 Blksize uint32 89 Flags uint32 90 Gen uint32 91 Lspare int32 92 Qspare1 int64 93 Qspare2 int64 94 } 95 96 type Statfs_t struct { 97 Spare2 int32 98 Bsize int32 99 Iosize int32 100 Blocks int32 101 Bfree int32 102 Bavail int32 103 Files int32 104 Ffree int32 105 Fsid Fsid 106 Owner uint32 107 Type int32 108 Flags int32 109 Syncwrites int32 110 Asyncwrites int32 111 Fstypename [16]int8 112 Mntonname [80]int8 113 Syncreads int32 114 Asyncreads int32 115 Spares1 int16 116 Mntfromname [80]int8 117 Spares2 int16 118 Spare [2]int32 119 } 120 121 type Flock_t struct { 122 Start int64 123 Len int64 124 Pid int32 125 Type int16 126 Whence int16 127 } 128 129 type Dirent struct { 130 Fileno uint64 131 Namlen uint16 132 Type uint8 133 Unused1 uint8 134 Unused2 uint32 135 Name [256]int8 136 } 137 138 type Fsid struct { 139 Val [2]int32 140 } 141 142 type RawSockaddrInet4 struct { 143 Len uint8 144 Family uint8 145 Port uint16 146 Addr [4]byte /* in_addr */ 147 Zero [8]int8 148 } 149 150 type RawSockaddrInet6 struct { 151 Len uint8 152 Family uint8 153 Port uint16 154 Flowinfo uint32 155 Addr [16]byte /* in6_addr */ 156 Scope_id uint32 157 } 158 159 type RawSockaddrUnix struct { 160 Len uint8 161 Family uint8 162 Path [104]int8 163 } 164 165 type RawSockaddrDatalink struct { 166 Len uint8 167 Family uint8 168 Index uint16 169 Type uint8 170 Nlen uint8 171 Alen uint8 172 Slen uint8 173 Data [12]int8 174 Rcf uint16 175 Route [16]uint16 176 } 177 178 type RawSockaddr struct { 179 Len uint8 180 Family uint8 181 Data [14]int8 182 } 183 184 type RawSockaddrAny struct { 185 Addr RawSockaddr 186 Pad [92]int8 187 } 188 189 type _Socklen uint32 190 191 type Linger struct { 192 Onoff int32 193 Linger int32 194 } 195 196 type Iovec struct { 197 Base *byte 198 Len uint32 199 } 200 201 type IPMreq struct { 202 Multiaddr [4]byte /* in_addr */ 203 Interface [4]byte /* in_addr */ 204 } 205 206 type IPv6Mreq struct { 207 Multiaddr [16]byte /* in6_addr */ 208 Interface uint32 209 } 210 211 type Msghdr struct { 212 Name *byte 213 Namelen uint32 214 Iov *Iovec 215 Iovlen int32 216 Control *byte 217 Controllen uint32 218 Flags int32 219 } 220 221 type Cmsghdr struct { 222 Len uint32 223 Level int32 224 Type int32 225 } 226 227 type Inet6Pktinfo struct { 228 Addr [16]byte /* in6_addr */ 229 Ifindex uint32 230 } 231 232 type IPv6MTUInfo struct { 233 Addr RawSockaddrInet6 234 Mtu uint32 235 } 236 237 type ICMPv6Filter struct { 238 Filt [8]uint32 239 } 240 241 const ( 242 SizeofSockaddrInet4 = 0x10 243 SizeofSockaddrInet6 = 0x1c 244 SizeofSockaddrAny = 0x6c 245 SizeofSockaddrUnix = 0x6a 246 SizeofSockaddrDatalink = 0x36 247 SizeofLinger = 0x8 248 SizeofIPMreq = 0x8 249 SizeofIPv6Mreq = 0x14 250 SizeofMsghdr = 0x1c 251 SizeofCmsghdr = 0xc 252 SizeofInet6Pktinfo = 0x14 253 SizeofIPv6MTUInfo = 0x20 254 SizeofICMPv6Filter = 0x20 255 ) 256 257 const ( 258 PTRACE_TRACEME = 0x0 259 PTRACE_CONT = 0x7 260 PTRACE_KILL = 0x8 261 ) 262 263 type Kevent_t struct { 264 Ident uint32 265 Filter int16 266 Flags uint16 267 Fflags uint32 268 Data int32 269 Udata *byte 270 } 271 272 type FdSet struct { 273 Bits [32]uint32 274 } 275 276 const ( 277 SizeofIfMsghdr = 0x68 278 SizeofIfData = 0x58 279 SizeofIfaMsghdr = 0x14 280 SizeofIfmaMsghdr = 0x10 281 SizeofIfAnnounceMsghdr = 0x18 282 SizeofRtMsghdr = 0x5c 283 SizeofRtMetrics = 0x38 284 ) 285 286 type IfMsghdr struct { 287 Msglen uint16 288 Version uint8 289 Type uint8 290 Addrs int32 291 Flags int32 292 Index uint16 293 Pad_cgo_0 [2]byte 294 Data IfData 295 } 296 297 type IfData struct { 298 Type uint8 299 Physical uint8 300 Addrlen uint8 301 Hdrlen uint8 302 Recvquota uint8 303 Xmitquota uint8 304 Pad_cgo_0 [2]byte 305 Mtu uint32 306 Metric uint32 307 Link_state uint32 308 Baudrate uint64 309 Ipackets uint32 310 Ierrors uint32 311 Opackets uint32 312 Oerrors uint32 313 Collisions uint32 314 Ibytes uint32 315 Obytes uint32 316 Imcasts uint32 317 Omcasts uint32 318 Iqdrops uint32 319 Noproto uint32 320 Hwassist uint32 321 Unused uint32 322 Lastchange Timeval 323 } 324 325 type IfaMsghdr struct { 326 Msglen uint16 327 Version uint8 328 Type uint8 329 Addrs int32 330 Flags int32 331 Index uint16 332 Pad_cgo_0 [2]byte 333 Metric int32 334 } 335 336 type IfmaMsghdr struct { 337 Msglen uint16 338 Version uint8 339 Type uint8 340 Addrs int32 341 Flags int32 342 Index uint16 343 Pad_cgo_0 [2]byte 344 } 345 346 type IfAnnounceMsghdr struct { 347 Msglen uint16 348 Version uint8 349 Type uint8 350 Index uint16 351 Name [16]int8 352 What uint16 353 } 354 355 type RtMsghdr struct { 356 Msglen uint16 357 Version uint8 358 Type uint8 359 Index uint16 360 Pad_cgo_0 [2]byte 361 Flags int32 362 Addrs int32 363 Pid int32 364 Seq int32 365 Errno int32 366 Use int32 367 Inits uint32 368 Rmx RtMetrics 369 } 370 371 type RtMetrics struct { 372 Locks uint32 373 Mtu uint32 374 Pksent uint32 375 Expire uint32 376 Sendpipe uint32 377 Ssthresh uint32 378 Rtt uint32 379 Rttvar uint32 380 Recvpipe uint32 381 Hopcount uint32 382 Mssopt uint16 383 Pad uint16 384 Msl uint32 385 Iwmaxsegs uint32 386 Iwcapsegs uint32 387 } 388 389 const ( 390 SizeofBpfVersion = 0x4 391 SizeofBpfStat = 0x8 392 SizeofBpfProgram = 0x8 393 SizeofBpfInsn = 0x8 394 SizeofBpfHdr = 0x14 395 ) 396 397 type BpfVersion struct { 398 Major uint16 399 Minor uint16 400 } 401 402 type BpfStat struct { 403 Recv uint32 404 Drop uint32 405 } 406 407 type BpfProgram struct { 408 Len uint32 409 Insns *BpfInsn 410 } 411 412 type BpfInsn struct { 413 Code uint16 414 Jt uint8 415 Jf uint8 416 K uint32 417 } 418 419 type BpfHdr struct { 420 Tstamp Timeval 421 Caplen uint32 422 Datalen uint32 423 Hdrlen uint16 424 Pad_cgo_0 [2]byte 425 } 426 427 type Termios struct { 428 Iflag uint32 429 Oflag uint32 430 Cflag uint32 431 Lflag uint32 432 Cc [20]uint8 433 Ispeed uint32 434 Ospeed uint32 435 }