github.com/hbdrawn/golang@v0.0.0-20141214014649-6b835209aba2/src/syscall/ztypes_openbsd_386.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 = 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 int64 23 Nsec int32 24 } 25 26 type Timeval struct { 27 Sec int64 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 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 X__st_birthtim Timespec 91 } 92 93 type Statfs_t struct { 94 F_flags uint32 95 F_bsize uint32 96 F_iosize uint32 97 F_blocks uint64 98 F_bfree uint64 99 F_bavail int64 100 F_files uint64 101 F_ffree uint64 102 F_favail int64 103 F_syncwrites uint64 104 F_syncreads uint64 105 F_asyncwrites uint64 106 F_asyncreads uint64 107 F_fsid Fsid 108 F_namemax uint32 109 F_owner uint32 110 F_ctime uint64 111 F_fstypename [16]int8 112 F_mntonname [90]int8 113 F_mntfromname [90]int8 114 F_mntfromspec [90]int8 115 Pad_cgo_0 [2]byte 116 Mount_info [160]byte 117 } 118 119 type Flock_t struct { 120 Start int64 121 Len int64 122 Pid int32 123 Type int16 124 Whence int16 125 } 126 127 type Dirent struct { 128 Fileno uint64 129 Off int64 130 Reclen uint16 131 Type uint8 132 Namlen uint8 133 X__d_padding [4]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 [24]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 uint32 196 } 197 198 type IPMreq struct { 199 Multiaddr [4]byte /* in_addr */ 200 Interface [4]byte /* in_addr */ 201 } 202 203 type IPv6Mreq struct { 204 Multiaddr [16]byte /* in6_addr */ 205 Interface uint32 206 } 207 208 type Msghdr struct { 209 Name *byte 210 Namelen uint32 211 Iov *Iovec 212 Iovlen uint32 213 Control *byte 214 Controllen uint32 215 Flags int32 216 } 217 218 type Cmsghdr struct { 219 Len uint32 220 Level int32 221 Type int32 222 } 223 224 type Inet6Pktinfo struct { 225 Addr [16]byte /* in6_addr */ 226 Ifindex uint32 227 } 228 229 type IPv6MTUInfo struct { 230 Addr RawSockaddrInet6 231 Mtu uint32 232 } 233 234 type ICMPv6Filter struct { 235 Filt [8]uint32 236 } 237 238 const ( 239 SizeofSockaddrInet4 = 0x10 240 SizeofSockaddrInet6 = 0x1c 241 SizeofSockaddrAny = 0x6c 242 SizeofSockaddrUnix = 0x6a 243 SizeofSockaddrDatalink = 0x20 244 SizeofLinger = 0x8 245 SizeofIPMreq = 0x8 246 SizeofIPv6Mreq = 0x14 247 SizeofMsghdr = 0x1c 248 SizeofCmsghdr = 0xc 249 SizeofInet6Pktinfo = 0x14 250 SizeofIPv6MTUInfo = 0x20 251 SizeofICMPv6Filter = 0x20 252 ) 253 254 const ( 255 PTRACE_TRACEME = 0x0 256 PTRACE_CONT = 0x7 257 PTRACE_KILL = 0x8 258 ) 259 260 type Kevent_t struct { 261 Ident uint32 262 Filter int16 263 Flags uint16 264 Fflags uint32 265 Data int64 266 Udata *byte 267 } 268 269 type FdSet struct { 270 Bits [32]uint32 271 } 272 273 const ( 274 SizeofIfMsghdr = 0xec 275 SizeofIfData = 0xd4 276 SizeofIfaMsghdr = 0x18 277 SizeofIfAnnounceMsghdr = 0x1a 278 SizeofRtMsghdr = 0x60 279 SizeofRtMetrics = 0x38 280 ) 281 282 type IfMsghdr struct { 283 Msglen uint16 284 Version uint8 285 Type uint8 286 Hdrlen uint16 287 Index uint16 288 Tableid uint16 289 Pad1 uint8 290 Pad2 uint8 291 Addrs int32 292 Flags int32 293 Xflags int32 294 Data IfData 295 } 296 297 type IfData struct { 298 Type uint8 299 Addrlen uint8 300 Hdrlen uint8 301 Link_state uint8 302 Mtu uint32 303 Metric uint32 304 Pad uint32 305 Baudrate uint64 306 Ipackets uint64 307 Ierrors uint64 308 Opackets uint64 309 Oerrors uint64 310 Collisions uint64 311 Ibytes uint64 312 Obytes uint64 313 Imcasts uint64 314 Omcasts uint64 315 Iqdrops uint64 316 Noproto uint64 317 Capabilities uint32 318 Lastchange Timeval 319 Mclpool [7]Mclpool 320 } 321 322 type IfaMsghdr struct { 323 Msglen uint16 324 Version uint8 325 Type uint8 326 Hdrlen uint16 327 Index uint16 328 Tableid uint16 329 Pad1 uint8 330 Pad2 uint8 331 Addrs int32 332 Flags int32 333 Metric int32 334 } 335 336 type IfAnnounceMsghdr struct { 337 Msglen uint16 338 Version uint8 339 Type uint8 340 Hdrlen uint16 341 Index uint16 342 What uint16 343 Name [16]int8 344 } 345 346 type RtMsghdr struct { 347 Msglen uint16 348 Version uint8 349 Type uint8 350 Hdrlen uint16 351 Index uint16 352 Tableid uint16 353 Priority uint8 354 Mpls uint8 355 Addrs int32 356 Flags int32 357 Fmask int32 358 Pid int32 359 Seq int32 360 Errno int32 361 Inits uint32 362 Rmx RtMetrics 363 } 364 365 type RtMetrics struct { 366 Pksent uint64 367 Expire int64 368 Locks uint32 369 Mtu uint32 370 Refcnt uint32 371 Hopcount uint32 372 Recvpipe uint32 373 Sendpipe uint32 374 Ssthresh uint32 375 Rtt uint32 376 Rttvar uint32 377 Pad uint32 378 } 379 380 type Mclpool struct { 381 Grown int32 382 Alive uint16 383 Hwm uint16 384 Cwm uint16 385 Lwm uint16 386 } 387 388 const ( 389 SizeofBpfVersion = 0x4 390 SizeofBpfStat = 0x8 391 SizeofBpfProgram = 0x8 392 SizeofBpfInsn = 0x8 393 SizeofBpfHdr = 0x14 394 ) 395 396 type BpfVersion struct { 397 Major uint16 398 Minor uint16 399 } 400 401 type BpfStat struct { 402 Recv uint32 403 Drop uint32 404 } 405 406 type BpfProgram struct { 407 Len uint32 408 Insns *BpfInsn 409 } 410 411 type BpfInsn struct { 412 Code uint16 413 Jt uint8 414 Jf uint8 415 K uint32 416 } 417 418 type BpfHdr struct { 419 Tstamp BpfTimeval 420 Caplen uint32 421 Datalen uint32 422 Hdrlen uint16 423 Pad_cgo_0 [2]byte 424 } 425 426 type BpfTimeval struct { 427 Sec uint32 428 Usec uint32 429 } 430 431 type Termios struct { 432 Iflag uint32 433 Oflag uint32 434 Cflag uint32 435 Lflag uint32 436 Cc [20]uint8 437 Ispeed int32 438 Ospeed int32 439 }