github.com/varialus/godfly@v0.0.0-20130904042352-1934f9f095ab/src/pkg/syscall/ztypes_freebsd_arm.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 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 int64 52 Max int64 53 } 54 55 type _Gid_t uint32 56 57 const ( 58 O_CLOEXEC = 0 // not supported 59 ) 60 61 const ( 62 S_IFMT = 0xf000 63 S_IFIFO = 0x1000 64 S_IFCHR = 0x2000 65 S_IFDIR = 0x4000 66 S_IFBLK = 0x6000 67 S_IFREG = 0x8000 68 S_IFLNK = 0xa000 69 S_IFSOCK = 0xc000 70 S_ISUID = 0x800 71 S_ISGID = 0x400 72 S_ISVTX = 0x200 73 S_IRUSR = 0x100 74 S_IWUSR = 0x80 75 S_IXUSR = 0x40 76 ) 77 78 type Stat_t struct { 79 Dev uint32 80 Ino uint32 81 Mode uint16 82 Nlink uint16 83 Uid uint32 84 Gid uint32 85 Rdev uint32 86 Atimespec Timespec 87 Mtimespec Timespec 88 Ctimespec Timespec 89 Size int64 90 Blocks int64 91 Blksize uint32 92 Flags uint32 93 Gen uint32 94 Lspare int32 95 Birthtimespec Timespec 96 Pad_cgo_0 [4]byte 97 } 98 99 type Statfs_t struct { 100 Version uint32 101 Type uint32 102 Flags uint64 103 Bsize uint64 104 Iosize uint64 105 Blocks uint64 106 Bfree uint64 107 Bavail int64 108 Files uint64 109 Ffree int64 110 Syncwrites uint64 111 Asyncwrites uint64 112 Syncreads uint64 113 Asyncreads uint64 114 Spare [10]uint64 115 Namemax uint32 116 Owner uint32 117 Fsid Fsid 118 Charspare [80]int8 119 Fstypename [16]int8 120 Mntfromname [88]int8 121 Mntonname [88]int8 122 } 123 124 type Flock_t struct { 125 Start int64 126 Len int64 127 Pid int32 128 Type int16 129 Whence int16 130 Sysid int32 131 } 132 133 type Dirent struct { 134 Fileno uint32 135 Reclen uint16 136 Type uint8 137 Namlen uint8 138 Name [256]int8 139 } 140 141 type Fsid struct { 142 Val [2]int32 143 } 144 145 type RawSockaddrInet4 struct { 146 Len uint8 147 Family uint8 148 Port uint16 149 Addr [4]byte /* in_addr */ 150 Zero [8]int8 151 } 152 153 type RawSockaddrInet6 struct { 154 Len uint8 155 Family uint8 156 Port uint16 157 Flowinfo uint32 158 Addr [16]byte /* in6_addr */ 159 Scope_id uint32 160 } 161 162 type RawSockaddrUnix struct { 163 Len uint8 164 Family uint8 165 Path [104]int8 166 Pad_cgo_0 [2]byte 167 } 168 169 type RawSockaddrDatalink struct { 170 Len uint8 171 Family uint8 172 Index uint16 173 Type uint8 174 Nlen uint8 175 Alen uint8 176 Slen uint8 177 Data [46]int8 178 Pad_cgo_0 [2]byte 179 } 180 181 type RawSockaddr struct { 182 Len uint8 183 Family uint8 184 Data [14]int8 185 } 186 187 type RawSockaddrAny struct { 188 Addr RawSockaddr 189 Pad [92]int8 190 } 191 192 type _Socklen uint32 193 194 type Linger struct { 195 Onoff int32 196 Linger int32 197 } 198 199 type Iovec struct { 200 Base *byte 201 Len uint32 202 } 203 204 type IPMreq struct { 205 Multiaddr [4]byte /* in_addr */ 206 Interface [4]byte /* in_addr */ 207 } 208 209 type IPMreqn struct { 210 Multiaddr [4]byte /* in_addr */ 211 Address [4]byte /* in_addr */ 212 Ifindex int32 213 } 214 215 type IPv6Mreq struct { 216 Multiaddr [16]byte /* in6_addr */ 217 Interface uint32 218 } 219 220 type Msghdr struct { 221 Name *byte 222 Namelen uint32 223 Iov *Iovec 224 Iovlen int32 225 Control *byte 226 Controllen uint32 227 Flags int32 228 } 229 230 type Cmsghdr struct { 231 Len uint32 232 Level int32 233 Type int32 234 } 235 236 type Inet6Pktinfo struct { 237 Addr [16]byte /* in6_addr */ 238 Ifindex uint32 239 } 240 241 type IPv6MTUInfo struct { 242 Addr RawSockaddrInet6 243 Mtu uint32 244 } 245 246 type ICMPv6Filter struct { 247 Filt [8]uint32 248 } 249 250 const ( 251 SizeofSockaddrInet4 = 0x10 252 SizeofSockaddrInet6 = 0x1c 253 SizeofSockaddrAny = 0x6c 254 SizeofSockaddrUnix = 0x6c 255 SizeofSockaddrDatalink = 0x38 256 SizeofLinger = 0x8 257 SizeofIPMreq = 0x8 258 SizeofIPMreqn = 0xc 259 SizeofIPv6Mreq = 0x14 260 SizeofMsghdr = 0x1c 261 SizeofCmsghdr = 0xc 262 SizeofInet6Pktinfo = 0x14 263 SizeofIPv6MTUInfo = 0x20 264 SizeofICMPv6Filter = 0x20 265 ) 266 267 const ( 268 PTRACE_TRACEME = 0x0 269 PTRACE_CONT = 0x7 270 PTRACE_KILL = 0x8 271 ) 272 273 type Kevent_t struct { 274 Ident uint32 275 Filter int16 276 Flags uint16 277 Fflags uint32 278 Data int32 279 Udata *byte 280 } 281 282 type FdSet struct { 283 X__fds_bits [32]uint32 284 } 285 286 const ( 287 SizeofIfMsghdr = 0x68 288 SizeofIfData = 0x58 289 SizeofIfaMsghdr = 0x14 290 SizeofIfmaMsghdr = 0x10 291 SizeofIfAnnounceMsghdr = 0x18 292 SizeofRtMsghdr = 0x5c 293 SizeofRtMetrics = 0x38 294 ) 295 296 type IfMsghdr struct { 297 Msglen uint16 298 Version uint8 299 Type uint8 300 Addrs int32 301 Flags int32 302 Index uint16 303 Pad_cgo_0 [2]byte 304 Data IfData 305 } 306 307 type IfData struct { 308 Type uint8 309 Physical uint8 310 Addrlen uint8 311 Hdrlen uint8 312 Link_state uint8 313 Spare_char1 uint8 //Vhid uint8 314 Spare_char2 uint8 315 Datalen uint8 316 Mtu uint32 317 Metric uint32 318 Baudrate uint32 319 Ipackets uint32 320 Ierrors uint32 321 Opackets uint32 322 Oerrors uint32 323 Collisions uint32 324 Ibytes uint32 325 Obytes uint32 326 Imcasts uint32 327 Omcasts uint32 328 Iqdrops uint32 329 Noproto uint32 330 Hwassist uint32 331 Epoch int64 332 Lastchange Timeval 333 } 334 335 type IfaMsghdr struct { 336 Msglen uint16 337 Version uint8 338 Type uint8 339 Addrs int32 340 Flags int32 341 Index uint16 342 Pad_cgo_0 [2]byte 343 Metric int32 344 } 345 346 type IfmaMsghdr struct { 347 Msglen uint16 348 Version uint8 349 Type uint8 350 Addrs int32 351 Flags int32 352 Index uint16 353 Pad_cgo_0 [2]byte 354 } 355 356 type IfAnnounceMsghdr struct { 357 Msglen uint16 358 Version uint8 359 Type uint8 360 Index uint16 361 Name [16]int8 362 What uint16 363 } 364 365 type RtMsghdr struct { 366 Msglen uint16 367 Version uint8 368 Type uint8 369 Index uint16 370 Pad_cgo_0 [2]byte 371 Flags int32 372 Addrs int32 373 Pid int32 374 Seq int32 375 Errno int32 376 Fmask int32 377 Inits uint32 378 Rmx RtMetrics 379 } 380 381 type RtMetrics struct { 382 Locks uint32 383 Mtu uint32 384 Hopcount uint32 385 Expire uint32 386 Recvpipe uint32 387 Sendpipe uint32 388 Ssthresh uint32 389 Rtt uint32 390 Rttvar uint32 391 Pksent uint32 392 Weight uint32 393 Filler [3]uint32 394 } 395 396 const ( 397 SizeofBpfVersion = 0x4 398 SizeofBpfStat = 0x8 399 SizeofBpfZbuf = 0xc 400 SizeofBpfProgram = 0x8 401 SizeofBpfInsn = 0x8 402 SizeofBpfHdr = 0x18 403 SizeofBpfZbufHeader = 0x20 404 ) 405 406 type BpfVersion struct { 407 Major uint16 408 Minor uint16 409 } 410 411 type BpfStat struct { 412 Recv uint32 413 Drop uint32 414 } 415 416 type BpfZbuf struct { 417 Bufa *byte 418 Bufb *byte 419 Buflen uint32 420 } 421 422 type BpfProgram struct { 423 Len uint32 424 Insns *BpfInsn 425 } 426 427 type BpfInsn struct { 428 Code uint16 429 Jt uint8 430 Jf uint8 431 K uint32 432 } 433 434 type BpfHdr struct { 435 Tstamp Timeval 436 Caplen uint32 437 Datalen uint32 438 Hdrlen uint16 439 Pad_cgo_0 [2]byte 440 } 441 442 type BpfZbufHeader struct { 443 Kernel_gen uint32 444 Kernel_len uint32 445 User_gen uint32 446 X_bzh_pad [5]uint32 447 }