github.com/hbdrawn/golang@v0.0.0-20141214014649-6b835209aba2/src/syscall/ztypes_freebsd_arm.go (about) 1 // Created by cgo -godefs - DO NOT EDIT 2 // cgo -godefs -- -fsigned-char 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 Pad_cgo_0 [4]byte 25 } 26 27 type Timeval struct { 28 Sec int64 29 Usec int32 30 Pad_cgo_0 [4]byte 31 } 32 33 type Rusage struct { 34 Utime Timeval 35 Stime Timeval 36 Maxrss int32 37 Ixrss int32 38 Idrss int32 39 Isrss int32 40 Minflt int32 41 Majflt int32 42 Nswap int32 43 Inblock int32 44 Oublock int32 45 Msgsnd int32 46 Msgrcv int32 47 Nsignals int32 48 Nvcsw int32 49 Nivcsw int32 50 } 51 52 type Rlimit struct { 53 Cur int64 54 Max int64 55 } 56 57 type _Gid_t uint32 58 59 const ( 60 S_IFMT = 0xf000 61 S_IFIFO = 0x1000 62 S_IFCHR = 0x2000 63 S_IFDIR = 0x4000 64 S_IFBLK = 0x6000 65 S_IFREG = 0x8000 66 S_IFLNK = 0xa000 67 S_IFSOCK = 0xc000 68 S_ISUID = 0x800 69 S_ISGID = 0x400 70 S_ISVTX = 0x200 71 S_IRUSR = 0x100 72 S_IWUSR = 0x80 73 S_IXUSR = 0x40 74 ) 75 76 type Stat_t struct { 77 Dev uint32 78 Ino uint32 79 Mode uint16 80 Nlink uint16 81 Uid uint32 82 Gid uint32 83 Rdev uint32 84 Atimespec Timespec 85 Mtimespec Timespec 86 Ctimespec Timespec 87 Size int64 88 Blocks int64 89 Blksize uint32 90 Flags uint32 91 Gen uint32 92 Lspare int32 93 Birthtimespec Timespec 94 } 95 96 type Statfs_t struct { 97 Version uint32 98 Type uint32 99 Flags uint64 100 Bsize uint64 101 Iosize uint64 102 Blocks uint64 103 Bfree uint64 104 Bavail int64 105 Files uint64 106 Ffree int64 107 Syncwrites uint64 108 Asyncwrites uint64 109 Syncreads uint64 110 Asyncreads uint64 111 Spare [10]uint64 112 Namemax uint32 113 Owner uint32 114 Fsid Fsid 115 Charspare [80]int8 116 Fstypename [16]int8 117 Mntfromname [88]int8 118 Mntonname [88]int8 119 } 120 121 type Flock_t struct { 122 Start int64 123 Len int64 124 Pid int32 125 Type int16 126 Whence int16 127 Sysid int32 128 Pad_cgo_0 [4]byte 129 } 130 131 type Dirent struct { 132 Fileno uint32 133 Reclen uint16 134 Type uint8 135 Namlen 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 [46]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 uint32 198 } 199 200 type IPMreq struct { 201 Multiaddr [4]byte /* in_addr */ 202 Interface [4]byte /* in_addr */ 203 } 204 205 type IPMreqn struct { 206 Multiaddr [4]byte /* in_addr */ 207 Address [4]byte /* in_addr */ 208 Ifindex int32 209 } 210 211 type IPv6Mreq struct { 212 Multiaddr [16]byte /* in6_addr */ 213 Interface uint32 214 } 215 216 type Msghdr struct { 217 Name *byte 218 Namelen uint32 219 Iov *Iovec 220 Iovlen int32 221 Control *byte 222 Controllen uint32 223 Flags int32 224 } 225 226 type Cmsghdr struct { 227 Len uint32 228 Level int32 229 Type int32 230 } 231 232 type Inet6Pktinfo struct { 233 Addr [16]byte /* in6_addr */ 234 Ifindex uint32 235 } 236 237 type IPv6MTUInfo struct { 238 Addr RawSockaddrInet6 239 Mtu uint32 240 } 241 242 type ICMPv6Filter struct { 243 Filt [8]uint32 244 } 245 246 const ( 247 SizeofSockaddrInet4 = 0x10 248 SizeofSockaddrInet6 = 0x1c 249 SizeofSockaddrAny = 0x6c 250 SizeofSockaddrUnix = 0x6a 251 SizeofSockaddrDatalink = 0x36 252 SizeofLinger = 0x8 253 SizeofIPMreq = 0x8 254 SizeofIPMreqn = 0xc 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 int32 275 Udata *byte 276 } 277 278 type FdSet struct { 279 X__fds_bits [32]uint32 280 } 281 282 const ( 283 sizeofIfMsghdr = 0x70 284 SizeofIfMsghdr = 0x70 285 sizeofIfData = 0x60 286 SizeofIfData = 0x60 287 SizeofIfaMsghdr = 0x14 288 SizeofIfmaMsghdr = 0x10 289 SizeofIfAnnounceMsghdr = 0x18 290 SizeofRtMsghdr = 0x5c 291 SizeofRtMetrics = 0x38 292 ) 293 294 type ifMsghdr struct { 295 Msglen uint16 296 Version uint8 297 Type uint8 298 Addrs int32 299 Flags int32 300 Index uint16 301 Pad_cgo_0 [2]byte 302 Data ifData 303 } 304 305 type IfMsghdr struct { 306 Msglen uint16 307 Version uint8 308 Type uint8 309 Addrs int32 310 Flags int32 311 Index uint16 312 Pad_cgo_0 [2]byte 313 Data IfData 314 } 315 316 type ifData struct { 317 Type uint8 318 Physical uint8 319 Addrlen uint8 320 Hdrlen uint8 321 Link_state uint8 322 Vhid uint8 323 Baudrate_pf uint8 324 Datalen uint8 325 Mtu uint32 326 Metric uint32 327 Baudrate uint32 328 Ipackets uint32 329 Ierrors uint32 330 Opackets uint32 331 Oerrors uint32 332 Collisions uint32 333 Ibytes uint32 334 Obytes uint32 335 Imcasts uint32 336 Omcasts uint32 337 Iqdrops uint32 338 Noproto uint32 339 Hwassist uint64 340 Epoch int64 341 Lastchange Timeval 342 } 343 344 type IfData struct { 345 Type uint8 346 Physical uint8 347 Addrlen uint8 348 Hdrlen uint8 349 Link_state uint8 350 Spare_char1 uint8 351 Spare_char2 uint8 352 Datalen uint8 353 Mtu uint32 354 Metric uint32 355 Baudrate uint32 356 Ipackets uint32 357 Ierrors uint32 358 Opackets uint32 359 Oerrors uint32 360 Collisions uint32 361 Ibytes uint32 362 Obytes uint32 363 Imcasts uint32 364 Omcasts uint32 365 Iqdrops uint32 366 Noproto uint32 367 Hwassist uint32 368 Pad_cgo_0 [4]byte 369 Epoch int64 370 Lastchange Timeval 371 } 372 373 type IfaMsghdr struct { 374 Msglen uint16 375 Version uint8 376 Type uint8 377 Addrs int32 378 Flags int32 379 Index uint16 380 Pad_cgo_0 [2]byte 381 Metric int32 382 } 383 384 type IfmaMsghdr struct { 385 Msglen uint16 386 Version uint8 387 Type uint8 388 Addrs int32 389 Flags int32 390 Index uint16 391 Pad_cgo_0 [2]byte 392 } 393 394 type IfAnnounceMsghdr struct { 395 Msglen uint16 396 Version uint8 397 Type uint8 398 Index uint16 399 Name [16]int8 400 What uint16 401 } 402 403 type RtMsghdr struct { 404 Msglen uint16 405 Version uint8 406 Type uint8 407 Index uint16 408 Pad_cgo_0 [2]byte 409 Flags int32 410 Addrs int32 411 Pid int32 412 Seq int32 413 Errno int32 414 Fmask int32 415 Inits uint32 416 Rmx RtMetrics 417 } 418 419 type RtMetrics struct { 420 Locks uint32 421 Mtu uint32 422 Hopcount uint32 423 Expire uint32 424 Recvpipe uint32 425 Sendpipe uint32 426 Ssthresh uint32 427 Rtt uint32 428 Rttvar uint32 429 Pksent uint32 430 Weight uint32 431 Filler [3]uint32 432 } 433 434 const ( 435 SizeofBpfVersion = 0x4 436 SizeofBpfStat = 0x8 437 SizeofBpfZbuf = 0xc 438 SizeofBpfProgram = 0x8 439 SizeofBpfInsn = 0x8 440 SizeofBpfHdr = 0x20 441 SizeofBpfZbufHeader = 0x20 442 ) 443 444 type BpfVersion struct { 445 Major uint16 446 Minor uint16 447 } 448 449 type BpfStat struct { 450 Recv uint32 451 Drop uint32 452 } 453 454 type BpfZbuf struct { 455 Bufa *byte 456 Bufb *byte 457 Buflen uint32 458 } 459 460 type BpfProgram struct { 461 Len uint32 462 Insns *BpfInsn 463 } 464 465 type BpfInsn struct { 466 Code uint16 467 Jt uint8 468 Jf uint8 469 K uint32 470 } 471 472 type BpfHdr struct { 473 Tstamp Timeval 474 Caplen uint32 475 Datalen uint32 476 Hdrlen uint16 477 Pad_cgo_0 [6]byte 478 } 479 480 type BpfZbufHeader struct { 481 Kernel_gen uint32 482 Kernel_len uint32 483 User_gen uint32 484 X_bzh_pad [5]uint32 485 } 486 487 type Termios struct { 488 Iflag uint32 489 Oflag uint32 490 Cflag uint32 491 Lflag uint32 492 Cc [20]uint8 493 Ispeed uint32 494 Ospeed uint32 495 }