github.com/gidoBOSSftw5731/go/src@v0.0.0-20210226122457-d24b0edbf019/syscall/ztypes_openbsd_386.go (about) 1 // Created by cgo -godefs - DO NOT EDIT 2 // cgo -godefs types_openbsd.go 3 4 //go:build 386 && openbsd 5 // +build 386,openbsd 6 7 package syscall 8 9 const ( 10 sizeofPtr = 0x4 11 sizeofShort = 0x2 12 sizeofInt = 0x4 13 sizeofLong = 0x4 14 sizeofLongLong = 0x8 15 ) 16 17 type ( 18 _C_short int16 19 _C_int int32 20 _C_long int32 21 _C_long_long int64 22 ) 23 24 type Timespec struct { 25 Sec int64 26 Nsec int32 27 } 28 29 type Timeval struct { 30 Sec int64 31 Usec int32 32 } 33 34 type Rusage struct { 35 Utime Timeval 36 Stime Timeval 37 Maxrss int32 38 Ixrss int32 39 Idrss int32 40 Isrss int32 41 Minflt int32 42 Majflt int32 43 Nswap int32 44 Inblock int32 45 Oublock int32 46 Msgsnd int32 47 Msgrcv int32 48 Nsignals int32 49 Nvcsw int32 50 Nivcsw int32 51 } 52 53 type Rlimit struct { 54 Cur uint64 55 Max uint64 56 } 57 58 type _Gid_t uint32 59 60 const ( 61 S_IFMT = 0xf000 62 S_IFIFO = 0x1000 63 S_IFCHR = 0x2000 64 S_IFDIR = 0x4000 65 S_IFBLK = 0x6000 66 S_IFREG = 0x8000 67 S_IFLNK = 0xa000 68 S_IFSOCK = 0xc000 69 S_ISUID = 0x800 70 S_ISGID = 0x400 71 S_ISVTX = 0x200 72 S_IRUSR = 0x100 73 S_IWUSR = 0x80 74 S_IXUSR = 0x40 75 S_IRWXG = 0x38 76 S_IRWXO = 0x7 77 ) 78 79 type Stat_t struct { 80 Mode uint32 81 Dev int32 82 Ino uint64 83 Nlink uint32 84 Uid uint32 85 Gid uint32 86 Rdev int32 87 Atim Timespec 88 Mtim Timespec 89 Ctim Timespec 90 Size int64 91 Blocks int64 92 Blksize uint32 93 Flags uint32 94 Gen uint32 95 X__st_birthtim Timespec 96 } 97 98 type Statfs_t struct { 99 F_flags uint32 100 F_bsize uint32 101 F_iosize uint32 102 F_blocks uint64 103 F_bfree uint64 104 F_bavail int64 105 F_files uint64 106 F_ffree uint64 107 F_favail int64 108 F_syncwrites uint64 109 F_syncreads uint64 110 F_asyncwrites uint64 111 F_asyncreads uint64 112 F_fsid Fsid 113 F_namemax uint32 114 F_owner uint32 115 F_ctime uint64 116 F_fstypename [16]int8 117 F_mntonname [90]int8 118 F_mntfromname [90]int8 119 F_mntfromspec [90]int8 120 Pad_cgo_0 [2]byte 121 Mount_info [160]byte 122 } 123 124 type Flock_t struct { 125 Start int64 126 Len int64 127 Pid int32 128 Type int16 129 Whence int16 130 } 131 132 type Dirent struct { 133 Fileno uint64 134 Off int64 135 Reclen uint16 136 Type uint8 137 Namlen uint8 138 X__d_padding [4]uint8 139 Name [256]int8 140 } 141 142 type Fsid struct { 143 Val [2]int32 144 } 145 146 const ( 147 pathMax = 0x400 148 ) 149 150 type RawSockaddrInet4 struct { 151 Len uint8 152 Family uint8 153 Port uint16 154 Addr [4]byte /* in_addr */ 155 Zero [8]int8 156 } 157 158 type RawSockaddrInet6 struct { 159 Len uint8 160 Family uint8 161 Port uint16 162 Flowinfo uint32 163 Addr [16]byte /* in6_addr */ 164 Scope_id uint32 165 } 166 167 type RawSockaddrUnix struct { 168 Len uint8 169 Family uint8 170 Path [104]int8 171 } 172 173 type RawSockaddrDatalink struct { 174 Len uint8 175 Family uint8 176 Index uint16 177 Type uint8 178 Nlen uint8 179 Alen uint8 180 Slen uint8 181 Data [24]int8 182 } 183 184 type RawSockaddr struct { 185 Len uint8 186 Family uint8 187 Data [14]int8 188 } 189 190 type RawSockaddrAny struct { 191 Addr RawSockaddr 192 Pad [92]int8 193 } 194 195 type _Socklen uint32 196 197 type Linger struct { 198 Onoff int32 199 Linger int32 200 } 201 202 type Iovec struct { 203 Base *byte 204 Len uint32 205 } 206 207 type IPMreq struct { 208 Multiaddr [4]byte /* in_addr */ 209 Interface [4]byte /* in_addr */ 210 } 211 212 type IPv6Mreq struct { 213 Multiaddr [16]byte /* in6_addr */ 214 Interface uint32 215 } 216 217 type Msghdr struct { 218 Name *byte 219 Namelen uint32 220 Iov *Iovec 221 Iovlen uint32 222 Control *byte 223 Controllen uint32 224 Flags int32 225 } 226 227 type Cmsghdr struct { 228 Len uint32 229 Level int32 230 Type int32 231 } 232 233 type Inet6Pktinfo struct { 234 Addr [16]byte /* in6_addr */ 235 Ifindex uint32 236 } 237 238 type IPv6MTUInfo struct { 239 Addr RawSockaddrInet6 240 Mtu uint32 241 } 242 243 type ICMPv6Filter struct { 244 Filt [8]uint32 245 } 246 247 const ( 248 SizeofSockaddrInet4 = 0x10 249 SizeofSockaddrInet6 = 0x1c 250 SizeofSockaddrAny = 0x6c 251 SizeofSockaddrUnix = 0x6a 252 SizeofSockaddrDatalink = 0x20 253 SizeofLinger = 0x8 254 SizeofIPMreq = 0x8 255 SizeofIPv6Mreq = 0x14 256 SizeofMsghdr = 0x1c 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 uint32 271 Filter int16 272 Flags uint16 273 Fflags uint32 274 Data int64 275 Udata *byte 276 } 277 278 type FdSet struct { 279 Bits [32]uint32 280 } 281 282 const ( 283 SizeofIfMsghdr = 0xec 284 SizeofIfData = 0xd4 285 SizeofIfaMsghdr = 0x18 286 SizeofIfAnnounceMsghdr = 0x1a 287 SizeofRtMsghdr = 0x60 288 SizeofRtMetrics = 0x38 289 ) 290 291 type IfMsghdr struct { 292 Msglen uint16 293 Version uint8 294 Type uint8 295 Hdrlen uint16 296 Index uint16 297 Tableid uint16 298 Pad1 uint8 299 Pad2 uint8 300 Addrs int32 301 Flags int32 302 Xflags int32 303 Data IfData 304 } 305 306 type IfData struct { 307 Type uint8 308 Addrlen uint8 309 Hdrlen uint8 310 Link_state uint8 311 Mtu uint32 312 Metric uint32 313 Pad uint32 314 Baudrate uint64 315 Ipackets uint64 316 Ierrors uint64 317 Opackets uint64 318 Oerrors uint64 319 Collisions uint64 320 Ibytes uint64 321 Obytes uint64 322 Imcasts uint64 323 Omcasts uint64 324 Iqdrops uint64 325 Noproto uint64 326 Capabilities uint32 327 Lastchange Timeval 328 Mclpool [7]Mclpool 329 } 330 331 type IfaMsghdr struct { 332 Msglen uint16 333 Version uint8 334 Type uint8 335 Hdrlen uint16 336 Index uint16 337 Tableid uint16 338 Pad1 uint8 339 Pad2 uint8 340 Addrs int32 341 Flags int32 342 Metric int32 343 } 344 345 type IfAnnounceMsghdr struct { 346 Msglen uint16 347 Version uint8 348 Type uint8 349 Hdrlen uint16 350 Index uint16 351 What uint16 352 Name [16]int8 353 } 354 355 type RtMsghdr struct { 356 Msglen uint16 357 Version uint8 358 Type uint8 359 Hdrlen uint16 360 Index uint16 361 Tableid uint16 362 Priority uint8 363 Mpls uint8 364 Addrs int32 365 Flags int32 366 Fmask int32 367 Pid int32 368 Seq int32 369 Errno int32 370 Inits uint32 371 Rmx RtMetrics 372 } 373 374 type RtMetrics struct { 375 Pksent uint64 376 Expire int64 377 Locks uint32 378 Mtu uint32 379 Refcnt uint32 380 Hopcount uint32 381 Recvpipe uint32 382 Sendpipe uint32 383 Ssthresh uint32 384 Rtt uint32 385 Rttvar uint32 386 Pad uint32 387 } 388 389 type Mclpool struct { 390 Grown int32 391 Alive uint16 392 Hwm uint16 393 Cwm uint16 394 Lwm uint16 395 } 396 397 const ( 398 SizeofBpfVersion = 0x4 399 SizeofBpfStat = 0x8 400 SizeofBpfProgram = 0x8 401 SizeofBpfInsn = 0x8 402 SizeofBpfHdr = 0x14 403 ) 404 405 type BpfVersion struct { 406 Major uint16 407 Minor uint16 408 } 409 410 type BpfStat struct { 411 Recv uint32 412 Drop uint32 413 } 414 415 type BpfProgram struct { 416 Len uint32 417 Insns *BpfInsn 418 } 419 420 type BpfInsn struct { 421 Code uint16 422 Jt uint8 423 Jf uint8 424 K uint32 425 } 426 427 type BpfHdr struct { 428 Tstamp BpfTimeval 429 Caplen uint32 430 Datalen uint32 431 Hdrlen uint16 432 Pad_cgo_0 [2]byte 433 } 434 435 type BpfTimeval struct { 436 Sec uint32 437 Usec uint32 438 } 439 440 const ( 441 _AT_FDCWD = -0x64 442 ) 443 444 type Termios struct { 445 Iflag uint32 446 Oflag uint32 447 Cflag uint32 448 Lflag uint32 449 Cc [20]uint8 450 Ispeed int32 451 Ospeed int32 452 }