github.com/hbdrawn/golang@v0.0.0-20141214014649-6b835209aba2/src/syscall/ztypes_freebsd_386.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 = 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 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 Pad_cgo_0 [8]byte 93 } 94 95 type Statfs_t struct { 96 Version uint32 97 Type uint32 98 Flags uint64 99 Bsize uint64 100 Iosize uint64 101 Blocks uint64 102 Bfree uint64 103 Bavail int64 104 Files uint64 105 Ffree int64 106 Syncwrites uint64 107 Asyncwrites uint64 108 Syncreads uint64 109 Asyncreads uint64 110 Spare [10]uint64 111 Namemax uint32 112 Owner uint32 113 Fsid Fsid 114 Charspare [80]int8 115 Fstypename [16]int8 116 Mntfromname [88]int8 117 Mntonname [88]int8 118 } 119 120 type Flock_t struct { 121 Start int64 122 Len int64 123 Pid int32 124 Type int16 125 Whence int16 126 Sysid int32 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 uint32 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 Iov *Iovec 218 Iovlen int32 219 Control *byte 220 Controllen uint32 221 Flags int32 222 } 223 224 type Cmsghdr struct { 225 Len uint32 226 Level int32 227 Type int32 228 } 229 230 type Inet6Pktinfo struct { 231 Addr [16]byte /* in6_addr */ 232 Ifindex uint32 233 } 234 235 type IPv6MTUInfo struct { 236 Addr RawSockaddrInet6 237 Mtu uint32 238 } 239 240 type ICMPv6Filter struct { 241 Filt [8]uint32 242 } 243 244 const ( 245 SizeofSockaddrInet4 = 0x10 246 SizeofSockaddrInet6 = 0x1c 247 SizeofSockaddrAny = 0x6c 248 SizeofSockaddrUnix = 0x6a 249 SizeofSockaddrDatalink = 0x36 250 SizeofLinger = 0x8 251 SizeofIPMreq = 0x8 252 SizeofIPMreqn = 0xc 253 SizeofIPv6Mreq = 0x14 254 SizeofMsghdr = 0x1c 255 SizeofCmsghdr = 0xc 256 SizeofInet6Pktinfo = 0x14 257 SizeofIPv6MTUInfo = 0x20 258 SizeofICMPv6Filter = 0x20 259 ) 260 261 const ( 262 PTRACE_TRACEME = 0x0 263 PTRACE_CONT = 0x7 264 PTRACE_KILL = 0x8 265 ) 266 267 type Kevent_t struct { 268 Ident uint32 269 Filter int16 270 Flags uint16 271 Fflags uint32 272 Data int32 273 Udata *byte 274 } 275 276 type FdSet struct { 277 X__fds_bits [32]uint32 278 } 279 280 const ( 281 sizeofIfMsghdr = 0x64 282 SizeofIfMsghdr = 0x60 283 sizeofIfData = 0x54 284 SizeofIfData = 0x50 285 SizeofIfaMsghdr = 0x14 286 SizeofIfmaMsghdr = 0x10 287 SizeofIfAnnounceMsghdr = 0x18 288 SizeofRtMsghdr = 0x5c 289 SizeofRtMetrics = 0x38 290 ) 291 292 type ifMsghdr struct { 293 Msglen uint16 294 Version uint8 295 Type uint8 296 Addrs int32 297 Flags int32 298 Index uint16 299 Pad_cgo_0 [2]byte 300 Data ifData 301 } 302 303 type IfMsghdr struct { 304 Msglen uint16 305 Version uint8 306 Type uint8 307 Addrs int32 308 Flags int32 309 Index uint16 310 Pad_cgo_0 [2]byte 311 Data IfData 312 } 313 314 type ifData struct { 315 Type uint8 316 Physical uint8 317 Addrlen uint8 318 Hdrlen uint8 319 Link_state uint8 320 Vhid uint8 321 Baudrate_pf uint8 322 Datalen uint8 323 Mtu uint32 324 Metric uint32 325 Baudrate uint32 326 Ipackets uint32 327 Ierrors uint32 328 Opackets uint32 329 Oerrors uint32 330 Collisions uint32 331 Ibytes uint32 332 Obytes uint32 333 Imcasts uint32 334 Omcasts uint32 335 Iqdrops uint32 336 Noproto uint32 337 Hwassist uint64 338 Epoch int32 339 Lastchange Timeval 340 } 341 342 type IfData struct { 343 Type uint8 344 Physical uint8 345 Addrlen uint8 346 Hdrlen uint8 347 Link_state uint8 348 Spare_char1 uint8 349 Spare_char2 uint8 350 Datalen uint8 351 Mtu uint32 352 Metric uint32 353 Baudrate uint32 354 Ipackets uint32 355 Ierrors uint32 356 Opackets uint32 357 Oerrors uint32 358 Collisions uint32 359 Ibytes uint32 360 Obytes uint32 361 Imcasts uint32 362 Omcasts uint32 363 Iqdrops uint32 364 Noproto uint32 365 Hwassist uint32 366 Epoch int32 367 Lastchange Timeval 368 } 369 370 type IfaMsghdr struct { 371 Msglen uint16 372 Version uint8 373 Type uint8 374 Addrs int32 375 Flags int32 376 Index uint16 377 Pad_cgo_0 [2]byte 378 Metric int32 379 } 380 381 type IfmaMsghdr struct { 382 Msglen uint16 383 Version uint8 384 Type uint8 385 Addrs int32 386 Flags int32 387 Index uint16 388 Pad_cgo_0 [2]byte 389 } 390 391 type IfAnnounceMsghdr struct { 392 Msglen uint16 393 Version uint8 394 Type uint8 395 Index uint16 396 Name [16]int8 397 What uint16 398 } 399 400 type RtMsghdr struct { 401 Msglen uint16 402 Version uint8 403 Type uint8 404 Index uint16 405 Pad_cgo_0 [2]byte 406 Flags int32 407 Addrs int32 408 Pid int32 409 Seq int32 410 Errno int32 411 Fmask int32 412 Inits uint32 413 Rmx RtMetrics 414 } 415 416 type RtMetrics struct { 417 Locks uint32 418 Mtu uint32 419 Hopcount uint32 420 Expire uint32 421 Recvpipe uint32 422 Sendpipe uint32 423 Ssthresh uint32 424 Rtt uint32 425 Rttvar uint32 426 Pksent uint32 427 Weight uint32 428 Filler [3]uint32 429 } 430 431 const ( 432 SizeofBpfVersion = 0x4 433 SizeofBpfStat = 0x8 434 SizeofBpfZbuf = 0xc 435 SizeofBpfProgram = 0x8 436 SizeofBpfInsn = 0x8 437 SizeofBpfHdr = 0x14 438 SizeofBpfZbufHeader = 0x20 439 ) 440 441 type BpfVersion struct { 442 Major uint16 443 Minor uint16 444 } 445 446 type BpfStat struct { 447 Recv uint32 448 Drop uint32 449 } 450 451 type BpfZbuf struct { 452 Bufa *byte 453 Bufb *byte 454 Buflen uint32 455 } 456 457 type BpfProgram struct { 458 Len uint32 459 Insns *BpfInsn 460 } 461 462 type BpfInsn struct { 463 Code uint16 464 Jt uint8 465 Jf uint8 466 K uint32 467 } 468 469 type BpfHdr struct { 470 Tstamp Timeval 471 Caplen uint32 472 Datalen uint32 473 Hdrlen uint16 474 Pad_cgo_0 [2]byte 475 } 476 477 type BpfZbufHeader struct { 478 Kernel_gen uint32 479 Kernel_len uint32 480 User_gen uint32 481 X_bzh_pad [5]uint32 482 } 483 484 type Termios struct { 485 Iflag uint32 486 Oflag uint32 487 Cflag uint32 488 Lflag uint32 489 Cc [20]uint8 490 Ispeed uint32 491 Ospeed uint32 492 }