1// cgo -godefs types_darwin.go | go run mkpost.go 2// Code generated by the command above; see README.md. DO NOT EDIT. 3 4// +build arm,darwin 5 6package unix 7 8const ( 9 SizeofPtr = 0x4 10 SizeofShort = 0x2 11 SizeofInt = 0x4 12 SizeofLong = 0x4 13 SizeofLongLong = 0x8 14) 15 16type ( 17 _C_short int16 18 _C_int int32 19 _C_long int32 20 _C_long_long int64 21) 22 23type Timespec struct { 24 Sec int32 25 Nsec int32 26} 27 28type Timeval struct { 29 Sec int32 30 Usec int32 31} 32 33type Timeval32 struct{} 34 35type Rusage struct { 36 Utime Timeval 37 Stime Timeval 38 Maxrss int32 39 Ixrss int32 40 Idrss int32 41 Isrss int32 42 Minflt int32 43 Majflt int32 44 Nswap int32 45 Inblock int32 46 Oublock int32 47 Msgsnd int32 48 Msgrcv int32 49 Nsignals int32 50 Nvcsw int32 51 Nivcsw int32 52} 53 54type Rlimit struct { 55 Cur uint64 56 Max uint64 57} 58 59type _Gid_t uint32 60 61type Stat_t struct { 62 Dev int32 63 Mode uint16 64 Nlink uint16 65 Ino uint64 66 Uid uint32 67 Gid uint32 68 Rdev int32 69 Atim Timespec 70 Mtim Timespec 71 Ctim Timespec 72 Btim Timespec 73 Size int64 74 Blocks int64 75 Blksize int32 76 Flags uint32 77 Gen uint32 78 Lspare int32 79 Qspare [2]int64 80} 81 82type Statfs_t struct { 83 Bsize uint32 84 Iosize int32 85 Blocks uint64 86 Bfree uint64 87 Bavail uint64 88 Files uint64 89 Ffree uint64 90 Fsid Fsid 91 Owner uint32 92 Type uint32 93 Flags uint32 94 Fssubtype uint32 95 Fstypename [16]byte 96 Mntonname [1024]byte 97 Mntfromname [1024]byte 98 Reserved [8]uint32 99} 100 101type Flock_t struct { 102 Start int64 103 Len int64 104 Pid int32 105 Type int16 106 Whence int16 107} 108 109type Fstore_t struct { 110 Flags uint32 111 Posmode int32 112 Offset int64 113 Length int64 114 Bytesalloc int64 115} 116 117type Radvisory_t struct { 118 Offset int64 119 Count int32 120} 121 122type Fbootstraptransfer_t struct { 123 Offset int64 124 Length uint32 125 Buffer *byte 126} 127 128type Log2phys_t struct { 129 Flags uint32 130 Contigbytes int64 131 Devoffset int64 132} 133 134type Fsid struct { 135 Val [2]int32 136} 137 138type Dirent struct { 139 Ino uint64 140 Seekoff uint64 141 Reclen uint16 142 Namlen uint16 143 Type uint8 144 Name [1024]int8 145 _ [3]byte 146} 147 148const ( 149 PathMax = 0x400 150) 151 152type RawSockaddrInet4 struct { 153 Len uint8 154 Family uint8 155 Port uint16 156 Addr [4]byte /* in_addr */ 157 Zero [8]int8 158} 159 160type 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 169type RawSockaddrUnix struct { 170 Len uint8 171 Family uint8 172 Path [104]int8 173} 174 175type 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 186type RawSockaddr struct { 187 Len uint8 188 Family uint8 189 Data [14]int8 190} 191 192type RawSockaddrAny struct { 193 Addr RawSockaddr 194 Pad [92]int8 195} 196 197type RawSockaddrCtl struct { 198 Sc_len uint8 199 Sc_family uint8 200 Ss_sysaddr uint16 201 Sc_id uint32 202 Sc_unit uint32 203 Sc_reserved [5]uint32 204} 205 206type _Socklen uint32 207 208type Linger struct { 209 Onoff int32 210 Linger int32 211} 212 213type Iovec struct { 214 Base *byte 215 Len uint32 216} 217 218type IPMreq struct { 219 Multiaddr [4]byte /* in_addr */ 220 Interface [4]byte /* in_addr */ 221} 222 223type IPv6Mreq struct { 224 Multiaddr [16]byte /* in6_addr */ 225 Interface uint32 226} 227 228type Msghdr struct { 229 Name *byte 230 Namelen uint32 231 Iov *Iovec 232 Iovlen int32 233 Control *byte 234 Controllen uint32 235 Flags int32 236} 237 238type Cmsghdr struct { 239 Len uint32 240 Level int32 241 Type int32 242} 243 244type Inet4Pktinfo struct { 245 Ifindex uint32 246 Spec_dst [4]byte /* in_addr */ 247 Addr [4]byte /* in_addr */ 248} 249 250type Inet6Pktinfo struct { 251 Addr [16]byte /* in6_addr */ 252 Ifindex uint32 253} 254 255type IPv6MTUInfo struct { 256 Addr RawSockaddrInet6 257 Mtu uint32 258} 259 260type ICMPv6Filter struct { 261 Filt [8]uint32 262} 263 264const ( 265 SizeofSockaddrInet4 = 0x10 266 SizeofSockaddrInet6 = 0x1c 267 SizeofSockaddrAny = 0x6c 268 SizeofSockaddrUnix = 0x6a 269 SizeofSockaddrDatalink = 0x14 270 SizeofSockaddrCtl = 0x20 271 SizeofLinger = 0x8 272 SizeofIovec = 0x8 273 SizeofIPMreq = 0x8 274 SizeofIPv6Mreq = 0x14 275 SizeofMsghdr = 0x1c 276 SizeofCmsghdr = 0xc 277 SizeofInet4Pktinfo = 0xc 278 SizeofInet6Pktinfo = 0x14 279 SizeofIPv6MTUInfo = 0x20 280 SizeofICMPv6Filter = 0x20 281) 282 283const ( 284 PTRACE_TRACEME = 0x0 285 PTRACE_CONT = 0x7 286 PTRACE_KILL = 0x8 287) 288 289type Kevent_t struct { 290 Ident uint32 291 Filter int16 292 Flags uint16 293 Fflags uint32 294 Data int32 295 Udata *byte 296} 297 298type FdSet struct { 299 Bits [32]int32 300} 301 302const ( 303 SizeofIfMsghdr = 0x70 304 SizeofIfData = 0x60 305 SizeofIfaMsghdr = 0x14 306 SizeofIfmaMsghdr = 0x10 307 SizeofIfmaMsghdr2 = 0x14 308 SizeofRtMsghdr = 0x5c 309 SizeofRtMetrics = 0x38 310) 311 312type IfMsghdr struct { 313 Msglen uint16 314 Version uint8 315 Type uint8 316 Addrs int32 317 Flags int32 318 Index uint16 319 Data IfData 320} 321 322type IfData struct { 323 Type uint8 324 Typelen uint8 325 Physical uint8 326 Addrlen uint8 327 Hdrlen uint8 328 Recvquota uint8 329 Xmitquota uint8 330 Unused1 uint8 331 Mtu uint32 332 Metric uint32 333 Baudrate uint32 334 Ipackets uint32 335 Ierrors uint32 336 Opackets uint32 337 Oerrors uint32 338 Collisions uint32 339 Ibytes uint32 340 Obytes uint32 341 Imcasts uint32 342 Omcasts uint32 343 Iqdrops uint32 344 Noproto uint32 345 Recvtiming uint32 346 Xmittiming uint32 347 Lastchange Timeval 348 Unused2 uint32 349 Hwassist uint32 350 Reserved1 uint32 351 Reserved2 uint32 352} 353 354type IfaMsghdr struct { 355 Msglen uint16 356 Version uint8 357 Type uint8 358 Addrs int32 359 Flags int32 360 Index uint16 361 Metric int32 362} 363 364type IfmaMsghdr struct { 365 Msglen uint16 366 Version uint8 367 Type uint8 368 Addrs int32 369 Flags int32 370 Index uint16 371 _ [2]byte 372} 373 374type IfmaMsghdr2 struct { 375 Msglen uint16 376 Version uint8 377 Type uint8 378 Addrs int32 379 Flags int32 380 Index uint16 381 Refcount int32 382} 383 384type RtMsghdr struct { 385 Msglen uint16 386 Version uint8 387 Type uint8 388 Index uint16 389 Flags int32 390 Addrs int32 391 Pid int32 392 Seq int32 393 Errno int32 394 Use int32 395 Inits uint32 396 Rmx RtMetrics 397} 398 399type RtMetrics struct { 400 Locks uint32 401 Mtu uint32 402 Hopcount uint32 403 Expire int32 404 Recvpipe uint32 405 Sendpipe uint32 406 Ssthresh uint32 407 Rtt uint32 408 Rttvar uint32 409 Pksent uint32 410 State uint32 411 Filler [3]uint32 412} 413 414const ( 415 SizeofBpfVersion = 0x4 416 SizeofBpfStat = 0x8 417 SizeofBpfProgram = 0x8 418 SizeofBpfInsn = 0x8 419 SizeofBpfHdr = 0x14 420) 421 422type BpfVersion struct { 423 Major uint16 424 Minor uint16 425} 426 427type BpfStat struct { 428 Recv uint32 429 Drop uint32 430} 431 432type BpfProgram struct { 433 Len uint32 434 Insns *BpfInsn 435} 436 437type BpfInsn struct { 438 Code uint16 439 Jt uint8 440 Jf uint8 441 K uint32 442} 443 444type BpfHdr struct { 445 Tstamp Timeval 446 Caplen uint32 447 Datalen uint32 448 Hdrlen uint16 449 _ [2]byte 450} 451 452type Termios struct { 453 Iflag uint32 454 Oflag uint32 455 Cflag uint32 456 Lflag uint32 457 Cc [20]uint8 458 Ispeed uint32 459 Ospeed uint32 460} 461 462type Winsize struct { 463 Row uint16 464 Col uint16 465 Xpixel uint16 466 Ypixel uint16 467} 468 469const ( 470 AT_FDCWD = -0x2 471 AT_REMOVEDIR = 0x80 472 AT_SYMLINK_FOLLOW = 0x40 473 AT_SYMLINK_NOFOLLOW = 0x20 474) 475 476type PollFd struct { 477 Fd int32 478 Events int16 479 Revents int16 480} 481 482const ( 483 POLLERR = 0x8 484 POLLHUP = 0x10 485 POLLIN = 0x1 486 POLLNVAL = 0x20 487 POLLOUT = 0x4 488 POLLPRI = 0x2 489 POLLRDBAND = 0x80 490 POLLRDNORM = 0x40 491 POLLWRBAND = 0x100 492 POLLWRNORM = 0x4 493) 494 495type Utsname struct { 496 Sysname [256]byte 497 Nodename [256]byte 498 Release [256]byte 499 Version [256]byte 500 Machine [256]byte 501} 502 503const SizeofClockinfo = 0x14 504 505type Clockinfo struct { 506 Hz int32 507 Tick int32 508 Tickadj int32 509 Stathz int32 510 Profhz int32 511} 512 513type CtlInfo struct { 514 Id uint32 515 Name [96]byte 516} 517