github.com/ccccaoqing/test@v0.0.0-20220510085219-3985d23445c0/src/syscall/ztypes_openbsd_amd64.go (about) 1 // Created by cgo -godefs - DO NOT EDIT 2 // cgo -godefs types_openbsd.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 uint64 52 Max uint64 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 Mode uint32 76 Dev int32 77 Ino uint64 78 Nlink uint32 79 Uid uint32 80 Gid uint32 81 Rdev int32 82 Atim Timespec 83 Mtim Timespec 84 Ctim Timespec 85 Size int64 86 Blocks int64 87 Blksize uint32 88 Flags uint32 89 Gen uint32 90 Pad_cgo_0 [4]byte 91 X__st_birthtim Timespec 92 } 93 94 type Statfs_t struct { 95 F_flags uint32 96 F_bsize uint32 97 F_iosize uint32 98 Pad_cgo_0 [4]byte 99 F_blocks uint64 100 F_bfree uint64 101 F_bavail int64 102 F_files uint64 103 F_ffree uint64 104 F_favail int64 105 F_syncwrites uint64 106 F_syncreads uint64 107 F_asyncwrites uint64 108 F_asyncreads uint64 109 F_fsid Fsid 110 F_namemax uint32 111 F_owner uint32 112 F_ctime uint64 113 F_fstypename [16]int8 114 F_mntonname [90]int8 115 F_mntfromname [90]int8 116 F_mntfromspec [90]int8 117 Pad_cgo_1 [2]byte 118 Mount_info [160]byte 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 Off int64 132 Reclen uint16 133 Type uint8 134 Namlen uint8 135 X__d_padding [4]uint8 136 Name [256]int8 137 } 138 139 type Fsid struct { 140 Val [2]int32 141 } 142 143 type RawSockaddrInet4 struct { 144 Len uint8 145 Family uint8 146 Port uint16 147 Addr [4]byte /* in_addr */ 148 Zero [8]int8 149 } 150 151 type RawSockaddrInet6 struct { 152 Len uint8 153 Family uint8 154 Port uint16 155 Flowinfo uint32 156 Addr [16]byte /* in6_addr */ 157 Scope_id uint32 158 } 159 160 type RawSockaddrUnix struct { 161 Len uint8 162 Family uint8 163 Path [104]int8 164 } 165 166 type RawSockaddrDatalink struct { 167 Len uint8 168 Family uint8 169 Index uint16 170 Type uint8 171 Nlen uint8 172 Alen uint8 173 Slen uint8 174 Data [24]int8 175 } 176 177 type RawSockaddr struct { 178 Len uint8 179 Family uint8 180 Data [14]int8 181 } 182 183 type RawSockaddrAny struct { 184 Addr RawSockaddr 185 Pad [92]int8 186 } 187 188 type _Socklen uint32 189 190 type Linger struct { 191 Onoff int32 192 Linger int32 193 } 194 195 type Iovec struct { 196 Base *byte 197 Len uint64 198 } 199 200 type IPMreq struct { 201 Multiaddr [4]byte /* in_addr */ 202 Interface [4]byte /* in_addr */ 203 } 204 205 type IPv6Mreq struct { 206 Multiaddr [16]byte /* in6_addr */ 207 Interface uint32 208 } 209 210 type Msghdr struct { 211 Name *byte 212 Namelen uint32 213 Pad_cgo_0 [4]byte 214 Iov *Iovec 215 Iovlen uint32 216 Pad_cgo_1 [4]byte 217 Control *byte 218 Controllen uint32 219 Flags int32 220 } 221 222 type Cmsghdr struct { 223 Len uint32 224 Level int32 225 Type int32 226 } 227 228 type Inet6Pktinfo struct { 229 Addr [16]byte /* in6_addr */ 230 Ifindex uint32 231 } 232 233 type IPv6MTUInfo struct { 234 Addr RawSockaddrInet6 235 Mtu uint32 236 } 237 238 type ICMPv6Filter struct { 239 Filt [8]uint32 240 } 241 242 const ( 243 SizeofSockaddrInet4 = 0x10 244 SizeofSockaddrInet6 = 0x1c 245 SizeofSockaddrAny = 0x6c 246 SizeofSockaddrUnix = 0x6a 247 SizeofSockaddrDatalink = 0x20 248 SizeofLinger = 0x8 249 SizeofIPMreq = 0x8 250 SizeofIPv6Mreq = 0x14 251 SizeofMsghdr = 0x30 252 SizeofCmsghdr = 0xc 253 SizeofInet6Pktinfo = 0x14 254 SizeofIPv6MTUInfo = 0x20 255 SizeofICMPv6Filter = 0x20 256 ) 257 258 const ( 259 PTRACE_TRACEME = 0x0 260 PTRACE_CONT = 0x7 261 PTRACE_KILL = 0x8 262 ) 263 264 type Kevent_t struct { 265 Ident uint64 266 Filter int16 267 Flags uint16 268 Fflags uint32 269 Data int64 270 Udata *byte 271 } 272 273 type FdSet struct { 274 Bits [32]uint32 275 } 276 277 const ( 278 SizeofIfMsghdr = 0xf8 279 SizeofIfData = 0xe0 280 SizeofIfaMsghdr = 0x18 281 SizeofIfAnnounceMsghdr = 0x1a 282 SizeofRtMsghdr = 0x60 283 SizeofRtMetrics = 0x38 284 ) 285 286 type IfMsghdr struct { 287 Msglen uint16 288 Version uint8 289 Type uint8 290 Hdrlen uint16 291 Index uint16 292 Tableid uint16 293 Pad1 uint8 294 Pad2 uint8 295 Addrs int32 296 Flags int32 297 Xflags int32 298 Data IfData 299 } 300 301 type IfData struct { 302 Type uint8 303 Addrlen uint8 304 Hdrlen uint8 305 Link_state uint8 306 Mtu uint32 307 Metric uint32 308 Pad uint32 309 Baudrate uint64 310 Ipackets uint64 311 Ierrors uint64 312 Opackets uint64 313 Oerrors uint64 314 Collisions uint64 315 Ibytes uint64 316 Obytes uint64 317 Imcasts uint64 318 Omcasts uint64 319 Iqdrops uint64 320 Noproto uint64 321 Capabilities uint32 322 Pad_cgo_0 [4]byte 323 Lastchange Timeval 324 Mclpool [7]Mclpool 325 Pad_cgo_1 [4]byte 326 } 327 328 type IfaMsghdr struct { 329 Msglen uint16 330 Version uint8 331 Type uint8 332 Hdrlen uint16 333 Index uint16 334 Tableid uint16 335 Pad1 uint8 336 Pad2 uint8 337 Addrs int32 338 Flags int32 339 Metric int32 340 } 341 342 type IfAnnounceMsghdr struct { 343 Msglen uint16 344 Version uint8 345 Type uint8 346 Hdrlen uint16 347 Index uint16 348 What uint16 349 Name [16]int8 350 } 351 352 type RtMsghdr struct { 353 Msglen uint16 354 Version uint8 355 Type uint8 356 Hdrlen uint16 357 Index uint16 358 Tableid uint16 359 Priority uint8 360 Mpls uint8 361 Addrs int32 362 Flags int32 363 Fmask int32 364 Pid int32 365 Seq int32 366 Errno int32 367 Inits uint32 368 Rmx RtMetrics 369 } 370 371 type RtMetrics struct { 372 Pksent uint64 373 Expire int64 374 Locks uint32 375 Mtu uint32 376 Refcnt uint32 377 Hopcount uint32 378 Recvpipe uint32 379 Sendpipe uint32 380 Ssthresh uint32 381 Rtt uint32 382 Rttvar uint32 383 Pad uint32 384 } 385 386 type Mclpool struct { 387 Grown int32 388 Alive uint16 389 Hwm uint16 390 Cwm uint16 391 Lwm uint16 392 } 393 394 const ( 395 SizeofBpfVersion = 0x4 396 SizeofBpfStat = 0x8 397 SizeofBpfProgram = 0x10 398 SizeofBpfInsn = 0x8 399 SizeofBpfHdr = 0x14 400 ) 401 402 type BpfVersion struct { 403 Major uint16 404 Minor uint16 405 } 406 407 type BpfStat struct { 408 Recv uint32 409 Drop uint32 410 } 411 412 type BpfProgram struct { 413 Len uint32 414 Pad_cgo_0 [4]byte 415 Insns *BpfInsn 416 } 417 418 type BpfInsn struct { 419 Code uint16 420 Jt uint8 421 Jf uint8 422 K uint32 423 } 424 425 type BpfHdr struct { 426 Tstamp BpfTimeval 427 Caplen uint32 428 Datalen uint32 429 Hdrlen uint16 430 Pad_cgo_0 [2]byte 431 } 432 433 type BpfTimeval struct { 434 Sec uint32 435 Usec uint32 436 } 437 438 type Termios struct { 439 Iflag uint32 440 Oflag uint32 441 Cflag uint32 442 Lflag uint32 443 Cc [20]uint8 444 Ispeed int32 445 Ospeed int32 446 }