github.com/hbdrawn/golang@v0.0.0-20141214014649-6b835209aba2/src/syscall/ztypes_darwin_amd64.go (about) 1 // Created by cgo -godefs - DO NOT EDIT 2 // cgo -godefs types_darwin.go 3 4 package syscall 5 6 const ( 7 sizeofPtr = 0x8 8 sizeofShort = 0x2 9 sizeofInt = 0x4 10 sizeofLong = 0x8 11 sizeofLongLong = 0x8 12 ) 13 14 type ( 15 _C_short int16 16 _C_int int32 17 _C_long int64 18 _C_long_long int64 19 ) 20 21 type Timespec struct { 22 Sec int64 23 Nsec int64 24 } 25 26 type Timeval struct { 27 Sec int64 28 Usec int32 29 Pad_cgo_0 [4]byte 30 } 31 32 type Timeval32 struct { 33 Sec int32 34 Usec int32 35 } 36 37 type Rusage struct { 38 Utime Timeval 39 Stime Timeval 40 Maxrss int64 41 Ixrss int64 42 Idrss int64 43 Isrss int64 44 Minflt int64 45 Majflt int64 46 Nswap int64 47 Inblock int64 48 Oublock int64 49 Msgsnd int64 50 Msgrcv int64 51 Nsignals int64 52 Nvcsw int64 53 Nivcsw int64 54 } 55 56 type Rlimit struct { 57 Cur uint64 58 Max uint64 59 } 60 61 type _Gid_t uint32 62 63 type Stat_t struct { 64 Dev int32 65 Mode uint16 66 Nlink uint16 67 Ino uint64 68 Uid uint32 69 Gid uint32 70 Rdev int32 71 Pad_cgo_0 [4]byte 72 Atimespec Timespec 73 Mtimespec Timespec 74 Ctimespec Timespec 75 Birthtimespec Timespec 76 Size int64 77 Blocks int64 78 Blksize int32 79 Flags uint32 80 Gen uint32 81 Lspare int32 82 Qspare [2]int64 83 } 84 85 type Statfs_t struct { 86 Bsize uint32 87 Iosize int32 88 Blocks uint64 89 Bfree uint64 90 Bavail uint64 91 Files uint64 92 Ffree uint64 93 Fsid Fsid 94 Owner uint32 95 Type uint32 96 Flags uint32 97 Fssubtype uint32 98 Fstypename [16]int8 99 Mntonname [1024]int8 100 Mntfromname [1024]int8 101 Reserved [8]uint32 102 } 103 104 type Flock_t struct { 105 Start int64 106 Len int64 107 Pid int32 108 Type int16 109 Whence int16 110 } 111 112 type Fstore_t struct { 113 Flags uint32 114 Posmode int32 115 Offset int64 116 Length int64 117 Bytesalloc int64 118 } 119 120 type Radvisory_t struct { 121 Offset int64 122 Count int32 123 Pad_cgo_0 [4]byte 124 } 125 126 type Fbootstraptransfer_t struct { 127 Offset int64 128 Length uint64 129 Buffer *byte 130 } 131 132 type Log2phys_t struct { 133 Flags uint32 134 Contigbytes int64 135 Devoffset int64 136 } 137 138 type Fsid struct { 139 Val [2]int32 140 } 141 142 type Dirent struct { 143 Ino uint64 144 Seekoff uint64 145 Reclen uint16 146 Namlen uint16 147 Type uint8 148 Name [1024]int8 149 Pad_cgo_0 [3]byte 150 } 151 152 type RawSockaddrInet4 struct { 153 Len uint8 154 Family uint8 155 Port uint16 156 Addr [4]byte /* in_addr */ 157 Zero [8]int8 158 } 159 160 type RawSockaddrInet6 struct { 161 Len uint8 162 Family uint8 163 Port uint16 164 Flowinfo uint32 165 Addr [16]byte /* in6_addr */ 166 Scope_id uint32 167 } 168 169 type RawSockaddrUnix struct { 170 Len uint8 171 Family uint8 172 Path [104]int8 173 } 174 175 type RawSockaddrDatalink struct { 176 Len uint8 177 Family uint8 178 Index uint16 179 Type uint8 180 Nlen uint8 181 Alen uint8 182 Slen uint8 183 Data [12]int8 184 } 185 186 type RawSockaddr struct { 187 Len uint8 188 Family uint8 189 Data [14]int8 190 } 191 192 type RawSockaddrAny struct { 193 Addr RawSockaddr 194 Pad [92]int8 195 } 196 197 type _Socklen uint32 198 199 type Linger struct { 200 Onoff int32 201 Linger int32 202 } 203 204 type Iovec struct { 205 Base *byte 206 Len uint64 207 } 208 209 type IPMreq struct { 210 Multiaddr [4]byte /* in_addr */ 211 Interface [4]byte /* in_addr */ 212 } 213 214 type IPv6Mreq struct { 215 Multiaddr [16]byte /* in6_addr */ 216 Interface uint32 217 } 218 219 type Msghdr struct { 220 Name *byte 221 Namelen uint32 222 Pad_cgo_0 [4]byte 223 Iov *Iovec 224 Iovlen int32 225 Pad_cgo_1 [4]byte 226 Control *byte 227 Controllen uint32 228 Flags int32 229 } 230 231 type Cmsghdr struct { 232 Len uint32 233 Level int32 234 Type int32 235 } 236 237 type Inet4Pktinfo struct { 238 Ifindex uint32 239 Spec_dst [4]byte /* in_addr */ 240 Addr [4]byte /* in_addr */ 241 } 242 243 type Inet6Pktinfo struct { 244 Addr [16]byte /* in6_addr */ 245 Ifindex uint32 246 } 247 248 type IPv6MTUInfo struct { 249 Addr RawSockaddrInet6 250 Mtu uint32 251 } 252 253 type ICMPv6Filter struct { 254 Filt [8]uint32 255 } 256 257 const ( 258 SizeofSockaddrInet4 = 0x10 259 SizeofSockaddrInet6 = 0x1c 260 SizeofSockaddrAny = 0x6c 261 SizeofSockaddrUnix = 0x6a 262 SizeofSockaddrDatalink = 0x14 263 SizeofLinger = 0x8 264 SizeofIPMreq = 0x8 265 SizeofIPv6Mreq = 0x14 266 SizeofMsghdr = 0x30 267 SizeofCmsghdr = 0xc 268 SizeofInet4Pktinfo = 0xc 269 SizeofInet6Pktinfo = 0x14 270 SizeofIPv6MTUInfo = 0x20 271 SizeofICMPv6Filter = 0x20 272 ) 273 274 const ( 275 PTRACE_TRACEME = 0x0 276 PTRACE_CONT = 0x7 277 PTRACE_KILL = 0x8 278 ) 279 280 type Kevent_t struct { 281 Ident uint64 282 Filter int16 283 Flags uint16 284 Fflags uint32 285 Data int64 286 Udata *byte 287 } 288 289 type FdSet struct { 290 Bits [32]int32 291 } 292 293 const ( 294 SizeofIfMsghdr = 0x70 295 SizeofIfData = 0x60 296 SizeofIfaMsghdr = 0x14 297 SizeofIfmaMsghdr = 0x10 298 SizeofIfmaMsghdr2 = 0x14 299 SizeofRtMsghdr = 0x5c 300 SizeofRtMetrics = 0x38 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 Typelen uint8 317 Physical uint8 318 Addrlen uint8 319 Hdrlen uint8 320 Recvquota uint8 321 Xmitquota uint8 322 Unused1 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 Recvtiming uint32 338 Xmittiming uint32 339 Lastchange Timeval32 340 Unused2 uint32 341 Hwassist uint32 342 Reserved1 uint32 343 Reserved2 uint32 344 } 345 346 type IfaMsghdr 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 Metric int32 355 } 356 357 type IfmaMsghdr struct { 358 Msglen uint16 359 Version uint8 360 Type uint8 361 Addrs int32 362 Flags int32 363 Index uint16 364 Pad_cgo_0 [2]byte 365 } 366 367 type IfmaMsghdr2 struct { 368 Msglen uint16 369 Version uint8 370 Type uint8 371 Addrs int32 372 Flags int32 373 Index uint16 374 Pad_cgo_0 [2]byte 375 Refcount int32 376 } 377 378 type RtMsghdr struct { 379 Msglen uint16 380 Version uint8 381 Type uint8 382 Index uint16 383 Pad_cgo_0 [2]byte 384 Flags int32 385 Addrs int32 386 Pid int32 387 Seq int32 388 Errno int32 389 Use int32 390 Inits uint32 391 Rmx RtMetrics 392 } 393 394 type RtMetrics struct { 395 Locks uint32 396 Mtu uint32 397 Hopcount uint32 398 Expire int32 399 Recvpipe uint32 400 Sendpipe uint32 401 Ssthresh uint32 402 Rtt uint32 403 Rttvar uint32 404 Pksent uint32 405 Filler [4]uint32 406 } 407 408 const ( 409 SizeofBpfVersion = 0x4 410 SizeofBpfStat = 0x8 411 SizeofBpfProgram = 0x10 412 SizeofBpfInsn = 0x8 413 SizeofBpfHdr = 0x14 414 ) 415 416 type BpfVersion struct { 417 Major uint16 418 Minor uint16 419 } 420 421 type BpfStat struct { 422 Recv uint32 423 Drop uint32 424 } 425 426 type BpfProgram struct { 427 Len uint32 428 Pad_cgo_0 [4]byte 429 Insns *BpfInsn 430 } 431 432 type BpfInsn struct { 433 Code uint16 434 Jt uint8 435 Jf uint8 436 K uint32 437 } 438 439 type BpfHdr struct { 440 Tstamp Timeval32 441 Caplen uint32 442 Datalen uint32 443 Hdrlen uint16 444 Pad_cgo_0 [2]byte 445 } 446 447 type Termios struct { 448 Iflag uint64 449 Oflag uint64 450 Cflag uint64 451 Lflag uint64 452 Cc [20]uint8 453 Pad_cgo_0 [4]byte 454 Ispeed uint64 455 Ospeed uint64 456 }