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