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