modernc.org/z@v1.7.4/lib/z_darwin_amd64.go (about) 1 // Code generated by 'ccgo -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -o lib/z_darwin_amd64.go -pkgname z -trace-translation-units /var/folders/b1/8mwd0y2x52l16_sqf8zbtz8r0000gn/T/go-generate-710484336/cdb.json libz.a', DO NOT EDIT. 2 3 package z 4 5 import ( 6 "math" 7 "reflect" 8 "sync/atomic" 9 "unsafe" 10 11 "modernc.org/libc" 12 "modernc.org/libc/sys/types" 13 ) 14 15 var _ = math.Pi 16 var _ reflect.Kind 17 var _ atomic.Value 18 var _ unsafe.Pointer 19 var _ types.Size_t 20 21 const ( 22 ACCESSX_MAX_DESCRIPTORS = 100 23 ACCESSX_MAX_TABLESIZE = 16384 24 ARG_MAX = 262144 25 BASE = 65521 26 BC_BASE_MAX = 99 27 BC_DIM_MAX = 2048 28 BC_SCALE_MAX = 99 29 BC_STRING_MAX = 1000 30 BIG_ENDIAN = 4321 31 BUS_ADRALN = 1 32 BUS_ADRERR = 2 33 BUS_NOOP = 0 34 BUS_OBJERR = 3 35 BYTE_ORDER = 1234 36 CHARCLASS_NAME_MAX = 14 37 CHAR_BIT = 8 38 CHAR_MAX = 127 39 CHAR_MIN = -128 40 CHILD_MAX = 266 41 CLD_CONTINUED = 6 42 CLD_DUMPED = 3 43 CLD_EXITED = 1 44 CLD_KILLED = 2 45 CLD_NOOP = 0 46 CLD_STOPPED = 5 47 CLD_TRAPPED = 4 48 CLK_TCK = 100 49 COLL_WEIGHTS_MAX = 2 50 CPUMON_MAKE_FATAL = 0x1000 51 DEF_MEM_LEVEL = 8 52 DEF_WBITS = 15 53 DYN_TREES = 2 54 EQUIV_CLASS_MAX = 2 55 EXIT_FAILURE = 1 56 EXIT_SUCCESS = 0 57 EXPR_NEST_MAX = 32 58 FAR = 0 59 FD_SETSIZE = 1024 60 FOOTPRINT_INTERVAL_RESET = 0x1 61 FPE_FLTDIV = 1 62 FPE_FLTINV = 5 63 FPE_FLTOVF = 2 64 FPE_FLTRES = 4 65 FPE_FLTSUB = 6 66 FPE_FLTUND = 3 67 FPE_INTDIV = 7 68 FPE_INTOVF = 8 69 FPE_NOOP = 0 70 FP_CHOP = 3 71 FP_PREC_24B = 0 72 FP_PREC_53B = 2 73 FP_PREC_64B = 3 74 FP_RND_DOWN = 1 75 FP_RND_NEAR = 0 76 FP_RND_UP = 2 77 FP_STATE_BYTES = 512 78 F_LOCK = 1 79 F_OK = 0 80 F_TEST = 3 81 F_TLOCK = 2 82 F_ULOCK = 0 83 GID_MAX = 2147483647 84 HAVE_HIDDEN = 1 85 HAVE_MEMCPY = 0 86 ILL_BADSTK = 8 87 ILL_COPROC = 7 88 ILL_ILLADR = 5 89 ILL_ILLOPC = 1 90 ILL_ILLOPN = 4 91 ILL_ILLTRP = 2 92 ILL_NOOP = 0 93 ILL_PRVOPC = 3 94 ILL_PRVREG = 6 95 INT16_MAX = 32767 96 INT16_MIN = -32768 97 INT32_MAX = 2147483647 98 INT32_MIN = -2147483648 99 INT64_MAX = 9223372036854775807 100 INT64_MIN = -9223372036854775808 101 INT8_MAX = 127 102 INT8_MIN = -128 103 INTMAX_MAX = 9223372036854775807 104 INTMAX_MIN = -9223372036854775808 105 INTPTR_MAX = 9223372036854775807 106 INTPTR_MIN = -9223372036854775808 107 INT_FAST16_MAX = 32767 108 INT_FAST16_MIN = -32768 109 INT_FAST32_MAX = 2147483647 110 INT_FAST32_MIN = -2147483648 111 INT_FAST64_MAX = 9223372036854775807 112 INT_FAST64_MIN = -9223372036854775808 113 INT_FAST8_MAX = 127 114 INT_FAST8_MIN = -128 115 INT_LEAST16_MAX = 32767 116 INT_LEAST16_MIN = -32768 117 INT_LEAST32_MAX = 2147483647 118 INT_LEAST32_MIN = -2147483648 119 INT_LEAST64_MAX = 9223372036854775807 120 INT_LEAST64_MIN = -9223372036854775808 121 INT_LEAST8_MAX = 127 122 INT_LEAST8_MIN = -128 123 INT_MAX = 2147483647 124 INT_MIN = -2147483648 125 IOPOL_APPLICATION = 5 126 IOPOL_ATIME_UPDATES_DEFAULT = 0 127 IOPOL_ATIME_UPDATES_OFF = 1 128 IOPOL_DEFAULT = 0 129 IOPOL_IMPORTANT = 1 130 IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT = 0 131 IOPOL_MATERIALIZE_DATALESS_FILES_OFF = 1 132 IOPOL_MATERIALIZE_DATALESS_FILES_ON = 2 133 IOPOL_NORMAL = 1 134 IOPOL_PASSIVE = 2 135 IOPOL_SCOPE_DARWIN_BG = 2 136 IOPOL_SCOPE_PROCESS = 0 137 IOPOL_SCOPE_THREAD = 1 138 IOPOL_STANDARD = 5 139 IOPOL_THROTTLE = 3 140 IOPOL_TYPE_DISK = 0 141 IOPOL_TYPE_VFS_ATIME_UPDATES = 2 142 IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES = 3 143 IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME = 4 144 IOPOL_UTILITY = 4 145 IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME = 1 146 IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT = 0 147 IOV_MAX = 1024 148 LINE_MAX = 2048 149 LINK_MAX = 32767 150 LITTLE_ENDIAN = 1234 151 LLONG_MAX = 9223372036854775807 152 LLONG_MIN = -9223372036854775808 153 LONG_BIT = 64 154 LONG_LONG_MAX = 9223372036854775807 155 LONG_LONG_MIN = -9223372036854775808 156 LONG_MAX = 9223372036854775807 157 LONG_MIN = -9223372036854775808 158 L_INCR = 1 159 L_SET = 0 160 L_XTND = 2 161 MAX_CANON = 1024 162 MAX_INPUT = 1024 163 MAX_MATCH = 258 164 MAX_MEM_LEVEL = 9 165 MAX_WBITS = 15 166 MB_LEN_MAX = 6 167 MINSIGSTKSZ = 32768 168 MIN_MATCH = 3 169 NAME_MAX = 255 170 NBBY = 8 171 NGROUPS_MAX = 16 172 NL_ARGMAX = 9 173 NL_LANGMAX = 14 174 NL_MSGMAX = 32767 175 NL_NMAX = 1 176 NL_SETMAX = 255 177 NL_TEXTMAX = 2048 178 NMAX = 5552 179 NSIG = 32 180 NZERO = 20 181 OFF_MAX = 9223372036854775807 182 OFF_MIN = -9223372036854775808 183 OPEN_MAX = 10240 184 OS_CODE = 19 185 PASS_MAX = 128 186 PATH_MAX = 1024 187 PDP_ENDIAN = 3412 188 PIPE_BUF = 512 189 POLL_ERR = 4 190 POLL_HUP = 6 191 POLL_IN = 1 192 POLL_MSG = 3 193 POLL_OUT = 2 194 POLL_PRI = 5 195 PRESET_DICT = 0x20 196 PRIO_DARWIN_BG = 0x1000 197 PRIO_DARWIN_NONUI = 0x1001 198 PRIO_DARWIN_PROCESS = 4 199 PRIO_DARWIN_THREAD = 3 200 PRIO_MAX = 20 201 PRIO_MIN = -20 202 PRIO_PGRP = 1 203 PRIO_PROCESS = 0 204 PRIO_USER = 2 205 PTHREAD_DESTRUCTOR_ITERATIONS = 4 206 PTHREAD_KEYS_MAX = 512 207 PTHREAD_STACK_MIN = 8192 208 PTRDIFF_MAX = 9223372036854775807 209 PTRDIFF_MIN = -9223372036854775808 210 QUAD_MAX = 9223372036854775807 211 QUAD_MIN = -9223372036854775808 212 RAND_MAX = 0x7fffffff 213 RE_DUP_MAX = 255 214 RLIMIT_AS = 5 215 RLIMIT_CORE = 4 216 RLIMIT_CPU = 0 217 RLIMIT_CPU_USAGE_MONITOR = 0x2 218 RLIMIT_DATA = 2 219 RLIMIT_FOOTPRINT_INTERVAL = 0x4 220 RLIMIT_FSIZE = 1 221 RLIMIT_MEMLOCK = 6 222 RLIMIT_NOFILE = 8 223 RLIMIT_NPROC = 7 224 RLIMIT_RSS = 5 225 RLIMIT_STACK = 3 226 RLIMIT_THREAD_CPULIMITS = 0x3 227 RLIMIT_WAKEUPS_MONITOR = 0x1 228 RLIM_NLIMITS = 9 229 RSIZE_MAX = 9223372036854775807 230 RUSAGE_CHILDREN = -1 231 RUSAGE_INFO_CURRENT = 4 232 RUSAGE_INFO_V0 = 0 233 RUSAGE_INFO_V1 = 1 234 RUSAGE_INFO_V2 = 2 235 RUSAGE_INFO_V3 = 3 236 RUSAGE_INFO_V4 = 4 237 RUSAGE_SELF = 0 238 R_OK = 4 239 SA_64REGSET = 0x0200 240 SA_NOCLDSTOP = 0x0008 241 SA_NOCLDWAIT = 0x0020 242 SA_NODEFER = 0x0010 243 SA_ONSTACK = 0x0001 244 SA_RESETHAND = 0x0004 245 SA_RESTART = 0x0002 246 SA_SIGINFO = 0x0040 247 SA_USERSPACE_MASK = 127 248 SA_USERTRAMP = 0x0100 249 SCHAR_MAX = 127 250 SCHAR_MIN = -128 251 SEEK_CUR = 1 252 SEEK_DATA = 4 253 SEEK_END = 2 254 SEEK_HOLE = 3 255 SEEK_SET = 0 256 SEGV_ACCERR = 2 257 SEGV_MAPERR = 1 258 SEGV_NOOP = 0 259 SHRT_MAX = 32767 260 SHRT_MIN = -32768 261 SIGABRT = 6 262 SIGALRM = 14 263 SIGBUS = 10 264 SIGCHLD = 20 265 SIGCONT = 19 266 SIGEMT = 7 267 SIGEV_NONE = 0 268 SIGEV_SIGNAL = 1 269 SIGEV_THREAD = 3 270 SIGFPE = 8 271 SIGHUP = 1 272 SIGILL = 4 273 SIGINFO = 29 274 SIGINT = 2 275 SIGIO = 23 276 SIGIOT = 6 277 SIGKILL = 9 278 SIGPIPE = 13 279 SIGPROF = 27 280 SIGQUIT = 3 281 SIGSEGV = 11 282 SIGSTKSZ = 131072 283 SIGSTOP = 17 284 SIGSYS = 12 285 SIGTERM = 15 286 SIGTRAP = 5 287 SIGTSTP = 18 288 SIGTTIN = 21 289 SIGTTOU = 22 290 SIGURG = 16 291 SIGUSR1 = 30 292 SIGUSR2 = 31 293 SIGVTALRM = 26 294 SIGWINCH = 28 295 SIGXCPU = 24 296 SIGXFSZ = 25 297 SIG_ATOMIC_MAX = 2147483647 298 SIG_ATOMIC_MIN = -2147483648 299 SIG_BLOCK = 1 300 SIG_SETMASK = 3 301 SIG_UNBLOCK = 2 302 SIZE_MAX = 18446744073709551615 303 SIZE_T_MAX = 18446744073709551615 304 SI_ASYNCIO = 0x10004 305 SI_MESGQ = 0x10005 306 SI_QUEUE = 0x10002 307 SI_TIMER = 0x10003 308 SI_USER = 0x10001 309 SSIZE_MAX = 9223372036854775807 310 SS_DISABLE = 0x0004 311 SS_ONSTACK = 0x0001 312 STATIC_TREES = 1 313 STDC = 0 314 STDC99 = 0 315 STDERR_FILENO = 2 316 STDIN_FILENO = 0 317 STDOUT_FILENO = 1 318 STORED_BLOCK = 0 319 SV_INTERRUPT = 2 320 SV_NOCLDSTOP = 8 321 SV_NODEFER = 16 322 SV_ONSTACK = 1 323 SV_RESETHAND = 4 324 SV_SIGINFO = 64 325 SYNC_VOLUME_FULLSYNC = 0x01 326 SYNC_VOLUME_WAIT = 0x02 327 TRAP_BRKPT = 1 328 TRAP_TRACE = 2 329 UCHAR_MAX = 255 330 UID_MAX = 2147483647 331 UINT16_MAX = 65535 332 UINT32_MAX = 4294967295 333 UINT64_MAX = 18446744073709551615 334 UINT8_MAX = 255 335 UINTMAX_MAX = 18446744073709551615 336 UINTPTR_MAX = 18446744073709551615 337 UINT_FAST16_MAX = 65535 338 UINT_FAST32_MAX = 4294967295 339 UINT_FAST64_MAX = 18446744073709551615 340 UINT_FAST8_MAX = 255 341 UINT_LEAST16_MAX = 65535 342 UINT_LEAST32_MAX = 4294967295 343 UINT_LEAST64_MAX = 18446744073709551615 344 UINT_LEAST8_MAX = 255 345 UINT_MAX = 4294967295 346 ULLONG_MAX = 18446744073709551615 347 ULONG_LONG_MAX = 18446744073709551615 348 ULONG_MAX = 18446744073709551615 349 UQUAD_MAX = 18446744073709551615 350 USHRT_MAX = 65535 351 WAIT_ANY = -1 352 WAIT_MYPGRP = 0 353 WAKEMON_DISABLE = 0x02 354 WAKEMON_ENABLE = 0x01 355 WAKEMON_GET_PARAMS = 0x04 356 WAKEMON_MAKE_FATAL = 0x10 357 WAKEMON_SET_DEFAULTS = 0x08 358 WCHAR_MAX = 2147483647 359 WCHAR_MIN = -2147483648 360 WCONTINUED = 0x00000010 361 WCOREFLAG = 0200 362 WEXITED = 0x00000004 363 WINT_MAX = 2147483647 364 WINT_MIN = -2147483648 365 WNOHANG = 0x00000001 366 WNOWAIT = 0x00000020 367 WORD_BIT = 32 368 WSTOPPED = 0x00000008 369 WUNTRACED = 0x00000002 370 W_OK = 2 371 X_OK = 1 372 ZCONF_H = 0 373 ZEXPORT = 0 374 ZEXPORTVA = 0 375 ZLIB_H = 0 376 ZLIB_VERNUM = 0x12b0 377 ZLIB_VERSION = "1.2.11" 378 ZLIB_VER_MAJOR = 1 379 ZLIB_VER_MINOR = 2 380 ZLIB_VER_REVISION = 11 381 ZLIB_VER_SUBREVISION = 0 382 ZUTIL_H = 0 383 Z_ASCII = 1 384 Z_BEST_COMPRESSION = 9 385 Z_BEST_SPEED = 1 386 Z_BINARY = 0 387 Z_BLOCK = 5 388 Z_BUF_ERROR = -5 389 Z_DATA_ERROR = -3 390 Z_DEFAULT_COMPRESSION = -1 391 Z_DEFAULT_STRATEGY = 0 392 Z_DEFLATED = 8 393 Z_ERRNO = -1 394 Z_FILTERED = 1 395 Z_FINISH = 4 396 Z_FIXED = 4 397 Z_FULL_FLUSH = 3 398 Z_HAVE_STDARG_H = 0 399 Z_HAVE_UNISTD_H = 0 400 Z_HUFFMAN_ONLY = 2 401 Z_MEM_ERROR = -4 402 Z_NEED_DICT = 2 403 Z_NO_COMPRESSION = 0 404 Z_NO_FLUSH = 0 405 Z_NULL = 0 406 Z_OK = 0 407 Z_PARTIAL_FLUSH = 1 408 Z_RLE = 3 409 Z_STREAM_END = 1 410 Z_STREAM_ERROR = -2 411 Z_SYNC_FLUSH = 2 412 Z_TEXT = 1 413 Z_TREES = 6 414 Z_UNKNOWN = 2 415 Z_VERSION_ERROR = -6 416 X_ACCESS_EXTENDED_MASK = 4193792 417 X_ALLOCA_H_ = 0 418 X_ANSI_STDARG_H_ = 0 419 X_ANSI_STDDEF_H = 0 420 X_APPEND_OK = 8192 421 X_BLKCNT_T = 0 422 X_BLKSIZE_T = 0 423 X_BSD_I386__TYPES_H_ = 0 424 X_BSD_MACHINE_ENDIAN_H_ = 0 425 X_BSD_MACHINE_SIGNAL_H_ = 0 426 X_BSD_MACHINE_TYPES_H_ = 0 427 X_BSD_MACHINE__TYPES_H_ = 0 428 X_BSD_PTRDIFF_T_ = 0 429 X_BSD_SIZE_T_ = 0 430 X_BSD_SIZE_T_DEFINED_ = 0 431 X_CADDR_T = 0 432 X_CDEFS_H_ = 0 433 X_CHOWN_OK = 2097152 434 X_CLOCK_T = 0 435 X_CS_DARWIN_USER_CACHE_DIR = 65538 436 X_CS_DARWIN_USER_DIR = 65536 437 X_CS_DARWIN_USER_TEMP_DIR = 65537 438 X_CS_PATH = 1 439 X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2 440 X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3 441 X_CS_POSIX_V6_ILP32_OFF32_LIBS = 4 442 X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5 443 X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6 444 X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7 445 X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 8 446 X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9 447 X_CS_POSIX_V6_LP64_OFF64_LIBS = 10 448 X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11 449 X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12 450 X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13 451 X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14 452 X_CS_XBS5_ILP32_OFF32_CFLAGS = 20 453 X_CS_XBS5_ILP32_OFF32_LDFLAGS = 21 454 X_CS_XBS5_ILP32_OFF32_LIBS = 22 455 X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 23 456 X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 24 457 X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 25 458 X_CS_XBS5_ILP32_OFFBIG_LIBS = 26 459 X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 27 460 X_CS_XBS5_LP64_OFF64_CFLAGS = 28 461 X_CS_XBS5_LP64_OFF64_LDFLAGS = 29 462 X_CS_XBS5_LP64_OFF64_LIBS = 30 463 X_CS_XBS5_LP64_OFF64_LINTFLAGS = 31 464 X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 32 465 X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 33 466 X_CS_XBS5_LPBIG_OFFBIG_LIBS = 34 467 X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 35 468 X_CTERMID_H_ = 0 469 X_CT_RUNE_T = 0 470 X_DARWIN_FEATURE_64_BIT_INODE = 1 471 X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 472 X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 473 X_DELETE_OK = 4096 474 X_DEV_T = 0 475 X_ERRNO_T = 0 476 X_EXECUTE_OK = 2048 477 X_FD_SET = 0 478 X_FILE_OFFSET_BITS = 64 479 X_FORTIFY_SOURCE = 2 480 X_FSBLKCNT_T = 0 481 X_FSFILCNT_T = 0 482 X_GCC_LIMITS_H_ = 0 483 X_GCC_MAX_ALIGN_T = 0 484 X_GCC_PTRDIFF_T = 0 485 X_GCC_SIZE_T = 0 486 X_GCC_WCHAR_T = 0 487 X_GCC_WRAP_STDINT_H = 0 488 X_GID_T = 0 489 X_I386_LIMITS_H_ = 0 490 X_I386_SIGNAL_H_ = 1 491 X_I386__ENDIAN_H_ = 0 492 X_I386__LIMITS_H_ = 0 493 X_ID_T = 0 494 X_INO64_T = 0 495 X_INO_T = 0 496 X_INT16_T = 0 497 X_INT32_T = 0 498 X_INT64_T = 0 499 X_INT8_T = 0 500 X_INTMAX_T = 0 501 X_INTPTR_T = 0 502 X_IN_ADDR_T = 0 503 X_IN_PORT_T = 0 504 X_KEY_T = 0 505 X_LIMITS_H_ = 0 506 X_LIMITS_H___ = 0 507 X_LP64 = 1 508 X_MACHTYPES_H_ = 0 509 X_MACH_I386__STRUCTS_H_ = 0 510 X_MACH_MACHINE__STRUCTS_H_ = 0 511 X_MALLOC_UNDERSCORE_MALLOC_H_ = 0 512 X_MCONTEXT_T = 0 513 X_MODE_T = 0 514 X_NLINK_T = 0 515 X_Nonnull = 0 516 X_Null_unspecified = 0 517 X_Nullable = 0 518 X_OFF_T = 0 519 X_OS__OSBYTEORDERI386_H = 0 520 X_OS__OSBYTEORDER_H = 0 521 X_PC_2_SYMLINKS = 15 522 X_PC_ALLOC_SIZE_MIN = 16 523 X_PC_ASYNC_IO = 17 524 X_PC_AUTH_OPAQUE_NP = 14 525 X_PC_CASE_PRESERVING = 12 526 X_PC_CASE_SENSITIVE = 11 527 X_PC_CHOWN_RESTRICTED = 7 528 X_PC_EXTENDED_SECURITY_NP = 13 529 X_PC_FILESIZEBITS = 18 530 X_PC_LINK_MAX = 1 531 X_PC_MAX_CANON = 2 532 X_PC_MAX_INPUT = 3 533 X_PC_MIN_HOLE_SIZE = 27 534 X_PC_NAME_CHARS_MAX = 10 535 X_PC_NAME_MAX = 4 536 X_PC_NO_TRUNC = 8 537 X_PC_PATH_MAX = 5 538 X_PC_PIPE_BUF = 6 539 X_PC_PRIO_IO = 19 540 X_PC_REC_INCR_XFER_SIZE = 20 541 X_PC_REC_MAX_XFER_SIZE = 21 542 X_PC_REC_MIN_XFER_SIZE = 22 543 X_PC_REC_XFER_ALIGN = 23 544 X_PC_SYMLINK_MAX = 24 545 X_PC_SYNC_IO = 25 546 X_PC_VDISABLE = 9 547 X_PC_XATTR_SIZE_BITS = 26 548 X_PID_T = 0 549 X_POSIX2_BC_BASE_MAX = 99 550 X_POSIX2_BC_DIM_MAX = 2048 551 X_POSIX2_BC_SCALE_MAX = 99 552 X_POSIX2_BC_STRING_MAX = 1000 553 X_POSIX2_CHARCLASS_NAME_MAX = 14 554 X_POSIX2_CHAR_TERM = 200112 555 X_POSIX2_COLL_WEIGHTS_MAX = 2 556 X_POSIX2_C_BIND = 200112 557 X_POSIX2_C_DEV = 200112 558 X_POSIX2_EQUIV_CLASS_MAX = 2 559 X_POSIX2_EXPR_NEST_MAX = 32 560 X_POSIX2_FORT_DEV = -1 561 X_POSIX2_FORT_RUN = 200112 562 X_POSIX2_LINE_MAX = 2048 563 X_POSIX2_LOCALEDEF = 200112 564 X_POSIX2_PBS = -1 565 X_POSIX2_PBS_ACCOUNTING = -1 566 X_POSIX2_PBS_CHECKPOINT = -1 567 X_POSIX2_PBS_LOCATE = -1 568 X_POSIX2_PBS_MESSAGE = -1 569 X_POSIX2_PBS_TRACK = -1 570 X_POSIX2_RE_DUP_MAX = 255 571 X_POSIX2_SW_DEV = 200112 572 X_POSIX2_UPE = 200112 573 X_POSIX2_VERSION = 200112 574 X_POSIX_ADVISORY_INFO = -1 575 X_POSIX_AIO_LISTIO_MAX = 2 576 X_POSIX_AIO_MAX = 1 577 X_POSIX_ARG_MAX = 4096 578 X_POSIX_ASYNCHRONOUS_IO = -1 579 X_POSIX_BARRIERS = -1 580 X_POSIX_CHILD_MAX = 25 581 X_POSIX_CHOWN_RESTRICTED = 200112 582 X_POSIX_CLOCKRES_MIN = 20000000 583 X_POSIX_CLOCK_SELECTION = -1 584 X_POSIX_CPUTIME = -1 585 X_POSIX_DELAYTIMER_MAX = 32 586 X_POSIX_FSYNC = 200112 587 X_POSIX_HOST_NAME_MAX = 255 588 X_POSIX_IPV6 = 200112 589 X_POSIX_JOB_CONTROL = 200112 590 X_POSIX_LINK_MAX = 8 591 X_POSIX_LOGIN_NAME_MAX = 9 592 X_POSIX_MAPPED_FILES = 200112 593 X_POSIX_MAX_CANON = 255 594 X_POSIX_MAX_INPUT = 255 595 X_POSIX_MEMLOCK = -1 596 X_POSIX_MEMLOCK_RANGE = -1 597 X_POSIX_MEMORY_PROTECTION = 200112 598 X_POSIX_MESSAGE_PASSING = -1 599 X_POSIX_MONOTONIC_CLOCK = -1 600 X_POSIX_MQ_OPEN_MAX = 8 601 X_POSIX_MQ_PRIO_MAX = 32 602 X_POSIX_NAME_MAX = 14 603 X_POSIX_NGROUPS_MAX = 8 604 X_POSIX_NO_TRUNC = 200112 605 X_POSIX_OPEN_MAX = 20 606 X_POSIX_PATH_MAX = 256 607 X_POSIX_PIPE_BUF = 512 608 X_POSIX_PRIORITIZED_IO = -1 609 X_POSIX_PRIORITY_SCHEDULING = -1 610 X_POSIX_RAW_SOCKETS = -1 611 X_POSIX_READER_WRITER_LOCKS = 200112 612 X_POSIX_REALTIME_SIGNALS = -1 613 X_POSIX_REGEXP = 200112 614 X_POSIX_RE_DUP_MAX = 255 615 X_POSIX_RTSIG_MAX = 8 616 X_POSIX_SAVED_IDS = 200112 617 X_POSIX_SEMAPHORES = -1 618 X_POSIX_SEM_NSEMS_MAX = 256 619 X_POSIX_SEM_VALUE_MAX = 32767 620 X_POSIX_SHARED_MEMORY_OBJECTS = -1 621 X_POSIX_SHELL = 200112 622 X_POSIX_SIGQUEUE_MAX = 32 623 X_POSIX_SPAWN = -1 624 X_POSIX_SPIN_LOCKS = -1 625 X_POSIX_SPORADIC_SERVER = -1 626 X_POSIX_SSIZE_MAX = 32767 627 X_POSIX_SS_REPL_MAX = 4 628 X_POSIX_STREAM_MAX = 8 629 X_POSIX_SYMLINK_MAX = 255 630 X_POSIX_SYMLOOP_MAX = 8 631 X_POSIX_SYNCHRONIZED_IO = -1 632 X_POSIX_THREADS = 200112 633 X_POSIX_THREAD_ATTR_STACKADDR = 200112 634 X_POSIX_THREAD_ATTR_STACKSIZE = 200112 635 X_POSIX_THREAD_CPUTIME = -1 636 X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 637 X_POSIX_THREAD_KEYS_MAX = 128 638 X_POSIX_THREAD_PRIORITY_SCHEDULING = -1 639 X_POSIX_THREAD_PRIO_INHERIT = -1 640 X_POSIX_THREAD_PRIO_PROTECT = -1 641 X_POSIX_THREAD_PROCESS_SHARED = 200112 642 X_POSIX_THREAD_SAFE_FUNCTIONS = 200112 643 X_POSIX_THREAD_SPORADIC_SERVER = -1 644 X_POSIX_THREAD_THREADS_MAX = 64 645 X_POSIX_TIMEOUTS = -1 646 X_POSIX_TIMERS = -1 647 X_POSIX_TIMER_MAX = 32 648 X_POSIX_TRACE = -1 649 X_POSIX_TRACE_EVENT_FILTER = -1 650 X_POSIX_TRACE_EVENT_NAME_MAX = 30 651 X_POSIX_TRACE_INHERIT = -1 652 X_POSIX_TRACE_LOG = -1 653 X_POSIX_TRACE_NAME_MAX = 8 654 X_POSIX_TRACE_SYS_MAX = 8 655 X_POSIX_TRACE_USER_EVENT_MAX = 32 656 X_POSIX_TTY_NAME_MAX = 9 657 X_POSIX_TYPED_MEMORY_OBJECTS = -1 658 X_POSIX_TZNAME_MAX = 6 659 X_POSIX_V6_ILP32_OFF32 = -1 660 X_POSIX_V6_ILP32_OFFBIG = -1 661 X_POSIX_V6_LP64_OFF64 = 1 662 X_POSIX_V6_LPBIG_OFFBIG = 1 663 X_POSIX_V7_ILP32_OFF32 = -1 664 X_POSIX_V7_ILP32_OFFBIG = -1 665 X_POSIX_V7_LP64_OFF64 = 1 666 X_POSIX_V7_LPBIG_OFFBIG = 1 667 X_POSIX_VERSION = 200112 668 X_PTHREAD_ATTR_T = 0 669 X_PTHREAD_CONDATTR_T = 0 670 X_PTHREAD_COND_T = 0 671 X_PTHREAD_KEY_T = 0 672 X_PTHREAD_MUTEXATTR_T = 0 673 X_PTHREAD_MUTEX_T = 0 674 X_PTHREAD_ONCE_T = 0 675 X_PTHREAD_RWLOCKATTR_T = 0 676 X_PTHREAD_RWLOCK_T = 0 677 X_PTHREAD_T = 0 678 X_PTRDIFF_T = 0 679 X_PTRDIFF_T_ = 0 680 X_PTRDIFF_T_DECLARED = 0 681 X_QUAD_HIGHWORD = 1 682 X_QUAD_LOWWORD = 0 683 X_RATTR_OK = 32768 684 X_READ_OK = 512 685 X_REXT_OK = 131072 686 X_RLIMIT_POSIX_FLAG = 0x1000 687 X_RMFILE_OK = 16384 688 X_RPERM_OK = 524288 689 X_RSIZE_T = 0 690 X_RUNE_T = 0 691 X_SC_2_CHAR_TERM = 20 692 X_SC_2_C_BIND = 18 693 X_SC_2_C_DEV = 19 694 X_SC_2_FORT_DEV = 21 695 X_SC_2_FORT_RUN = 22 696 X_SC_2_LOCALEDEF = 23 697 X_SC_2_PBS = 59 698 X_SC_2_PBS_ACCOUNTING = 60 699 X_SC_2_PBS_CHECKPOINT = 61 700 X_SC_2_PBS_LOCATE = 62 701 X_SC_2_PBS_MESSAGE = 63 702 X_SC_2_PBS_TRACK = 64 703 X_SC_2_SW_DEV = 24 704 X_SC_2_UPE = 25 705 X_SC_2_VERSION = 17 706 X_SC_ADVISORY_INFO = 65 707 X_SC_AIO_LISTIO_MAX = 42 708 X_SC_AIO_MAX = 43 709 X_SC_AIO_PRIO_DELTA_MAX = 44 710 X_SC_ARG_MAX = 1 711 X_SC_ASYNCHRONOUS_IO = 28 712 X_SC_ATEXIT_MAX = 107 713 X_SC_BARRIERS = 66 714 X_SC_BC_BASE_MAX = 9 715 X_SC_BC_DIM_MAX = 10 716 X_SC_BC_SCALE_MAX = 11 717 X_SC_BC_STRING_MAX = 12 718 X_SC_CHILD_MAX = 2 719 X_SC_CLK_TCK = 3 720 X_SC_CLOCK_SELECTION = 67 721 X_SC_COLL_WEIGHTS_MAX = 13 722 X_SC_CPUTIME = 68 723 X_SC_DELAYTIMER_MAX = 45 724 X_SC_EXPR_NEST_MAX = 14 725 X_SC_FILE_LOCKING = 69 726 X_SC_FSYNC = 38 727 X_SC_GETGR_R_SIZE_MAX = 70 728 X_SC_GETPW_R_SIZE_MAX = 71 729 X_SC_HOST_NAME_MAX = 72 730 X_SC_IOV_MAX = 56 731 X_SC_IPV6 = 118 732 X_SC_JOB_CONTROL = 6 733 X_SC_LINE_MAX = 15 734 X_SC_LOGIN_NAME_MAX = 73 735 X_SC_MAPPED_FILES = 47 736 X_SC_MEMLOCK = 30 737 X_SC_MEMLOCK_RANGE = 31 738 X_SC_MEMORY_PROTECTION = 32 739 X_SC_MESSAGE_PASSING = 33 740 X_SC_MONOTONIC_CLOCK = 74 741 X_SC_MQ_OPEN_MAX = 46 742 X_SC_MQ_PRIO_MAX = 75 743 X_SC_NGROUPS_MAX = 4 744 X_SC_NPROCESSORS_CONF = 57 745 X_SC_NPROCESSORS_ONLN = 58 746 X_SC_OPEN_MAX = 5 747 X_SC_PAGESIZE = 29 748 X_SC_PAGE_SIZE = 29 749 X_SC_PASS_MAX = 131 750 X_SC_PHYS_PAGES = 200 751 X_SC_PRIORITIZED_IO = 34 752 X_SC_PRIORITY_SCHEDULING = 35 753 X_SC_RAW_SOCKETS = 119 754 X_SC_READER_WRITER_LOCKS = 76 755 X_SC_REALTIME_SIGNALS = 36 756 X_SC_REGEXP = 77 757 X_SC_RE_DUP_MAX = 16 758 X_SC_RTSIG_MAX = 48 759 X_SC_SAVED_IDS = 7 760 X_SC_SEMAPHORES = 37 761 X_SC_SEM_NSEMS_MAX = 49 762 X_SC_SEM_VALUE_MAX = 50 763 X_SC_SHARED_MEMORY_OBJECTS = 39 764 X_SC_SHELL = 78 765 X_SC_SIGQUEUE_MAX = 51 766 X_SC_SPAWN = 79 767 X_SC_SPIN_LOCKS = 80 768 X_SC_SPORADIC_SERVER = 81 769 X_SC_SS_REPL_MAX = 126 770 X_SC_STREAM_MAX = 26 771 X_SC_SYMLOOP_MAX = 120 772 X_SC_SYNCHRONIZED_IO = 40 773 X_SC_THREADS = 96 774 X_SC_THREAD_ATTR_STACKADDR = 82 775 X_SC_THREAD_ATTR_STACKSIZE = 83 776 X_SC_THREAD_CPUTIME = 84 777 X_SC_THREAD_DESTRUCTOR_ITERATIONS = 85 778 X_SC_THREAD_KEYS_MAX = 86 779 X_SC_THREAD_PRIORITY_SCHEDULING = 89 780 X_SC_THREAD_PRIO_INHERIT = 87 781 X_SC_THREAD_PRIO_PROTECT = 88 782 X_SC_THREAD_PROCESS_SHARED = 90 783 X_SC_THREAD_SAFE_FUNCTIONS = 91 784 X_SC_THREAD_SPORADIC_SERVER = 92 785 X_SC_THREAD_STACK_MIN = 93 786 X_SC_THREAD_THREADS_MAX = 94 787 X_SC_TIMEOUTS = 95 788 X_SC_TIMERS = 41 789 X_SC_TIMER_MAX = 52 790 X_SC_TRACE = 97 791 X_SC_TRACE_EVENT_FILTER = 98 792 X_SC_TRACE_EVENT_NAME_MAX = 127 793 X_SC_TRACE_INHERIT = 99 794 X_SC_TRACE_LOG = 100 795 X_SC_TRACE_NAME_MAX = 128 796 X_SC_TRACE_SYS_MAX = 129 797 X_SC_TRACE_USER_EVENT_MAX = 130 798 X_SC_TTY_NAME_MAX = 101 799 X_SC_TYPED_MEMORY_OBJECTS = 102 800 X_SC_TZNAME_MAX = 27 801 X_SC_V6_ILP32_OFF32 = 103 802 X_SC_V6_ILP32_OFFBIG = 104 803 X_SC_V6_LP64_OFF64 = 105 804 X_SC_V6_LPBIG_OFFBIG = 106 805 X_SC_VERSION = 8 806 X_SC_XBS5_ILP32_OFF32 = 122 807 X_SC_XBS5_ILP32_OFFBIG = 123 808 X_SC_XBS5_LP64_OFF64 = 124 809 X_SC_XBS5_LPBIG_OFFBIG = 125 810 X_SC_XOPEN_CRYPT = 108 811 X_SC_XOPEN_ENH_I18N = 109 812 X_SC_XOPEN_LEGACY = 110 813 X_SC_XOPEN_REALTIME = 111 814 X_SC_XOPEN_REALTIME_THREADS = 112 815 X_SC_XOPEN_SHM = 113 816 X_SC_XOPEN_STREAMS = 114 817 X_SC_XOPEN_UNIX = 115 818 X_SC_XOPEN_VERSION = 116 819 X_SC_XOPEN_XCU_VERSION = 121 820 X_SECURE__COMMON_H_ = 0 821 X_SECURE__STRINGS_H_ = 0 822 X_SECURE__STRING_H_ = 0 823 X_SIGSET_T = 0 824 X_SIZET_ = 0 825 X_SIZE_T = 0 826 X_SIZE_T_ = 0 827 X_SIZE_T_DECLARED = 0 828 X_SIZE_T_DEFINED = 0 829 X_SIZE_T_DEFINED_ = 0 830 X_SSIZE_T = 0 831 X_STDARG_H = 0 832 X_STDDEF_H = 0 833 X_STDDEF_H_ = 0 834 X_STDINT_H_ = 0 835 X_STDLIB_H_ = 0 836 X_STRINGS_H_ = 0 837 X_STRING_H_ = 0 838 X_SUSECONDS_T = 0 839 X_SYS_RESOURCE_H_ = 0 840 X_SYS_SELECT_H_ = 0 841 X_SYS_SIGNAL_H_ = 0 842 X_SYS_SIZE_T_H = 0 843 X_SYS_SYSLIMITS_H_ = 0 844 X_SYS_TYPES_H_ = 0 845 X_SYS_UNISTD_H_ = 0 846 X_SYS_WAIT_H_ = 0 847 X_SYS__ENDIAN_H_ = 0 848 X_SYS__PTHREAD_TYPES_H_ = 0 849 X_SYS__SELECT_H_ = 0 850 X_SYS__TYPES_H_ = 0 851 X_TIME_T = 0 852 X_T_PTRDIFF = 0 853 X_T_PTRDIFF_ = 0 854 X_T_SIZE = 0 855 X_T_SIZE_ = 0 856 X_T_WCHAR = 0 857 X_T_WCHAR_ = 0 858 X_UID_T = 0 859 X_UINT16_T = 0 860 X_UINT32_T = 0 861 X_UINT64_T = 0 862 X_UINT8_T = 0 863 X_UINTMAX_T = 0 864 X_UINTPTR_T = 0 865 X_UNISTD_H_ = 0 866 X_USECONDS_T = 0 867 X_USE_FORTIFY_LEVEL = 2 868 X_UUID_T = 0 869 X_U_CHAR = 0 870 X_U_INT = 0 871 X_U_INT16_T = 0 872 X_U_INT32_T = 0 873 X_U_INT64_T = 0 874 X_U_INT8_T = 0 875 X_U_LONG = 0 876 X_U_SHORT = 0 877 X_V6_ILP32_OFF32 = -1 878 X_V6_ILP32_OFFBIG = -1 879 X_V6_LP64_OFF64 = 1 880 X_V6_LPBIG_OFFBIG = 1 881 X_VA_LIST = 0 882 X_VA_LIST_ = 0 883 X_VA_LIST_DEFINED = 0 884 X_VA_LIST_T_H = 0 885 X_WATTR_OK = 65536 886 X_WCHAR_T = 0 887 X_WCHAR_T_ = 0 888 X_WCHAR_T_DECLARED = 0 889 X_WCHAR_T_DEFINED = 0 890 X_WCHAR_T_DEFINED_ = 0 891 X_WCHAR_T_H = 0 892 X_WEXT_OK = 262144 893 X_WPERM_OK = 1048576 894 X_WRITE_OK = 1024 895 X_WSTOPPED = 0177 896 X_XBS5_ILP32_OFF32 = -1 897 X_XBS5_ILP32_OFFBIG = -1 898 X_XBS5_LP64_OFF64 = 1 899 X_XBS5_LPBIG_OFFBIG = 1 900 X_XOPEN_CRYPT = 1 901 X_XOPEN_ENH_I18N = 1 902 X_XOPEN_IOV_MAX = 16 903 X_XOPEN_LEGACY = -1 904 X_XOPEN_NAME_MAX = 255 905 X_XOPEN_PATH_MAX = 1024 906 X_XOPEN_REALTIME = -1 907 X_XOPEN_REALTIME_THREADS = -1 908 X_XOPEN_SHM = 1 909 X_XOPEN_STREAMS = -1 910 X_XOPEN_UNIX = 1 911 X_XOPEN_VERSION = 600 912 X_XOPEN_XCU_VERSION = 4 913 Z_const = 0 914 BYFOUR = 0 915 GF2_DIM = 32 916 TBLS = 8 917 BL_CODES = 19 918 BUSY_STATE = 113 919 Buf_size = 16 920 COMMENT_STATE = 91 921 DEFLATE_H = 0 922 D_CODES = 30 923 EXTRA_STATE = 69 924 FINISH_STATE = 666 925 GZIP = 0 926 GZIP_STATE = 57 927 HCRC_STATE = 103 928 HEAP_SIZE = 573 929 INIT_STATE = 42 930 LENGTH_CODES = 29 931 LITERALS = 256 932 L_CODES = 286 933 MAX_BITS = 15 934 MAX_STORED = 65535 935 MIN_LOOKAHEAD = 262 936 NAME_STATE = 73 937 NIL = 0 938 TOO_FAR = 4096 939 WIN_INIT = 258 940 AT_EACCESS = 0x0010 941 AT_FDCWD = -2 942 AT_FDONLY = 0x0400 943 AT_REALDEV = 0x0200 944 AT_REMOVEDIR = 0x0080 945 AT_SYMLINK_FOLLOW = 0x0040 946 AT_SYMLINK_NOFOLLOW = 0x0020 947 BUFSIZ = 1024 948 COPY1 = 1 949 CPF_IGNORE_MODE = 0x0002 950 CPF_MASK = 3 951 CPF_OVERWRITE = 0x0001 952 E2BIG = 7 953 EACCES = 13 954 EADDRINUSE = 48 955 EADDRNOTAVAIL = 49 956 EAFNOSUPPORT = 47 957 EAGAIN = 35 958 EALREADY = 37 959 EAUTH = 80 960 EBADARCH = 86 961 EBADEXEC = 85 962 EBADF = 9 963 EBADMACHO = 88 964 EBADMSG = 94 965 EBADRPC = 72 966 EBUSY = 16 967 ECANCELED = 89 968 ECHILD = 10 969 ECONNABORTED = 53 970 ECONNREFUSED = 61 971 ECONNRESET = 54 972 EDEADLK = 11 973 EDESTADDRREQ = 39 974 EDEVERR = 83 975 EDOM = 33 976 EDQUOT = 69 977 EEXIST = 17 978 EFAULT = 14 979 EFBIG = 27 980 EFTYPE = 79 981 EHOSTDOWN = 64 982 EHOSTUNREACH = 65 983 EIDRM = 90 984 EILSEQ = 92 985 EINPROGRESS = 36 986 EINTR = 4 987 EINVAL = 22 988 EIO = 5 989 EISCONN = 56 990 EISDIR = 21 991 ELAST = 106 992 ELOOP = 62 993 EMFILE = 24 994 EMLINK = 31 995 EMSGSIZE = 40 996 EMULTIHOP = 95 997 ENAMETOOLONG = 63 998 ENEEDAUTH = 81 999 ENETDOWN = 50 1000 ENETRESET = 52 1001 ENETUNREACH = 51 1002 ENFILE = 23 1003 ENOATTR = 93 1004 ENOBUFS = 55 1005 ENODATA = 96 1006 ENODEV = 19 1007 ENOENT = 2 1008 ENOEXEC = 8 1009 ENOLCK = 77 1010 ENOLINK = 97 1011 ENOMEM = 12 1012 ENOMSG = 91 1013 ENOPOLICY = 103 1014 ENOPROTOOPT = 42 1015 ENOSPC = 28 1016 ENOSR = 98 1017 ENOSTR = 99 1018 ENOSYS = 78 1019 ENOTBLK = 15 1020 ENOTCONN = 57 1021 ENOTDIR = 20 1022 ENOTEMPTY = 66 1023 ENOTRECOVERABLE = 104 1024 ENOTSOCK = 38 1025 ENOTSUP = 45 1026 ENOTTY = 25 1027 ENXIO = 6 1028 EOF = -1 1029 EOPNOTSUPP = 102 1030 EOVERFLOW = 84 1031 EOWNERDEAD = 105 1032 EPERM = 1 1033 EPFNOSUPPORT = 46 1034 EPIPE = 32 1035 EPROCLIM = 67 1036 EPROCUNAVAIL = 76 1037 EPROGMISMATCH = 75 1038 EPROGUNAVAIL = 74 1039 EPROTO = 100 1040 EPROTONOSUPPORT = 43 1041 EPROTOTYPE = 41 1042 EPWROFF = 82 1043 EQFULL = 106 1044 ERANGE = 34 1045 EREMOTE = 71 1046 EROFS = 30 1047 ERPCMISMATCH = 73 1048 ESHLIBVERS = 87 1049 ESHUTDOWN = 58 1050 ESOCKTNOSUPPORT = 44 1051 ESPIPE = 29 1052 ESRCH = 3 1053 ESTALE = 70 1054 ETIME = 101 1055 ETIMEDOUT = 60 1056 ETOOMANYREFS = 59 1057 ETXTBSY = 26 1058 EUSERS = 68 1059 EWOULDBLOCK = 35 1060 EXDEV = 18 1061 FAPPEND = 8 1062 FASYNC = 64 1063 FCNTL_FS_SPECIFIC_BASE = 0x00010000 1064 FD_CLOEXEC = 1 1065 FFDSYNC = 4194304 1066 FFSYNC = 128 1067 FILENAME_MAX = 1024 1068 FIXINC_WRAP_STDIO_H_STDIO_STDARG_H = 1 1069 FNDELAY = 4 1070 FNONBLOCK = 4 1071 FOPEN_MAX = 20 1072 FREAD = 0x0001 1073 FWRITE = 0x0002 1074 F_ADDFILESIGS = 61 1075 F_ADDFILESIGS_FOR_DYLD_SIM = 83 1076 F_ADDFILESIGS_RETURN = 97 1077 F_ADDSIGS = 59 1078 F_ALLOCATEALL = 0x00000004 1079 F_ALLOCATECONTIG = 0x00000002 1080 F_BARRIERFSYNC = 85 1081 F_CHECK_LV = 98 1082 F_CHKCLEAN = 41 1083 F_DUPFD = 0 1084 F_DUPFD_CLOEXEC = 67 1085 F_FINDSIGS = 78 1086 F_FLUSH_DATA = 40 1087 F_FREEZE_FS = 53 1088 F_FULLFSYNC = 51 1089 F_GETCODEDIR = 72 1090 F_GETFD = 1 1091 F_GETFL = 3 1092 F_GETLK = 7 1093 F_GETLKPID = 66 1094 F_GETNOSIGPIPE = 74 1095 F_GETOWN = 5 1096 F_GETPATH = 50 1097 F_GETPATH_MTMINFO = 71 1098 F_GETPATH_NOFIRMLINK = 102 1099 F_GETPROTECTIONCLASS = 63 1100 F_GETPROTECTIONLEVEL = 77 1101 F_GLOBAL_NOCACHE = 55 1102 F_LOG2PHYS = 49 1103 F_LOG2PHYS_EXT = 65 1104 F_NOCACHE = 48 1105 F_NODIRECT = 62 1106 F_PATHPKG_CHECK = 52 1107 F_PEOFPOSMODE = 3 1108 F_PREALLOCATE = 42 1109 F_PUNCHHOLE = 99 1110 F_RDADVISE = 44 1111 F_RDAHEAD = 45 1112 F_RDLCK = 1 1113 F_SETBACKINGSTORE = 70 1114 F_SETFD = 2 1115 F_SETFL = 4 1116 F_SETLK = 8 1117 F_SETLKW = 9 1118 F_SETLKWTIMEOUT = 10 1119 F_SETNOSIGPIPE = 73 1120 F_SETOWN = 6 1121 F_SETPROTECTIONCLASS = 64 1122 F_SETSIZE = 43 1123 F_SINGLE_WRITER = 76 1124 F_SPECULATIVE_READ = 101 1125 F_THAW_FS = 54 1126 F_TRANSCODEKEY = 75 1127 F_TRIM_ACTIVE_FILE = 100 1128 F_UNLCK = 2 1129 F_VOLPOSMODE = 4 1130 F_WRLCK = 3 1131 GZBUFSIZE = 8192 1132 GZ_APPEND = 1 1133 GZ_NONE = 0 1134 GZ_READ = 7247 1135 GZ_WRITE = 31153 1136 HAVE_VSNPRINTF = 0 1137 LOCK_EX = 0x02 1138 LOCK_NB = 0x04 1139 LOCK_SH = 0x01 1140 LOCK_UN = 0x08 1141 LOOK = 0 1142 L_ctermid = 1024 1143 L_tmpnam = 1024 1144 O_ACCMODE = 0x0003 1145 O_ALERT = 0x20000000 1146 O_APPEND = 0x0008 1147 O_ASYNC = 0x0040 1148 O_CLOEXEC = 0x1000000 1149 O_CREAT = 0x0200 1150 O_DIRECTORY = 0x100000 1151 O_DP_GETRAWENCRYPTED = 0x0001 1152 O_DP_GETRAWUNENCRYPTED = 0x0002 1153 O_DSYNC = 0x400000 1154 O_EVTONLY = 0x8000 1155 O_EXCL = 0x0800 1156 O_EXLOCK = 0x0020 1157 O_FSYNC = 128 1158 O_NDELAY = 4 1159 O_NOCTTY = 0x20000 1160 O_NOFOLLOW = 0x0100 1161 O_NONBLOCK = 0x0004 1162 O_POPUP = 0x80000000 1163 O_RDONLY = 0x0000 1164 O_RDWR = 0x0002 1165 O_SHLOCK = 0x0010 1166 O_SYMLINK = 0x200000 1167 O_SYNC = 0x0080 1168 O_TRUNC = 0x0400 1169 O_WRONLY = 0x0001 1170 P_tmpdir = "/var/tmp/" 1171 RENAME_EXCL = 0x00000004 1172 RENAME_SECLUDE = 0x00000001 1173 RENAME_SWAP = 0x00000002 1174 S_IEXEC = 64 1175 S_IFBLK = 0060000 1176 S_IFCHR = 0020000 1177 S_IFDIR = 0040000 1178 S_IFIFO = 0010000 1179 S_IFLNK = 0120000 1180 S_IFMT = 0170000 1181 S_IFREG = 0100000 1182 S_IFSOCK = 0140000 1183 S_IFWHT = 0160000 1184 S_IREAD = 256 1185 S_IRGRP = 0000040 1186 S_IROTH = 0000004 1187 S_IRUSR = 0000400 1188 S_IRWXG = 0000070 1189 S_IRWXO = 0000007 1190 S_IRWXU = 0000700 1191 S_ISGID = 0002000 1192 S_ISTXT = 512 1193 S_ISUID = 0004000 1194 S_ISVTX = 0001000 1195 S_IWGRP = 0000020 1196 S_IWOTH = 0000002 1197 S_IWRITE = 128 1198 S_IWUSR = 0000200 1199 S_IXGRP = 0000010 1200 S_IXOTH = 0000001 1201 S_IXUSR = 0000100 1202 TMP_MAX = 308915776 1203 X_FILESEC_T = 0 1204 X_FSTDIO = 0 1205 X_IOFBF = 0 1206 X_IOLBF = 1 1207 X_IONBF = 2 1208 X_POSIX_SOURCE = 0 1209 X_SECURE__STDIO_H_ = 0 1210 X_STDIO_H_ = 0 1211 X_SYS_ERRNO_H_ = 0 1212 X_SYS_FCNTL_H_ = 0 1213 X_SYS_STDIO_H_ = 0 1214 X_VA_LIST_T = 0 1215 ENOUGH = 1444 1216 ENOUGH_DISTS = 592 1217 ENOUGH_LENS = 852 1218 GUNZIP = 0 1219 MAXBITS = 15 1220 DIST_CODE_LEN = 512 1221 END_BLOCK = 256 1222 MAX_BL_BITS = 7 1223 REPZ_11_138 = 18 1224 REPZ_3_10 = 17 1225 REP_3_6 = 16 1226 SMALLEST = 1 1227 ) 1228 1229 const ( /* fcntl.h:512:1: */ 1230 FILESEC_OWNER = 1 1231 FILESEC_GROUP = 2 1232 FILESEC_UUID = 3 1233 FILESEC_MODE = 4 1234 FILESEC_ACL = 5 1235 FILESEC_GRPUUID = 6 1236 1237 // XXX these are private to the implementation 1238 FILESEC_ACL_RAW = 100 1239 FILESEC_ACL_ALLOCSIZE = 101 1240 ) 1241 1242 // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved. 1243 // 1244 // @APPLE_LICENSE_HEADER_START@ 1245 // 1246 // This file contains Original Code and/or Modifications of Original Code 1247 // as defined in and that are subject to the Apple Public Source License 1248 // Version 2.0 (the 'License'). You may not use this file except in 1249 // compliance with the License. Please obtain a copy of the License at 1250 // http://www.opensource.apple.com/apsl/ and read it before using this 1251 // file. 1252 // 1253 // The Original Code and all software distributed under the License are 1254 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1255 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1256 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1257 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1258 // Please see the License for the specific language governing rights and 1259 // limitations under the License. 1260 // 1261 // @APPLE_LICENSE_HEADER_END@ 1262 // - 1263 // Copyright (c) 1990, 1993 1264 // The Regents of the University of California. All rights reserved. 1265 // 1266 // Redistribution and use in source and binary forms, with or without 1267 // modification, are permitted provided that the following conditions 1268 // are met: 1269 // 1. Redistributions of source code must retain the above copyright 1270 // notice, this list of conditions and the following disclaimer. 1271 // 2. Redistributions in binary form must reproduce the above copyright 1272 // notice, this list of conditions and the following disclaimer in the 1273 // documentation and/or other materials provided with the distribution. 1274 // 3. All advertising materials mentioning features or use of this software 1275 // must display the following acknowledgement: 1276 // This product includes software developed by the University of 1277 // California, Berkeley and its contributors. 1278 // 4. Neither the name of the University nor the names of its contributors 1279 // may be used to endorse or promote products derived from this software 1280 // without specific prior written permission. 1281 // 1282 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1283 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1284 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1285 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1286 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1287 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1288 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1289 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1290 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1291 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1292 // SUCH DAMAGE. 1293 // 1294 // @(#)string.h 8.1 (Berkeley) 6/2/93 1295 1296 // Security checking functions. 1297 // Copyright (c) 2017 Apple Inc. All rights reserved. 1298 // 1299 // @APPLE_LICENSE_HEADER_START@ 1300 // 1301 // This file contains Original Code and/or Modifications of Original Code 1302 // as defined in and that are subject to the Apple Public Source License 1303 // Version 2.0 (the 'License'). You may not use this file except in 1304 // compliance with the License. Please obtain a copy of the License at 1305 // http://www.opensource.apple.com/apsl/ and read it before using this 1306 // file. 1307 // 1308 // The Original Code and all software distributed under the License are 1309 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1310 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1311 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1312 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1313 // Please see the License for the specific language governing rights and 1314 // limitations under the License. 1315 // 1316 // @APPLE_LICENSE_HEADER_END@ 1317 1318 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 1319 // 1320 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1321 // 1322 // This file contains Original Code and/or Modifications of Original Code 1323 // as defined in and that are subject to the Apple Public Source License 1324 // Version 2.0 (the 'License'). You may not use this file except in 1325 // compliance with the License. The rights granted to you under the License 1326 // may not be used to create, or enable the creation or redistribution of, 1327 // unlawful or unlicensed copies of an Apple operating system, or to 1328 // circumvent, violate, or enable the circumvention or violation of, any 1329 // terms of an Apple operating system software license agreement. 1330 // 1331 // Please obtain a copy of the License at 1332 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1333 // 1334 // The Original Code and all software distributed under the License are 1335 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1336 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1337 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1338 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1339 // Please see the License for the specific language governing rights and 1340 // limitations under the License. 1341 // 1342 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1343 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1344 // Copyright (c) 1991, 1993 1345 // The Regents of the University of California. All rights reserved. 1346 // 1347 // This code is derived from software contributed to Berkeley by 1348 // Berkeley Software Design, Inc. 1349 // 1350 // Redistribution and use in source and binary forms, with or without 1351 // modification, are permitted provided that the following conditions 1352 // are met: 1353 // 1. Redistributions of source code must retain the above copyright 1354 // notice, this list of conditions and the following disclaimer. 1355 // 2. Redistributions in binary form must reproduce the above copyright 1356 // notice, this list of conditions and the following disclaimer in the 1357 // documentation and/or other materials provided with the distribution. 1358 // 3. All advertising materials mentioning features or use of this software 1359 // must display the following acknowledgement: 1360 // This product includes software developed by the University of 1361 // California, Berkeley and its contributors. 1362 // 4. Neither the name of the University nor the names of its contributors 1363 // may be used to endorse or promote products derived from this software 1364 // without specific prior written permission. 1365 // 1366 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1367 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1368 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1369 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1370 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1371 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1372 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1373 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1374 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1375 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1376 // SUCH DAMAGE. 1377 // 1378 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1379 1380 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 1381 // 1382 // @APPLE_LICENSE_HEADER_START@ 1383 // 1384 // This file contains Original Code and/or Modifications of Original Code 1385 // as defined in and that are subject to the Apple Public Source License 1386 // Version 2.0 (the 'License'). You may not use this file except in 1387 // compliance with the License. Please obtain a copy of the License at 1388 // http://www.opensource.apple.com/apsl/ and read it before using this 1389 // file. 1390 // 1391 // The Original Code and all software distributed under the License are 1392 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1393 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1394 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1395 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1396 // Please see the License for the specific language governing rights and 1397 // limitations under the License. 1398 // 1399 // @APPLE_LICENSE_HEADER_END@ 1400 1401 // Copyright (c) 2007, 2008 Apple Inc. All rights reserved. 1402 // 1403 // @APPLE_LICENSE_HEADER_START@ 1404 // 1405 // This file contains Original Code and/or Modifications of Original Code 1406 // as defined in and that are subject to the Apple Public Source License 1407 // Version 2.0 (the 'License'). You may not use this file except in 1408 // compliance with the License. Please obtain a copy of the License at 1409 // http://www.opensource.apple.com/apsl/ and read it before using this 1410 // file. 1411 // 1412 // The Original Code and all software distributed under the License are 1413 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1414 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1415 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1416 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1417 // Please see the License for the specific language governing rights and 1418 // limitations under the License. 1419 // 1420 // @APPLE_LICENSE_HEADER_END@ 1421 1422 // bcopy and bzero 1423 1424 // Removed in Issue 7 1425 1426 // void bcopy(const void *src, void *dst, size_t len) 1427 1428 // void bzero(void *s, size_t n) 1429 1430 // Security checking functions. 1431 // Copyright (c) 2007,2017 Apple Inc. All rights reserved. 1432 // 1433 // @APPLE_LICENSE_HEADER_START@ 1434 // 1435 // This file contains Original Code and/or Modifications of Original Code 1436 // as defined in and that are subject to the Apple Public Source License 1437 // Version 2.0 (the 'License'). You may not use this file except in 1438 // compliance with the License. Please obtain a copy of the License at 1439 // http://www.opensource.apple.com/apsl/ and read it before using this 1440 // file. 1441 // 1442 // The Original Code and all software distributed under the License are 1443 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1444 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1445 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1446 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1447 // Please see the License for the specific language governing rights and 1448 // limitations under the License. 1449 // 1450 // @APPLE_LICENSE_HEADER_END@ 1451 1452 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 1453 // 1454 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1455 // 1456 // This file contains Original Code and/or Modifications of Original Code 1457 // as defined in and that are subject to the Apple Public Source License 1458 // Version 2.0 (the 'License'). You may not use this file except in 1459 // compliance with the License. The rights granted to you under the License 1460 // may not be used to create, or enable the creation or redistribution of, 1461 // unlawful or unlicensed copies of an Apple operating system, or to 1462 // circumvent, violate, or enable the circumvention or violation of, any 1463 // terms of an Apple operating system software license agreement. 1464 // 1465 // Please obtain a copy of the License at 1466 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1467 // 1468 // The Original Code and all software distributed under the License are 1469 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1470 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1471 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1472 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1473 // Please see the License for the specific language governing rights and 1474 // limitations under the License. 1475 // 1476 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1477 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1478 // Copyright (c) 1991, 1993 1479 // The Regents of the University of California. All rights reserved. 1480 // 1481 // This code is derived from software contributed to Berkeley by 1482 // Berkeley Software Design, Inc. 1483 // 1484 // Redistribution and use in source and binary forms, with or without 1485 // modification, are permitted provided that the following conditions 1486 // are met: 1487 // 1. Redistributions of source code must retain the above copyright 1488 // notice, this list of conditions and the following disclaimer. 1489 // 2. Redistributions in binary form must reproduce the above copyright 1490 // notice, this list of conditions and the following disclaimer in the 1491 // documentation and/or other materials provided with the distribution. 1492 // 3. All advertising materials mentioning features or use of this software 1493 // must display the following acknowledgement: 1494 // This product includes software developed by the University of 1495 // California, Berkeley and its contributors. 1496 // 4. Neither the name of the University nor the names of its contributors 1497 // may be used to endorse or promote products derived from this software 1498 // without specific prior written permission. 1499 // 1500 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1501 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1502 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1503 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1504 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1505 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1506 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1507 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1508 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1509 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1510 // SUCH DAMAGE. 1511 // 1512 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1513 1514 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 1515 // 1516 // @APPLE_LICENSE_HEADER_START@ 1517 // 1518 // This file contains Original Code and/or Modifications of Original Code 1519 // as defined in and that are subject to the Apple Public Source License 1520 // Version 2.0 (the 'License'). You may not use this file except in 1521 // compliance with the License. Please obtain a copy of the License at 1522 // http://www.opensource.apple.com/apsl/ and read it before using this 1523 // file. 1524 // 1525 // The Original Code and all software distributed under the License are 1526 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1527 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1528 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1529 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1530 // Please see the License for the specific language governing rights and 1531 // limitations under the License. 1532 // 1533 // @APPLE_LICENSE_HEADER_END@ 1534 1535 // Copyright (c) 2007, 2008 Apple Inc. All rights reserved. 1536 // 1537 // @APPLE_LICENSE_HEADER_START@ 1538 // 1539 // This file contains Original Code and/or Modifications of Original Code 1540 // as defined in and that are subject to the Apple Public Source License 1541 // Version 2.0 (the 'License'). You may not use this file except in 1542 // compliance with the License. Please obtain a copy of the License at 1543 // http://www.opensource.apple.com/apsl/ and read it before using this 1544 // file. 1545 // 1546 // The Original Code and all software distributed under the License are 1547 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1548 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1549 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1550 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1551 // Please see the License for the specific language governing rights and 1552 // limitations under the License. 1553 // 1554 // @APPLE_LICENSE_HEADER_END@ 1555 1556 // <rdar://problem/12622659> 1557 1558 // memccpy, memcpy, mempcpy, memmove, memset, strcpy, strlcpy, stpcpy, 1559 // strncpy, stpncpy, strcat, strlcat, and strncat 1560 1561 // void *memcpy(void *dst, const void *src, size_t n) 1562 1563 // void *memmove(void *dst, const void *src, size_t len) 1564 1565 // void *memset(void *b, int c, size_t len) 1566 1567 // char *strcpy(char *dst, const char *src) 1568 1569 // char *stpcpy(char *dst, const char *src) 1570 1571 // char *stpncpy(char *dst, const char *src, size_t n) 1572 1573 // char *strncpy(char *dst, const char *src, size_t n) 1574 1575 // char *strcat(char *s1, const char *s2) 1576 1577 // char *strncat(char *s1, const char *s2, size_t n) 1578 1579 // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved. 1580 // 1581 // @APPLE_LICENSE_HEADER_START@ 1582 // 1583 // This file contains Original Code and/or Modifications of Original Code 1584 // as defined in and that are subject to the Apple Public Source License 1585 // Version 2.0 (the 'License'). You may not use this file except in 1586 // compliance with the License. Please obtain a copy of the License at 1587 // http://www.opensource.apple.com/apsl/ and read it before using this 1588 // file. 1589 // 1590 // The Original Code and all software distributed under the License are 1591 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1592 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1593 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1594 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1595 // Please see the License for the specific language governing rights and 1596 // limitations under the License. 1597 // 1598 // @APPLE_LICENSE_HEADER_END@ 1599 // - 1600 // Copyright (c) 1990, 1993 1601 // The Regents of the University of California. All rights reserved. 1602 // 1603 // Redistribution and use in source and binary forms, with or without 1604 // modification, are permitted provided that the following conditions 1605 // are met: 1606 // 1. Redistributions of source code must retain the above copyright 1607 // notice, this list of conditions and the following disclaimer. 1608 // 2. Redistributions in binary form must reproduce the above copyright 1609 // notice, this list of conditions and the following disclaimer in the 1610 // documentation and/or other materials provided with the distribution. 1611 // 3. All advertising materials mentioning features or use of this software 1612 // must display the following acknowledgement: 1613 // This product includes software developed by the University of 1614 // California, Berkeley and its contributors. 1615 // 4. Neither the name of the University nor the names of its contributors 1616 // may be used to endorse or promote products derived from this software 1617 // without specific prior written permission. 1618 // 1619 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1620 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1621 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1622 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1623 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1624 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1625 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1626 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1627 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1628 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1629 // SUCH DAMAGE. 1630 // 1631 // @(#)stdlib.h 8.5 (Berkeley) 5/19/95 1632 1633 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 1634 // 1635 // @APPLE_LICENSE_HEADER_START@ 1636 // 1637 // This file contains Original Code and/or Modifications of Original Code 1638 // as defined in and that are subject to the Apple Public Source License 1639 // Version 2.0 (the 'License'). You may not use this file except in 1640 // compliance with the License. Please obtain a copy of the License at 1641 // http://www.opensource.apple.com/apsl/ and read it before using this 1642 // file. 1643 // 1644 // The Original Code and all software distributed under the License are 1645 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1646 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1647 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1648 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1649 // Please see the License for the specific language governing rights and 1650 // limitations under the License. 1651 // 1652 // @APPLE_LICENSE_HEADER_END@ 1653 1654 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 1655 // 1656 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1657 // 1658 // This file contains Original Code and/or Modifications of Original Code 1659 // as defined in and that are subject to the Apple Public Source License 1660 // Version 2.0 (the 'License'). You may not use this file except in 1661 // compliance with the License. The rights granted to you under the License 1662 // may not be used to create, or enable the creation or redistribution of, 1663 // unlawful or unlicensed copies of an Apple operating system, or to 1664 // circumvent, violate, or enable the circumvention or violation of, any 1665 // terms of an Apple operating system software license agreement. 1666 // 1667 // Please obtain a copy of the License at 1668 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1669 // 1670 // The Original Code and all software distributed under the License are 1671 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1672 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1673 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1674 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1675 // Please see the License for the specific language governing rights and 1676 // limitations under the License. 1677 // 1678 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1679 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1680 // Copyright (c) 1991, 1993 1681 // The Regents of the University of California. All rights reserved. 1682 // 1683 // This code is derived from software contributed to Berkeley by 1684 // Berkeley Software Design, Inc. 1685 // 1686 // Redistribution and use in source and binary forms, with or without 1687 // modification, are permitted provided that the following conditions 1688 // are met: 1689 // 1. Redistributions of source code must retain the above copyright 1690 // notice, this list of conditions and the following disclaimer. 1691 // 2. Redistributions in binary form must reproduce the above copyright 1692 // notice, this list of conditions and the following disclaimer in the 1693 // documentation and/or other materials provided with the distribution. 1694 // 3. All advertising materials mentioning features or use of this software 1695 // must display the following acknowledgement: 1696 // This product includes software developed by the University of 1697 // California, Berkeley and its contributors. 1698 // 4. Neither the name of the University nor the names of its contributors 1699 // may be used to endorse or promote products derived from this software 1700 // without specific prior written permission. 1701 // 1702 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1703 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1704 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1705 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1706 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1707 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1708 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1709 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1710 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1711 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1712 // SUCH DAMAGE. 1713 // 1714 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1715 1716 // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved. 1717 // 1718 // @APPLE_LICENSE_HEADER_START@ 1719 // 1720 // This file contains Original Code and/or Modifications of Original Code 1721 // as defined in and that are subject to the Apple Public Source License 1722 // Version 2.0 (the 'License'). You may not use this file except in 1723 // compliance with the License. Please obtain a copy of the License at 1724 // http://www.opensource.apple.com/apsl/ and read it before using this 1725 // file. 1726 // 1727 // The Original Code and all software distributed under the License are 1728 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1729 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1730 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1731 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1732 // Please see the License for the specific language governing rights and 1733 // limitations under the License. 1734 // 1735 // @APPLE_LICENSE_HEADER_END@ 1736 1737 // Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 1738 // 1739 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1740 // 1741 // This file contains Original Code and/or Modifications of Original Code 1742 // as defined in and that are subject to the Apple Public Source License 1743 // Version 2.0 (the 'License'). You may not use this file except in 1744 // compliance with the License. The rights granted to you under the License 1745 // may not be used to create, or enable the creation or redistribution of, 1746 // unlawful or unlicensed copies of an Apple operating system, or to 1747 // circumvent, violate, or enable the circumvention or violation of, any 1748 // terms of an Apple operating system software license agreement. 1749 // 1750 // Please obtain a copy of the License at 1751 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1752 // 1753 // The Original Code and all software distributed under the License are 1754 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1755 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1756 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1757 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1758 // Please see the License for the specific language governing rights and 1759 // limitations under the License. 1760 // 1761 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1762 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 1763 // Copyright (c) 1982, 1986, 1989, 1993, 1994 1764 // The Regents of the University of California. All rights reserved. 1765 // 1766 // Redistribution and use in source and binary forms, with or without 1767 // modification, are permitted provided that the following conditions 1768 // are met: 1769 // 1. Redistributions of source code must retain the above copyright 1770 // notice, this list of conditions and the following disclaimer. 1771 // 2. Redistributions in binary form must reproduce the above copyright 1772 // notice, this list of conditions and the following disclaimer in the 1773 // documentation and/or other materials provided with the distribution. 1774 // 3. All advertising materials mentioning features or use of this software 1775 // must display the following acknowledgement: 1776 // This product includes software developed by the University of 1777 // California, Berkeley and its contributors. 1778 // 4. Neither the name of the University nor the names of its contributors 1779 // may be used to endorse or promote products derived from this software 1780 // without specific prior written permission. 1781 // 1782 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1783 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1784 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1785 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1786 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1787 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1788 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1789 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1790 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1791 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1792 // SUCH DAMAGE. 1793 // 1794 // @(#)wait.h 8.2 (Berkeley) 7/10/94 1795 1796 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 1797 // 1798 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1799 // 1800 // This file contains Original Code and/or Modifications of Original Code 1801 // as defined in and that are subject to the Apple Public Source License 1802 // Version 2.0 (the 'License'). You may not use this file except in 1803 // compliance with the License. The rights granted to you under the License 1804 // may not be used to create, or enable the creation or redistribution of, 1805 // unlawful or unlicensed copies of an Apple operating system, or to 1806 // circumvent, violate, or enable the circumvention or violation of, any 1807 // terms of an Apple operating system software license agreement. 1808 // 1809 // Please obtain a copy of the License at 1810 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1811 // 1812 // The Original Code and all software distributed under the License are 1813 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1814 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1815 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1816 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1817 // Please see the License for the specific language governing rights and 1818 // limitations under the License. 1819 // 1820 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1821 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1822 // Copyright (c) 1991, 1993 1823 // The Regents of the University of California. All rights reserved. 1824 // 1825 // This code is derived from software contributed to Berkeley by 1826 // Berkeley Software Design, Inc. 1827 // 1828 // Redistribution and use in source and binary forms, with or without 1829 // modification, are permitted provided that the following conditions 1830 // are met: 1831 // 1. Redistributions of source code must retain the above copyright 1832 // notice, this list of conditions and the following disclaimer. 1833 // 2. Redistributions in binary form must reproduce the above copyright 1834 // notice, this list of conditions and the following disclaimer in the 1835 // documentation and/or other materials provided with the distribution. 1836 // 3. All advertising materials mentioning features or use of this software 1837 // must display the following acknowledgement: 1838 // This product includes software developed by the University of 1839 // California, Berkeley and its contributors. 1840 // 4. Neither the name of the University nor the names of its contributors 1841 // may be used to endorse or promote products derived from this software 1842 // without specific prior written permission. 1843 // 1844 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1845 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1846 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1847 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1848 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1849 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1850 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1851 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1852 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1853 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1854 // SUCH DAMAGE. 1855 // 1856 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1857 1858 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 1859 // 1860 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1861 // 1862 // This file contains Original Code and/or Modifications of Original Code 1863 // as defined in and that are subject to the Apple Public Source License 1864 // Version 2.0 (the 'License'). You may not use this file except in 1865 // compliance with the License. The rights granted to you under the License 1866 // may not be used to create, or enable the creation or redistribution of, 1867 // unlawful or unlicensed copies of an Apple operating system, or to 1868 // circumvent, violate, or enable the circumvention or violation of, any 1869 // terms of an Apple operating system software license agreement. 1870 // 1871 // Please obtain a copy of the License at 1872 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1873 // 1874 // The Original Code and all software distributed under the License are 1875 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1876 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1877 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1878 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1879 // Please see the License for the specific language governing rights and 1880 // limitations under the License. 1881 // 1882 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1883 1884 // This file holds definitions relevent to the wait4 system call 1885 // and the alternate interfaces that use it (wait, wait3, waitpid). 1886 1887 // [XSI] The type idtype_t shall be defined as an enumeration type whose 1888 // possible values shall include at least P_ALL, P_PID, and P_PGID. 1889 const ( /* wait.h:79:1: */ 1890 P_ALL = 0 1891 P_PID = 1 1892 P_PGID = 2 1893 ) 1894 1895 // 1896 // If you use the zlib library in a product, an acknowledgment is welcome 1897 // in the documentation of your product. If for some reason you cannot 1898 // include such an acknowledgment, I would appreciate that you keep this 1899 // copyright string in the executable of your product. 1900 // 1901 1902 // =========================================================================== 1903 // Function prototypes. 1904 const ( /* deflate.c:66:1: */ 1905 Need_more = 0 // block not completed, need more input or more output 1906 Block_done = 1 // block flush performed 1907 Finish_started = 2 // finish started, need only more output at next deflate 1908 Finish_done = 3 1909 ) 1910 1911 // inflate.h -- internal inflate state definition 1912 // Copyright (C) 1995-2016 Mark Adler 1913 // For conditions of distribution and use, see copyright notice in zlib.h 1914 1915 // WARNING: this file should *not* be used by applications. It is 1916 // part of the implementation of the compression library and is 1917 // subject to change. Applications should only use zlib.h. 1918 // 1919 1920 // define NO_GZIP when compiling if you want to disable gzip header and 1921 // trailer decoding by inflate(). NO_GZIP would be used to avoid linking in 1922 // the crc code when it is not needed. For shared libraries, gzip decoding 1923 // should be left enabled. 1924 1925 // Possible inflate modes between inflate() calls 1926 const ( /* inflate.h:20:1: */ 1927 HEAD = 16180 // i: waiting for magic header 1928 FLAGS = 16181 // i: waiting for method and flags (gzip) 1929 TIME = 16182 // i: waiting for modification time (gzip) 1930 OS = 16183 // i: waiting for extra flags and operating system (gzip) 1931 EXLEN = 16184 // i: waiting for extra length (gzip) 1932 EXTRA = 16185 // i: waiting for extra bytes (gzip) 1933 NAME = 16186 // i: waiting for end of file name (gzip) 1934 COMMENT = 16187 // i: waiting for end of comment (gzip) 1935 HCRC = 16188 // i: waiting for header crc (gzip) 1936 DICTID = 16189 // i: waiting for dictionary check value 1937 DICT = 16190 // waiting for inflateSetDictionary() call 1938 TYPE = 16191 // i: waiting for type bits, including last-flag bit 1939 TYPEDO = 16192 // i: same, but skip check to exit inflate on new block 1940 STORED = 16193 // i: waiting for stored size (length and complement) 1941 COPY_ = 16194 // i/o: same as COPY below, but only first time in 1942 COPY = 16195 // i/o: waiting for input or output to copy stored block 1943 TABLE = 16196 // i: waiting for dynamic block table lengths 1944 LENLENS = 16197 // i: waiting for code length code lengths 1945 CODELENS = 16198 // i: waiting for length/lit and distance code lengths 1946 LEN_ = 16199 // i: same as LEN below, but only first time in 1947 LEN = 16200 // i: waiting for length/lit/eob code 1948 LENEXT = 16201 // i: waiting for length extra bits 1949 DIST = 16202 // i: waiting for distance code 1950 DISTEXT = 16203 // i: waiting for distance extra bits 1951 MATCH = 16204 // o: waiting for output space to copy string 1952 LIT = 16205 // o: waiting for output space to write literal 1953 CHECK = 16206 // i: waiting for 32-bit check value 1954 LENGTH = 16207 // i: waiting for 32-bit length (gzip) 1955 DONE = 16208 // finished check, done -- remain here until reset 1956 BAD = 16209 // got a data error -- remain here until reset 1957 MEM = 16210 // got an inflate() memory error -- remain here until reset 1958 SYNC = 16211 1959 ) 1960 1961 // op values as set by inflate_table(): 1962 // 00000000 - literal 1963 // 0000tttt - table link, tttt != 0 is the number of table index bits 1964 // 0001eeee - length or distance, eeee is the number of extra bits 1965 // 01100000 - end of block 1966 // 01000000 - invalid code 1967 // 1968 1969 // Maximum size of the dynamic table. The maximum number of code structures is 1970 // 1444, which is the sum of 852 for literal/length codes and 592 for distance 1971 // codes. These values were found by exhaustive searches using the program 1972 // examples/enough.c found in the zlib distribtution. The arguments to that 1973 // program are the number of symbols, the initial root table size, and the 1974 // maximum bit length of a code. "enough 286 9 15" for literal/length codes 1975 // returns returns 852, and "enough 30 6 15" for distance codes returns 592. 1976 // The initial root table size (9 or 6) is found in the fifth argument of the 1977 // inflate_table() calls in inflate.c and infback.c. If the root table size is 1978 // changed, then these maximum sizes would be need to be recalculated and 1979 // updated. 1980 1981 // Type of code to build for inflate_table() 1982 const ( /* inftrees.h:54:1: */ 1983 CODES = 0 1984 LENS = 1 1985 DISTS = 2 1986 ) 1987 1988 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 1989 1990 type Size_t = uint64 /* <builtin>:9:23 */ 1991 1992 type Wchar_t = int32 /* <builtin>:15:24 */ 1993 1994 type X__int128_t = struct { 1995 Flo int64 1996 Fhi int64 1997 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 1998 type X__uint128_t = struct { 1999 Flo uint64 2000 Fhi uint64 2001 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 2002 2003 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 2004 type X__float128 = float64 /* <builtin>:47:21 */ 2005 2006 // A null pointer constant. 2007 2008 // Offset of member MEMBER in a struct of type TYPE. 2009 2010 // Type whose alignment is supported in every context and is at least 2011 // as great as that of any standard type not using alignment 2012 // specifiers. 2013 type Max_align_t = struct { 2014 F__max_align_ll int64 2015 F__max_align_ld float64 2016 } /* stddef.h:426:3 */ 2017 2018 type Z_size_t = Size_t /* zconf.h:248:21 */ 2019 2020 // Maximum value for memLevel in deflateInit2 2021 2022 // Maximum value for windowBits in deflateInit2 and inflateInit2. 2023 // WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files 2024 // created by gzip. (Files created by minigzip can still be extracted by 2025 // gzip.) 2026 2027 // The memory requirements for deflate are (in bytes): 2028 // (1 << (windowBits+2)) + (1 << (memLevel+9)) 2029 // that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values) 2030 // plus a few kilobytes for small objects. For example, if you want to reduce 2031 // the default memory requirements from 256K to 128K, compile with 2032 // make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7" 2033 // Of course this will generally degrade compression (there's no free lunch). 2034 // 2035 // The memory requirements for inflate are (in bytes) 1 << windowBits 2036 // that is, 32K for windowBits=15 (default value) plus about 7 kilobytes 2037 // for small objects. 2038 2039 // Type declarations 2040 2041 // The following definitions for FAR are needed only for MSDOS mixed 2042 // model programming (small or medium model with some far allocations). 2043 // This was tested only with MSC; for other MSDOS compilers you may have 2044 // to define NO_MEMCPY in zutil.h. If you don't need the mixed model, 2045 // just define FAR to be empty. 2046 2047 type Byte = uint8 /* zconf.h:391:24 */ // 8 bits 2048 type UInt = uint32 /* zconf.h:393:24 */ // 16 bits or more 2049 type ULong = uint64 /* zconf.h:394:24 */ // 32 bits or more 2050 2051 type Bytef = Byte /* zconf.h:400:22 */ 2052 type Charf = int8 /* zconf.h:402:19 */ 2053 type Intf = int32 /* zconf.h:403:19 */ 2054 type UIntf = UInt /* zconf.h:404:19 */ 2055 type ULongf = ULong /* zconf.h:405:19 */ 2056 2057 type Voidpc = uintptr /* zconf.h:408:23 */ 2058 type Voidpf = uintptr /* zconf.h:409:23 */ 2059 type Voidp = uintptr /* zconf.h:410:23 */ 2060 2061 // Copyright (C) 1992-2021 Free Software Foundation, Inc. 2062 // 2063 // This file is part of GCC. 2064 // 2065 // GCC is free software; you can redistribute it and/or modify it under 2066 // the terms of the GNU General Public License as published by the Free 2067 // Software Foundation; either version 3, or (at your option) any later 2068 // version. 2069 // 2070 // GCC is distributed in the hope that it will be useful, but WITHOUT ANY 2071 // WARRANTY; without even the implied warranty of MERCHANTABILITY or 2072 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2073 // for more details. 2074 // 2075 // Under Section 7 of GPL version 3, you are granted additional 2076 // permissions described in the GCC Runtime Library Exception, version 2077 // 3.1, as published by the Free Software Foundation. 2078 // 2079 // You should have received a copy of the GNU General Public License and 2080 // a copy of the GCC Runtime Library Exception along with this program; 2081 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 2082 // <http://www.gnu.org/licenses/>. 2083 2084 // This administrivia gets added to the beginning of limits.h 2085 // if the system has its own version of limits.h. 2086 2087 // We use _GCC_LIMITS_H_ because we want this not to match 2088 // any macros that the system's limits.h uses for its own purposes. 2089 2090 // Use "..." so that we find syslimits.h only in this same directory. 2091 // syslimits.h stands for the system's own limits.h file. 2092 // If we can use it ok unmodified, then we install this text. 2093 // If fixincludes fixes it, then the fixed version is installed 2094 // instead of this text. 2095 2096 // Copyright (c) 2000, 2004-2007, 2009 Apple Inc. All rights reserved. 2097 // 2098 // @APPLE_LICENSE_HEADER_START@ 2099 // 2100 // This file contains Original Code and/or Modifications of Original Code 2101 // as defined in and that are subject to the Apple Public Source License 2102 // Version 2.0 (the 'License'). You may not use this file except in 2103 // compliance with the License. Please obtain a copy of the License at 2104 // http://www.opensource.apple.com/apsl/ and read it before using this 2105 // file. 2106 // 2107 // The Original Code and all software distributed under the License are 2108 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2109 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2110 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2111 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2112 // Please see the License for the specific language governing rights and 2113 // limitations under the License. 2114 // 2115 // @APPLE_LICENSE_HEADER_END@ 2116 // $NetBSD: limits.h,v 1.8 1996/10/21 05:10:50 jtc Exp $ 2117 2118 // Copyright (c) 1988, 1993 2119 // The Regents of the University of California. All rights reserved. 2120 // 2121 // Redistribution and use in source and binary forms, with or without 2122 // modification, are permitted provided that the following conditions 2123 // are met: 2124 // 1. Redistributions of source code must retain the above copyright 2125 // notice, this list of conditions and the following disclaimer. 2126 // 2. Redistributions in binary form must reproduce the above copyright 2127 // notice, this list of conditions and the following disclaimer in the 2128 // documentation and/or other materials provided with the distribution. 2129 // 3. All advertising materials mentioning features or use of this software 2130 // must display the following acknowledgement: 2131 // This product includes software developed by the University of 2132 // California, Berkeley and its contributors. 2133 // 4. Neither the name of the University nor the names of its contributors 2134 // may be used to endorse or promote products derived from this software 2135 // without specific prior written permission. 2136 // 2137 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2138 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2139 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2140 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2141 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2142 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2143 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2144 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2145 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2146 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2147 // SUCH DAMAGE. 2148 // 2149 // @(#)limits.h 8.2 (Berkeley) 1/4/94 2150 2151 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 2152 // 2153 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2154 // 2155 // This file contains Original Code and/or Modifications of Original Code 2156 // as defined in and that are subject to the Apple Public Source License 2157 // Version 2.0 (the 'License'). You may not use this file except in 2158 // compliance with the License. The rights granted to you under the License 2159 // may not be used to create, or enable the creation or redistribution of, 2160 // unlawful or unlicensed copies of an Apple operating system, or to 2161 // circumvent, violate, or enable the circumvention or violation of, any 2162 // terms of an Apple operating system software license agreement. 2163 // 2164 // Please obtain a copy of the License at 2165 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2166 // 2167 // The Original Code and all software distributed under the License are 2168 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2169 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2170 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2171 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2172 // Please see the License for the specific language governing rights and 2173 // limitations under the License. 2174 // 2175 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2176 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2177 // Copyright (c) 1991, 1993 2178 // The Regents of the University of California. All rights reserved. 2179 // 2180 // This code is derived from software contributed to Berkeley by 2181 // Berkeley Software Design, Inc. 2182 // 2183 // Redistribution and use in source and binary forms, with or without 2184 // modification, are permitted provided that the following conditions 2185 // are met: 2186 // 1. Redistributions of source code must retain the above copyright 2187 // notice, this list of conditions and the following disclaimer. 2188 // 2. Redistributions in binary form must reproduce the above copyright 2189 // notice, this list of conditions and the following disclaimer in the 2190 // documentation and/or other materials provided with the distribution. 2191 // 3. All advertising materials mentioning features or use of this software 2192 // must display the following acknowledgement: 2193 // This product includes software developed by the University of 2194 // California, Berkeley and its contributors. 2195 // 4. Neither the name of the University nor the names of its contributors 2196 // may be used to endorse or promote products derived from this software 2197 // without specific prior written permission. 2198 // 2199 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2200 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2201 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2202 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2203 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2204 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2205 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2206 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2207 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2208 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2209 // SUCH DAMAGE. 2210 // 2211 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 2212 2213 // This SDK is designed to work with clang and specific versions of 2214 // gcc >= 4.0 with Apple's patch sets 2215 2216 // Compatibility with compilers and environments that don't support compiler 2217 // feature checking function-like macros. 2218 2219 // The __CONCAT macro is used to concatenate parts of symbol names, e.g. 2220 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo. 2221 // The __CONCAT macro is a bit tricky -- make sure you don't put spaces 2222 // in between its arguments. __CONCAT can also concatenate double-quoted 2223 // strings produced by the __STRING macro, but this only works with ANSI C. 2224 2225 // __unused denotes variables and functions that may not be used, preventing 2226 // the compiler from warning about it if not used. 2227 2228 // __used forces variables and functions to be included even if it appears 2229 // to the compiler that they are not used (and would thust be discarded). 2230 2231 // __cold marks code used for debugging or that is rarely taken 2232 // and tells the compiler to optimize for size and outline code. 2233 2234 // __deprecated causes the compiler to produce a warning when encountering 2235 // code using the deprecated functionality. 2236 // __deprecated_msg() does the same, and compilers that support it will print 2237 // a message along with the deprecation warning. 2238 // This may require turning on such warning with the -Wdeprecated flag. 2239 // __deprecated_enum_msg() should be used on enums, and compilers that support 2240 // it will print the deprecation warning. 2241 // __kpi_deprecated() specifically indicates deprecation of kernel programming 2242 // interfaces in Kernel.framework used by KEXTs. 2243 2244 // __unavailable causes the compiler to error out when encountering 2245 // code using the tagged function of variable. 2246 2247 // Delete pseudo-keywords wherever they are not available or needed. 2248 2249 // We use `__restrict' as a way to define the `restrict' type qualifier 2250 // without disturbing older software that is unaware of C99 keywords. 2251 2252 // Compatibility with compilers and environments that don't support the 2253 // nullability feature. 2254 2255 // __disable_tail_calls causes the compiler to not perform tail call 2256 // optimization inside the marked function. 2257 2258 // __not_tail_called causes the compiler to prevent tail call optimization 2259 // on statically bound calls to the function. It has no effect on indirect 2260 // calls. Virtual functions, objective-c methods, and functions marked as 2261 // "always_inline" cannot be marked as __not_tail_called. 2262 2263 // __result_use_check warns callers of a function that not using the function 2264 // return value is a bug, i.e. dismissing malloc() return value results in a 2265 // memory leak. 2266 2267 // __swift_unavailable causes the compiler to mark a symbol as specifically 2268 // unavailable in Swift, regardless of any other availability in C. 2269 2270 // __abortlike is the attribute to put on functions like abort() that are 2271 // typically used to mark assertions. These optimize the codegen 2272 // for outlining while still maintaining debugability. 2273 2274 // Declaring inline functions within headers is error-prone due to differences 2275 // across various versions of the C language and extensions. __header_inline 2276 // can be used to declare inline functions within system headers. In cases 2277 // where you want to force inlining instead of letting the compiler make 2278 // the decision, you can use __header_always_inline. 2279 // 2280 // Be aware that using inline for functions which compilers may also provide 2281 // builtins can behave differently under various compilers. If you intend to 2282 // provide an inline version of such a function, you may want to use a macro 2283 // instead. 2284 // 2285 // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly 2286 // support c99 inline in some cases: 2287 // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965 2288 2289 // Compiler-dependent macros that bracket portions of code where the 2290 // "-Wunreachable-code" warning should be ignored. Please use sparingly. 2291 2292 // Compiler-dependent macros to declare that functions take printf-like 2293 // or scanf-like arguments. They are null except for versions of gcc 2294 // that are known to support the features properly. Functions declared 2295 // with these attributes will cause compilation warnings if there is a 2296 // mismatch between the format string and subsequent function parameter 2297 // types. 2298 2299 // Source compatibility only, ID string not emitted in object file 2300 2301 // __alloc_size can be used to label function arguments that represent the 2302 // size of memory that the function allocates and returns. The one-argument 2303 // form labels a single argument that gives the allocation size (where the 2304 // arguments are numbered from 1): 2305 // 2306 // void *malloc(size_t __size) __alloc_size(1); 2307 // 2308 // The two-argument form handles the case where the size is calculated as the 2309 // product of two arguments: 2310 // 2311 // void *calloc(size_t __count, size_t __size) __alloc_size(1,2); 2312 2313 // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail 2314 // 2315 // DEFAULT By default newly complied code will get POSIX APIs plus 2316 // Apple API extensions in scope. 2317 // 2318 // Most users will use this compilation environment to avoid 2319 // behavioral differences between 32 and 64 bit code. 2320 // 2321 // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple 2322 // API extensions in scope. 2323 // 2324 // This is generally equivalent to the Tiger release compilation 2325 // environment, except that it cannot be applied to 64 bit code; 2326 // its use is discouraged. 2327 // 2328 // We expect this environment to be deprecated in the future. 2329 // 2330 // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the 2331 // available APIs to exactly the set of APIs defined by the 2332 // corresponding standard, based on the value defined. 2333 // 2334 // A correct, portable definition for _POSIX_C_SOURCE is 200112L. 2335 // A correct, portable definition for _XOPEN_SOURCE is 600L. 2336 // 2337 // Apple API extensions are not visible in this environment, 2338 // which can cause Apple specific code to fail to compile, 2339 // or behave incorrectly if prototypes are not in scope or 2340 // warnings about missing prototypes are not enabled or ignored. 2341 // 2342 // In any compilation environment, for correct symbol resolution to occur, 2343 // function prototypes must be in scope. It is recommended that all Apple 2344 // tools users add either the "-Wall" or "-Wimplicit-function-declaration" 2345 // compiler flags to their projects to be warned when a function is being 2346 // used without a prototype in scope. 2347 2348 // These settings are particular to each product. 2349 // Platform: MacOSX 2350 // #undef __DARWIN_ONLY_UNIX_CONFORMANCE (automatically set for 64-bit) 2351 2352 // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow 2353 // legacy code to use the old symbol, thus maintaining binary compatibility 2354 // while new code can use a standards compliant version of the same function. 2355 // 2356 // __DARWIN_ALIAS is used by itself if the function signature has not 2357 // changed, it is used along with a #ifdef check for __DARWIN_UNIX03 2358 // if the signature has changed. Because the __LP64__ environment 2359 // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be 2360 // defined, but causes __DARWIN_ALIAS to do no symbol mangling. 2361 // 2362 // As a special case, when XCode is used to target a specific version of the 2363 // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 2364 // will be defined by the compiler, with the digits representing major version 2365 // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting 2366 // pre-10.5, and it is the default compilation environment, revert the 2367 // compilation environment to pre-__DARWIN_UNIX03. 2368 2369 // symbol suffixes used for symbol versioning 2370 2371 // symbol versioning macros 2372 2373 // symbol release macros 2374 // Copyright (c) 2010 Apple Inc. All rights reserved. 2375 // 2376 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2377 // 2378 // This file contains Original Code and/or Modifications of Original Code 2379 // as defined in and that are subject to the Apple Public Source License 2380 // Version 2.0 (the 'License'). You may not use this file except in 2381 // compliance with the License. The rights granted to you under the License 2382 // may not be used to create, or enable the creation or redistribution of, 2383 // unlawful or unlicensed copies of an Apple operating system, or to 2384 // circumvent, violate, or enable the circumvention or violation of, any 2385 // terms of an Apple operating system software license agreement. 2386 // 2387 // Please obtain a copy of the License at 2388 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2389 // 2390 // The Original Code and all software distributed under the License are 2391 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2392 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2393 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2394 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2395 // Please see the License for the specific language governing rights and 2396 // limitations under the License. 2397 // 2398 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2399 2400 // POSIX.1 requires that the macros we test be defined before any standard 2401 // header file is included. This permits us to convert values for feature 2402 // testing, as necessary, using only _POSIX_C_SOURCE. 2403 // 2404 // Here's a quick run-down of the versions: 2405 // defined(_POSIX_SOURCE) 1003.1-1988 2406 // _POSIX_C_SOURCE == 1L 1003.1-1990 2407 // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option 2408 // _POSIX_C_SOURCE == 199309L 1003.1b-1993 2409 // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995, 2410 // and the omnibus ISO/IEC 9945-1: 1996 2411 // _POSIX_C_SOURCE == 200112L 1003.1-2001 2412 // _POSIX_C_SOURCE == 200809L 1003.1-2008 2413 // 2414 // In addition, the X/Open Portability Guide, which is now the Single UNIX 2415 // Specification, defines a feature-test macro which indicates the version of 2416 // that specification, and which subsumes _POSIX_C_SOURCE. 2417 2418 // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L. 2419 2420 // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L. 2421 2422 // Deal with various X/Open Portability Guides and Single UNIX Spec. 2423 2424 // Deal with all versions of POSIX. The ordering relative to the tests above is 2425 // important. 2426 2427 // POSIX C deprecation macros 2428 // Copyright (c) 2010 Apple Inc. All rights reserved. 2429 // 2430 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2431 // 2432 // This file contains Original Code and/or Modifications of Original Code 2433 // as defined in and that are subject to the Apple Public Source License 2434 // Version 2.0 (the 'License'). You may not use this file except in 2435 // compliance with the License. The rights granted to you under the License 2436 // may not be used to create, or enable the creation or redistribution of, 2437 // unlawful or unlicensed copies of an Apple operating system, or to 2438 // circumvent, violate, or enable the circumvention or violation of, any 2439 // terms of an Apple operating system software license agreement. 2440 // 2441 // Please obtain a copy of the License at 2442 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2443 // 2444 // The Original Code and all software distributed under the License are 2445 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2446 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2447 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2448 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2449 // Please see the License for the specific language governing rights and 2450 // limitations under the License. 2451 // 2452 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2453 2454 // Set a single macro which will always be defined and can be used to determine 2455 // the appropriate namespace. For POSIX, these values will correspond to 2456 // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding 2457 // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE) 2458 2459 // If the developer has neither requested a strict language mode nor a version 2460 // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part 2461 // of __DARWIN_C_FULL. 2462 2463 // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and 2464 // c99 still want long longs. While not perfect, we allow long longs for 2465 // g++. 2466 2467 // **************************************** 2468 // 2469 // Public darwin-specific feature macros 2470 // 2471 2472 // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and 2473 // structures modified for 64-bit inodes (like struct stat) will be used. 2474 2475 // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only 2476 // be 64-bit; there is no support for 32-bit ino_t when this macro is defined 2477 // (and non-zero). There is no struct stat64 either, as the regular 2478 // struct stat will already be the 64-bit version. 2479 2480 // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated 2481 // in 10.5 exists; no pre-10.5 variants are available. 2482 2483 // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API 2484 // are available (the legacy BSD APIs are not available) 2485 2486 // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on, 2487 // and specifies the conformance level (3 is SUSv3) 2488 2489 // This macro casts away the qualifier from the variable 2490 // 2491 // Note: use at your own risk, removing qualifiers can result in 2492 // catastrophic run-time failures. 2493 2494 // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be 2495 // used from other compilation units, but not other libraries or executables. 2496 2497 // Architecture validation for current SDK 2498 2499 // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS 2500 // 2501 // This provides more advanced type checking on compilers supporting 2502 // the proper extensions, even in C. 2503 2504 // This is the `system' limits.h, independent of any particular 2505 // compiler. GCC provides its own limits.h which can be found in 2506 // /usr/lib/gcc, although it is not very informative. 2507 // This file is public domain. 2508 // Copyright (c) 1988, 1993 2509 // The Regents of the University of California. All rights reserved. 2510 // 2511 // Redistribution and use in source and binary forms, with or without 2512 // modification, are permitted provided that the following conditions 2513 // are met: 2514 // 1. Redistributions of source code must retain the above copyright 2515 // notice, this list of conditions and the following disclaimer. 2516 // 2. Redistributions in binary form must reproduce the above copyright 2517 // notice, this list of conditions and the following disclaimer in the 2518 // documentation and/or other materials provided with the distribution. 2519 // 3. All advertising materials mentioning features or use of this software 2520 // must display the following acknowledgement: 2521 // This product includes software developed by the University of 2522 // California, Berkeley and its contributors. 2523 // 4. Neither the name of the University nor the names of its contributors 2524 // may be used to endorse or promote products derived from this software 2525 // without specific prior written permission. 2526 // 2527 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2528 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2529 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2530 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2531 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2532 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2533 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2534 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2535 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2536 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2537 // SUCH DAMAGE. 2538 // 2539 // @(#)limits.h 8.3 (Berkeley) 1/4/94 2540 2541 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 2542 // 2543 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2544 // 2545 // This file contains Original Code and/or Modifications of Original Code 2546 // as defined in and that are subject to the Apple Public Source License 2547 // Version 2.0 (the 'License'). You may not use this file except in 2548 // compliance with the License. The rights granted to you under the License 2549 // may not be used to create, or enable the creation or redistribution of, 2550 // unlawful or unlicensed copies of an Apple operating system, or to 2551 // circumvent, violate, or enable the circumvention or violation of, any 2552 // terms of an Apple operating system software license agreement. 2553 // 2554 // Please obtain a copy of the License at 2555 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2556 // 2557 // The Original Code and all software distributed under the License are 2558 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2559 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2560 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2561 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2562 // Please see the License for the specific language governing rights and 2563 // limitations under the License. 2564 // 2565 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2566 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2567 // Copyright (c) 1991, 1993 2568 // The Regents of the University of California. All rights reserved. 2569 // 2570 // This code is derived from software contributed to Berkeley by 2571 // Berkeley Software Design, Inc. 2572 // 2573 // Redistribution and use in source and binary forms, with or without 2574 // modification, are permitted provided that the following conditions 2575 // are met: 2576 // 1. Redistributions of source code must retain the above copyright 2577 // notice, this list of conditions and the following disclaimer. 2578 // 2. Redistributions in binary form must reproduce the above copyright 2579 // notice, this list of conditions and the following disclaimer in the 2580 // documentation and/or other materials provided with the distribution. 2581 // 3. All advertising materials mentioning features or use of this software 2582 // must display the following acknowledgement: 2583 // This product includes software developed by the University of 2584 // California, Berkeley and its contributors. 2585 // 4. Neither the name of the University nor the names of its contributors 2586 // may be used to endorse or promote products derived from this software 2587 // without specific prior written permission. 2588 // 2589 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2590 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2591 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2592 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2593 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2594 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2595 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2596 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2597 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2598 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2599 // SUCH DAMAGE. 2600 // 2601 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 2602 2603 // Copyright (c) 2004 Apple Computer, Inc. All rights reserved. 2604 // 2605 // @APPLE_LICENSE_HEADER_START@ 2606 // 2607 // The contents of this file constitute Original Code as defined in and 2608 // are subject to the Apple Public Source License Version 1.1 (the 2609 // "License"). You may not use this file except in compliance with the 2610 // License. Please obtain a copy of the License at 2611 // http://www.apple.com/publicsource and read it before using this file. 2612 // 2613 // This Original Code and all software distributed under the License are 2614 // distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2615 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2616 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2617 // FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the 2618 // License for the specific language governing rights and limitations 2619 // under the License. 2620 // 2621 // @APPLE_LICENSE_HEADER_END@ 2622 2623 // According to ANSI (section 2.2.4.2), the values below must be usable by 2624 // #if preprocessing directives. Additionally, the expression must have the 2625 // same type as would an expression that is an object of the corresponding 2626 // type converted according to the integral promotions. The subtraction for 2627 // INT_MIN and LONG_MIN is so the value is not unsigned; 2147483648 is an 2628 // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2). 2629 // These numbers work for pcc as well. The UINT_MAX and ULONG_MAX values 2630 // are written as hex so that GCC will be quiet about large integer constants. 2631 2632 // Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 2633 // 2634 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2635 // 2636 // This file contains Original Code and/or Modifications of Original Code 2637 // as defined in and that are subject to the Apple Public Source License 2638 // Version 2.0 (the 'License'). You may not use this file except in 2639 // compliance with the License. The rights granted to you under the License 2640 // may not be used to create, or enable the creation or redistribution of, 2641 // unlawful or unlicensed copies of an Apple operating system, or to 2642 // circumvent, violate, or enable the circumvention or violation of, any 2643 // terms of an Apple operating system software license agreement. 2644 // 2645 // Please obtain a copy of the License at 2646 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2647 // 2648 // The Original Code and all software distributed under the License are 2649 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2650 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2651 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2652 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2653 // Please see the License for the specific language governing rights and 2654 // limitations under the License. 2655 // 2656 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2657 // $NetBSD: syslimits.h,v 1.15 1997/06/25 00:48:09 lukem Exp $ 2658 2659 // Copyright (c) 1988, 1993 2660 // The Regents of the University of California. All rights reserved. 2661 // 2662 // Redistribution and use in source and binary forms, with or without 2663 // modification, are permitted provided that the following conditions 2664 // are met: 2665 // 1. Redistributions of source code must retain the above copyright 2666 // notice, this list of conditions and the following disclaimer. 2667 // 2. Redistributions in binary form must reproduce the above copyright 2668 // notice, this list of conditions and the following disclaimer in the 2669 // documentation and/or other materials provided with the distribution. 2670 // 3. All advertising materials mentioning features or use of this software 2671 // must display the following acknowledgement: 2672 // This product includes software developed by the University of 2673 // California, Berkeley and its contributors. 2674 // 4. Neither the name of the University nor the names of its contributors 2675 // may be used to endorse or promote products derived from this software 2676 // without specific prior written permission. 2677 // 2678 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2679 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2680 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2681 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2682 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2683 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2684 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2685 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2686 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2687 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2688 // SUCH DAMAGE. 2689 // 2690 // @(#)syslimits.h 8.1 (Berkeley) 6/2/93 2691 2692 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 2693 // 2694 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2695 // 2696 // This file contains Original Code and/or Modifications of Original Code 2697 // as defined in and that are subject to the Apple Public Source License 2698 // Version 2.0 (the 'License'). You may not use this file except in 2699 // compliance with the License. The rights granted to you under the License 2700 // may not be used to create, or enable the creation or redistribution of, 2701 // unlawful or unlicensed copies of an Apple operating system, or to 2702 // circumvent, violate, or enable the circumvention or violation of, any 2703 // terms of an Apple operating system software license agreement. 2704 // 2705 // Please obtain a copy of the License at 2706 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2707 // 2708 // The Original Code and all software distributed under the License are 2709 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2710 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2711 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2712 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2713 // Please see the License for the specific language governing rights and 2714 // limitations under the License. 2715 // 2716 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2717 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2718 // Copyright (c) 1991, 1993 2719 // The Regents of the University of California. All rights reserved. 2720 // 2721 // This code is derived from software contributed to Berkeley by 2722 // Berkeley Software Design, Inc. 2723 // 2724 // Redistribution and use in source and binary forms, with or without 2725 // modification, are permitted provided that the following conditions 2726 // are met: 2727 // 1. Redistributions of source code must retain the above copyright 2728 // notice, this list of conditions and the following disclaimer. 2729 // 2. Redistributions in binary form must reproduce the above copyright 2730 // notice, this list of conditions and the following disclaimer in the 2731 // documentation and/or other materials provided with the distribution. 2732 // 3. All advertising materials mentioning features or use of this software 2733 // must display the following acknowledgement: 2734 // This product includes software developed by the University of 2735 // California, Berkeley and its contributors. 2736 // 4. Neither the name of the University nor the names of its contributors 2737 // may be used to endorse or promote products derived from this software 2738 // without specific prior written permission. 2739 // 2740 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2741 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2742 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2743 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2744 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2745 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2746 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2747 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2748 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2749 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2750 // SUCH DAMAGE. 2751 // 2752 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 2753 2754 // Note: CHILD_MAX *must* be less than hard_maxproc, which is set at 2755 // compile time; you *cannot* set it higher than the hard limit!! 2756 2757 // = ((PRIO_MAX - PRIO_MIN) / 2) + 1 2758 // range: 0 - 39 [(2 * NZERO) - 1] 2759 // 0 is not actually used 2760 2761 // Actually for XSI Visible 2762 2763 // Removed in Issue 6 2764 2765 // NZERO to be defined here. TBD. See also sys/param.h 2766 2767 // Copyright (C) 1991-2021 Free Software Foundation, Inc. 2768 // 2769 // This file is part of GCC. 2770 // 2771 // GCC is free software; you can redistribute it and/or modify it under 2772 // the terms of the GNU General Public License as published by the Free 2773 // Software Foundation; either version 3, or (at your option) any later 2774 // version. 2775 // 2776 // GCC is distributed in the hope that it will be useful, but WITHOUT ANY 2777 // WARRANTY; without even the implied warranty of MERCHANTABILITY or 2778 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2779 // for more details. 2780 // 2781 // Under Section 7 of GPL version 3, you are granted additional 2782 // permissions described in the GCC Runtime Library Exception, version 2783 // 3.1, as published by the Free Software Foundation. 2784 // 2785 // You should have received a copy of the GNU General Public License and 2786 // a copy of the GCC Runtime Library Exception along with this program; 2787 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 2788 // <http://www.gnu.org/licenses/>. 2789 2790 // Number of bits in a `char'. 2791 2792 // Maximum length of a multibyte character. 2793 2794 // Minimum and maximum values a `signed char' can hold. 2795 2796 // Maximum value an `unsigned char' can hold. (Minimum is 0). 2797 2798 // Minimum and maximum values a `char' can hold. 2799 2800 // Minimum and maximum values a `signed short int' can hold. 2801 2802 // Maximum value an `unsigned short int' can hold. (Minimum is 0). 2803 2804 // Minimum and maximum values a `signed int' can hold. 2805 2806 // Maximum value an `unsigned int' can hold. (Minimum is 0). 2807 2808 // Minimum and maximum values a `signed long int' can hold. 2809 // (Same as `int'). 2810 2811 // Maximum value an `unsigned long int' can hold. (Minimum is 0). 2812 2813 // Minimum and maximum values a `signed long long int' can hold. 2814 2815 // Maximum value an `unsigned long long int' can hold. (Minimum is 0). 2816 2817 // Minimum and maximum values a `signed long long int' can hold. 2818 2819 // Maximum value an `unsigned long long int' can hold. (Minimum is 0). 2820 2821 // This administrivia gets added to the end of limits.h 2822 // if the system has its own version of limits.h. 2823 2824 type Z_crc_t = uint32 /* zconf.h:429:17 */ 2825 2826 // Copyright (c) 2000-2008 Apple Inc. All rights reserved. 2827 // 2828 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2829 // 2830 // This file contains Original Code and/or Modifications of Original Code 2831 // as defined in and that are subject to the Apple Public Source License 2832 // Version 2.0 (the 'License'). You may not use this file except in 2833 // compliance with the License. The rights granted to you under the License 2834 // may not be used to create, or enable the creation or redistribution of, 2835 // unlawful or unlicensed copies of an Apple operating system, or to 2836 // circumvent, violate, or enable the circumvention or violation of, any 2837 // terms of an Apple operating system software license agreement. 2838 // 2839 // Please obtain a copy of the License at 2840 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2841 // 2842 // The Original Code and all software distributed under the License are 2843 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2844 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2845 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2846 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2847 // Please see the License for the specific language governing rights and 2848 // limitations under the License. 2849 // 2850 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2851 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 2852 // Copyright (c) 1982, 1986, 1991, 1993, 1994 2853 // The Regents of the University of California. All rights reserved. 2854 // (c) UNIX System Laboratories, Inc. 2855 // All or some portions of this file are derived from material licensed 2856 // to the University of California by American Telephone and Telegraph 2857 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 2858 // the permission of UNIX System Laboratories, Inc. 2859 // 2860 // Redistribution and use in source and binary forms, with or without 2861 // modification, are permitted provided that the following conditions 2862 // are met: 2863 // 1. Redistributions of source code must retain the above copyright 2864 // notice, this list of conditions and the following disclaimer. 2865 // 2. Redistributions in binary form must reproduce the above copyright 2866 // notice, this list of conditions and the following disclaimer in the 2867 // documentation and/or other materials provided with the distribution. 2868 // 3. All advertising materials mentioning features or use of this software 2869 // must display the following acknowledgement: 2870 // This product includes software developed by the University of 2871 // California, Berkeley and its contributors. 2872 // 4. Neither the name of the University nor the names of its contributors 2873 // may be used to endorse or promote products derived from this software 2874 // without specific prior written permission. 2875 // 2876 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2877 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2878 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2879 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2880 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2881 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2882 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2883 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2884 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2885 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2886 // SUCH DAMAGE. 2887 // 2888 // @(#)types.h 8.4 (Berkeley) 1/21/94 2889 2890 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 2891 // 2892 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2893 // 2894 // This file contains Original Code and/or Modifications of Original Code 2895 // as defined in and that are subject to the Apple Public Source License 2896 // Version 2.0 (the 'License'). You may not use this file except in 2897 // compliance with the License. The rights granted to you under the License 2898 // may not be used to create, or enable the creation or redistribution of, 2899 // unlawful or unlicensed copies of an Apple operating system, or to 2900 // circumvent, violate, or enable the circumvention or violation of, any 2901 // terms of an Apple operating system software license agreement. 2902 // 2903 // Please obtain a copy of the License at 2904 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2905 // 2906 // The Original Code and all software distributed under the License are 2907 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2908 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2909 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2910 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2911 // Please see the License for the specific language governing rights and 2912 // limitations under the License. 2913 // 2914 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2915 2916 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 2917 // 2918 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2919 // 2920 // This file contains Original Code and/or Modifications of Original Code 2921 // as defined in and that are subject to the Apple Public Source License 2922 // Version 2.0 (the 'License'). You may not use this file except in 2923 // compliance with the License. The rights granted to you under the License 2924 // may not be used to create, or enable the creation or redistribution of, 2925 // unlawful or unlicensed copies of an Apple operating system, or to 2926 // circumvent, violate, or enable the circumvention or violation of, any 2927 // terms of an Apple operating system software license agreement. 2928 // 2929 // Please obtain a copy of the License at 2930 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2931 // 2932 // The Original Code and all software distributed under the License are 2933 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2934 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2935 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2936 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2937 // Please see the License for the specific language governing rights and 2938 // limitations under the License. 2939 // 2940 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2941 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2942 // Copyright (c) 1991, 1993 2943 // The Regents of the University of California. All rights reserved. 2944 // 2945 // This code is derived from software contributed to Berkeley by 2946 // Berkeley Software Design, Inc. 2947 // 2948 // Redistribution and use in source and binary forms, with or without 2949 // modification, are permitted provided that the following conditions 2950 // are met: 2951 // 1. Redistributions of source code must retain the above copyright 2952 // notice, this list of conditions and the following disclaimer. 2953 // 2. Redistributions in binary form must reproduce the above copyright 2954 // notice, this list of conditions and the following disclaimer in the 2955 // documentation and/or other materials provided with the distribution. 2956 // 3. All advertising materials mentioning features or use of this software 2957 // must display the following acknowledgement: 2958 // This product includes software developed by the University of 2959 // California, Berkeley and its contributors. 2960 // 4. Neither the name of the University nor the names of its contributors 2961 // may be used to endorse or promote products derived from this software 2962 // without specific prior written permission. 2963 // 2964 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2965 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2966 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2967 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2968 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2969 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2970 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2971 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2972 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2973 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2974 // SUCH DAMAGE. 2975 // 2976 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 2977 2978 // Machine type dependent parameters. 2979 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 2980 // 2981 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2982 // 2983 // This file contains Original Code and/or Modifications of Original Code 2984 // as defined in and that are subject to the Apple Public Source License 2985 // Version 2.0 (the 'License'). You may not use this file except in 2986 // compliance with the License. The rights granted to you under the License 2987 // may not be used to create, or enable the creation or redistribution of, 2988 // unlawful or unlicensed copies of an Apple operating system, or to 2989 // circumvent, violate, or enable the circumvention or violation of, any 2990 // terms of an Apple operating system software license agreement. 2991 // 2992 // Please obtain a copy of the License at 2993 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2994 // 2995 // The Original Code and all software distributed under the License are 2996 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2997 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2998 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2999 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3000 // Please see the License for the specific language governing rights and 3001 // limitations under the License. 3002 // 3003 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3004 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3005 3006 // Copyright (c) 2000-2008 Apple Inc. All rights reserved. 3007 // 3008 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3009 // 3010 // This file contains Original Code and/or Modifications of Original Code 3011 // as defined in and that are subject to the Apple Public Source License 3012 // Version 2.0 (the 'License'). You may not use this file except in 3013 // compliance with the License. The rights granted to you under the License 3014 // may not be used to create, or enable the creation or redistribution of, 3015 // unlawful or unlicensed copies of an Apple operating system, or to 3016 // circumvent, violate, or enable the circumvention or violation of, any 3017 // terms of an Apple operating system software license agreement. 3018 // 3019 // Please obtain a copy of the License at 3020 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3021 // 3022 // The Original Code and all software distributed under the License are 3023 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3024 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3025 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3026 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3027 // Please see the License for the specific language governing rights and 3028 // limitations under the License. 3029 // 3030 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3031 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3032 // Copyright (c) 1990, 1993 3033 // The Regents of the University of California. All rights reserved. 3034 // 3035 // Redistribution and use in source and binary forms, with or without 3036 // modification, are permitted provided that the following conditions 3037 // are met: 3038 // 1. Redistributions of source code must retain the above copyright 3039 // notice, this list of conditions and the following disclaimer. 3040 // 2. Redistributions in binary form must reproduce the above copyright 3041 // notice, this list of conditions and the following disclaimer in the 3042 // documentation and/or other materials provided with the distribution. 3043 // 3. All advertising materials mentioning features or use of this software 3044 // must display the following acknowledgement: 3045 // This product includes software developed by the University of 3046 // California, Berkeley and its contributors. 3047 // 4. Neither the name of the University nor the names of its contributors 3048 // may be used to endorse or promote products derived from this software 3049 // without specific prior written permission. 3050 // 3051 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 3052 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3053 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 3054 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3055 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3056 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3057 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3058 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3059 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3060 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3061 // SUCH DAMAGE. 3062 // 3063 // @(#)types.h 8.3 (Berkeley) 1/5/94 3064 3065 // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved. 3066 // 3067 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3068 // 3069 // This file contains Original Code and/or Modifications of Original Code 3070 // as defined in and that are subject to the Apple Public Source License 3071 // Version 2.0 (the 'License'). You may not use this file except in 3072 // compliance with the License. The rights granted to you under the License 3073 // may not be used to create, or enable the creation or redistribution of, 3074 // unlawful or unlicensed copies of an Apple operating system, or to 3075 // circumvent, violate, or enable the circumvention or violation of, any 3076 // terms of an Apple operating system software license agreement. 3077 // 3078 // Please obtain a copy of the License at 3079 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3080 // 3081 // The Original Code and all software distributed under the License are 3082 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3083 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3084 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3085 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3086 // Please see the License for the specific language governing rights and 3087 // limitations under the License. 3088 // 3089 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3090 3091 // This header file contains integer types. It's intended to also contain 3092 // flotaing point and other arithmetic types, as needed, later. 3093 3094 type X__int8_t = int8 /* _types.h:37:33 */ 3095 type X__uint8_t = uint8 /* _types.h:41:33 */ 3096 type X__int16_t = int16 /* _types.h:42:33 */ 3097 type X__uint16_t = uint16 /* _types.h:43:33 */ 3098 type X__int32_t = int32 /* _types.h:44:33 */ 3099 type X__uint32_t = uint32 /* _types.h:45:33 */ 3100 type X__int64_t = int64 /* _types.h:46:33 */ 3101 type X__uint64_t = uint64 /* _types.h:47:33 */ 3102 3103 type X__darwin_intptr_t = int64 /* _types.h:49:33 */ 3104 type X__darwin_natural_t = uint32 /* _types.h:50:33 */ 3105 3106 // The rune type below is declared to be an ``int'' instead of the more natural 3107 // ``unsigned long'' or ``long''. Two things are happening here. It is not 3108 // unsigned so that EOF (-1) can be naturally assigned to it and used. Also, 3109 // it looks like 10646 will be a 31 bit standard. This means that if your 3110 // ints cannot hold 32 bits, you will be in trouble. The reason an int was 3111 // chosen over a long is that the is*() and to*() routines take ints (says 3112 // ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it 3113 // here, you lose a bit of ANSI conformance, but your programs will still 3114 // work. 3115 // 3116 // NOTE: rune_t is not covered by ANSI nor other standards, and should not 3117 // be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and 3118 // rune_t must be the same type. Also wint_t must be no narrower than 3119 // wchar_t, and should also be able to hold all members of the largest 3120 // character set plus one extra value (WEOF). wint_t must be at least 16 bits. 3121 3122 type X__darwin_ct_rune_t = int32 /* _types.h:70:33 */ // ct_rune_t 3123 3124 // mbstate_t is an opaque object to keep conversion state, during multibyte 3125 // stream conversions. The content must not be referenced by user programs. 3126 type X__mbstate_t = struct { 3127 F__ccgo_pad1 [0]uint64 3128 F__mbstate8 [128]int8 3129 } /* _types.h:79:3 */ 3130 3131 type X__darwin_mbstate_t = X__mbstate_t /* _types.h:81:33 */ // mbstate_t 3132 3133 type X__darwin_ptrdiff_t = int64 /* _types.h:84:33 */ // ptr1 - ptr2 3134 3135 type X__darwin_size_t = uint64 /* _types.h:92:33 */ // sizeof() 3136 3137 type X__darwin_va_list = X__builtin_va_list /* _types.h:98:33 */ // va_list 3138 3139 type X__darwin_wchar_t = int32 /* _types.h:104:33 */ // wchar_t 3140 3141 type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:109:33 */ // rune_t 3142 3143 type X__darwin_wint_t = int32 /* _types.h:112:33 */ // wint_t 3144 3145 type X__darwin_clock_t = uint64 /* _types.h:117:33 */ // clock() 3146 type X__darwin_socklen_t = X__uint32_t /* _types.h:118:33 */ // socklen_t (duh) 3147 type X__darwin_ssize_t = int64 /* _types.h:119:33 */ // byte count or error 3148 type X__darwin_time_t = int64 /* _types.h:120:33 */ // time() 3149 3150 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 3151 // 3152 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3153 // 3154 // This file contains Original Code and/or Modifications of Original Code 3155 // as defined in and that are subject to the Apple Public Source License 3156 // Version 2.0 (the 'License'). You may not use this file except in 3157 // compliance with the License. The rights granted to you under the License 3158 // may not be used to create, or enable the creation or redistribution of, 3159 // unlawful or unlicensed copies of an Apple operating system, or to 3160 // circumvent, violate, or enable the circumvention or violation of, any 3161 // terms of an Apple operating system software license agreement. 3162 // 3163 // Please obtain a copy of the License at 3164 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3165 // 3166 // The Original Code and all software distributed under the License are 3167 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3168 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3169 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3170 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3171 // Please see the License for the specific language governing rights and 3172 // limitations under the License. 3173 // 3174 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3175 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3176 // Copyright (c) 1991, 1993 3177 // The Regents of the University of California. All rights reserved. 3178 // 3179 // This code is derived from software contributed to Berkeley by 3180 // Berkeley Software Design, Inc. 3181 // 3182 // Redistribution and use in source and binary forms, with or without 3183 // modification, are permitted provided that the following conditions 3184 // are met: 3185 // 1. Redistributions of source code must retain the above copyright 3186 // notice, this list of conditions and the following disclaimer. 3187 // 2. Redistributions in binary form must reproduce the above copyright 3188 // notice, this list of conditions and the following disclaimer in the 3189 // documentation and/or other materials provided with the distribution. 3190 // 3. All advertising materials mentioning features or use of this software 3191 // must display the following acknowledgement: 3192 // This product includes software developed by the University of 3193 // California, Berkeley and its contributors. 3194 // 4. Neither the name of the University nor the names of its contributors 3195 // may be used to endorse or promote products derived from this software 3196 // without specific prior written permission. 3197 // 3198 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 3199 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3200 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 3201 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3202 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3203 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3204 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3205 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3206 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3207 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3208 // SUCH DAMAGE. 3209 // 3210 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 3211 3212 // Basic integral types. Omit the typedef if 3213 // not possible for a machine/compiler combination. 3214 // Copyright (c) 2012 Apple Inc. All rights reserved. 3215 // 3216 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3217 // 3218 // This file contains Original Code and/or Modifications of Original Code 3219 // as defined in and that are subject to the Apple Public Source License 3220 // Version 2.0 (the 'License'). You may not use this file except in 3221 // compliance with the License. The rights granted to you under the License 3222 // may not be used to create, or enable the creation or redistribution of, 3223 // unlawful or unlicensed copies of an Apple operating system, or to 3224 // circumvent, violate, or enable the circumvention or violation of, any 3225 // terms of an Apple operating system software license agreement. 3226 // 3227 // Please obtain a copy of the License at 3228 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3229 // 3230 // The Original Code and all software distributed under the License are 3231 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3232 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3233 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3234 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3235 // Please see the License for the specific language governing rights and 3236 // limitations under the License. 3237 // 3238 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3239 type Int8_t = int8 /* _int8_t.h:30:33 */ 3240 // Copyright (c) 2012 Apple Inc. All rights reserved. 3241 // 3242 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3243 // 3244 // This file contains Original Code and/or Modifications of Original Code 3245 // as defined in and that are subject to the Apple Public Source License 3246 // Version 2.0 (the 'License'). You may not use this file except in 3247 // compliance with the License. The rights granted to you under the License 3248 // may not be used to create, or enable the creation or redistribution of, 3249 // unlawful or unlicensed copies of an Apple operating system, or to 3250 // circumvent, violate, or enable the circumvention or violation of, any 3251 // terms of an Apple operating system software license agreement. 3252 // 3253 // Please obtain a copy of the License at 3254 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3255 // 3256 // The Original Code and all software distributed under the License are 3257 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3258 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3259 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3260 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3261 // Please see the License for the specific language governing rights and 3262 // limitations under the License. 3263 // 3264 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3265 type Int16_t = int16 /* _int16_t.h:30:33 */ 3266 // Copyright (c) 2012 Apple Inc. All rights reserved. 3267 // 3268 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3269 // 3270 // This file contains Original Code and/or Modifications of Original Code 3271 // as defined in and that are subject to the Apple Public Source License 3272 // Version 2.0 (the 'License'). You may not use this file except in 3273 // compliance with the License. The rights granted to you under the License 3274 // may not be used to create, or enable the creation or redistribution of, 3275 // unlawful or unlicensed copies of an Apple operating system, or to 3276 // circumvent, violate, or enable the circumvention or violation of, any 3277 // terms of an Apple operating system software license agreement. 3278 // 3279 // Please obtain a copy of the License at 3280 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3281 // 3282 // The Original Code and all software distributed under the License are 3283 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3284 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3285 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3286 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3287 // Please see the License for the specific language governing rights and 3288 // limitations under the License. 3289 // 3290 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3291 type Int32_t = int32 /* _int32_t.h:30:33 */ 3292 // Copyright (c) 2012 Apple Inc. All rights reserved. 3293 // 3294 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3295 // 3296 // This file contains Original Code and/or Modifications of Original Code 3297 // as defined in and that are subject to the Apple Public Source License 3298 // Version 2.0 (the 'License'). You may not use this file except in 3299 // compliance with the License. The rights granted to you under the License 3300 // may not be used to create, or enable the creation or redistribution of, 3301 // unlawful or unlicensed copies of an Apple operating system, or to 3302 // circumvent, violate, or enable the circumvention or violation of, any 3303 // terms of an Apple operating system software license agreement. 3304 // 3305 // Please obtain a copy of the License at 3306 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3307 // 3308 // The Original Code and all software distributed under the License are 3309 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3310 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3311 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3312 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3313 // Please see the License for the specific language governing rights and 3314 // limitations under the License. 3315 // 3316 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3317 type Int64_t = int64 /* _int64_t.h:30:33 */ 3318 3319 // Copyright (c) 2016 Apple Inc. All rights reserved. 3320 // 3321 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3322 // 3323 // This file contains Original Code and/or Modifications of Original Code 3324 // as defined in and that are subject to the Apple Public Source License 3325 // Version 2.0 (the 'License'). You may not use this file except in 3326 // compliance with the License. The rights granted to you under the License 3327 // may not be used to create, or enable the creation or redistribution of, 3328 // unlawful or unlicensed copies of an Apple operating system, or to 3329 // circumvent, violate, or enable the circumvention or violation of, any 3330 // terms of an Apple operating system software license agreement. 3331 // 3332 // Please obtain a copy of the License at 3333 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3334 // 3335 // The Original Code and all software distributed under the License are 3336 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3337 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3338 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3339 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3340 // Please see the License for the specific language governing rights and 3341 // limitations under the License. 3342 // 3343 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3344 type U_int8_t = uint8 /* _u_int8_t.h:30:33 */ 3345 // Copyright (c) 2012 Apple Inc. All rights reserved. 3346 // 3347 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3348 // 3349 // This file contains Original Code and/or Modifications of Original Code 3350 // as defined in and that are subject to the Apple Public Source License 3351 // Version 2.0 (the 'License'). You may not use this file except in 3352 // compliance with the License. The rights granted to you under the License 3353 // may not be used to create, or enable the creation or redistribution of, 3354 // unlawful or unlicensed copies of an Apple operating system, or to 3355 // circumvent, violate, or enable the circumvention or violation of, any 3356 // terms of an Apple operating system software license agreement. 3357 // 3358 // Please obtain a copy of the License at 3359 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3360 // 3361 // The Original Code and all software distributed under the License are 3362 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3363 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3364 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3365 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3366 // Please see the License for the specific language governing rights and 3367 // limitations under the License. 3368 // 3369 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3370 type U_int16_t = uint16 /* _u_int16_t.h:30:41 */ 3371 // Copyright (c) 2012 Apple Inc. All rights reserved. 3372 // 3373 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3374 // 3375 // This file contains Original Code and/or Modifications of Original Code 3376 // as defined in and that are subject to the Apple Public Source License 3377 // Version 2.0 (the 'License'). You may not use this file except in 3378 // compliance with the License. The rights granted to you under the License 3379 // may not be used to create, or enable the creation or redistribution of, 3380 // unlawful or unlicensed copies of an Apple operating system, or to 3381 // circumvent, violate, or enable the circumvention or violation of, any 3382 // terms of an Apple operating system software license agreement. 3383 // 3384 // Please obtain a copy of the License at 3385 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3386 // 3387 // The Original Code and all software distributed under the License are 3388 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3389 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3390 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3391 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3392 // Please see the License for the specific language governing rights and 3393 // limitations under the License. 3394 // 3395 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3396 type U_int32_t = uint32 /* _u_int32_t.h:30:33 */ 3397 // Copyright (c) 2012 Apple Inc. All rights reserved. 3398 // 3399 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3400 // 3401 // This file contains Original Code and/or Modifications of Original Code 3402 // as defined in and that are subject to the Apple Public Source License 3403 // Version 2.0 (the 'License'). You may not use this file except in 3404 // compliance with the License. The rights granted to you under the License 3405 // may not be used to create, or enable the creation or redistribution of, 3406 // unlawful or unlicensed copies of an Apple operating system, or to 3407 // circumvent, violate, or enable the circumvention or violation of, any 3408 // terms of an Apple operating system software license agreement. 3409 // 3410 // Please obtain a copy of the License at 3411 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3412 // 3413 // The Original Code and all software distributed under the License are 3414 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3415 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3416 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3417 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3418 // Please see the License for the specific language governing rights and 3419 // limitations under the License. 3420 // 3421 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3422 type U_int64_t = uint64 /* _u_int64_t.h:30:33 */ 3423 3424 type Register_t = Int64_t /* types.h:87:33 */ 3425 3426 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3427 // 3428 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3429 // 3430 // This file contains Original Code and/or Modifications of Original Code 3431 // as defined in and that are subject to the Apple Public Source License 3432 // Version 2.0 (the 'License'). You may not use this file except in 3433 // compliance with the License. The rights granted to you under the License 3434 // may not be used to create, or enable the creation or redistribution of, 3435 // unlawful or unlicensed copies of an Apple operating system, or to 3436 // circumvent, violate, or enable the circumvention or violation of, any 3437 // terms of an Apple operating system software license agreement. 3438 // 3439 // Please obtain a copy of the License at 3440 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3441 // 3442 // The Original Code and all software distributed under the License are 3443 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3444 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3445 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3446 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3447 // Please see the License for the specific language governing rights and 3448 // limitations under the License. 3449 // 3450 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3451 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 3452 // 3453 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3454 // 3455 // This file contains Original Code and/or Modifications of Original Code 3456 // as defined in and that are subject to the Apple Public Source License 3457 // Version 2.0 (the 'License'). You may not use this file except in 3458 // compliance with the License. The rights granted to you under the License 3459 // may not be used to create, or enable the creation or redistribution of, 3460 // unlawful or unlicensed copies of an Apple operating system, or to 3461 // circumvent, violate, or enable the circumvention or violation of, any 3462 // terms of an Apple operating system software license agreement. 3463 // 3464 // Please obtain a copy of the License at 3465 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3466 // 3467 // The Original Code and all software distributed under the License are 3468 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3469 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3470 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3471 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3472 // Please see the License for the specific language governing rights and 3473 // limitations under the License. 3474 // 3475 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3476 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3477 3478 type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */ 3479 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3480 // 3481 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3482 // 3483 // This file contains Original Code and/or Modifications of Original Code 3484 // as defined in and that are subject to the Apple Public Source License 3485 // Version 2.0 (the 'License'). You may not use this file except in 3486 // compliance with the License. The rights granted to you under the License 3487 // may not be used to create, or enable the creation or redistribution of, 3488 // unlawful or unlicensed copies of an Apple operating system, or to 3489 // circumvent, violate, or enable the circumvention or violation of, any 3490 // terms of an Apple operating system software license agreement. 3491 // 3492 // Please obtain a copy of the License at 3493 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3494 // 3495 // The Original Code and all software distributed under the License are 3496 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3497 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3498 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3499 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3500 // Please see the License for the specific language governing rights and 3501 // limitations under the License. 3502 // 3503 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3504 type Uintptr_t = uint64 /* _uintptr_t.h:30:33 */ 3505 3506 // These types are used for reserving the largest possible size. 3507 type User_addr_t = U_int64_t /* types.h:97:33 */ 3508 type User_size_t = U_int64_t /* types.h:98:33 */ 3509 type User_ssize_t = Int64_t /* types.h:99:33 */ 3510 type User_long_t = Int64_t /* types.h:100:33 */ 3511 type User_ulong_t = U_int64_t /* types.h:101:33 */ 3512 type User_time_t = Int64_t /* types.h:102:33 */ 3513 type User_off_t = Int64_t /* types.h:103:33 */ 3514 3515 // This defines the size of syscall arguments after copying into the kernel: 3516 type Syscall_arg_t = U_int64_t /* types.h:111:33 */ 3517 3518 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 3519 // 3520 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3521 // 3522 // This file contains Original Code and/or Modifications of Original Code 3523 // as defined in and that are subject to the Apple Public Source License 3524 // Version 2.0 (the 'License'). You may not use this file except in 3525 // compliance with the License. The rights granted to you under the License 3526 // may not be used to create, or enable the creation or redistribution of, 3527 // unlawful or unlicensed copies of an Apple operating system, or to 3528 // circumvent, violate, or enable the circumvention or violation of, any 3529 // terms of an Apple operating system software license agreement. 3530 // 3531 // Please obtain a copy of the License at 3532 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3533 // 3534 // The Original Code and all software distributed under the License are 3535 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3536 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3537 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3538 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3539 // Please see the License for the specific language governing rights and 3540 // limitations under the License. 3541 // 3542 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3543 3544 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 3545 // 3546 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3547 // 3548 // This file contains Original Code and/or Modifications of Original Code 3549 // as defined in and that are subject to the Apple Public Source License 3550 // Version 2.0 (the 'License'). You may not use this file except in 3551 // compliance with the License. The rights granted to you under the License 3552 // may not be used to create, or enable the creation or redistribution of, 3553 // unlawful or unlicensed copies of an Apple operating system, or to 3554 // circumvent, violate, or enable the circumvention or violation of, any 3555 // terms of an Apple operating system software license agreement. 3556 // 3557 // Please obtain a copy of the License at 3558 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3559 // 3560 // The Original Code and all software distributed under the License are 3561 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3562 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3563 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3564 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3565 // Please see the License for the specific language governing rights and 3566 // limitations under the License. 3567 // 3568 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3569 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3570 // Copyright (c) 1991, 1993 3571 // The Regents of the University of California. All rights reserved. 3572 // 3573 // This code is derived from software contributed to Berkeley by 3574 // Berkeley Software Design, Inc. 3575 // 3576 // Redistribution and use in source and binary forms, with or without 3577 // modification, are permitted provided that the following conditions 3578 // are met: 3579 // 1. Redistributions of source code must retain the above copyright 3580 // notice, this list of conditions and the following disclaimer. 3581 // 2. Redistributions in binary form must reproduce the above copyright 3582 // notice, this list of conditions and the following disclaimer in the 3583 // documentation and/or other materials provided with the distribution. 3584 // 3. All advertising materials mentioning features or use of this software 3585 // must display the following acknowledgement: 3586 // This product includes software developed by the University of 3587 // California, Berkeley and its contributors. 3588 // 4. Neither the name of the University nor the names of its contributors 3589 // may be used to endorse or promote products derived from this software 3590 // without specific prior written permission. 3591 // 3592 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 3593 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3594 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 3595 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3596 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3597 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3598 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3599 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3600 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3601 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3602 // SUCH DAMAGE. 3603 // 3604 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 3605 3606 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 3607 // 3608 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3609 // 3610 // This file contains Original Code and/or Modifications of Original Code 3611 // as defined in and that are subject to the Apple Public Source License 3612 // Version 2.0 (the 'License'). You may not use this file except in 3613 // compliance with the License. The rights granted to you under the License 3614 // may not be used to create, or enable the creation or redistribution of, 3615 // unlawful or unlicensed copies of an Apple operating system, or to 3616 // circumvent, violate, or enable the circumvention or violation of, any 3617 // terms of an Apple operating system software license agreement. 3618 // 3619 // Please obtain a copy of the License at 3620 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3621 // 3622 // The Original Code and all software distributed under the License are 3623 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3624 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3625 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3626 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3627 // Please see the License for the specific language governing rights and 3628 // limitations under the License. 3629 // 3630 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3631 3632 // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved. 3633 // 3634 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3635 // 3636 // This file contains Original Code and/or Modifications of Original Code 3637 // as defined in and that are subject to the Apple Public Source License 3638 // Version 2.0 (the 'License'). You may not use this file except in 3639 // compliance with the License. The rights granted to you under the License 3640 // may not be used to create, or enable the creation or redistribution of, 3641 // unlawful or unlicensed copies of an Apple operating system, or to 3642 // circumvent, violate, or enable the circumvention or violation of, any 3643 // terms of an Apple operating system software license agreement. 3644 // 3645 // Please obtain a copy of the License at 3646 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3647 // 3648 // The Original Code and all software distributed under the License are 3649 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3650 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3651 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3652 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3653 // Please see the License for the specific language governing rights and 3654 // limitations under the License. 3655 // 3656 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3657 3658 // Type definitions; takes common type definitions that must be used 3659 // in multiple header files due to [XSI], removes them from the system 3660 // space, and puts them in the implementation space. 3661 3662 type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks 3663 type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size 3664 type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t 3665 type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs 3666 type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs 3667 type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs 3668 type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t 3669 type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes 3670 type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes 3671 type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach 3672 type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach 3673 type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes 3674 type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes 3675 type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs 3676 type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set 3677 type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds 3678 type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs 3679 type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds 3680 type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */ 3681 type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */ 3682 3683 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 3684 // 3685 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3686 // 3687 // This file contains Original Code and/or Modifications of Original Code 3688 // as defined in and that are subject to the Apple Public Source License 3689 // Version 2.0 (the 'License'). You may not use this file except in 3690 // compliance with the License. The rights granted to you under the License 3691 // may not be used to create, or enable the creation or redistribution of, 3692 // unlawful or unlicensed copies of an Apple operating system, or to 3693 // circumvent, violate, or enable the circumvention or violation of, any 3694 // terms of an Apple operating system software license agreement. 3695 // 3696 // Please obtain a copy of the License at 3697 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3698 // 3699 // The Original Code and all software distributed under the License are 3700 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3701 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3702 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3703 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3704 // Please see the License for the specific language governing rights and 3705 // limitations under the License. 3706 // 3707 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3708 3709 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 3710 // 3711 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3712 // 3713 // This file contains Original Code and/or Modifications of Original Code 3714 // as defined in and that are subject to the Apple Public Source License 3715 // Version 2.0 (the 'License'). You may not use this file except in 3716 // compliance with the License. The rights granted to you under the License 3717 // may not be used to create, or enable the creation or redistribution of, 3718 // unlawful or unlicensed copies of an Apple operating system, or to 3719 // circumvent, violate, or enable the circumvention or violation of, any 3720 // terms of an Apple operating system software license agreement. 3721 // 3722 // Please obtain a copy of the License at 3723 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3724 // 3725 // The Original Code and all software distributed under the License are 3726 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3727 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3728 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3729 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3730 // Please see the License for the specific language governing rights and 3731 // limitations under the License. 3732 // 3733 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3734 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3735 // Copyright (c) 1991, 1993 3736 // The Regents of the University of California. All rights reserved. 3737 // 3738 // This code is derived from software contributed to Berkeley by 3739 // Berkeley Software Design, Inc. 3740 // 3741 // Redistribution and use in source and binary forms, with or without 3742 // modification, are permitted provided that the following conditions 3743 // are met: 3744 // 1. Redistributions of source code must retain the above copyright 3745 // notice, this list of conditions and the following disclaimer. 3746 // 2. Redistributions in binary form must reproduce the above copyright 3747 // notice, this list of conditions and the following disclaimer in the 3748 // documentation and/or other materials provided with the distribution. 3749 // 3. All advertising materials mentioning features or use of this software 3750 // must display the following acknowledgement: 3751 // This product includes software developed by the University of 3752 // California, Berkeley and its contributors. 3753 // 4. Neither the name of the University nor the names of its contributors 3754 // may be used to endorse or promote products derived from this software 3755 // without specific prior written permission. 3756 // 3757 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 3758 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3759 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 3760 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3761 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3762 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3763 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3764 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3765 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3766 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3767 // SUCH DAMAGE. 3768 // 3769 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 3770 3771 // pthread opaque structures 3772 3773 type X__darwin_pthread_handler_rec = struct { 3774 F__routine uintptr 3775 F__arg uintptr 3776 F__next uintptr 3777 } /* _pthread_types.h:57:1 */ 3778 3779 type X_opaque_pthread_attr_t = struct { 3780 F__sig int64 3781 F__opaque [56]int8 3782 } /* _pthread_types.h:63:1 */ 3783 3784 type X_opaque_pthread_cond_t = struct { 3785 F__sig int64 3786 F__opaque [40]int8 3787 } /* _pthread_types.h:68:1 */ 3788 3789 type X_opaque_pthread_condattr_t = struct { 3790 F__sig int64 3791 F__opaque [8]int8 3792 } /* _pthread_types.h:73:1 */ 3793 3794 type X_opaque_pthread_mutex_t = struct { 3795 F__sig int64 3796 F__opaque [56]int8 3797 } /* _pthread_types.h:78:1 */ 3798 3799 type X_opaque_pthread_mutexattr_t = struct { 3800 F__sig int64 3801 F__opaque [8]int8 3802 } /* _pthread_types.h:83:1 */ 3803 3804 type X_opaque_pthread_once_t = struct { 3805 F__sig int64 3806 F__opaque [8]int8 3807 } /* _pthread_types.h:88:1 */ 3808 3809 type X_opaque_pthread_rwlock_t = struct { 3810 F__sig int64 3811 F__opaque [192]int8 3812 } /* _pthread_types.h:93:1 */ 3813 3814 type X_opaque_pthread_rwlockattr_t = struct { 3815 F__sig int64 3816 F__opaque [16]int8 3817 } /* _pthread_types.h:98:1 */ 3818 3819 type X_opaque_pthread_t = struct { 3820 F__sig int64 3821 F__cleanup_stack uintptr 3822 F__opaque [8176]int8 3823 } /* _pthread_types.h:103:1 */ 3824 3825 type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */ 3826 type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */ 3827 type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */ 3828 type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */ 3829 type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */ 3830 type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */ 3831 type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */ 3832 type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */ 3833 type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */ 3834 type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */ 3835 3836 // Copyright (c) 2017 Apple Inc. All rights reserved. 3837 // 3838 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3839 // 3840 // This file contains Original Code and/or Modifications of Original Code 3841 // as defined in and that are subject to the Apple Public Source License 3842 // Version 2.0 (the 'License'). You may not use this file except in 3843 // compliance with the License. The rights granted to you under the License 3844 // may not be used to create, or enable the creation or redistribution of, 3845 // unlawful or unlicensed copies of an Apple operating system, or to 3846 // circumvent, violate, or enable the circumvention or violation of, any 3847 // terms of an Apple operating system software license agreement. 3848 // 3849 // Please obtain a copy of the License at 3850 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3851 // 3852 // The Original Code and all software distributed under the License are 3853 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3854 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3855 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3856 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3857 // Please see the License for the specific language governing rights and 3858 // limitations under the License. 3859 // 3860 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3861 type U_char = uint8 /* _u_char.h:30:25 */ 3862 // Copyright (c) 2017 Apple Inc. All rights reserved. 3863 // 3864 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3865 // 3866 // This file contains Original Code and/or Modifications of Original Code 3867 // as defined in and that are subject to the Apple Public Source License 3868 // Version 2.0 (the 'License'). You may not use this file except in 3869 // compliance with the License. The rights granted to you under the License 3870 // may not be used to create, or enable the creation or redistribution of, 3871 // unlawful or unlicensed copies of an Apple operating system, or to 3872 // circumvent, violate, or enable the circumvention or violation of, any 3873 // terms of an Apple operating system software license agreement. 3874 // 3875 // Please obtain a copy of the License at 3876 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3877 // 3878 // The Original Code and all software distributed under the License are 3879 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3880 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3881 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3882 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3883 // Please see the License for the specific language governing rights and 3884 // limitations under the License. 3885 // 3886 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3887 type U_short = uint16 /* _u_short.h:30:25 */ 3888 // Copyright (c) 2017 Apple Inc. All rights reserved. 3889 // 3890 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3891 // 3892 // This file contains Original Code and/or Modifications of Original Code 3893 // as defined in and that are subject to the Apple Public Source License 3894 // Version 2.0 (the 'License'). You may not use this file except in 3895 // compliance with the License. The rights granted to you under the License 3896 // may not be used to create, or enable the creation or redistribution of, 3897 // unlawful or unlicensed copies of an Apple operating system, or to 3898 // circumvent, violate, or enable the circumvention or violation of, any 3899 // terms of an Apple operating system software license agreement. 3900 // 3901 // Please obtain a copy of the License at 3902 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3903 // 3904 // The Original Code and all software distributed under the License are 3905 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3906 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3907 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3908 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3909 // Please see the License for the specific language governing rights and 3910 // limitations under the License. 3911 // 3912 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3913 type U_int = uint32 /* _u_int.h:30:25 */ 3914 type U_long = uint64 /* types.h:88:33 */ 3915 type Ushort = uint16 /* types.h:91:33 */ // Sys V compatibility 3916 type Uint = uint32 /* types.h:92:33 */ // Sys V compatibility 3917 3918 type U_quad_t = U_int64_t /* types.h:95:33 */ // quads 3919 type Quad_t = Int64_t /* types.h:96:33 */ 3920 type Qaddr_t = uintptr /* types.h:97:16 */ 3921 3922 // Copyright (c) 2017 Apple Inc. All rights reserved. 3923 // 3924 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3925 // 3926 // This file contains Original Code and/or Modifications of Original Code 3927 // as defined in and that are subject to the Apple Public Source License 3928 // Version 2.0 (the 'License'). You may not use this file except in 3929 // compliance with the License. The rights granted to you under the License 3930 // may not be used to create, or enable the creation or redistribution of, 3931 // unlawful or unlicensed copies of an Apple operating system, or to 3932 // circumvent, violate, or enable the circumvention or violation of, any 3933 // terms of an Apple operating system software license agreement. 3934 // 3935 // Please obtain a copy of the License at 3936 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3937 // 3938 // The Original Code and all software distributed under the License are 3939 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3940 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3941 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3942 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3943 // Please see the License for the specific language governing rights and 3944 // limitations under the License. 3945 // 3946 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3947 type Caddr_t = uintptr /* _caddr_t.h:30:14 */ 3948 3949 type Daddr_t = Int32_t /* types.h:101:33 */ // disk address 3950 3951 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3952 // 3953 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3954 // 3955 // This file contains Original Code and/or Modifications of Original Code 3956 // as defined in and that are subject to the Apple Public Source License 3957 // Version 2.0 (the 'License'). You may not use this file except in 3958 // compliance with the License. The rights granted to you under the License 3959 // may not be used to create, or enable the creation or redistribution of, 3960 // unlawful or unlicensed copies of an Apple operating system, or to 3961 // circumvent, violate, or enable the circumvention or violation of, any 3962 // terms of an Apple operating system software license agreement. 3963 // 3964 // Please obtain a copy of the License at 3965 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3966 // 3967 // The Original Code and all software distributed under the License are 3968 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3969 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3970 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3971 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3972 // Please see the License for the specific language governing rights and 3973 // limitations under the License. 3974 // 3975 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3976 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 3977 // 3978 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3979 // 3980 // This file contains Original Code and/or Modifications of Original Code 3981 // as defined in and that are subject to the Apple Public Source License 3982 // Version 2.0 (the 'License'). You may not use this file except in 3983 // compliance with the License. The rights granted to you under the License 3984 // may not be used to create, or enable the creation or redistribution of, 3985 // unlawful or unlicensed copies of an Apple operating system, or to 3986 // circumvent, violate, or enable the circumvention or violation of, any 3987 // terms of an Apple operating system software license agreement. 3988 // 3989 // Please obtain a copy of the License at 3990 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3991 // 3992 // The Original Code and all software distributed under the License are 3993 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3994 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3995 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3996 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3997 // Please see the License for the specific language governing rights and 3998 // limitations under the License. 3999 // 4000 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4001 4002 type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number 4003 4004 type Fixpt_t = U_int32_t /* types.h:105:33 */ // fixed point number 4005 4006 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4007 // 4008 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4009 // 4010 // This file contains Original Code and/or Modifications of Original Code 4011 // as defined in and that are subject to the Apple Public Source License 4012 // Version 2.0 (the 'License'). You may not use this file except in 4013 // compliance with the License. The rights granted to you under the License 4014 // may not be used to create, or enable the creation or redistribution of, 4015 // unlawful or unlicensed copies of an Apple operating system, or to 4016 // circumvent, violate, or enable the circumvention or violation of, any 4017 // terms of an Apple operating system software license agreement. 4018 // 4019 // Please obtain a copy of the License at 4020 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4021 // 4022 // The Original Code and all software distributed under the License are 4023 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4024 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4025 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4026 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4027 // Please see the License for the specific language governing rights and 4028 // limitations under the License. 4029 // 4030 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4031 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4032 // 4033 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4034 // 4035 // This file contains Original Code and/or Modifications of Original Code 4036 // as defined in and that are subject to the Apple Public Source License 4037 // Version 2.0 (the 'License'). You may not use this file except in 4038 // compliance with the License. The rights granted to you under the License 4039 // may not be used to create, or enable the creation or redistribution of, 4040 // unlawful or unlicensed copies of an Apple operating system, or to 4041 // circumvent, violate, or enable the circumvention or violation of, any 4042 // terms of an Apple operating system software license agreement. 4043 // 4044 // Please obtain a copy of the License at 4045 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4046 // 4047 // The Original Code and all software distributed under the License are 4048 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4049 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4050 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4051 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4052 // Please see the License for the specific language governing rights and 4053 // limitations under the License. 4054 // 4055 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4056 4057 type Blkcnt_t = X__darwin_blkcnt_t /* _blkcnt_t.h:31:34 */ 4058 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4059 // 4060 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4061 // 4062 // This file contains Original Code and/or Modifications of Original Code 4063 // as defined in and that are subject to the Apple Public Source License 4064 // Version 2.0 (the 'License'). You may not use this file except in 4065 // compliance with the License. The rights granted to you under the License 4066 // may not be used to create, or enable the creation or redistribution of, 4067 // unlawful or unlicensed copies of an Apple operating system, or to 4068 // circumvent, violate, or enable the circumvention or violation of, any 4069 // terms of an Apple operating system software license agreement. 4070 // 4071 // Please obtain a copy of the License at 4072 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4073 // 4074 // The Original Code and all software distributed under the License are 4075 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4076 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4077 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4078 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4079 // Please see the License for the specific language governing rights and 4080 // limitations under the License. 4081 // 4082 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4083 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4084 // 4085 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4086 // 4087 // This file contains Original Code and/or Modifications of Original Code 4088 // as defined in and that are subject to the Apple Public Source License 4089 // Version 2.0 (the 'License'). You may not use this file except in 4090 // compliance with the License. The rights granted to you under the License 4091 // may not be used to create, or enable the creation or redistribution of, 4092 // unlawful or unlicensed copies of an Apple operating system, or to 4093 // circumvent, violate, or enable the circumvention or violation of, any 4094 // terms of an Apple operating system software license agreement. 4095 // 4096 // Please obtain a copy of the License at 4097 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4098 // 4099 // The Original Code and all software distributed under the License are 4100 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4101 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4102 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4103 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4104 // Please see the License for the specific language governing rights and 4105 // limitations under the License. 4106 // 4107 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4108 4109 type Blksize_t = X__darwin_blksize_t /* _blksize_t.h:31:35 */ 4110 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4111 // 4112 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4113 // 4114 // This file contains Original Code and/or Modifications of Original Code 4115 // as defined in and that are subject to the Apple Public Source License 4116 // Version 2.0 (the 'License'). You may not use this file except in 4117 // compliance with the License. The rights granted to you under the License 4118 // may not be used to create, or enable the creation or redistribution of, 4119 // unlawful or unlicensed copies of an Apple operating system, or to 4120 // circumvent, violate, or enable the circumvention or violation of, any 4121 // terms of an Apple operating system software license agreement. 4122 // 4123 // Please obtain a copy of the License at 4124 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4125 // 4126 // The Original Code and all software distributed under the License are 4127 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4128 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4129 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4130 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4131 // Please see the License for the specific language governing rights and 4132 // limitations under the License. 4133 // 4134 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4135 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4136 // 4137 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4138 // 4139 // This file contains Original Code and/or Modifications of Original Code 4140 // as defined in and that are subject to the Apple Public Source License 4141 // Version 2.0 (the 'License'). You may not use this file except in 4142 // compliance with the License. The rights granted to you under the License 4143 // may not be used to create, or enable the creation or redistribution of, 4144 // unlawful or unlicensed copies of an Apple operating system, or to 4145 // circumvent, violate, or enable the circumvention or violation of, any 4146 // terms of an Apple operating system software license agreement. 4147 // 4148 // Please obtain a copy of the License at 4149 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4150 // 4151 // The Original Code and all software distributed under the License are 4152 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4153 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4154 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4155 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4156 // Please see the License for the specific language governing rights and 4157 // limitations under the License. 4158 // 4159 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4160 4161 type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */ 4162 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4163 // 4164 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4165 // 4166 // This file contains Original Code and/or Modifications of Original Code 4167 // as defined in and that are subject to the Apple Public Source License 4168 // Version 2.0 (the 'License'). You may not use this file except in 4169 // compliance with the License. The rights granted to you under the License 4170 // may not be used to create, or enable the creation or redistribution of, 4171 // unlawful or unlicensed copies of an Apple operating system, or to 4172 // circumvent, violate, or enable the circumvention or violation of, any 4173 // terms of an Apple operating system software license agreement. 4174 // 4175 // Please obtain a copy of the License at 4176 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4177 // 4178 // The Original Code and all software distributed under the License are 4179 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4180 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4181 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4182 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4183 // Please see the License for the specific language governing rights and 4184 // limitations under the License. 4185 // 4186 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4187 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4188 // 4189 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4190 // 4191 // This file contains Original Code and/or Modifications of Original Code 4192 // as defined in and that are subject to the Apple Public Source License 4193 // Version 2.0 (the 'License'). You may not use this file except in 4194 // compliance with the License. The rights granted to you under the License 4195 // may not be used to create, or enable the creation or redistribution of, 4196 // unlawful or unlicensed copies of an Apple operating system, or to 4197 // circumvent, violate, or enable the circumvention or violation of, any 4198 // terms of an Apple operating system software license agreement. 4199 // 4200 // Please obtain a copy of the License at 4201 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4202 // 4203 // The Original Code and all software distributed under the License are 4204 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4205 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4206 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4207 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4208 // Please see the License for the specific language governing rights and 4209 // limitations under the License. 4210 // 4211 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4212 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4213 type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet address 4214 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4215 // 4216 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4217 // 4218 // This file contains Original Code and/or Modifications of Original Code 4219 // as defined in and that are subject to the Apple Public Source License 4220 // Version 2.0 (the 'License'). You may not use this file except in 4221 // compliance with the License. The rights granted to you under the License 4222 // may not be used to create, or enable the creation or redistribution of, 4223 // unlawful or unlicensed copies of an Apple operating system, or to 4224 // circumvent, violate, or enable the circumvention or violation of, any 4225 // terms of an Apple operating system software license agreement. 4226 // 4227 // Please obtain a copy of the License at 4228 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4229 // 4230 // The Original Code and all software distributed under the License are 4231 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4232 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4233 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4234 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4235 // Please see the License for the specific language governing rights and 4236 // limitations under the License. 4237 // 4238 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4239 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4240 // 4241 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4242 // 4243 // This file contains Original Code and/or Modifications of Original Code 4244 // as defined in and that are subject to the Apple Public Source License 4245 // Version 2.0 (the 'License'). You may not use this file except in 4246 // compliance with the License. The rights granted to you under the License 4247 // may not be used to create, or enable the creation or redistribution of, 4248 // unlawful or unlicensed copies of an Apple operating system, or to 4249 // circumvent, violate, or enable the circumvention or violation of, any 4250 // terms of an Apple operating system software license agreement. 4251 // 4252 // Please obtain a copy of the License at 4253 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4254 // 4255 // The Original Code and all software distributed under the License are 4256 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4257 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4258 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4259 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4260 // Please see the License for the specific language governing rights and 4261 // limitations under the License. 4262 // 4263 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4264 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4265 type In_port_t = X__uint16_t /* _in_port_t.h:31:33 */ 4266 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4267 // 4268 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4269 // 4270 // This file contains Original Code and/or Modifications of Original Code 4271 // as defined in and that are subject to the Apple Public Source License 4272 // Version 2.0 (the 'License'). You may not use this file except in 4273 // compliance with the License. The rights granted to you under the License 4274 // may not be used to create, or enable the creation or redistribution of, 4275 // unlawful or unlicensed copies of an Apple operating system, or to 4276 // circumvent, violate, or enable the circumvention or violation of, any 4277 // terms of an Apple operating system software license agreement. 4278 // 4279 // Please obtain a copy of the License at 4280 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4281 // 4282 // The Original Code and all software distributed under the License are 4283 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4284 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4285 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4286 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4287 // Please see the License for the specific language governing rights and 4288 // limitations under the License. 4289 // 4290 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4291 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4292 // 4293 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4294 // 4295 // This file contains Original Code and/or Modifications of Original Code 4296 // as defined in and that are subject to the Apple Public Source License 4297 // Version 2.0 (the 'License'). You may not use this file except in 4298 // compliance with the License. The rights granted to you under the License 4299 // may not be used to create, or enable the creation or redistribution of, 4300 // unlawful or unlicensed copies of an Apple operating system, or to 4301 // circumvent, violate, or enable the circumvention or violation of, any 4302 // terms of an Apple operating system software license agreement. 4303 // 4304 // Please obtain a copy of the License at 4305 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4306 // 4307 // The Original Code and all software distributed under the License are 4308 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4309 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4310 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4311 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4312 // Please see the License for the specific language governing rights and 4313 // limitations under the License. 4314 // 4315 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4316 4317 type Ino_t = X__darwin_ino_t /* _ino_t.h:31:33 */ // inode number 4318 4319 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4320 // 4321 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4322 // 4323 // This file contains Original Code and/or Modifications of Original Code 4324 // as defined in and that are subject to the Apple Public Source License 4325 // Version 2.0 (the 'License'). You may not use this file except in 4326 // compliance with the License. The rights granted to you under the License 4327 // may not be used to create, or enable the creation or redistribution of, 4328 // unlawful or unlicensed copies of an Apple operating system, or to 4329 // circumvent, violate, or enable the circumvention or violation of, any 4330 // terms of an Apple operating system software license agreement. 4331 // 4332 // Please obtain a copy of the License at 4333 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4334 // 4335 // The Original Code and all software distributed under the License are 4336 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4337 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4338 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4339 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4340 // Please see the License for the specific language governing rights and 4341 // limitations under the License. 4342 // 4343 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4344 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4345 // 4346 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4347 // 4348 // This file contains Original Code and/or Modifications of Original Code 4349 // as defined in and that are subject to the Apple Public Source License 4350 // Version 2.0 (the 'License'). You may not use this file except in 4351 // compliance with the License. The rights granted to you under the License 4352 // may not be used to create, or enable the creation or redistribution of, 4353 // unlawful or unlicensed copies of an Apple operating system, or to 4354 // circumvent, violate, or enable the circumvention or violation of, any 4355 // terms of an Apple operating system software license agreement. 4356 // 4357 // Please obtain a copy of the License at 4358 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4359 // 4360 // The Original Code and all software distributed under the License are 4361 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4362 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4363 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4364 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4365 // Please see the License for the specific language governing rights and 4366 // limitations under the License. 4367 // 4368 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4369 4370 type Ino64_t = X__darwin_ino64_t /* _ino64_t.h:31:33 */ // 64bit inode number 4371 4372 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4373 // 4374 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4375 // 4376 // This file contains Original Code and/or Modifications of Original Code 4377 // as defined in and that are subject to the Apple Public Source License 4378 // Version 2.0 (the 'License'). You may not use this file except in 4379 // compliance with the License. The rights granted to you under the License 4380 // may not be used to create, or enable the creation or redistribution of, 4381 // unlawful or unlicensed copies of an Apple operating system, or to 4382 // circumvent, violate, or enable the circumvention or violation of, any 4383 // terms of an Apple operating system software license agreement. 4384 // 4385 // Please obtain a copy of the License at 4386 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4387 // 4388 // The Original Code and all software distributed under the License are 4389 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4390 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4391 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4392 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4393 // Please see the License for the specific language governing rights and 4394 // limitations under the License. 4395 // 4396 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4397 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4398 // 4399 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4400 // 4401 // This file contains Original Code and/or Modifications of Original Code 4402 // as defined in and that are subject to the Apple Public Source License 4403 // Version 2.0 (the 'License'). You may not use this file except in 4404 // compliance with the License. The rights granted to you under the License 4405 // may not be used to create, or enable the creation or redistribution of, 4406 // unlawful or unlicensed copies of an Apple operating system, or to 4407 // circumvent, violate, or enable the circumvention or violation of, any 4408 // terms of an Apple operating system software license agreement. 4409 // 4410 // Please obtain a copy of the License at 4411 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4412 // 4413 // The Original Code and all software distributed under the License are 4414 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4415 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4416 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4417 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4418 // Please see the License for the specific language governing rights and 4419 // limitations under the License. 4420 // 4421 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4422 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4423 type Key_t = X__int32_t /* _key_t.h:31:26 */ // IPC key (for Sys V IPC) 4424 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4425 // 4426 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4427 // 4428 // This file contains Original Code and/or Modifications of Original Code 4429 // as defined in and that are subject to the Apple Public Source License 4430 // Version 2.0 (the 'License'). You may not use this file except in 4431 // compliance with the License. The rights granted to you under the License 4432 // may not be used to create, or enable the creation or redistribution of, 4433 // unlawful or unlicensed copies of an Apple operating system, or to 4434 // circumvent, violate, or enable the circumvention or violation of, any 4435 // terms of an Apple operating system software license agreement. 4436 // 4437 // Please obtain a copy of the License at 4438 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4439 // 4440 // The Original Code and all software distributed under the License are 4441 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4442 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4443 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4444 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4445 // Please see the License for the specific language governing rights and 4446 // limitations under the License. 4447 // 4448 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4449 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4450 // 4451 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4452 // 4453 // This file contains Original Code and/or Modifications of Original Code 4454 // as defined in and that are subject to the Apple Public Source License 4455 // Version 2.0 (the 'License'). You may not use this file except in 4456 // compliance with the License. The rights granted to you under the License 4457 // may not be used to create, or enable the creation or redistribution of, 4458 // unlawful or unlicensed copies of an Apple operating system, or to 4459 // circumvent, violate, or enable the circumvention or violation of, any 4460 // terms of an Apple operating system software license agreement. 4461 // 4462 // Please obtain a copy of the License at 4463 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4464 // 4465 // The Original Code and all software distributed under the License are 4466 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4467 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4468 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4469 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4470 // Please see the License for the specific language governing rights and 4471 // limitations under the License. 4472 // 4473 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4474 4475 type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */ 4476 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4477 // 4478 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4479 // 4480 // This file contains Original Code and/or Modifications of Original Code 4481 // as defined in and that are subject to the Apple Public Source License 4482 // Version 2.0 (the 'License'). You may not use this file except in 4483 // compliance with the License. The rights granted to you under the License 4484 // may not be used to create, or enable the creation or redistribution of, 4485 // unlawful or unlicensed copies of an Apple operating system, or to 4486 // circumvent, violate, or enable the circumvention or violation of, any 4487 // terms of an Apple operating system software license agreement. 4488 // 4489 // Please obtain a copy of the License at 4490 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4491 // 4492 // The Original Code and all software distributed under the License are 4493 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4494 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4495 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4496 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4497 // Please see the License for the specific language governing rights and 4498 // limitations under the License. 4499 // 4500 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4501 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4502 // 4503 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4504 // 4505 // This file contains Original Code and/or Modifications of Original Code 4506 // as defined in and that are subject to the Apple Public Source License 4507 // Version 2.0 (the 'License'). You may not use this file except in 4508 // compliance with the License. The rights granted to you under the License 4509 // may not be used to create, or enable the creation or redistribution of, 4510 // unlawful or unlicensed copies of an Apple operating system, or to 4511 // circumvent, violate, or enable the circumvention or violation of, any 4512 // terms of an Apple operating system software license agreement. 4513 // 4514 // Please obtain a copy of the License at 4515 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4516 // 4517 // The Original Code and all software distributed under the License are 4518 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4519 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4520 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4521 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4522 // Please see the License for the specific language governing rights and 4523 // limitations under the License. 4524 // 4525 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4526 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4527 type Nlink_t = X__uint16_t /* _nlink_t.h:31:27 */ // link count 4528 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4529 // 4530 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4531 // 4532 // This file contains Original Code and/or Modifications of Original Code 4533 // as defined in and that are subject to the Apple Public Source License 4534 // Version 2.0 (the 'License'). You may not use this file except in 4535 // compliance with the License. The rights granted to you under the License 4536 // may not be used to create, or enable the creation or redistribution of, 4537 // unlawful or unlicensed copies of an Apple operating system, or to 4538 // circumvent, violate, or enable the circumvention or violation of, any 4539 // terms of an Apple operating system software license agreement. 4540 // 4541 // Please obtain a copy of the License at 4542 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4543 // 4544 // The Original Code and all software distributed under the License are 4545 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4546 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4547 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4548 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4549 // Please see the License for the specific language governing rights and 4550 // limitations under the License. 4551 // 4552 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4553 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4554 // 4555 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4556 // 4557 // This file contains Original Code and/or Modifications of Original Code 4558 // as defined in and that are subject to the Apple Public Source License 4559 // Version 2.0 (the 'License'). You may not use this file except in 4560 // compliance with the License. The rights granted to you under the License 4561 // may not be used to create, or enable the creation or redistribution of, 4562 // unlawful or unlicensed copies of an Apple operating system, or to 4563 // circumvent, violate, or enable the circumvention or violation of, any 4564 // terms of an Apple operating system software license agreement. 4565 // 4566 // Please obtain a copy of the License at 4567 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4568 // 4569 // The Original Code and all software distributed under the License are 4570 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4571 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4572 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4573 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4574 // Please see the License for the specific language governing rights and 4575 // limitations under the License. 4576 // 4577 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4578 4579 type Id_t = X__darwin_id_t /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t 4580 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4581 // 4582 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4583 // 4584 // This file contains Original Code and/or Modifications of Original Code 4585 // as defined in and that are subject to the Apple Public Source License 4586 // Version 2.0 (the 'License'). You may not use this file except in 4587 // compliance with the License. The rights granted to you under the License 4588 // may not be used to create, or enable the creation or redistribution of, 4589 // unlawful or unlicensed copies of an Apple operating system, or to 4590 // circumvent, violate, or enable the circumvention or violation of, any 4591 // terms of an Apple operating system software license agreement. 4592 // 4593 // Please obtain a copy of the License at 4594 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4595 // 4596 // The Original Code and all software distributed under the License are 4597 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4598 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4599 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4600 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4601 // Please see the License for the specific language governing rights and 4602 // limitations under the License. 4603 // 4604 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4605 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4606 // 4607 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4608 // 4609 // This file contains Original Code and/or Modifications of Original Code 4610 // as defined in and that are subject to the Apple Public Source License 4611 // Version 2.0 (the 'License'). You may not use this file except in 4612 // compliance with the License. The rights granted to you under the License 4613 // may not be used to create, or enable the creation or redistribution of, 4614 // unlawful or unlicensed copies of an Apple operating system, or to 4615 // circumvent, violate, or enable the circumvention or violation of, any 4616 // terms of an Apple operating system software license agreement. 4617 // 4618 // Please obtain a copy of the License at 4619 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4620 // 4621 // The Original Code and all software distributed under the License are 4622 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4623 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4624 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4625 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4626 // Please see the License for the specific language governing rights and 4627 // limitations under the License. 4628 // 4629 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4630 4631 type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */ 4632 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4633 // 4634 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4635 // 4636 // This file contains Original Code and/or Modifications of Original Code 4637 // as defined in and that are subject to the Apple Public Source License 4638 // Version 2.0 (the 'License'). You may not use this file except in 4639 // compliance with the License. The rights granted to you under the License 4640 // may not be used to create, or enable the creation or redistribution of, 4641 // unlawful or unlicensed copies of an Apple operating system, or to 4642 // circumvent, violate, or enable the circumvention or violation of, any 4643 // terms of an Apple operating system software license agreement. 4644 // 4645 // Please obtain a copy of the License at 4646 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4647 // 4648 // The Original Code and all software distributed under the License are 4649 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4650 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4651 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4652 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4653 // Please see the License for the specific language governing rights and 4654 // limitations under the License. 4655 // 4656 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4657 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4658 // 4659 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4660 // 4661 // This file contains Original Code and/or Modifications of Original Code 4662 // as defined in and that are subject to the Apple Public Source License 4663 // Version 2.0 (the 'License'). You may not use this file except in 4664 // compliance with the License. The rights granted to you under the License 4665 // may not be used to create, or enable the creation or redistribution of, 4666 // unlawful or unlicensed copies of an Apple operating system, or to 4667 // circumvent, violate, or enable the circumvention or violation of, any 4668 // terms of an Apple operating system software license agreement. 4669 // 4670 // Please obtain a copy of the License at 4671 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4672 // 4673 // The Original Code and all software distributed under the License are 4674 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4675 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4676 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4677 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4678 // Please see the License for the specific language governing rights and 4679 // limitations under the License. 4680 // 4681 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4682 4683 type Off_t = X__darwin_off_t /* _off_t.h:31:33 */ 4684 4685 type Segsz_t = Int32_t /* types.h:125:33 */ // segment size 4686 type Swblk_t = Int32_t /* types.h:126:33 */ // swap offset 4687 4688 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4689 // 4690 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4691 // 4692 // This file contains Original Code and/or Modifications of Original Code 4693 // as defined in and that are subject to the Apple Public Source License 4694 // Version 2.0 (the 'License'). You may not use this file except in 4695 // compliance with the License. The rights granted to you under the License 4696 // may not be used to create, or enable the creation or redistribution of, 4697 // unlawful or unlicensed copies of an Apple operating system, or to 4698 // circumvent, violate, or enable the circumvention or violation of, any 4699 // terms of an Apple operating system software license agreement. 4700 // 4701 // Please obtain a copy of the License at 4702 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4703 // 4704 // The Original Code and all software distributed under the License are 4705 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4706 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4707 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4708 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4709 // Please see the License for the specific language governing rights and 4710 // limitations under the License. 4711 // 4712 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4713 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4714 // 4715 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4716 // 4717 // This file contains Original Code and/or Modifications of Original Code 4718 // as defined in and that are subject to the Apple Public Source License 4719 // Version 2.0 (the 'License'). You may not use this file except in 4720 // compliance with the License. The rights granted to you under the License 4721 // may not be used to create, or enable the creation or redistribution of, 4722 // unlawful or unlicensed copies of an Apple operating system, or to 4723 // circumvent, violate, or enable the circumvention or violation of, any 4724 // terms of an Apple operating system software license agreement. 4725 // 4726 // Please obtain a copy of the License at 4727 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4728 // 4729 // The Original Code and all software distributed under the License are 4730 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4731 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4732 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4733 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4734 // Please see the License for the specific language governing rights and 4735 // limitations under the License. 4736 // 4737 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4738 4739 type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */ 4740 4741 // Major, minor numbers, dev_t's. 4742 4743 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4744 // 4745 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4746 // 4747 // This file contains Original Code and/or Modifications of Original Code 4748 // as defined in and that are subject to the Apple Public Source License 4749 // Version 2.0 (the 'License'). You may not use this file except in 4750 // compliance with the License. The rights granted to you under the License 4751 // may not be used to create, or enable the creation or redistribution of, 4752 // unlawful or unlicensed copies of an Apple operating system, or to 4753 // circumvent, violate, or enable the circumvention or violation of, any 4754 // terms of an Apple operating system software license agreement. 4755 // 4756 // Please obtain a copy of the License at 4757 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4758 // 4759 // The Original Code and all software distributed under the License are 4760 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4761 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4762 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4763 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4764 // Please see the License for the specific language governing rights and 4765 // limitations under the License. 4766 // 4767 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4768 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4769 // 4770 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4771 // 4772 // This file contains Original Code and/or Modifications of Original Code 4773 // as defined in and that are subject to the Apple Public Source License 4774 // Version 2.0 (the 'License'). You may not use this file except in 4775 // compliance with the License. The rights granted to you under the License 4776 // may not be used to create, or enable the creation or redistribution of, 4777 // unlawful or unlicensed copies of an Apple operating system, or to 4778 // circumvent, violate, or enable the circumvention or violation of, any 4779 // terms of an Apple operating system software license agreement. 4780 // 4781 // Please obtain a copy of the License at 4782 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4783 // 4784 // The Original Code and all software distributed under the License are 4785 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4786 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4787 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4788 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4789 // Please see the License for the specific language governing rights and 4790 // limitations under the License. 4791 // 4792 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4793 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4794 type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */ 4795 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4796 // 4797 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4798 // 4799 // This file contains Original Code and/or Modifications of Original Code 4800 // as defined in and that are subject to the Apple Public Source License 4801 // Version 2.0 (the 'License'). You may not use this file except in 4802 // compliance with the License. The rights granted to you under the License 4803 // may not be used to create, or enable the creation or redistribution of, 4804 // unlawful or unlicensed copies of an Apple operating system, or to 4805 // circumvent, violate, or enable the circumvention or violation of, any 4806 // terms of an Apple operating system software license agreement. 4807 // 4808 // Please obtain a copy of the License at 4809 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4810 // 4811 // The Original Code and all software distributed under the License are 4812 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4813 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4814 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4815 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4816 // Please see the License for the specific language governing rights and 4817 // limitations under the License. 4818 // 4819 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4820 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4821 // 4822 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4823 // 4824 // This file contains Original Code and/or Modifications of Original Code 4825 // as defined in and that are subject to the Apple Public Source License 4826 // Version 2.0 (the 'License'). You may not use this file except in 4827 // compliance with the License. The rights granted to you under the License 4828 // may not be used to create, or enable the creation or redistribution of, 4829 // unlawful or unlicensed copies of an Apple operating system, or to 4830 // circumvent, violate, or enable the circumvention or violation of, any 4831 // terms of an Apple operating system software license agreement. 4832 // 4833 // Please obtain a copy of the License at 4834 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4835 // 4836 // The Original Code and all software distributed under the License are 4837 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4838 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4839 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4840 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4841 // Please see the License for the specific language governing rights and 4842 // limitations under the License. 4843 // 4844 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4845 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4846 // 4847 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4848 // 4849 // This file contains Original Code and/or Modifications of Original Code 4850 // as defined in and that are subject to the Apple Public Source License 4851 // Version 2.0 (the 'License'). You may not use this file except in 4852 // compliance with the License. The rights granted to you under the License 4853 // may not be used to create, or enable the creation or redistribution of, 4854 // unlawful or unlicensed copies of an Apple operating system, or to 4855 // circumvent, violate, or enable the circumvention or violation of, any 4856 // terms of an Apple operating system software license agreement. 4857 // 4858 // Please obtain a copy of the License at 4859 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4860 // 4861 // The Original Code and all software distributed under the License are 4862 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4863 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4864 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4865 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4866 // Please see the License for the specific language governing rights and 4867 // limitations under the License. 4868 // 4869 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4870 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4871 type Ssize_t = X__darwin_ssize_t /* _ssize_t.h:31:33 */ 4872 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4873 // 4874 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4875 // 4876 // This file contains Original Code and/or Modifications of Original Code 4877 // as defined in and that are subject to the Apple Public Source License 4878 // Version 2.0 (the 'License'). You may not use this file except in 4879 // compliance with the License. The rights granted to you under the License 4880 // may not be used to create, or enable the creation or redistribution of, 4881 // unlawful or unlicensed copies of an Apple operating system, or to 4882 // circumvent, violate, or enable the circumvention or violation of, any 4883 // terms of an Apple operating system software license agreement. 4884 // 4885 // Please obtain a copy of the License at 4886 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4887 // 4888 // The Original Code and all software distributed under the License are 4889 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4890 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4891 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4892 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4893 // Please see the License for the specific language governing rights and 4894 // limitations under the License. 4895 // 4896 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4897 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4898 // 4899 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4900 // 4901 // This file contains Original Code and/or Modifications of Original Code 4902 // as defined in and that are subject to the Apple Public Source License 4903 // Version 2.0 (the 'License'). You may not use this file except in 4904 // compliance with the License. The rights granted to you under the License 4905 // may not be used to create, or enable the creation or redistribution of, 4906 // unlawful or unlicensed copies of an Apple operating system, or to 4907 // circumvent, violate, or enable the circumvention or violation of, any 4908 // terms of an Apple operating system software license agreement. 4909 // 4910 // Please obtain a copy of the License at 4911 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4912 // 4913 // The Original Code and all software distributed under the License are 4914 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4915 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4916 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4917 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4918 // Please see the License for the specific language governing rights and 4919 // limitations under the License. 4920 // 4921 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4922 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4923 type Time_t = X__darwin_time_t /* _time_t.h:31:33 */ 4924 4925 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4926 // 4927 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4928 // 4929 // This file contains Original Code and/or Modifications of Original Code 4930 // as defined in and that are subject to the Apple Public Source License 4931 // Version 2.0 (the 'License'). You may not use this file except in 4932 // compliance with the License. The rights granted to you under the License 4933 // may not be used to create, or enable the creation or redistribution of, 4934 // unlawful or unlicensed copies of an Apple operating system, or to 4935 // circumvent, violate, or enable the circumvention or violation of, any 4936 // terms of an Apple operating system software license agreement. 4937 // 4938 // Please obtain a copy of the License at 4939 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4940 // 4941 // The Original Code and all software distributed under the License are 4942 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4943 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4944 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4945 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4946 // Please see the License for the specific language governing rights and 4947 // limitations under the License. 4948 // 4949 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4950 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4951 // 4952 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4953 // 4954 // This file contains Original Code and/or Modifications of Original Code 4955 // as defined in and that are subject to the Apple Public Source License 4956 // Version 2.0 (the 'License'). You may not use this file except in 4957 // compliance with the License. The rights granted to you under the License 4958 // may not be used to create, or enable the creation or redistribution of, 4959 // unlawful or unlicensed copies of an Apple operating system, or to 4960 // circumvent, violate, or enable the circumvention or violation of, any 4961 // terms of an Apple operating system software license agreement. 4962 // 4963 // Please obtain a copy of the License at 4964 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4965 // 4966 // The Original Code and all software distributed under the License are 4967 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4968 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4969 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4970 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4971 // Please see the License for the specific language governing rights and 4972 // limitations under the License. 4973 // 4974 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4975 4976 type Useconds_t = X__darwin_useconds_t /* _useconds_t.h:31:33 */ 4977 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4978 // 4979 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4980 // 4981 // This file contains Original Code and/or Modifications of Original Code 4982 // as defined in and that are subject to the Apple Public Source License 4983 // Version 2.0 (the 'License'). You may not use this file except in 4984 // compliance with the License. The rights granted to you under the License 4985 // may not be used to create, or enable the creation or redistribution of, 4986 // unlawful or unlicensed copies of an Apple operating system, or to 4987 // circumvent, violate, or enable the circumvention or violation of, any 4988 // terms of an Apple operating system software license agreement. 4989 // 4990 // Please obtain a copy of the License at 4991 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4992 // 4993 // The Original Code and all software distributed under the License are 4994 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4995 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4996 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4997 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4998 // Please see the License for the specific language governing rights and 4999 // limitations under the License. 5000 // 5001 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5002 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 5003 // 5004 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5005 // 5006 // This file contains Original Code and/or Modifications of Original Code 5007 // as defined in and that are subject to the Apple Public Source License 5008 // Version 2.0 (the 'License'). You may not use this file except in 5009 // compliance with the License. The rights granted to you under the License 5010 // may not be used to create, or enable the creation or redistribution of, 5011 // unlawful or unlicensed copies of an Apple operating system, or to 5012 // circumvent, violate, or enable the circumvention or violation of, any 5013 // terms of an Apple operating system software license agreement. 5014 // 5015 // Please obtain a copy of the License at 5016 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5017 // 5018 // The Original Code and all software distributed under the License are 5019 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5020 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5021 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5022 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5023 // Please see the License for the specific language governing rights and 5024 // limitations under the License. 5025 // 5026 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5027 5028 type Suseconds_t = X__darwin_suseconds_t /* _suseconds_t.h:31:33 */ 5029 5030 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5031 // 5032 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5033 // 5034 // This file contains Original Code and/or Modifications of Original Code 5035 // as defined in and that are subject to the Apple Public Source License 5036 // Version 2.0 (the 'License'). You may not use this file except in 5037 // compliance with the License. The rights granted to you under the License 5038 // may not be used to create, or enable the creation or redistribution of, 5039 // unlawful or unlicensed copies of an Apple operating system, or to 5040 // circumvent, violate, or enable the circumvention or violation of, any 5041 // terms of an Apple operating system software license agreement. 5042 // 5043 // Please obtain a copy of the License at 5044 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5045 // 5046 // The Original Code and all software distributed under the License are 5047 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5048 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5049 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5050 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5051 // Please see the License for the specific language governing rights and 5052 // limitations under the License. 5053 // 5054 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5055 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 5056 // 5057 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5058 // 5059 // This file contains Original Code and/or Modifications of Original Code 5060 // as defined in and that are subject to the Apple Public Source License 5061 // Version 2.0 (the 'License'). You may not use this file except in 5062 // compliance with the License. The rights granted to you under the License 5063 // may not be used to create, or enable the creation or redistribution of, 5064 // unlawful or unlicensed copies of an Apple operating system, or to 5065 // circumvent, violate, or enable the circumvention or violation of, any 5066 // terms of an Apple operating system software license agreement. 5067 // 5068 // Please obtain a copy of the License at 5069 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5070 // 5071 // The Original Code and all software distributed under the License are 5072 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5073 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5074 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5075 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5076 // Please see the License for the specific language governing rights and 5077 // limitations under the License. 5078 // 5079 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5080 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 5081 type Rsize_t = X__darwin_size_t /* _rsize_t.h:31:32 */ 5082 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5083 // 5084 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5085 // 5086 // This file contains Original Code and/or Modifications of Original Code 5087 // as defined in and that are subject to the Apple Public Source License 5088 // Version 2.0 (the 'License'). You may not use this file except in 5089 // compliance with the License. The rights granted to you under the License 5090 // may not be used to create, or enable the creation or redistribution of, 5091 // unlawful or unlicensed copies of an Apple operating system, or to 5092 // circumvent, violate, or enable the circumvention or violation of, any 5093 // terms of an Apple operating system software license agreement. 5094 // 5095 // Please obtain a copy of the License at 5096 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5097 // 5098 // The Original Code and all software distributed under the License are 5099 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5100 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5101 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5102 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5103 // Please see the License for the specific language governing rights and 5104 // limitations under the License. 5105 // 5106 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5107 type Errno_t = int32 /* _errno_t.h:30:32 */ 5108 5109 // This code is present here in order to maintain historical backward 5110 // compatability, and is intended to be removed at some point in the 5111 // future; please include <sys/select.h> instead. 5112 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5113 // 5114 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5115 // 5116 // This file contains Original Code and/or Modifications of Original Code 5117 // as defined in and that are subject to the Apple Public Source License 5118 // Version 2.0 (the 'License'). You may not use this file except in 5119 // compliance with the License. The rights granted to you under the License 5120 // may not be used to create, or enable the creation or redistribution of, 5121 // unlawful or unlicensed copies of an Apple operating system, or to 5122 // circumvent, violate, or enable the circumvention or violation of, any 5123 // terms of an Apple operating system software license agreement. 5124 // 5125 // Please obtain a copy of the License at 5126 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5127 // 5128 // The Original Code and all software distributed under the License are 5129 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5130 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5131 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5132 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5133 // Please see the License for the specific language governing rights and 5134 // limitations under the License. 5135 // 5136 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5137 5138 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 5139 // 5140 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5141 // 5142 // This file contains Original Code and/or Modifications of Original Code 5143 // as defined in and that are subject to the Apple Public Source License 5144 // Version 2.0 (the 'License'). You may not use this file except in 5145 // compliance with the License. The rights granted to you under the License 5146 // may not be used to create, or enable the creation or redistribution of, 5147 // unlawful or unlicensed copies of an Apple operating system, or to 5148 // circumvent, violate, or enable the circumvention or violation of, any 5149 // terms of an Apple operating system software license agreement. 5150 // 5151 // Please obtain a copy of the License at 5152 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5153 // 5154 // The Original Code and all software distributed under the License are 5155 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5156 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5157 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5158 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5159 // Please see the License for the specific language governing rights and 5160 // limitations under the License. 5161 // 5162 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5163 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 5164 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 5165 // 5166 // @APPLE_LICENSE_HEADER_START@ 5167 // 5168 // This file contains Original Code and/or Modifications of Original Code 5169 // as defined in and that are subject to the Apple Public Source License 5170 // Version 2.0 (the 'License'). You may not use this file except in 5171 // compliance with the License. Please obtain a copy of the License at 5172 // http://www.opensource.apple.com/apsl/ and read it before using this 5173 // file. 5174 // 5175 // The Original Code and all software distributed under the License are 5176 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5177 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5178 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5179 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5180 // Please see the License for the specific language governing rights and 5181 // limitations under the License. 5182 // 5183 // @APPLE_LICENSE_HEADER_END@ 5184 5185 // 5186 // These macros are for use in OS header files. They enable function prototypes 5187 // and Objective-C methods to be tagged with the OS version in which they 5188 // were first available; and, if applicable, the OS version in which they 5189 // became deprecated. 5190 // 5191 // The desktop Mac OS X and iOS each have different version numbers. 5192 // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop 5193 // and iOS version numbers. For instance: 5194 // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0) 5195 // means the function/method was first available on Mac OS X 10.2 on the desktop 5196 // and first available in iOS 2.0 on the iPhone. 5197 // 5198 // If a function is available on one platform, but not the other a _NA (not 5199 // applicable) parameter is used. For instance: 5200 // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA) 5201 // means that the function/method was first available on Mac OS X 10.3, and it 5202 // currently not implemented on the iPhone. 5203 // 5204 // At some point, a function/method may be deprecated. That means Apple 5205 // recommends applications stop using the function, either because there is a 5206 // better replacement or the functionality is being phased out. Deprecated 5207 // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED() 5208 // macro which specifies the OS version where the function became available 5209 // as well as the OS version in which it became deprecated. For instance: 5210 // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA) 5211 // means that the function/method was introduced in Mac OS X 10.0, then 5212 // became deprecated beginning in Mac OS X 10.5. On iOS the function 5213 // has never been available. 5214 // 5215 // For these macros to function properly, a program must specify the OS version range 5216 // it is targeting. The min OS version is specified as an option to the compiler: 5217 // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z 5218 // when building for the iPhone. The upper bound for the OS version is rarely needed, 5219 // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for 5220 // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS. 5221 // 5222 // Examples: 5223 // 5224 // A function available in Mac OS X 10.5 and later, but not on the phone: 5225 // 5226 // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA); 5227 // 5228 // 5229 // An Objective-C method in Mac OS X 10.5 and later, but not on the phone: 5230 // 5231 // @interface MyClass : NSObject 5232 // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA); 5233 // @end 5234 // 5235 // 5236 // An enum available on the phone, but not available on Mac OS X: 5237 // 5238 // #if __IPHONE_OS_VERSION_MIN_REQUIRED 5239 // enum { myEnum = 1 }; 5240 // #endif 5241 // Note: this works when targeting the Mac OS X platform because 5242 // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero. 5243 // 5244 // 5245 // An enum with values added in different iPhoneOS versions: 5246 // 5247 // enum { 5248 // myX = 1, // Usable on iPhoneOS 2.1 and later 5249 // myY = 2, // Usable on iPhoneOS 3.0 and later 5250 // myZ = 3, // Usable on iPhoneOS 3.0 and later 5251 // ... 5252 // Note: you do not want to use #if with enumeration values 5253 // when a client needs to see all values at compile time 5254 // and use runtime logic to only use the viable values. 5255 // 5256 // 5257 // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one 5258 // source base that can be compiled to target a range of OS versions. It is best 5259 // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values. 5260 // That is because you might get compiled on an old OS that does not define a later 5261 // OS version macro, and in the C preprocessor undefined values evaluate to zero 5262 // in expresssions, which could cause the #if expression to evaluate in an unexpected 5263 // way. 5264 // 5265 // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED 5266 // // code only compiled when targeting Mac OS X and not iPhone 5267 // // note use of 1050 instead of __MAC_10_5 5268 // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050 5269 // // code in here might run on pre-Leopard OS 5270 // #else 5271 // // code here can assume Leopard or later 5272 // #endif 5273 // #endif 5274 // 5275 // 5276 5277 // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated 5278 // in an upcoming release. This soft deprecation is an intermediate step before formal 5279 // deprecation to notify developers about the API before compiler warnings are generated. 5280 // You can find all places in your code that use soft deprecated API by redefining the 5281 // value of this macro to your current minimum deployment target, for example: 5282 // (macOS) 5283 // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags> 5284 // (iOS) 5285 // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags> 5286 5287 // __MAC_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable 5288 5289 // __IPHONE_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable 5290 5291 // DO NOT EDIT THIS FILE. 5292 // 5293 // It has been auto-edited by fixincludes from: 5294 // 5295 // "/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/AvailabilityInternal.h" 5296 // 5297 // This had to be done to correct non-standard usages in the 5298 // original, manufacturer supplied header file. 5299 5300 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 5301 // 5302 // @APPLE_LICENSE_HEADER_START@ 5303 // 5304 // This file contains Original Code and/or Modifications of Original Code 5305 // as defined in and that are subject to the Apple Public Source License 5306 // Version 2.0 (the 'License'). You may not use this file except in 5307 // compliance with the License. Please obtain a copy of the License at 5308 // http://www.opensource.apple.com/apsl/ and read it before using this 5309 // file. 5310 // 5311 // The Original Code and all software distributed under the License are 5312 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5313 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5314 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5315 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5316 // Please see the License for the specific language governing rights and 5317 // limitations under the License. 5318 // 5319 // @APPLE_LICENSE_HEADER_END@ 5320 5321 // 5322 // File: AvailabilityInternal.h 5323 // 5324 // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h> 5325 // 5326 5327 // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 5328 5329 // make sure a default max version is set 5330 5331 // 5332 // Macros for defining which versions/platform a given symbol can be used. 5333 // 5334 // @see http://clang.llvm.org/docs/AttributeReference.html#availability 5335 // 5336 5337 // Evaluate to nothing for compilers that don't support availability. 5338 5339 // Swift compiler version 5340 // Allows for project-agnostic “epochs” for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift 5341 // Example: 5342 // 5343 // #if __swift_compiler_version_at_least(800, 2, 20) 5344 // - (nonnull NSString *)description; 5345 // #else 5346 // - (NSString *)description; 5347 // #endif 5348 5349 // If __SPI_AVAILABLE has not been defined elsewhere, disable it. 5350 5351 // for use to document app extension usage 5352 5353 // for use marking APIs available info for Mac OSX 5354 5355 // for use marking APIs available info for iOS 5356 5357 // for use marking APIs available info for tvOS 5358 5359 // for use marking APIs available info for Watch OS 5360 5361 // for use marking APIs unavailable for swift 5362 5363 // 5364 // Macros for defining which versions/platform a given symbol can be used. 5365 // 5366 // @see http://clang.llvm.org/docs/AttributeReference.html#availability 5367 // 5368 // * Note that these macros are only compatible with clang compilers that 5369 // * support the following target selection options: 5370 // * 5371 // * -mmacosx-version-min 5372 // * -miphoneos-version-min 5373 // * -mwatchos-version-min 5374 // * -mtvos-version-min 5375 // 5376 5377 // Evaluate to nothing for compilers that don't support availability. 5378 5379 // If SPI decorations have not been defined elsewhere, disable them. 5380 5381 // Select uses bit masks of file descriptors in longs. These macros 5382 // manipulate such bit fields (the filesystem macros use chars). The 5383 // extra protection here is to permit application redefinition above 5384 // the default size. 5385 5386 type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */ 5387 5388 // This code is present here in order to maintain historical backward 5389 // compatability, and is intended to be removed at some point in the 5390 // future; please include <sys/select.h> instead. 5391 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5392 // 5393 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5394 // 5395 // This file contains Original Code and/or Modifications of Original Code 5396 // as defined in and that are subject to the Apple Public Source License 5397 // Version 2.0 (the 'License'). You may not use this file except in 5398 // compliance with the License. The rights granted to you under the License 5399 // may not be used to create, or enable the creation or redistribution of, 5400 // unlawful or unlicensed copies of an Apple operating system, or to 5401 // circumvent, violate, or enable the circumvention or violation of, any 5402 // terms of an Apple operating system software license agreement. 5403 // 5404 // Please obtain a copy of the License at 5405 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5406 // 5407 // The Original Code and all software distributed under the License are 5408 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5409 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5410 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5411 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5412 // Please see the License for the specific language governing rights and 5413 // limitations under the License. 5414 // 5415 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5416 5417 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 5418 // 5419 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5420 // 5421 // This file contains Original Code and/or Modifications of Original Code 5422 // as defined in and that are subject to the Apple Public Source License 5423 // Version 2.0 (the 'License'). You may not use this file except in 5424 // compliance with the License. The rights granted to you under the License 5425 // may not be used to create, or enable the creation or redistribution of, 5426 // unlawful or unlicensed copies of an Apple operating system, or to 5427 // circumvent, violate, or enable the circumvention or violation of, any 5428 // terms of an Apple operating system software license agreement. 5429 // 5430 // Please obtain a copy of the License at 5431 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5432 // 5433 // The Original Code and all software distributed under the License are 5434 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5435 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5436 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5437 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5438 // Please see the License for the specific language governing rights and 5439 // limitations under the License. 5440 // 5441 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5442 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 5443 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 5444 // 5445 // @APPLE_LICENSE_HEADER_START@ 5446 // 5447 // This file contains Original Code and/or Modifications of Original Code 5448 // as defined in and that are subject to the Apple Public Source License 5449 // Version 2.0 (the 'License'). You may not use this file except in 5450 // compliance with the License. Please obtain a copy of the License at 5451 // http://www.opensource.apple.com/apsl/ and read it before using this 5452 // file. 5453 // 5454 // The Original Code and all software distributed under the License are 5455 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5456 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5457 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5458 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5459 // Please see the License for the specific language governing rights and 5460 // limitations under the License. 5461 // 5462 // @APPLE_LICENSE_HEADER_END@ 5463 5464 // 5465 // These macros are for use in OS header files. They enable function prototypes 5466 // and Objective-C methods to be tagged with the OS version in which they 5467 // were first available; and, if applicable, the OS version in which they 5468 // became deprecated. 5469 // 5470 // The desktop Mac OS X and iOS each have different version numbers. 5471 // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop 5472 // and iOS version numbers. For instance: 5473 // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0) 5474 // means the function/method was first available on Mac OS X 10.2 on the desktop 5475 // and first available in iOS 2.0 on the iPhone. 5476 // 5477 // If a function is available on one platform, but not the other a _NA (not 5478 // applicable) parameter is used. For instance: 5479 // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA) 5480 // means that the function/method was first available on Mac OS X 10.3, and it 5481 // currently not implemented on the iPhone. 5482 // 5483 // At some point, a function/method may be deprecated. That means Apple 5484 // recommends applications stop using the function, either because there is a 5485 // better replacement or the functionality is being phased out. Deprecated 5486 // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED() 5487 // macro which specifies the OS version where the function became available 5488 // as well as the OS version in which it became deprecated. For instance: 5489 // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA) 5490 // means that the function/method was introduced in Mac OS X 10.0, then 5491 // became deprecated beginning in Mac OS X 10.5. On iOS the function 5492 // has never been available. 5493 // 5494 // For these macros to function properly, a program must specify the OS version range 5495 // it is targeting. The min OS version is specified as an option to the compiler: 5496 // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z 5497 // when building for the iPhone. The upper bound for the OS version is rarely needed, 5498 // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for 5499 // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS. 5500 // 5501 // Examples: 5502 // 5503 // A function available in Mac OS X 10.5 and later, but not on the phone: 5504 // 5505 // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA); 5506 // 5507 // 5508 // An Objective-C method in Mac OS X 10.5 and later, but not on the phone: 5509 // 5510 // @interface MyClass : NSObject 5511 // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA); 5512 // @end 5513 // 5514 // 5515 // An enum available on the phone, but not available on Mac OS X: 5516 // 5517 // #if __IPHONE_OS_VERSION_MIN_REQUIRED 5518 // enum { myEnum = 1 }; 5519 // #endif 5520 // Note: this works when targeting the Mac OS X platform because 5521 // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero. 5522 // 5523 // 5524 // An enum with values added in different iPhoneOS versions: 5525 // 5526 // enum { 5527 // myX = 1, // Usable on iPhoneOS 2.1 and later 5528 // myY = 2, // Usable on iPhoneOS 3.0 and later 5529 // myZ = 3, // Usable on iPhoneOS 3.0 and later 5530 // ... 5531 // Note: you do not want to use #if with enumeration values 5532 // when a client needs to see all values at compile time 5533 // and use runtime logic to only use the viable values. 5534 // 5535 // 5536 // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one 5537 // source base that can be compiled to target a range of OS versions. It is best 5538 // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values. 5539 // That is because you might get compiled on an old OS that does not define a later 5540 // OS version macro, and in the C preprocessor undefined values evaluate to zero 5541 // in expresssions, which could cause the #if expression to evaluate in an unexpected 5542 // way. 5543 // 5544 // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED 5545 // // code only compiled when targeting Mac OS X and not iPhone 5546 // // note use of 1050 instead of __MAC_10_5 5547 // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050 5548 // // code in here might run on pre-Leopard OS 5549 // #else 5550 // // code here can assume Leopard or later 5551 // #endif 5552 // #endif 5553 // 5554 // 5555 5556 // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated 5557 // in an upcoming release. This soft deprecation is an intermediate step before formal 5558 // deprecation to notify developers about the API before compiler warnings are generated. 5559 // You can find all places in your code that use soft deprecated API by redefining the 5560 // value of this macro to your current minimum deployment target, for example: 5561 // (macOS) 5562 // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags> 5563 // (iOS) 5564 // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags> 5565 5566 // __MAC_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable 5567 5568 // __IPHONE_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable 5569 5570 // DO NOT EDIT THIS FILE. 5571 // 5572 // It has been auto-edited by fixincludes from: 5573 // 5574 // "/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/AvailabilityInternal.h" 5575 // 5576 // This had to be done to correct non-standard usages in the 5577 // original, manufacturer supplied header file. 5578 5579 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 5580 // 5581 // @APPLE_LICENSE_HEADER_START@ 5582 // 5583 // This file contains Original Code and/or Modifications of Original Code 5584 // as defined in and that are subject to the Apple Public Source License 5585 // Version 2.0 (the 'License'). You may not use this file except in 5586 // compliance with the License. Please obtain a copy of the License at 5587 // http://www.opensource.apple.com/apsl/ and read it before using this 5588 // file. 5589 // 5590 // The Original Code and all software distributed under the License are 5591 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5592 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5593 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5594 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5595 // Please see the License for the specific language governing rights and 5596 // limitations under the License. 5597 // 5598 // @APPLE_LICENSE_HEADER_END@ 5599 5600 // 5601 // File: AvailabilityInternal.h 5602 // 5603 // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h> 5604 // 5605 5606 // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 5607 5608 // make sure a default max version is set 5609 5610 // 5611 // Macros for defining which versions/platform a given symbol can be used. 5612 // 5613 // @see http://clang.llvm.org/docs/AttributeReference.html#availability 5614 // 5615 5616 // Evaluate to nothing for compilers that don't support availability. 5617 5618 // Swift compiler version 5619 // Allows for project-agnostic “epochs” for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift 5620 // Example: 5621 // 5622 // #if __swift_compiler_version_at_least(800, 2, 20) 5623 // - (nonnull NSString *)description; 5624 // #else 5625 // - (NSString *)description; 5626 // #endif 5627 5628 // If __SPI_AVAILABLE has not been defined elsewhere, disable it. 5629 5630 // for use to document app extension usage 5631 5632 // for use marking APIs available info for Mac OSX 5633 5634 // for use marking APIs available info for iOS 5635 5636 // for use marking APIs available info for tvOS 5637 5638 // for use marking APIs available info for Watch OS 5639 5640 // for use marking APIs unavailable for swift 5641 5642 // 5643 // Macros for defining which versions/platform a given symbol can be used. 5644 // 5645 // @see http://clang.llvm.org/docs/AttributeReference.html#availability 5646 // 5647 // * Note that these macros are only compatible with clang compilers that 5648 // * support the following target selection options: 5649 // * 5650 // * -mmacosx-version-min 5651 // * -miphoneos-version-min 5652 // * -mwatchos-version-min 5653 // * -mtvos-version-min 5654 // 5655 5656 // Evaluate to nothing for compilers that don't support availability. 5657 5658 // If SPI decorations have not been defined elsewhere, disable them. 5659 5660 // Select uses bit masks of file descriptors in longs. These macros 5661 // manipulate such bit fields (the filesystem macros use chars). The 5662 // extra protection here is to permit application redefinition above 5663 // the default size. 5664 5665 type Fd_set = Fd_set1 /* _fd_def.h:52:3 */ 5666 5667 // Use the built-in bzero function instead of the library version so that 5668 // we do not pollute the namespace or introduce prototype warnings. 5669 5670 type Fd_mask = X__int32_t /* types.h:189:25 */ 5671 5672 // Select uses bit masks of file descriptors in longs. These macros 5673 // manipulate such bit fields (the filesystem macros use chars). The 5674 // extra protection here is to permit application redefinition above 5675 // the default size. 5676 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5677 // 5678 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5679 // 5680 // This file contains Original Code and/or Modifications of Original Code 5681 // as defined in and that are subject to the Apple Public Source License 5682 // Version 2.0 (the 'License'). You may not use this file except in 5683 // compliance with the License. The rights granted to you under the License 5684 // may not be used to create, or enable the creation or redistribution of, 5685 // unlawful or unlicensed copies of an Apple operating system, or to 5686 // circumvent, violate, or enable the circumvention or violation of, any 5687 // terms of an Apple operating system software license agreement. 5688 // 5689 // Please obtain a copy of the License at 5690 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5691 // 5692 // The Original Code and all software distributed under the License are 5693 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5694 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5695 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5696 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5697 // Please see the License for the specific language governing rights and 5698 // limitations under the License. 5699 // 5700 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5701 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5702 // 5703 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5704 // 5705 // This file contains Original Code and/or Modifications of Original Code 5706 // as defined in and that are subject to the Apple Public Source License 5707 // Version 2.0 (the 'License'). You may not use this file except in 5708 // compliance with the License. The rights granted to you under the License 5709 // may not be used to create, or enable the creation or redistribution of, 5710 // unlawful or unlicensed copies of an Apple operating system, or to 5711 // circumvent, violate, or enable the circumvention or violation of, any 5712 // terms of an Apple operating system software license agreement. 5713 // 5714 // Please obtain a copy of the License at 5715 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5716 // 5717 // The Original Code and all software distributed under the License are 5718 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5719 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5720 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5721 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5722 // Please see the License for the specific language governing rights and 5723 // limitations under the License. 5724 // 5725 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5726 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5727 // 5728 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5729 // 5730 // This file contains Original Code and/or Modifications of Original Code 5731 // as defined in and that are subject to the Apple Public Source License 5732 // Version 2.0 (the 'License'). You may not use this file except in 5733 // compliance with the License. The rights granted to you under the License 5734 // may not be used to create, or enable the creation or redistribution of, 5735 // unlawful or unlicensed copies of an Apple operating system, or to 5736 // circumvent, violate, or enable the circumvention or violation of, any 5737 // terms of an Apple operating system software license agreement. 5738 // 5739 // Please obtain a copy of the License at 5740 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5741 // 5742 // The Original Code and all software distributed under the License are 5743 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5744 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5745 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5746 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5747 // Please see the License for the specific language governing rights and 5748 // limitations under the License. 5749 // 5750 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5751 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5752 // 5753 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5754 // 5755 // This file contains Original Code and/or Modifications of Original Code 5756 // as defined in and that are subject to the Apple Public Source License 5757 // Version 2.0 (the 'License'). You may not use this file except in 5758 // compliance with the License. The rights granted to you under the License 5759 // may not be used to create, or enable the creation or redistribution of, 5760 // unlawful or unlicensed copies of an Apple operating system, or to 5761 // circumvent, violate, or enable the circumvention or violation of, any 5762 // terms of an Apple operating system software license agreement. 5763 // 5764 // Please obtain a copy of the License at 5765 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5766 // 5767 // The Original Code and all software distributed under the License are 5768 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5769 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5770 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5771 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5772 // Please see the License for the specific language governing rights and 5773 // limitations under the License. 5774 // 5775 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5776 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5777 // 5778 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5779 // 5780 // This file contains Original Code and/or Modifications of Original Code 5781 // as defined in and that are subject to the Apple Public Source License 5782 // Version 2.0 (the 'License'). You may not use this file except in 5783 // compliance with the License. The rights granted to you under the License 5784 // may not be used to create, or enable the creation or redistribution of, 5785 // unlawful or unlicensed copies of an Apple operating system, or to 5786 // circumvent, violate, or enable the circumvention or violation of, any 5787 // terms of an Apple operating system software license agreement. 5788 // 5789 // Please obtain a copy of the License at 5790 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5791 // 5792 // The Original Code and all software distributed under the License are 5793 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5794 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5795 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5796 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5797 // Please see the License for the specific language governing rights and 5798 // limitations under the License. 5799 // 5800 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5801 5802 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5803 // 5804 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5805 // 5806 // This file contains Original Code and/or Modifications of Original Code 5807 // as defined in and that are subject to the Apple Public Source License 5808 // Version 2.0 (the 'License'). You may not use this file except in 5809 // compliance with the License. The rights granted to you under the License 5810 // may not be used to create, or enable the creation or redistribution of, 5811 // unlawful or unlicensed copies of an Apple operating system, or to 5812 // circumvent, violate, or enable the circumvention or violation of, any 5813 // terms of an Apple operating system software license agreement. 5814 // 5815 // Please obtain a copy of the License at 5816 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5817 // 5818 // The Original Code and all software distributed under the License are 5819 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5820 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5821 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5822 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5823 // Please see the License for the specific language governing rights and 5824 // limitations under the License. 5825 // 5826 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5827 5828 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5829 // 5830 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5831 // 5832 // This file contains Original Code and/or Modifications of Original Code 5833 // as defined in and that are subject to the Apple Public Source License 5834 // Version 2.0 (the 'License'). You may not use this file except in 5835 // compliance with the License. The rights granted to you under the License 5836 // may not be used to create, or enable the creation or redistribution of, 5837 // unlawful or unlicensed copies of an Apple operating system, or to 5838 // circumvent, violate, or enable the circumvention or violation of, any 5839 // terms of an Apple operating system software license agreement. 5840 // 5841 // Please obtain a copy of the License at 5842 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5843 // 5844 // The Original Code and all software distributed under the License are 5845 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5846 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5847 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5848 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5849 // Please see the License for the specific language governing rights and 5850 // limitations under the License. 5851 // 5852 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5853 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 5854 // 5855 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5856 // 5857 // This file contains Original Code and/or Modifications of Original Code 5858 // as defined in and that are subject to the Apple Public Source License 5859 // Version 2.0 (the 'License'). You may not use this file except in 5860 // compliance with the License. The rights granted to you under the License 5861 // may not be used to create, or enable the creation or redistribution of, 5862 // unlawful or unlicensed copies of an Apple operating system, or to 5863 // circumvent, violate, or enable the circumvention or violation of, any 5864 // terms of an Apple operating system software license agreement. 5865 // 5866 // Please obtain a copy of the License at 5867 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5868 // 5869 // The Original Code and all software distributed under the License are 5870 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5871 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5872 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5873 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5874 // Please see the License for the specific language governing rights and 5875 // limitations under the License. 5876 // 5877 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5878 5879 type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */ 5880 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5881 // 5882 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5883 // 5884 // This file contains Original Code and/or Modifications of Original Code 5885 // as defined in and that are subject to the Apple Public Source License 5886 // Version 2.0 (the 'License'). You may not use this file except in 5887 // compliance with the License. The rights granted to you under the License 5888 // may not be used to create, or enable the creation or redistribution of, 5889 // unlawful or unlicensed copies of an Apple operating system, or to 5890 // circumvent, violate, or enable the circumvention or violation of, any 5891 // terms of an Apple operating system software license agreement. 5892 // 5893 // Please obtain a copy of the License at 5894 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5895 // 5896 // The Original Code and all software distributed under the License are 5897 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5898 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5899 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5900 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5901 // Please see the License for the specific language governing rights and 5902 // limitations under the License. 5903 // 5904 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5905 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 5906 // 5907 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5908 // 5909 // This file contains Original Code and/or Modifications of Original Code 5910 // as defined in and that are subject to the Apple Public Source License 5911 // Version 2.0 (the 'License'). You may not use this file except in 5912 // compliance with the License. The rights granted to you under the License 5913 // may not be used to create, or enable the creation or redistribution of, 5914 // unlawful or unlicensed copies of an Apple operating system, or to 5915 // circumvent, violate, or enable the circumvention or violation of, any 5916 // terms of an Apple operating system software license agreement. 5917 // 5918 // Please obtain a copy of the License at 5919 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5920 // 5921 // The Original Code and all software distributed under the License are 5922 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5923 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5924 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5925 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5926 // Please see the License for the specific language governing rights and 5927 // limitations under the License. 5928 // 5929 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5930 5931 type Pthread_cond_t = X__darwin_pthread_cond_t /* _pthread_cond_t.h:31:33 */ 5932 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5933 // 5934 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5935 // 5936 // This file contains Original Code and/or Modifications of Original Code 5937 // as defined in and that are subject to the Apple Public Source License 5938 // Version 2.0 (the 'License'). You may not use this file except in 5939 // compliance with the License. The rights granted to you under the License 5940 // may not be used to create, or enable the creation or redistribution of, 5941 // unlawful or unlicensed copies of an Apple operating system, or to 5942 // circumvent, violate, or enable the circumvention or violation of, any 5943 // terms of an Apple operating system software license agreement. 5944 // 5945 // Please obtain a copy of the License at 5946 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5947 // 5948 // The Original Code and all software distributed under the License are 5949 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5950 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5951 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5952 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5953 // Please see the License for the specific language governing rights and 5954 // limitations under the License. 5955 // 5956 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5957 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 5958 // 5959 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5960 // 5961 // This file contains Original Code and/or Modifications of Original Code 5962 // as defined in and that are subject to the Apple Public Source License 5963 // Version 2.0 (the 'License'). You may not use this file except in 5964 // compliance with the License. The rights granted to you under the License 5965 // may not be used to create, or enable the creation or redistribution of, 5966 // unlawful or unlicensed copies of an Apple operating system, or to 5967 // circumvent, violate, or enable the circumvention or violation of, any 5968 // terms of an Apple operating system software license agreement. 5969 // 5970 // Please obtain a copy of the License at 5971 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5972 // 5973 // The Original Code and all software distributed under the License are 5974 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5975 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5976 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5977 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5978 // Please see the License for the specific language governing rights and 5979 // limitations under the License. 5980 // 5981 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5982 5983 type Pthread_condattr_t = X__darwin_pthread_condattr_t /* _pthread_condattr_t.h:31:37 */ 5984 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5985 // 5986 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5987 // 5988 // This file contains Original Code and/or Modifications of Original Code 5989 // as defined in and that are subject to the Apple Public Source License 5990 // Version 2.0 (the 'License'). You may not use this file except in 5991 // compliance with the License. The rights granted to you under the License 5992 // may not be used to create, or enable the creation or redistribution of, 5993 // unlawful or unlicensed copies of an Apple operating system, or to 5994 // circumvent, violate, or enable the circumvention or violation of, any 5995 // terms of an Apple operating system software license agreement. 5996 // 5997 // Please obtain a copy of the License at 5998 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5999 // 6000 // The Original Code and all software distributed under the License are 6001 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6002 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6003 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6004 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6005 // Please see the License for the specific language governing rights and 6006 // limitations under the License. 6007 // 6008 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6009 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 6010 // 6011 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6012 // 6013 // This file contains Original Code and/or Modifications of Original Code 6014 // as defined in and that are subject to the Apple Public Source License 6015 // Version 2.0 (the 'License'). You may not use this file except in 6016 // compliance with the License. The rights granted to you under the License 6017 // may not be used to create, or enable the creation or redistribution of, 6018 // unlawful or unlicensed copies of an Apple operating system, or to 6019 // circumvent, violate, or enable the circumvention or violation of, any 6020 // terms of an Apple operating system software license agreement. 6021 // 6022 // Please obtain a copy of the License at 6023 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6024 // 6025 // The Original Code and all software distributed under the License are 6026 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6027 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6028 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6029 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6030 // Please see the License for the specific language governing rights and 6031 // limitations under the License. 6032 // 6033 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6034 6035 type Pthread_mutex_t = X__darwin_pthread_mutex_t /* _pthread_mutex_t.h:31:34 */ 6036 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6037 // 6038 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6039 // 6040 // This file contains Original Code and/or Modifications of Original Code 6041 // as defined in and that are subject to the Apple Public Source License 6042 // Version 2.0 (the 'License'). You may not use this file except in 6043 // compliance with the License. The rights granted to you under the License 6044 // may not be used to create, or enable the creation or redistribution of, 6045 // unlawful or unlicensed copies of an Apple operating system, or to 6046 // circumvent, violate, or enable the circumvention or violation of, any 6047 // terms of an Apple operating system software license agreement. 6048 // 6049 // Please obtain a copy of the License at 6050 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6051 // 6052 // The Original Code and all software distributed under the License are 6053 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6054 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6055 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6056 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6057 // Please see the License for the specific language governing rights and 6058 // limitations under the License. 6059 // 6060 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6061 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 6062 // 6063 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6064 // 6065 // This file contains Original Code and/or Modifications of Original Code 6066 // as defined in and that are subject to the Apple Public Source License 6067 // Version 2.0 (the 'License'). You may not use this file except in 6068 // compliance with the License. The rights granted to you under the License 6069 // may not be used to create, or enable the creation or redistribution of, 6070 // unlawful or unlicensed copies of an Apple operating system, or to 6071 // circumvent, violate, or enable the circumvention or violation of, any 6072 // terms of an Apple operating system software license agreement. 6073 // 6074 // Please obtain a copy of the License at 6075 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6076 // 6077 // The Original Code and all software distributed under the License are 6078 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6079 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6080 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6081 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6082 // Please see the License for the specific language governing rights and 6083 // limitations under the License. 6084 // 6085 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6086 6087 type Pthread_mutexattr_t = X__darwin_pthread_mutexattr_t /* _pthread_mutexattr_t.h:31:38 */ 6088 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6089 // 6090 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6091 // 6092 // This file contains Original Code and/or Modifications of Original Code 6093 // as defined in and that are subject to the Apple Public Source License 6094 // Version 2.0 (the 'License'). You may not use this file except in 6095 // compliance with the License. The rights granted to you under the License 6096 // may not be used to create, or enable the creation or redistribution of, 6097 // unlawful or unlicensed copies of an Apple operating system, or to 6098 // circumvent, violate, or enable the circumvention or violation of, any 6099 // terms of an Apple operating system software license agreement. 6100 // 6101 // Please obtain a copy of the License at 6102 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6103 // 6104 // The Original Code and all software distributed under the License are 6105 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6106 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6107 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6108 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6109 // Please see the License for the specific language governing rights and 6110 // limitations under the License. 6111 // 6112 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6113 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 6114 // 6115 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6116 // 6117 // This file contains Original Code and/or Modifications of Original Code 6118 // as defined in and that are subject to the Apple Public Source License 6119 // Version 2.0 (the 'License'). You may not use this file except in 6120 // compliance with the License. The rights granted to you under the License 6121 // may not be used to create, or enable the creation or redistribution of, 6122 // unlawful or unlicensed copies of an Apple operating system, or to 6123 // circumvent, violate, or enable the circumvention or violation of, any 6124 // terms of an Apple operating system software license agreement. 6125 // 6126 // Please obtain a copy of the License at 6127 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6128 // 6129 // The Original Code and all software distributed under the License are 6130 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6131 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6132 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6133 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6134 // Please see the License for the specific language governing rights and 6135 // limitations under the License. 6136 // 6137 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6138 6139 type Pthread_once_t = X__darwin_pthread_once_t /* _pthread_once_t.h:31:33 */ 6140 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6141 // 6142 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6143 // 6144 // This file contains Original Code and/or Modifications of Original Code 6145 // as defined in and that are subject to the Apple Public Source License 6146 // Version 2.0 (the 'License'). You may not use this file except in 6147 // compliance with the License. The rights granted to you under the License 6148 // may not be used to create, or enable the creation or redistribution of, 6149 // unlawful or unlicensed copies of an Apple operating system, or to 6150 // circumvent, violate, or enable the circumvention or violation of, any 6151 // terms of an Apple operating system software license agreement. 6152 // 6153 // Please obtain a copy of the License at 6154 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6155 // 6156 // The Original Code and all software distributed under the License are 6157 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6158 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6159 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6160 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6161 // Please see the License for the specific language governing rights and 6162 // limitations under the License. 6163 // 6164 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6165 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 6166 // 6167 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6168 // 6169 // This file contains Original Code and/or Modifications of Original Code 6170 // as defined in and that are subject to the Apple Public Source License 6171 // Version 2.0 (the 'License'). You may not use this file except in 6172 // compliance with the License. The rights granted to you under the License 6173 // may not be used to create, or enable the creation or redistribution of, 6174 // unlawful or unlicensed copies of an Apple operating system, or to 6175 // circumvent, violate, or enable the circumvention or violation of, any 6176 // terms of an Apple operating system software license agreement. 6177 // 6178 // Please obtain a copy of the License at 6179 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6180 // 6181 // The Original Code and all software distributed under the License are 6182 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6183 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6184 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6185 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6186 // Please see the License for the specific language governing rights and 6187 // limitations under the License. 6188 // 6189 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6190 6191 type Pthread_rwlock_t = X__darwin_pthread_rwlock_t /* _pthread_rwlock_t.h:31:35 */ 6192 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6193 // 6194 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6195 // 6196 // This file contains Original Code and/or Modifications of Original Code 6197 // as defined in and that are subject to the Apple Public Source License 6198 // Version 2.0 (the 'License'). You may not use this file except in 6199 // compliance with the License. The rights granted to you under the License 6200 // may not be used to create, or enable the creation or redistribution of, 6201 // unlawful or unlicensed copies of an Apple operating system, or to 6202 // circumvent, violate, or enable the circumvention or violation of, any 6203 // terms of an Apple operating system software license agreement. 6204 // 6205 // Please obtain a copy of the License at 6206 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6207 // 6208 // The Original Code and all software distributed under the License are 6209 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6210 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6211 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6212 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6213 // Please see the License for the specific language governing rights and 6214 // limitations under the License. 6215 // 6216 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6217 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 6218 // 6219 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6220 // 6221 // This file contains Original Code and/or Modifications of Original Code 6222 // as defined in and that are subject to the Apple Public Source License 6223 // Version 2.0 (the 'License'). You may not use this file except in 6224 // compliance with the License. The rights granted to you under the License 6225 // may not be used to create, or enable the creation or redistribution of, 6226 // unlawful or unlicensed copies of an Apple operating system, or to 6227 // circumvent, violate, or enable the circumvention or violation of, any 6228 // terms of an Apple operating system software license agreement. 6229 // 6230 // Please obtain a copy of the License at 6231 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6232 // 6233 // The Original Code and all software distributed under the License are 6234 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6235 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6236 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6237 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6238 // Please see the License for the specific language governing rights and 6239 // limitations under the License. 6240 // 6241 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6242 6243 type Pthread_rwlockattr_t = X__darwin_pthread_rwlockattr_t /* _pthread_rwlockattr_t.h:31:39 */ 6244 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6245 // 6246 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6247 // 6248 // This file contains Original Code and/or Modifications of Original Code 6249 // as defined in and that are subject to the Apple Public Source License 6250 // Version 2.0 (the 'License'). You may not use this file except in 6251 // compliance with the License. The rights granted to you under the License 6252 // may not be used to create, or enable the creation or redistribution of, 6253 // unlawful or unlicensed copies of an Apple operating system, or to 6254 // circumvent, violate, or enable the circumvention or violation of, any 6255 // terms of an Apple operating system software license agreement. 6256 // 6257 // Please obtain a copy of the License at 6258 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6259 // 6260 // The Original Code and all software distributed under the License are 6261 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6262 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6263 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6264 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6265 // Please see the License for the specific language governing rights and 6266 // limitations under the License. 6267 // 6268 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6269 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 6270 // 6271 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6272 // 6273 // This file contains Original Code and/or Modifications of Original Code 6274 // as defined in and that are subject to the Apple Public Source License 6275 // Version 2.0 (the 'License'). You may not use this file except in 6276 // compliance with the License. The rights granted to you under the License 6277 // may not be used to create, or enable the creation or redistribution of, 6278 // unlawful or unlicensed copies of an Apple operating system, or to 6279 // circumvent, violate, or enable the circumvention or violation of, any 6280 // terms of an Apple operating system software license agreement. 6281 // 6282 // Please obtain a copy of the License at 6283 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6284 // 6285 // The Original Code and all software distributed under the License are 6286 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6287 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6288 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6289 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6290 // Please see the License for the specific language governing rights and 6291 // limitations under the License. 6292 // 6293 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6294 6295 type Pthread_t = X__darwin_pthread_t /* _pthread_t.h:31:28 */ 6296 6297 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6298 // 6299 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6300 // 6301 // This file contains Original Code and/or Modifications of Original Code 6302 // as defined in and that are subject to the Apple Public Source License 6303 // Version 2.0 (the 'License'). You may not use this file except in 6304 // compliance with the License. The rights granted to you under the License 6305 // may not be used to create, or enable the creation or redistribution of, 6306 // unlawful or unlicensed copies of an Apple operating system, or to 6307 // circumvent, violate, or enable the circumvention or violation of, any 6308 // terms of an Apple operating system software license agreement. 6309 // 6310 // Please obtain a copy of the License at 6311 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6312 // 6313 // The Original Code and all software distributed under the License are 6314 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6315 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6316 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6317 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6318 // Please see the License for the specific language governing rights and 6319 // limitations under the License. 6320 // 6321 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6322 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 6323 // 6324 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6325 // 6326 // This file contains Original Code and/or Modifications of Original Code 6327 // as defined in and that are subject to the Apple Public Source License 6328 // Version 2.0 (the 'License'). You may not use this file except in 6329 // compliance with the License. The rights granted to you under the License 6330 // may not be used to create, or enable the creation or redistribution of, 6331 // unlawful or unlicensed copies of an Apple operating system, or to 6332 // circumvent, violate, or enable the circumvention or violation of, any 6333 // terms of an Apple operating system software license agreement. 6334 // 6335 // Please obtain a copy of the License at 6336 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6337 // 6338 // The Original Code and all software distributed under the License are 6339 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6340 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6341 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6342 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6343 // Please see the License for the specific language governing rights and 6344 // limitations under the License. 6345 // 6346 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6347 6348 type Pthread_key_t = X__darwin_pthread_key_t /* _pthread_key_t.h:31:32 */ 6349 6350 // statvfs and fstatvfs 6351 6352 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6353 // 6354 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6355 // 6356 // This file contains Original Code and/or Modifications of Original Code 6357 // as defined in and that are subject to the Apple Public Source License 6358 // Version 2.0 (the 'License'). You may not use this file except in 6359 // compliance with the License. The rights granted to you under the License 6360 // may not be used to create, or enable the creation or redistribution of, 6361 // unlawful or unlicensed copies of an Apple operating system, or to 6362 // circumvent, violate, or enable the circumvention or violation of, any 6363 // terms of an Apple operating system software license agreement. 6364 // 6365 // Please obtain a copy of the License at 6366 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6367 // 6368 // The Original Code and all software distributed under the License are 6369 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6370 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6371 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6372 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6373 // Please see the License for the specific language governing rights and 6374 // limitations under the License. 6375 // 6376 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6377 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 6378 // 6379 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6380 // 6381 // This file contains Original Code and/or Modifications of Original Code 6382 // as defined in and that are subject to the Apple Public Source License 6383 // Version 2.0 (the 'License'). You may not use this file except in 6384 // compliance with the License. The rights granted to you under the License 6385 // may not be used to create, or enable the creation or redistribution of, 6386 // unlawful or unlicensed copies of an Apple operating system, or to 6387 // circumvent, violate, or enable the circumvention or violation of, any 6388 // terms of an Apple operating system software license agreement. 6389 // 6390 // Please obtain a copy of the License at 6391 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6392 // 6393 // The Original Code and all software distributed under the License are 6394 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6395 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6396 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6397 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6398 // Please see the License for the specific language governing rights and 6399 // limitations under the License. 6400 // 6401 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6402 6403 type Fsblkcnt_t = X__darwin_fsblkcnt_t /* _fsblkcnt_t.h:31:41 */ 6404 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6405 // 6406 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6407 // 6408 // This file contains Original Code and/or Modifications of Original Code 6409 // as defined in and that are subject to the Apple Public Source License 6410 // Version 2.0 (the 'License'). You may not use this file except in 6411 // compliance with the License. The rights granted to you under the License 6412 // may not be used to create, or enable the creation or redistribution of, 6413 // unlawful or unlicensed copies of an Apple operating system, or to 6414 // circumvent, violate, or enable the circumvention or violation of, any 6415 // terms of an Apple operating system software license agreement. 6416 // 6417 // Please obtain a copy of the License at 6418 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6419 // 6420 // The Original Code and all software distributed under the License are 6421 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6422 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6423 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6424 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6425 // Please see the License for the specific language governing rights and 6426 // limitations under the License. 6427 // 6428 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6429 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 6430 // 6431 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6432 // 6433 // This file contains Original Code and/or Modifications of Original Code 6434 // as defined in and that are subject to the Apple Public Source License 6435 // Version 2.0 (the 'License'). You may not use this file except in 6436 // compliance with the License. The rights granted to you under the License 6437 // may not be used to create, or enable the creation or redistribution of, 6438 // unlawful or unlicensed copies of an Apple operating system, or to 6439 // circumvent, violate, or enable the circumvention or violation of, any 6440 // terms of an Apple operating system software license agreement. 6441 // 6442 // Please obtain a copy of the License at 6443 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6444 // 6445 // The Original Code and all software distributed under the License are 6446 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6447 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6448 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6449 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6450 // Please see the License for the specific language governing rights and 6451 // limitations under the License. 6452 // 6453 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6454 6455 type Fsfilcnt_t = X__darwin_fsfilcnt_t /* _fsfilcnt_t.h:31:41 */ 6456 6457 // Copyright (C) 1989-2021 Free Software Foundation, Inc. 6458 // 6459 // This file is part of GCC. 6460 // 6461 // GCC is free software; you can redistribute it and/or modify 6462 // it under the terms of the GNU General Public License as published by 6463 // the Free Software Foundation; either version 3, or (at your option) 6464 // any later version. 6465 // 6466 // GCC is distributed in the hope that it will be useful, 6467 // but WITHOUT ANY WARRANTY; without even the implied warranty of 6468 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6469 // GNU General Public License for more details. 6470 // 6471 // Under Section 7 of GPL version 3, you are granted additional 6472 // permissions described in the GCC Runtime Library Exception, version 6473 // 3.1, as published by the Free Software Foundation. 6474 // 6475 // You should have received a copy of the GNU General Public License and 6476 // a copy of the GCC Runtime Library Exception along with this program; 6477 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 6478 // <http://www.gnu.org/licenses/>. 6479 6480 // ISO C Standard: 7.15 Variable arguments <stdarg.h> 6481 6482 // Define __gnuc_va_list. 6483 6484 type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */ 6485 6486 // Define the standard macros for the user, 6487 // if this invocation was from the user program. 6488 6489 // Define va_list, if desired, from __gnuc_va_list. 6490 // We deliberately do not define va_list when called from 6491 // stdio.h, because ANSI C says that stdio.h is not supposed to define 6492 // va_list. stdio.h needs to have access to that data type, 6493 // but must not use that name. It should use the name __gnuc_va_list, 6494 // which is safe because it is reserved for the implementation. 6495 6496 // The macro _VA_LIST_ is the same thing used by this file in Ultrix. 6497 // But on BSD NET2 we must not test or define or undef it. 6498 // (Note that the comments in NET 2's ansi.h 6499 // are incorrect for _VA_LIST_--see stdio.h!) 6500 // The macro _VA_LIST_DEFINED is used in Windows NT 3.5 6501 // The macro _VA_LIST is used in SCO Unix 3.2. 6502 // The macro _VA_LIST_T_H is used in the Bull dpx2 6503 // The macro __va_list__ is used by BeOS. 6504 type Va_list = X__gnuc_va_list /* stdarg.h:99:24 */ 6505 6506 // a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and 6507 // "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even 6508 // though the former does not conform to the LFS document), but considering 6509 // both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as 6510 // equivalently requesting no 64-bit operations 6511 6512 // Copyright (c) 2000, 2002-2006, 2008-2010, 2012 Apple Inc. All rights reserved. 6513 // 6514 // @APPLE_LICENSE_HEADER_START@ 6515 // 6516 // This file contains Original Code and/or Modifications of Original Code 6517 // as defined in and that are subject to the Apple Public Source License 6518 // Version 2.0 (the 'License'). You may not use this file except in 6519 // compliance with the License. Please obtain a copy of the License at 6520 // http://www.opensource.apple.com/apsl/ and read it before using this 6521 // file. 6522 // 6523 // The Original Code and all software distributed under the License are 6524 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6525 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6526 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6527 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6528 // Please see the License for the specific language governing rights and 6529 // limitations under the License. 6530 // 6531 // @APPLE_LICENSE_HEADER_END@ 6532 // - 6533 // Copyright (c) 1998-1999 Apple Computer, Inc. All Rights Reserved 6534 // Copyright (c) 1991, 1993, 1994 6535 // The Regents of the University of California. All rights reserved. 6536 // 6537 // Redistribution and use in source and binary forms, with or without 6538 // modification, are permitted provided that the following conditions 6539 // are met: 6540 // 1. Redistributions of source code must retain the above copyright 6541 // notice, this list of conditions and the following disclaimer. 6542 // 2. Redistributions in binary form must reproduce the above copyright 6543 // notice, this list of conditions and the following disclaimer in the 6544 // documentation and/or other materials provided with the distribution. 6545 // 3. All advertising materials mentioning features or use of this software 6546 // must display the following acknowledgement: 6547 // This product includes software developed by the University of 6548 // California, Berkeley and its contributors. 6549 // 4. Neither the name of the University nor the names of its contributors 6550 // may be used to endorse or promote products derived from this software 6551 // without specific prior written permission. 6552 // 6553 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 6554 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 6555 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 6556 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 6557 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 6558 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 6559 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 6560 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 6561 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 6562 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 6563 // SUCH DAMAGE. 6564 // 6565 // @(#)unistd.h 8.12 (Berkeley) 4/27/95 6566 // 6567 // Copyright (c) 1998 Apple Compter, Inc. 6568 // All Rights Reserved 6569 6570 // History: 6571 // 7/14/99 EKN at Apple fixed getdirentriesattr from getdirentryattr 6572 // 3/26/98 CHW at Apple added real interface to searchfs call 6573 // 3/5/98 CHW at Apple added hfs semantic system calls headers 6574 6575 // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved. 6576 // 6577 // @APPLE_LICENSE_HEADER_START@ 6578 // 6579 // This file contains Original Code and/or Modifications of Original Code 6580 // as defined in and that are subject to the Apple Public Source License 6581 // Version 2.0 (the 'License'). You may not use this file except in 6582 // compliance with the License. Please obtain a copy of the License at 6583 // http://www.opensource.apple.com/apsl/ and read it before using this 6584 // file. 6585 // 6586 // The Original Code and all software distributed under the License are 6587 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6588 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6589 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6590 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6591 // Please see the License for the specific language governing rights and 6592 // limitations under the License. 6593 // 6594 // @APPLE_LICENSE_HEADER_END@ 6595 6596 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 6597 // 6598 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6599 // 6600 // This file contains Original Code and/or Modifications of Original Code 6601 // as defined in and that are subject to the Apple Public Source License 6602 // Version 2.0 (the 'License'). You may not use this file except in 6603 // compliance with the License. The rights granted to you under the License 6604 // may not be used to create, or enable the creation or redistribution of, 6605 // unlawful or unlicensed copies of an Apple operating system, or to 6606 // circumvent, violate, or enable the circumvention or violation of, any 6607 // terms of an Apple operating system software license agreement. 6608 // 6609 // Please obtain a copy of the License at 6610 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6611 // 6612 // The Original Code and all software distributed under the License are 6613 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6614 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6615 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6616 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6617 // Please see the License for the specific language governing rights and 6618 // limitations under the License. 6619 // 6620 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6621 6622 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 6623 // 6624 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6625 // 6626 // This file contains Original Code and/or Modifications of Original Code 6627 // as defined in and that are subject to the Apple Public Source License 6628 // Version 2.0 (the 'License'). You may not use this file except in 6629 // compliance with the License. The rights granted to you under the License 6630 // may not be used to create, or enable the creation or redistribution of, 6631 // unlawful or unlicensed copies of an Apple operating system, or to 6632 // circumvent, violate, or enable the circumvention or violation of, any 6633 // terms of an Apple operating system software license agreement. 6634 // 6635 // Please obtain a copy of the License at 6636 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6637 // 6638 // The Original Code and all software distributed under the License are 6639 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6640 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6641 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6642 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6643 // Please see the License for the specific language governing rights and 6644 // limitations under the License. 6645 // 6646 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6647 6648 type X__darwin_nl_item = int32 /* _types.h:40:14 */ 6649 type X__darwin_wctrans_t = int32 /* _types.h:41:14 */ 6650 type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */ 6651 6652 // Copyright (c) 2000-2013 Apple Inc. All rights reserved. 6653 // 6654 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6655 // 6656 // This file contains Original Code and/or Modifications of Original Code 6657 // as defined in and that are subject to the Apple Public Source License 6658 // Version 2.0 (the 'License'). You may not use this file except in 6659 // compliance with the License. The rights granted to you under the License 6660 // may not be used to create, or enable the creation or redistribution of, 6661 // unlawful or unlicensed copies of an Apple operating system, or to 6662 // circumvent, violate, or enable the circumvention or violation of, any 6663 // terms of an Apple operating system software license agreement. 6664 // 6665 // Please obtain a copy of the License at 6666 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6667 // 6668 // The Original Code and all software distributed under the License are 6669 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6670 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6671 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6672 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6673 // Please see the License for the specific language governing rights and 6674 // limitations under the License. 6675 // 6676 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6677 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 6678 // Copyright (c) 1989, 1993 6679 // The Regents of the University of California. All rights reserved. 6680 // 6681 // Redistribution and use in source and binary forms, with or without 6682 // modification, are permitted provided that the following conditions 6683 // are met: 6684 // 1. Redistributions of source code must retain the above copyright 6685 // notice, this list of conditions and the following disclaimer. 6686 // 2. Redistributions in binary form must reproduce the above copyright 6687 // notice, this list of conditions and the following disclaimer in the 6688 // documentation and/or other materials provided with the distribution. 6689 // 3. All advertising materials mentioning features or use of this software 6690 // must display the following acknowledgement: 6691 // This product includes software developed by the University of 6692 // California, Berkeley and its contributors. 6693 // 4. Neither the name of the University nor the names of its contributors 6694 // may be used to endorse or promote products derived from this software 6695 // without specific prior written permission. 6696 // 6697 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 6698 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 6699 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 6700 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 6701 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 6702 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 6703 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 6704 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 6705 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 6706 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 6707 // SUCH DAMAGE. 6708 // 6709 // @(#)unistd.h 8.2 (Berkeley) 1/7/94 6710 6711 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 6712 // 6713 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6714 // 6715 // This file contains Original Code and/or Modifications of Original Code 6716 // as defined in and that are subject to the Apple Public Source License 6717 // Version 2.0 (the 'License'). You may not use this file except in 6718 // compliance with the License. The rights granted to you under the License 6719 // may not be used to create, or enable the creation or redistribution of, 6720 // unlawful or unlicensed copies of an Apple operating system, or to 6721 // circumvent, violate, or enable the circumvention or violation of, any 6722 // terms of an Apple operating system software license agreement. 6723 // 6724 // Please obtain a copy of the License at 6725 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6726 // 6727 // The Original Code and all software distributed under the License are 6728 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6729 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6730 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6731 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6732 // Please see the License for the specific language governing rights and 6733 // limitations under the License. 6734 // 6735 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6736 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 6737 // Copyright (c) 1991, 1993 6738 // The Regents of the University of California. All rights reserved. 6739 // 6740 // This code is derived from software contributed to Berkeley by 6741 // Berkeley Software Design, Inc. 6742 // 6743 // Redistribution and use in source and binary forms, with or without 6744 // modification, are permitted provided that the following conditions 6745 // are met: 6746 // 1. Redistributions of source code must retain the above copyright 6747 // notice, this list of conditions and the following disclaimer. 6748 // 2. Redistributions in binary form must reproduce the above copyright 6749 // notice, this list of conditions and the following disclaimer in the 6750 // documentation and/or other materials provided with the distribution. 6751 // 3. All advertising materials mentioning features or use of this software 6752 // must display the following acknowledgement: 6753 // This product includes software developed by the University of 6754 // California, Berkeley and its contributors. 6755 // 4. Neither the name of the University nor the names of its contributors 6756 // may be used to endorse or promote products derived from this software 6757 // without specific prior written permission. 6758 // 6759 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 6760 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 6761 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 6762 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 6763 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 6764 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 6765 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 6766 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 6767 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 6768 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 6769 // SUCH DAMAGE. 6770 // 6771 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 6772 6773 // Although we have saved user/group IDs, we do not use them in setuid 6774 // as described in POSIX 1003.1, because the feature does not work for 6775 // root. We use the saved IDs in seteuid/setegid, which are not currently 6776 // part of the POSIX 1003.1 specification. 6777 6778 // execution-time symbolic constants 6779 // may disable terminal special characters 6780 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6781 // 6782 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6783 // 6784 // This file contains Original Code and/or Modifications of Original Code 6785 // as defined in and that are subject to the Apple Public Source License 6786 // Version 2.0 (the 'License'). You may not use this file except in 6787 // compliance with the License. The rights granted to you under the License 6788 // may not be used to create, or enable the creation or redistribution of, 6789 // unlawful or unlicensed copies of an Apple operating system, or to 6790 // circumvent, violate, or enable the circumvention or violation of, any 6791 // terms of an Apple operating system software license agreement. 6792 // 6793 // Please obtain a copy of the License at 6794 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6795 // 6796 // The Original Code and all software distributed under the License are 6797 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6798 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6799 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6800 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6801 // Please see the License for the specific language governing rights and 6802 // limitations under the License. 6803 // 6804 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6805 6806 // access function 6807 6808 // Extended access functions. 6809 // Note that we depend on these matching the definitions in sys/kauth.h, 6810 // but with the bits shifted left by 8. 6811 6812 // whence values for lseek(2) 6813 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6814 // 6815 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6816 // 6817 // This file contains Original Code and/or Modifications of Original Code 6818 // as defined in and that are subject to the Apple Public Source License 6819 // Version 2.0 (the 'License'). You may not use this file except in 6820 // compliance with the License. The rights granted to you under the License 6821 // may not be used to create, or enable the creation or redistribution of, 6822 // unlawful or unlicensed copies of an Apple operating system, or to 6823 // circumvent, violate, or enable the circumvention or violation of, any 6824 // terms of an Apple operating system software license agreement. 6825 // 6826 // Please obtain a copy of the License at 6827 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6828 // 6829 // The Original Code and all software distributed under the License are 6830 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6831 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6832 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6833 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6834 // Please see the License for the specific language governing rights and 6835 // limitations under the License. 6836 // 6837 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6838 6839 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 6840 // 6841 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6842 // 6843 // This file contains Original Code and/or Modifications of Original Code 6844 // as defined in and that are subject to the Apple Public Source License 6845 // Version 2.0 (the 'License'). You may not use this file except in 6846 // compliance with the License. The rights granted to you under the License 6847 // may not be used to create, or enable the creation or redistribution of, 6848 // unlawful or unlicensed copies of an Apple operating system, or to 6849 // circumvent, violate, or enable the circumvention or violation of, any 6850 // terms of an Apple operating system software license agreement. 6851 // 6852 // Please obtain a copy of the License at 6853 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6854 // 6855 // The Original Code and all software distributed under the License are 6856 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6857 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6858 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6859 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6860 // Please see the License for the specific language governing rights and 6861 // limitations under the License. 6862 // 6863 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6864 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 6865 // Copyright (c) 1991, 1993 6866 // The Regents of the University of California. All rights reserved. 6867 // 6868 // This code is derived from software contributed to Berkeley by 6869 // Berkeley Software Design, Inc. 6870 // 6871 // Redistribution and use in source and binary forms, with or without 6872 // modification, are permitted provided that the following conditions 6873 // are met: 6874 // 1. Redistributions of source code must retain the above copyright 6875 // notice, this list of conditions and the following disclaimer. 6876 // 2. Redistributions in binary form must reproduce the above copyright 6877 // notice, this list of conditions and the following disclaimer in the 6878 // documentation and/or other materials provided with the distribution. 6879 // 3. All advertising materials mentioning features or use of this software 6880 // must display the following acknowledgement: 6881 // This product includes software developed by the University of 6882 // California, Berkeley and its contributors. 6883 // 4. Neither the name of the University nor the names of its contributors 6884 // may be used to endorse or promote products derived from this software 6885 // without specific prior written permission. 6886 // 6887 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 6888 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 6889 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 6890 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 6891 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 6892 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 6893 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 6894 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 6895 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 6896 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 6897 // SUCH DAMAGE. 6898 // 6899 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 6900 6901 // whence values for lseek(2) 6902 6903 // whence values for lseek(2); renamed by POSIX 1003.1 6904 6905 type Accessx_descriptor = struct { 6906 Fad_name_offset uint32 6907 Fad_flags int32 6908 Fad_pad [2]int32 6909 } /* unistd.h:132:1 */ 6910 6911 // configurable pathname variables 6912 6913 // configurable system strings 6914 6915 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 6916 // 6917 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6918 // 6919 // This file contains Original Code and/or Modifications of Original Code 6920 // as defined in and that are subject to the Apple Public Source License 6921 // Version 2.0 (the 'License'). You may not use this file except in 6922 // compliance with the License. The rights granted to you under the License 6923 // may not be used to create, or enable the creation or redistribution of, 6924 // unlawful or unlicensed copies of an Apple operating system, or to 6925 // circumvent, violate, or enable the circumvention or violation of, any 6926 // terms of an Apple operating system software license agreement. 6927 // 6928 // Please obtain a copy of the License at 6929 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6930 // 6931 // The Original Code and all software distributed under the License are 6932 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6933 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6934 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6935 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6936 // Please see the License for the specific language governing rights and 6937 // limitations under the License. 6938 // 6939 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6940 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6941 // 6942 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6943 // 6944 // This file contains Original Code and/or Modifications of Original Code 6945 // as defined in and that are subject to the Apple Public Source License 6946 // Version 2.0 (the 'License'). You may not use this file except in 6947 // compliance with the License. The rights granted to you under the License 6948 // may not be used to create, or enable the creation or redistribution of, 6949 // unlawful or unlicensed copies of an Apple operating system, or to 6950 // circumvent, violate, or enable the circumvention or violation of, any 6951 // terms of an Apple operating system software license agreement. 6952 // 6953 // Please obtain a copy of the License at 6954 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6955 // 6956 // The Original Code and all software distributed under the License are 6957 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6958 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6959 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6960 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6961 // Please see the License for the specific language governing rights and 6962 // limitations under the License. 6963 // 6964 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6965 // Copyright (c) 2012 Apple Inc. All rights reserved. 6966 // 6967 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6968 // 6969 // This file contains Original Code and/or Modifications of Original Code 6970 // as defined in and that are subject to the Apple Public Source License 6971 // Version 2.0 (the 'License'). You may not use this file except in 6972 // compliance with the License. The rights granted to you under the License 6973 // may not be used to create, or enable the creation or redistribution of, 6974 // unlawful or unlicensed copies of an Apple operating system, or to 6975 // circumvent, violate, or enable the circumvention or violation of, any 6976 // terms of an Apple operating system software license agreement. 6977 // 6978 // Please obtain a copy of the License at 6979 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6980 // 6981 // The Original Code and all software distributed under the License are 6982 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6983 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6984 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6985 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6986 // Please see the License for the specific language governing rights and 6987 // limitations under the License. 6988 // 6989 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6990 6991 type Uint64_t = uint64 /* _uint64_t.h:31:28 */ 6992 // Copyright (c) 2012 Apple Inc. All rights reserved. 6993 // 6994 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6995 // 6996 // This file contains Original Code and/or Modifications of Original Code 6997 // as defined in and that are subject to the Apple Public Source License 6998 // Version 2.0 (the 'License'). You may not use this file except in 6999 // compliance with the License. The rights granted to you under the License 7000 // may not be used to create, or enable the creation or redistribution of, 7001 // unlawful or unlicensed copies of an Apple operating system, or to 7002 // circumvent, violate, or enable the circumvention or violation of, any 7003 // terms of an Apple operating system software license agreement. 7004 // 7005 // Please obtain a copy of the License at 7006 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7007 // 7008 // The Original Code and all software distributed under the License are 7009 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7010 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7011 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7012 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7013 // Please see the License for the specific language governing rights and 7014 // limitations under the License. 7015 // 7016 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7017 7018 type Uint32_t = uint32 /* _uint32_t.h:31:22 */ 7019 7020 // Darwin extensions 7021 7022 // Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved. 7023 // 7024 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7025 // 7026 // This file contains Original Code and/or Modifications of Original Code 7027 // as defined in and that are subject to the Apple Public Source License 7028 // Version 2.0 (the 'License'). You may not use this file except in 7029 // compliance with the License. The rights granted to you under the License 7030 // may not be used to create, or enable the creation or redistribution of, 7031 // unlawful or unlicensed copies of an Apple operating system, or to 7032 // circumvent, violate, or enable the circumvention or violation of, any 7033 // terms of an Apple operating system software license agreement. 7034 // 7035 // Please obtain a copy of the License at 7036 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7037 // 7038 // The Original Code and all software distributed under the License are 7039 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7040 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7041 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7042 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7043 // Please see the License for the specific language governing rights and 7044 // limitations under the License. 7045 // 7046 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7047 // Copyright (c) 1992, 1993 7048 // The Regents of the University of California. All rights reserved. 7049 // 7050 // Redistribution and use in source and binary forms, with or without 7051 // modification, are permitted provided that the following conditions 7052 // are met: 7053 // 1. Redistributions of source code must retain the above copyright 7054 // notice, this list of conditions and the following disclaimer. 7055 // 2. Redistributions in binary form must reproduce the above copyright 7056 // notice, this list of conditions and the following disclaimer in the 7057 // documentation and/or other materials provided with the distribution. 7058 // 3. All advertising materials mentioning features or use of this software 7059 // must display the following acknowledgement: 7060 // This product includes software developed by the University of 7061 // California, Berkeley and its contributors. 7062 // 4. Neither the name of the University nor the names of its contributors 7063 // may be used to endorse or promote products derived from this software 7064 // without specific prior written permission. 7065 // 7066 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 7067 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 7068 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 7069 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 7070 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 7071 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 7072 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 7073 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 7074 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 7075 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 7076 // SUCH DAMAGE. 7077 // 7078 // @(#)select.h 8.2 (Berkeley) 1/4/94 7079 7080 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 7081 // 7082 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7083 // 7084 // This file contains Original Code and/or Modifications of Original Code 7085 // as defined in and that are subject to the Apple Public Source License 7086 // Version 2.0 (the 'License'). You may not use this file except in 7087 // compliance with the License. The rights granted to you under the License 7088 // may not be used to create, or enable the creation or redistribution of, 7089 // unlawful or unlicensed copies of an Apple operating system, or to 7090 // circumvent, violate, or enable the circumvention or violation of, any 7091 // terms of an Apple operating system software license agreement. 7092 // 7093 // Please obtain a copy of the License at 7094 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7095 // 7096 // The Original Code and all software distributed under the License are 7097 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7098 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7099 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7100 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7101 // Please see the License for the specific language governing rights and 7102 // limitations under the License. 7103 // 7104 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7105 7106 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 7107 // 7108 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7109 // 7110 // This file contains Original Code and/or Modifications of Original Code 7111 // as defined in and that are subject to the Apple Public Source License 7112 // Version 2.0 (the 'License'). You may not use this file except in 7113 // compliance with the License. The rights granted to you under the License 7114 // may not be used to create, or enable the creation or redistribution of, 7115 // unlawful or unlicensed copies of an Apple operating system, or to 7116 // circumvent, violate, or enable the circumvention or violation of, any 7117 // terms of an Apple operating system software license agreement. 7118 // 7119 // Please obtain a copy of the License at 7120 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7121 // 7122 // The Original Code and all software distributed under the License are 7123 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7124 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7125 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7126 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7127 // Please see the License for the specific language governing rights and 7128 // limitations under the License. 7129 // 7130 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7131 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 7132 // Copyright (c) 1991, 1993 7133 // The Regents of the University of California. All rights reserved. 7134 // 7135 // This code is derived from software contributed to Berkeley by 7136 // Berkeley Software Design, Inc. 7137 // 7138 // Redistribution and use in source and binary forms, with or without 7139 // modification, are permitted provided that the following conditions 7140 // are met: 7141 // 1. Redistributions of source code must retain the above copyright 7142 // notice, this list of conditions and the following disclaimer. 7143 // 2. Redistributions in binary form must reproduce the above copyright 7144 // notice, this list of conditions and the following disclaimer in the 7145 // documentation and/or other materials provided with the distribution. 7146 // 3. All advertising materials mentioning features or use of this software 7147 // must display the following acknowledgement: 7148 // This product includes software developed by the University of 7149 // California, Berkeley and its contributors. 7150 // 4. Neither the name of the University nor the names of its contributors 7151 // may be used to endorse or promote products derived from this software 7152 // without specific prior written permission. 7153 // 7154 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 7155 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 7156 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 7157 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 7158 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 7159 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 7160 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 7161 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 7162 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 7163 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 7164 // SUCH DAMAGE. 7165 // 7166 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 7167 7168 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 7169 // 7170 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7171 // 7172 // This file contains Original Code and/or Modifications of Original Code 7173 // as defined in and that are subject to the Apple Public Source License 7174 // Version 2.0 (the 'License'). You may not use this file except in 7175 // compliance with the License. The rights granted to you under the License 7176 // may not be used to create, or enable the creation or redistribution of, 7177 // unlawful or unlicensed copies of an Apple operating system, or to 7178 // circumvent, violate, or enable the circumvention or violation of, any 7179 // terms of an Apple operating system software license agreement. 7180 // 7181 // Please obtain a copy of the License at 7182 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7183 // 7184 // The Original Code and all software distributed under the License are 7185 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7186 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7187 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7188 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7189 // Please see the License for the specific language governing rights and 7190 // limitations under the License. 7191 // 7192 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7193 7194 // [XSI] The <sys/select.h> header shall define the fd_set type as a structure. 7195 // The timespec structure shall be defined as described in <time.h> 7196 // The <sys/select.h> header shall define the timeval structure. 7197 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 7198 // 7199 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7200 // 7201 // This file contains Original Code and/or Modifications of Original Code 7202 // as defined in and that are subject to the Apple Public Source License 7203 // Version 2.0 (the 'License'). You may not use this file except in 7204 // compliance with the License. The rights granted to you under the License 7205 // may not be used to create, or enable the creation or redistribution of, 7206 // unlawful or unlicensed copies of an Apple operating system, or to 7207 // circumvent, violate, or enable the circumvention or violation of, any 7208 // terms of an Apple operating system software license agreement. 7209 // 7210 // Please obtain a copy of the License at 7211 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7212 // 7213 // The Original Code and all software distributed under the License are 7214 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7215 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7216 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7217 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7218 // Please see the License for the specific language governing rights and 7219 // limitations under the License. 7220 // 7221 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7222 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 7223 // 7224 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7225 // 7226 // This file contains Original Code and/or Modifications of Original Code 7227 // as defined in and that are subject to the Apple Public Source License 7228 // Version 2.0 (the 'License'). You may not use this file except in 7229 // compliance with the License. The rights granted to you under the License 7230 // may not be used to create, or enable the creation or redistribution of, 7231 // unlawful or unlicensed copies of an Apple operating system, or to 7232 // circumvent, violate, or enable the circumvention or violation of, any 7233 // terms of an Apple operating system software license agreement. 7234 // 7235 // Please obtain a copy of the License at 7236 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7237 // 7238 // The Original Code and all software distributed under the License are 7239 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7240 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7241 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7242 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7243 // Please see the License for the specific language governing rights and 7244 // limitations under the License. 7245 // 7246 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7247 7248 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 7249 // 7250 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7251 // 7252 // This file contains Original Code and/or Modifications of Original Code 7253 // as defined in and that are subject to the Apple Public Source License 7254 // Version 2.0 (the 'License'). You may not use this file except in 7255 // compliance with the License. The rights granted to you under the License 7256 // may not be used to create, or enable the creation or redistribution of, 7257 // unlawful or unlicensed copies of an Apple operating system, or to 7258 // circumvent, violate, or enable the circumvention or violation of, any 7259 // terms of an Apple operating system software license agreement. 7260 // 7261 // Please obtain a copy of the License at 7262 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7263 // 7264 // The Original Code and all software distributed under the License are 7265 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7266 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7267 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7268 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7269 // Please see the License for the specific language governing rights and 7270 // limitations under the License. 7271 // 7272 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7273 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 7274 7275 type Timespec = struct { 7276 Ftv_sec X__darwin_time_t 7277 Ftv_nsec int64 7278 } /* _timespec.h:33:1 */ 7279 7280 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 7281 // 7282 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7283 // 7284 // This file contains Original Code and/or Modifications of Original Code 7285 // as defined in and that are subject to the Apple Public Source License 7286 // Version 2.0 (the 'License'). You may not use this file except in 7287 // compliance with the License. The rights granted to you under the License 7288 // may not be used to create, or enable the creation or redistribution of, 7289 // unlawful or unlicensed copies of an Apple operating system, or to 7290 // circumvent, violate, or enable the circumvention or violation of, any 7291 // terms of an Apple operating system software license agreement. 7292 // 7293 // Please obtain a copy of the License at 7294 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7295 // 7296 // The Original Code and all software distributed under the License are 7297 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7298 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7299 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7300 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7301 // Please see the License for the specific language governing rights and 7302 // limitations under the License. 7303 // 7304 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7305 7306 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 7307 // 7308 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7309 // 7310 // This file contains Original Code and/or Modifications of Original Code 7311 // as defined in and that are subject to the Apple Public Source License 7312 // Version 2.0 (the 'License'). You may not use this file except in 7313 // compliance with the License. The rights granted to you under the License 7314 // may not be used to create, or enable the creation or redistribution of, 7315 // unlawful or unlicensed copies of an Apple operating system, or to 7316 // circumvent, violate, or enable the circumvention or violation of, any 7317 // terms of an Apple operating system software license agreement. 7318 // 7319 // Please obtain a copy of the License at 7320 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7321 // 7322 // The Original Code and all software distributed under the License are 7323 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7324 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7325 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7326 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7327 // Please see the License for the specific language governing rights and 7328 // limitations under the License. 7329 // 7330 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7331 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 7332 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 7333 // 7334 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7335 // 7336 // This file contains Original Code and/or Modifications of Original Code 7337 // as defined in and that are subject to the Apple Public Source License 7338 // Version 2.0 (the 'License'). You may not use this file except in 7339 // compliance with the License. The rights granted to you under the License 7340 // may not be used to create, or enable the creation or redistribution of, 7341 // unlawful or unlicensed copies of an Apple operating system, or to 7342 // circumvent, violate, or enable the circumvention or violation of, any 7343 // terms of an Apple operating system software license agreement. 7344 // 7345 // Please obtain a copy of the License at 7346 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7347 // 7348 // The Original Code and all software distributed under the License are 7349 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7350 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7351 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7352 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7353 // Please see the License for the specific language governing rights and 7354 // limitations under the License. 7355 // 7356 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7357 7358 type Timeval = struct { 7359 Ftv_sec X__darwin_time_t 7360 Ftv_usec X__darwin_suseconds_t 7361 F__ccgo_pad1 [4]byte 7362 } /* _timeval.h:34:1 */ 7363 7364 // The time_t and suseconds_t types shall be defined as described in 7365 // <sys/types.h> 7366 // The sigset_t type shall be defined as described in <signal.h> 7367 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 7368 // 7369 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7370 // 7371 // This file contains Original Code and/or Modifications of Original Code 7372 // as defined in and that are subject to the Apple Public Source License 7373 // Version 2.0 (the 'License'). You may not use this file except in 7374 // compliance with the License. The rights granted to you under the License 7375 // may not be used to create, or enable the creation or redistribution of, 7376 // unlawful or unlicensed copies of an Apple operating system, or to 7377 // circumvent, violate, or enable the circumvention or violation of, any 7378 // terms of an Apple operating system software license agreement. 7379 // 7380 // Please obtain a copy of the License at 7381 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7382 // 7383 // The Original Code and all software distributed under the License are 7384 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7385 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7386 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7387 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7388 // Please see the License for the specific language governing rights and 7389 // limitations under the License. 7390 // 7391 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7392 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 7393 // 7394 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7395 // 7396 // This file contains Original Code and/or Modifications of Original Code 7397 // as defined in and that are subject to the Apple Public Source License 7398 // Version 2.0 (the 'License'). You may not use this file except in 7399 // compliance with the License. The rights granted to you under the License 7400 // may not be used to create, or enable the creation or redistribution of, 7401 // unlawful or unlicensed copies of an Apple operating system, or to 7402 // circumvent, violate, or enable the circumvention or violation of, any 7403 // terms of an Apple operating system software license agreement. 7404 // 7405 // Please obtain a copy of the License at 7406 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7407 // 7408 // The Original Code and all software distributed under the License are 7409 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7410 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7411 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7412 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7413 // Please see the License for the specific language governing rights and 7414 // limitations under the License. 7415 // 7416 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7417 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 7418 // 7419 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7420 // 7421 // This file contains Original Code and/or Modifications of Original Code 7422 // as defined in and that are subject to the Apple Public Source License 7423 // Version 2.0 (the 'License'). You may not use this file except in 7424 // compliance with the License. The rights granted to you under the License 7425 // may not be used to create, or enable the creation or redistribution of, 7426 // unlawful or unlicensed copies of an Apple operating system, or to 7427 // circumvent, violate, or enable the circumvention or violation of, any 7428 // terms of an Apple operating system software license agreement. 7429 // 7430 // Please obtain a copy of the License at 7431 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7432 // 7433 // The Original Code and all software distributed under the License are 7434 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7435 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7436 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7437 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7438 // Please see the License for the specific language governing rights and 7439 // limitations under the License. 7440 // 7441 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7442 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 7443 // 7444 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7445 // 7446 // This file contains Original Code and/or Modifications of Original Code 7447 // as defined in and that are subject to the Apple Public Source License 7448 // Version 2.0 (the 'License'). You may not use this file except in 7449 // compliance with the License. The rights granted to you under the License 7450 // may not be used to create, or enable the creation or redistribution of, 7451 // unlawful or unlicensed copies of an Apple operating system, or to 7452 // circumvent, violate, or enable the circumvention or violation of, any 7453 // terms of an Apple operating system software license agreement. 7454 // 7455 // Please obtain a copy of the License at 7456 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7457 // 7458 // The Original Code and all software distributed under the License are 7459 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7460 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7461 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7462 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7463 // Please see the License for the specific language governing rights and 7464 // limitations under the License. 7465 // 7466 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7467 7468 type Sigset_t = X__darwin_sigset_t /* _sigset_t.h:31:41 */ 7469 7470 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 7471 // 7472 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7473 // 7474 // This file contains Original Code and/or Modifications of Original Code 7475 // as defined in and that are subject to the Apple Public Source License 7476 // Version 2.0 (the 'License'). You may not use this file except in 7477 // compliance with the License. The rights granted to you under the License 7478 // may not be used to create, or enable the creation or redistribution of, 7479 // unlawful or unlicensed copies of an Apple operating system, or to 7480 // circumvent, violate, or enable the circumvention or violation of, any 7481 // terms of an Apple operating system software license agreement. 7482 // 7483 // Please obtain a copy of the License at 7484 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7485 // 7486 // The Original Code and all software distributed under the License are 7487 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7488 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7489 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7490 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7491 // Please see the License for the specific language governing rights and 7492 // limitations under the License. 7493 // 7494 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7495 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 7496 // 7497 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7498 // 7499 // This file contains Original Code and/or Modifications of Original Code 7500 // as defined in and that are subject to the Apple Public Source License 7501 // Version 2.0 (the 'License'). You may not use this file except in 7502 // compliance with the License. The rights granted to you under the License 7503 // may not be used to create, or enable the creation or redistribution of, 7504 // unlawful or unlicensed copies of an Apple operating system, or to 7505 // circumvent, violate, or enable the circumvention or violation of, any 7506 // terms of an Apple operating system software license agreement. 7507 // 7508 // Please obtain a copy of the License at 7509 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7510 // 7511 // The Original Code and all software distributed under the License are 7512 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7513 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7514 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7515 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7516 // Please see the License for the specific language governing rights and 7517 // limitations under the License. 7518 // 7519 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7520 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 7521 // 7522 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7523 // 7524 // This file contains Original Code and/or Modifications of Original Code 7525 // as defined in and that are subject to the Apple Public Source License 7526 // Version 2.0 (the 'License'). You may not use this file except in 7527 // compliance with the License. The rights granted to you under the License 7528 // may not be used to create, or enable the creation or redistribution of, 7529 // unlawful or unlicensed copies of an Apple operating system, or to 7530 // circumvent, violate, or enable the circumvention or violation of, any 7531 // terms of an Apple operating system software license agreement. 7532 // 7533 // Please obtain a copy of the License at 7534 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7535 // 7536 // The Original Code and all software distributed under the License are 7537 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7538 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7539 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7540 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7541 // Please see the License for the specific language governing rights and 7542 // limitations under the License. 7543 // 7544 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7545 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 7546 // 7547 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7548 // 7549 // This file contains Original Code and/or Modifications of Original Code 7550 // as defined in and that are subject to the Apple Public Source License 7551 // Version 2.0 (the 'License'). You may not use this file except in 7552 // compliance with the License. The rights granted to you under the License 7553 // may not be used to create, or enable the creation or redistribution of, 7554 // unlawful or unlicensed copies of an Apple operating system, or to 7555 // circumvent, violate, or enable the circumvention or violation of, any 7556 // terms of an Apple operating system software license agreement. 7557 // 7558 // Please obtain a copy of the License at 7559 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7560 // 7561 // The Original Code and all software distributed under the License are 7562 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7563 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7564 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7565 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7566 // Please see the License for the specific language governing rights and 7567 // limitations under the License. 7568 // 7569 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7570 7571 type Uuid_t = X__darwin_uuid_t /* _uuid_t.h:31:25 */ 7572 7573 // MVS linker does not support external names larger than 8 bytes 7574 7575 // 7576 // The 'zlib' compression library provides in-memory compression and 7577 // decompression functions, including integrity checks of the uncompressed data. 7578 // This version of the library supports only one compression method (deflation) 7579 // but other algorithms will be added later and will have the same stream 7580 // interface. 7581 // 7582 // Compression can be done in a single step if the buffers are large enough, 7583 // or can be done by repeated calls of the compression function. In the latter 7584 // case, the application must provide more input and/or consume the output 7585 // (providing more output space) before each call. 7586 // 7587 // The compressed data format used by default by the in-memory functions is 7588 // the zlib format, which is a zlib wrapper documented in RFC 1950, wrapped 7589 // around a deflate stream, which is itself documented in RFC 1951. 7590 // 7591 // The library also supports reading and writing files in gzip (.gz) format 7592 // with an interface similar to that of stdio using the functions that start 7593 // with "gz". The gzip format is different from the zlib format. gzip is a 7594 // gzip wrapper, documented in RFC 1952, wrapped around a deflate stream. 7595 // 7596 // This library can optionally read and write gzip and raw deflate streams in 7597 // memory as well. 7598 // 7599 // The zlib format was designed to be compact and fast for use in memory 7600 // and on communications channels. The gzip format was designed for single- 7601 // file compression on file systems, has a larger header than zlib to maintain 7602 // directory information, and uses a different, slower check method than zlib. 7603 // 7604 // The library does not install any signal handler. The decoder checks 7605 // the consistency of the compressed data, so the library should never crash 7606 // even in the case of corrupted input. 7607 7608 type Alloc_func = uintptr /* zlib.h:81:16 */ 7609 type Free_func = uintptr /* zlib.h:82:16 */ 7610 7611 type Internal_state = struct { 7612 Fstrm Z_streamp 7613 Fstatus int32 7614 F__ccgo_pad1 [4]byte 7615 Fpending_buf uintptr 7616 Fpending_buf_size Ulg 7617 Fpending_out uintptr 7618 Fpending Ulg 7619 Fwrap int32 7620 F__ccgo_pad2 [4]byte 7621 Fgzhead Gz_headerp 7622 Fgzindex Ulg 7623 Fmethod Byte 7624 F__ccgo_pad3 [3]byte 7625 Flast_flush int32 7626 Fw_size UInt 7627 Fw_bits UInt 7628 Fw_mask UInt 7629 F__ccgo_pad4 [4]byte 7630 Fwindow uintptr 7631 Fwindow_size Ulg 7632 Fprev uintptr 7633 Fhead uintptr 7634 Fins_h UInt 7635 Fhash_size UInt 7636 Fhash_bits UInt 7637 Fhash_mask UInt 7638 Fhash_shift UInt 7639 F__ccgo_pad5 [4]byte 7640 Fblock_start int64 7641 Fmatch_length UInt 7642 Fprev_match IPos 7643 Fmatch_available int32 7644 Fstrstart UInt 7645 Fmatch_start UInt 7646 Flookahead UInt 7647 Fprev_length UInt 7648 Fmax_chain_length UInt 7649 Fmax_lazy_match UInt 7650 Flevel int32 7651 Fstrategy int32 7652 Fgood_match UInt 7653 Fnice_match int32 7654 Fdyn_ltree [573]struct { 7655 Ffc struct{ Ffreq Ush } 7656 Fdl struct{ Fdad Ush } 7657 } 7658 Fdyn_dtree [61]struct { 7659 Ffc struct{ Ffreq Ush } 7660 Fdl struct{ Fdad Ush } 7661 } 7662 Fbl_tree [39]struct { 7663 Ffc struct{ Ffreq Ush } 7664 Fdl struct{ Fdad Ush } 7665 } 7666 Fl_desc struct { 7667 Fdyn_tree uintptr 7668 Fmax_code int32 7669 F__ccgo_pad1 [4]byte 7670 Fstat_desc uintptr 7671 } 7672 Fd_desc struct { 7673 Fdyn_tree uintptr 7674 Fmax_code int32 7675 F__ccgo_pad1 [4]byte 7676 Fstat_desc uintptr 7677 } 7678 Fbl_desc struct { 7679 Fdyn_tree uintptr 7680 Fmax_code int32 7681 F__ccgo_pad1 [4]byte 7682 Fstat_desc uintptr 7683 } 7684 Fbl_count [16]Ush 7685 Fheap [573]int32 7686 Fheap_len int32 7687 Fheap_max int32 7688 Fdepth [573]Uch 7689 F__ccgo_pad6 [7]byte 7690 Fl_buf uintptr 7691 Flit_bufsize UInt 7692 Flast_lit UInt 7693 Fd_buf uintptr 7694 Fopt_len Ulg 7695 Fstatic_len Ulg 7696 Fmatches UInt 7697 Finsert UInt 7698 Fbi_buf Ush 7699 F__ccgo_pad7 [2]byte 7700 Fbi_valid int32 7701 Fhigh_water Ulg 7702 } /* zlib.h:84:1 */ 7703 7704 type Z_stream_s = struct { 7705 Fnext_in uintptr 7706 Favail_in UInt 7707 F__ccgo_pad1 [4]byte 7708 Ftotal_in ULong 7709 Fnext_out uintptr 7710 Favail_out UInt 7711 F__ccgo_pad2 [4]byte 7712 Ftotal_out ULong 7713 Fmsg uintptr 7714 Fstate uintptr 7715 Fzalloc Alloc_func 7716 Fzfree Free_func 7717 Fopaque Voidpf 7718 Fdata_type int32 7719 F__ccgo_pad3 [4]byte 7720 Fadler ULong 7721 Freserved ULong 7722 } /* zlib.h:86:9 */ 7723 7724 type Z_stream = Z_stream_s /* zlib.h:106:3 */ 7725 7726 type Z_streamp = uintptr /* zlib.h:108:22 */ 7727 7728 // 7729 // gzip header information passed to and from zlib routines. See RFC 1952 7730 // for more details on the meanings of these fields. 7731 type Gz_header_s = struct { 7732 Ftext int32 7733 F__ccgo_pad1 [4]byte 7734 Ftime ULong 7735 Fxflags int32 7736 Fos int32 7737 Fextra uintptr 7738 Fextra_len UInt 7739 Fextra_max UInt 7740 Fname uintptr 7741 Fname_max UInt 7742 F__ccgo_pad2 [4]byte 7743 Fcomment uintptr 7744 Fcomm_max UInt 7745 Fhcrc int32 7746 Fdone int32 7747 F__ccgo_pad3 [4]byte 7748 } /* zlib.h:114:9 */ 7749 7750 // 7751 // gzip header information passed to and from zlib routines. See RFC 1952 7752 // for more details on the meanings of these fields. 7753 type Gz_header = Gz_header_s /* zlib.h:129:3 */ 7754 7755 type Gz_headerp = uintptr /* zlib.h:131:23 */ 7756 // 7757 // inflateGetHeader() requests that gzip header information be stored in the 7758 // provided gz_header structure. inflateGetHeader() may be called after 7759 // inflateInit2() or inflateReset(), and before the first call of inflate(). 7760 // As inflate() processes the gzip stream, head->done is zero until the header 7761 // is completed, at which time head->done is set to one. If a zlib stream is 7762 // being decoded, then head->done is set to -1 to indicate that there will be 7763 // no gzip header information forthcoming. Note that Z_BLOCK or Z_TREES can be 7764 // used to force inflate() to return immediately after header processing is 7765 // complete and before any actual data is decompressed. 7766 // 7767 // The text, time, xflags, and os fields are filled in with the gzip header 7768 // contents. hcrc is set to true if there is a header CRC. (The header CRC 7769 // was valid if done is set to one.) If extra is not Z_NULL, then extra_max 7770 // contains the maximum number of bytes to write to extra. Once done is true, 7771 // extra_len contains the actual extra field length, and extra contains the 7772 // extra field, or that field truncated if extra_max is less than extra_len. 7773 // If name is not Z_NULL, then up to name_max characters are written there, 7774 // terminated with a zero unless the length is greater than name_max. If 7775 // comment is not Z_NULL, then up to comm_max characters are written there, 7776 // terminated with a zero unless the length is greater than comm_max. When any 7777 // of extra, name, or comment are not Z_NULL and the respective field is not 7778 // present in the header, then that field is set to Z_NULL to signal its 7779 // absence. This allows the use of deflateSetHeader() with the returned 7780 // structure to duplicate the header. However if those fields are set to 7781 // allocated memory, then the application will need to save those pointers 7782 // elsewhere so that they can be eventually freed. 7783 // 7784 // If inflateGetHeader is not used, then the header information is simply 7785 // discarded. The header is always checked for validity, including the header 7786 // CRC if present. inflateReset() will reset the process to discard the header 7787 // information. The application would need to call inflateGetHeader() again to 7788 // retrieve the header from the next gzip stream. 7789 // 7790 // inflateGetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source 7791 // stream state was inconsistent. 7792 7793 // 7794 // ZEXTERN int ZEXPORT inflateBackInit OF((z_streamp strm, int windowBits, 7795 // unsigned char FAR *window)); 7796 // 7797 // Initialize the internal stream state for decompression using inflateBack() 7798 // calls. The fields zalloc, zfree and opaque in strm must be initialized 7799 // before the call. If zalloc and zfree are Z_NULL, then the default library- 7800 // derived memory allocation routines are used. windowBits is the base two 7801 // logarithm of the window size, in the range 8..15. window is a caller 7802 // supplied buffer of that size. Except for special applications where it is 7803 // assured that deflate was used with small window sizes, windowBits must be 15 7804 // and a 32K byte window must be supplied to be able to decompress general 7805 // deflate streams. 7806 // 7807 // See inflateBack() for the usage of these routines. 7808 // 7809 // inflateBackInit will return Z_OK on success, Z_STREAM_ERROR if any of 7810 // the parameters are invalid, Z_MEM_ERROR if the internal state could not be 7811 // allocated, or Z_VERSION_ERROR if the version of the library does not match 7812 // the version of the header file. 7813 7814 type In_func = uintptr /* zlib.h:1092:18 */ 7815 type Out_func = uintptr /* zlib.h:1094:13 */ 7816 // 7817 // Same as uncompress, except that sourceLen is a pointer, where the 7818 // length of the source is *sourceLen. On return, *sourceLen is the number of 7819 // source bytes consumed. 7820 7821 // gzip file access functions 7822 7823 // 7824 // This library supports reading and writing files in gzip (.gz) format with 7825 // an interface similar to that of stdio, using the functions that start with 7826 // "gz". The gzip format is different from the zlib format. gzip is a gzip 7827 // wrapper, documented in RFC 1952, wrapped around a deflate stream. 7828 7829 type GzFile_s = struct { 7830 Fhave uint32 7831 F__ccgo_pad1 [4]byte 7832 Fnext uintptr 7833 Fpos Off_t 7834 } /* zlib.h:1300:9 */ 7835 7836 // 7837 // Same as uncompress, except that sourceLen is a pointer, where the 7838 // length of the source is *sourceLen. On return, *sourceLen is the number of 7839 // source bytes consumed. 7840 7841 // gzip file access functions 7842 7843 // 7844 // This library supports reading and writing files in gzip (.gz) format with 7845 // an interface similar to that of stdio, using the functions that start with 7846 // "gz". The gzip format is different from the zlib format. gzip is a gzip 7847 // wrapper, documented in RFC 1952, wrapped around a deflate stream. 7848 7849 type GzFile = uintptr /* zlib.h:1300:25 */ 7850 7851 // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved. 7852 // 7853 // @APPLE_LICENSE_HEADER_START@ 7854 // 7855 // This file contains Original Code and/or Modifications of Original Code 7856 // as defined in and that are subject to the Apple Public Source License 7857 // Version 2.0 (the 'License'). You may not use this file except in 7858 // compliance with the License. Please obtain a copy of the License at 7859 // http://www.opensource.apple.com/apsl/ and read it before using this 7860 // file. 7861 // 7862 // The Original Code and all software distributed under the License are 7863 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7864 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7865 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7866 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7867 // Please see the License for the specific language governing rights and 7868 // limitations under the License. 7869 // 7870 // @APPLE_LICENSE_HEADER_END@ 7871 // - 7872 // Copyright (c) 1990, 1993 7873 // The Regents of the University of California. All rights reserved. 7874 // 7875 // Redistribution and use in source and binary forms, with or without 7876 // modification, are permitted provided that the following conditions 7877 // are met: 7878 // 1. Redistributions of source code must retain the above copyright 7879 // notice, this list of conditions and the following disclaimer. 7880 // 2. Redistributions in binary form must reproduce the above copyright 7881 // notice, this list of conditions and the following disclaimer in the 7882 // documentation and/or other materials provided with the distribution. 7883 // 3. All advertising materials mentioning features or use of this software 7884 // must display the following acknowledgement: 7885 // This product includes software developed by the University of 7886 // California, Berkeley and its contributors. 7887 // 4. Neither the name of the University nor the names of its contributors 7888 // may be used to endorse or promote products derived from this software 7889 // without specific prior written permission. 7890 // 7891 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 7892 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 7893 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 7894 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 7895 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 7896 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 7897 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 7898 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 7899 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 7900 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 7901 // SUCH DAMAGE. 7902 // 7903 // @(#)string.h 8.1 (Berkeley) 6/2/93 7904 7905 // Security checking functions. 7906 // Copyright (c) 2017 Apple Inc. All rights reserved. 7907 // 7908 // @APPLE_LICENSE_HEADER_START@ 7909 // 7910 // This file contains Original Code and/or Modifications of Original Code 7911 // as defined in and that are subject to the Apple Public Source License 7912 // Version 2.0 (the 'License'). You may not use this file except in 7913 // compliance with the License. Please obtain a copy of the License at 7914 // http://www.opensource.apple.com/apsl/ and read it before using this 7915 // file. 7916 // 7917 // The Original Code and all software distributed under the License are 7918 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7919 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7920 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7921 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7922 // Please see the License for the specific language governing rights and 7923 // limitations under the License. 7924 // 7925 // @APPLE_LICENSE_HEADER_END@ 7926 7927 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 7928 // 7929 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7930 // 7931 // This file contains Original Code and/or Modifications of Original Code 7932 // as defined in and that are subject to the Apple Public Source License 7933 // Version 2.0 (the 'License'). You may not use this file except in 7934 // compliance with the License. The rights granted to you under the License 7935 // may not be used to create, or enable the creation or redistribution of, 7936 // unlawful or unlicensed copies of an Apple operating system, or to 7937 // circumvent, violate, or enable the circumvention or violation of, any 7938 // terms of an Apple operating system software license agreement. 7939 // 7940 // Please obtain a copy of the License at 7941 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7942 // 7943 // The Original Code and all software distributed under the License are 7944 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7945 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7946 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7947 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7948 // Please see the License for the specific language governing rights and 7949 // limitations under the License. 7950 // 7951 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7952 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 7953 // Copyright (c) 1991, 1993 7954 // The Regents of the University of California. All rights reserved. 7955 // 7956 // This code is derived from software contributed to Berkeley by 7957 // Berkeley Software Design, Inc. 7958 // 7959 // Redistribution and use in source and binary forms, with or without 7960 // modification, are permitted provided that the following conditions 7961 // are met: 7962 // 1. Redistributions of source code must retain the above copyright 7963 // notice, this list of conditions and the following disclaimer. 7964 // 2. Redistributions in binary form must reproduce the above copyright 7965 // notice, this list of conditions and the following disclaimer in the 7966 // documentation and/or other materials provided with the distribution. 7967 // 3. All advertising materials mentioning features or use of this software 7968 // must display the following acknowledgement: 7969 // This product includes software developed by the University of 7970 // California, Berkeley and its contributors. 7971 // 4. Neither the name of the University nor the names of its contributors 7972 // may be used to endorse or promote products derived from this software 7973 // without specific prior written permission. 7974 // 7975 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 7976 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 7977 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 7978 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 7979 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 7980 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 7981 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 7982 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 7983 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 7984 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 7985 // SUCH DAMAGE. 7986 // 7987 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 7988 7989 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 7990 // 7991 // @APPLE_LICENSE_HEADER_START@ 7992 // 7993 // This file contains Original Code and/or Modifications of Original Code 7994 // as defined in and that are subject to the Apple Public Source License 7995 // Version 2.0 (the 'License'). You may not use this file except in 7996 // compliance with the License. Please obtain a copy of the License at 7997 // http://www.opensource.apple.com/apsl/ and read it before using this 7998 // file. 7999 // 8000 // The Original Code and all software distributed under the License are 8001 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8002 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8003 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8004 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8005 // Please see the License for the specific language governing rights and 8006 // limitations under the License. 8007 // 8008 // @APPLE_LICENSE_HEADER_END@ 8009 8010 // Copyright (c) 2007, 2008 Apple Inc. All rights reserved. 8011 // 8012 // @APPLE_LICENSE_HEADER_START@ 8013 // 8014 // This file contains Original Code and/or Modifications of Original Code 8015 // as defined in and that are subject to the Apple Public Source License 8016 // Version 2.0 (the 'License'). You may not use this file except in 8017 // compliance with the License. Please obtain a copy of the License at 8018 // http://www.opensource.apple.com/apsl/ and read it before using this 8019 // file. 8020 // 8021 // The Original Code and all software distributed under the License are 8022 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8023 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8024 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8025 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8026 // Please see the License for the specific language governing rights and 8027 // limitations under the License. 8028 // 8029 // @APPLE_LICENSE_HEADER_END@ 8030 8031 // bcopy and bzero 8032 8033 // Removed in Issue 7 8034 8035 // void bcopy(const void *src, void *dst, size_t len) 8036 8037 // void bzero(void *s, size_t n) 8038 8039 // Security checking functions. 8040 // Copyright (c) 2007,2017 Apple Inc. All rights reserved. 8041 // 8042 // @APPLE_LICENSE_HEADER_START@ 8043 // 8044 // This file contains Original Code and/or Modifications of Original Code 8045 // as defined in and that are subject to the Apple Public Source License 8046 // Version 2.0 (the 'License'). You may not use this file except in 8047 // compliance with the License. Please obtain a copy of the License at 8048 // http://www.opensource.apple.com/apsl/ and read it before using this 8049 // file. 8050 // 8051 // The Original Code and all software distributed under the License are 8052 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8053 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8054 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8055 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8056 // Please see the License for the specific language governing rights and 8057 // limitations under the License. 8058 // 8059 // @APPLE_LICENSE_HEADER_END@ 8060 8061 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 8062 // 8063 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8064 // 8065 // This file contains Original Code and/or Modifications of Original Code 8066 // as defined in and that are subject to the Apple Public Source License 8067 // Version 2.0 (the 'License'). You may not use this file except in 8068 // compliance with the License. The rights granted to you under the License 8069 // may not be used to create, or enable the creation or redistribution of, 8070 // unlawful or unlicensed copies of an Apple operating system, or to 8071 // circumvent, violate, or enable the circumvention or violation of, any 8072 // terms of an Apple operating system software license agreement. 8073 // 8074 // Please obtain a copy of the License at 8075 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8076 // 8077 // The Original Code and all software distributed under the License are 8078 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8079 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8080 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8081 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8082 // Please see the License for the specific language governing rights and 8083 // limitations under the License. 8084 // 8085 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8086 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 8087 // Copyright (c) 1991, 1993 8088 // The Regents of the University of California. All rights reserved. 8089 // 8090 // This code is derived from software contributed to Berkeley by 8091 // Berkeley Software Design, Inc. 8092 // 8093 // Redistribution and use in source and binary forms, with or without 8094 // modification, are permitted provided that the following conditions 8095 // are met: 8096 // 1. Redistributions of source code must retain the above copyright 8097 // notice, this list of conditions and the following disclaimer. 8098 // 2. Redistributions in binary form must reproduce the above copyright 8099 // notice, this list of conditions and the following disclaimer in the 8100 // documentation and/or other materials provided with the distribution. 8101 // 3. All advertising materials mentioning features or use of this software 8102 // must display the following acknowledgement: 8103 // This product includes software developed by the University of 8104 // California, Berkeley and its contributors. 8105 // 4. Neither the name of the University nor the names of its contributors 8106 // may be used to endorse or promote products derived from this software 8107 // without specific prior written permission. 8108 // 8109 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 8110 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 8111 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 8112 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 8113 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 8114 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 8115 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 8116 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 8117 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 8118 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 8119 // SUCH DAMAGE. 8120 // 8121 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 8122 8123 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 8124 // 8125 // @APPLE_LICENSE_HEADER_START@ 8126 // 8127 // This file contains Original Code and/or Modifications of Original Code 8128 // as defined in and that are subject to the Apple Public Source License 8129 // Version 2.0 (the 'License'). You may not use this file except in 8130 // compliance with the License. Please obtain a copy of the License at 8131 // http://www.opensource.apple.com/apsl/ and read it before using this 8132 // file. 8133 // 8134 // The Original Code and all software distributed under the License are 8135 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8136 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8137 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8138 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8139 // Please see the License for the specific language governing rights and 8140 // limitations under the License. 8141 // 8142 // @APPLE_LICENSE_HEADER_END@ 8143 8144 // Copyright (c) 2007, 2008 Apple Inc. All rights reserved. 8145 // 8146 // @APPLE_LICENSE_HEADER_START@ 8147 // 8148 // This file contains Original Code and/or Modifications of Original Code 8149 // as defined in and that are subject to the Apple Public Source License 8150 // Version 2.0 (the 'License'). You may not use this file except in 8151 // compliance with the License. Please obtain a copy of the License at 8152 // http://www.opensource.apple.com/apsl/ and read it before using this 8153 // file. 8154 // 8155 // The Original Code and all software distributed under the License are 8156 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8157 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8158 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8159 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8160 // Please see the License for the specific language governing rights and 8161 // limitations under the License. 8162 // 8163 // @APPLE_LICENSE_HEADER_END@ 8164 8165 // <rdar://problem/12622659> 8166 8167 // memccpy, memcpy, mempcpy, memmove, memset, strcpy, strlcpy, stpcpy, 8168 // strncpy, stpncpy, strcat, strlcat, and strncat 8169 8170 // void *memcpy(void *dst, const void *src, size_t n) 8171 8172 // void *memmove(void *dst, const void *src, size_t len) 8173 8174 // void *memset(void *b, int c, size_t len) 8175 8176 // char *strcpy(char *dst, const char *src) 8177 8178 // char *stpcpy(char *dst, const char *src) 8179 8180 // char *stpncpy(char *dst, const char *src, size_t n) 8181 8182 // char *strncpy(char *dst, const char *src, size_t n) 8183 8184 // char *strcat(char *s1, const char *s2) 8185 8186 // char *strncat(char *s1, const char *s2, size_t n) 8187 8188 // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved. 8189 // 8190 // @APPLE_LICENSE_HEADER_START@ 8191 // 8192 // This file contains Original Code and/or Modifications of Original Code 8193 // as defined in and that are subject to the Apple Public Source License 8194 // Version 2.0 (the 'License'). You may not use this file except in 8195 // compliance with the License. Please obtain a copy of the License at 8196 // http://www.opensource.apple.com/apsl/ and read it before using this 8197 // file. 8198 // 8199 // The Original Code and all software distributed under the License are 8200 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8201 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8202 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8203 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8204 // Please see the License for the specific language governing rights and 8205 // limitations under the License. 8206 // 8207 // @APPLE_LICENSE_HEADER_END@ 8208 // - 8209 // Copyright (c) 1990, 1993 8210 // The Regents of the University of California. All rights reserved. 8211 // 8212 // Redistribution and use in source and binary forms, with or without 8213 // modification, are permitted provided that the following conditions 8214 // are met: 8215 // 1. Redistributions of source code must retain the above copyright 8216 // notice, this list of conditions and the following disclaimer. 8217 // 2. Redistributions in binary form must reproduce the above copyright 8218 // notice, this list of conditions and the following disclaimer in the 8219 // documentation and/or other materials provided with the distribution. 8220 // 3. All advertising materials mentioning features or use of this software 8221 // must display the following acknowledgement: 8222 // This product includes software developed by the University of 8223 // California, Berkeley and its contributors. 8224 // 4. Neither the name of the University nor the names of its contributors 8225 // may be used to endorse or promote products derived from this software 8226 // without specific prior written permission. 8227 // 8228 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 8229 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 8230 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 8231 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 8232 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 8233 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 8234 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 8235 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 8236 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 8237 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 8238 // SUCH DAMAGE. 8239 // 8240 // @(#)stdlib.h 8.5 (Berkeley) 5/19/95 8241 8242 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 8243 // 8244 // @APPLE_LICENSE_HEADER_START@ 8245 // 8246 // This file contains Original Code and/or Modifications of Original Code 8247 // as defined in and that are subject to the Apple Public Source License 8248 // Version 2.0 (the 'License'). You may not use this file except in 8249 // compliance with the License. Please obtain a copy of the License at 8250 // http://www.opensource.apple.com/apsl/ and read it before using this 8251 // file. 8252 // 8253 // The Original Code and all software distributed under the License are 8254 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8255 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8256 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8257 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8258 // Please see the License for the specific language governing rights and 8259 // limitations under the License. 8260 // 8261 // @APPLE_LICENSE_HEADER_END@ 8262 8263 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 8264 // 8265 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8266 // 8267 // This file contains Original Code and/or Modifications of Original Code 8268 // as defined in and that are subject to the Apple Public Source License 8269 // Version 2.0 (the 'License'). You may not use this file except in 8270 // compliance with the License. The rights granted to you under the License 8271 // may not be used to create, or enable the creation or redistribution of, 8272 // unlawful or unlicensed copies of an Apple operating system, or to 8273 // circumvent, violate, or enable the circumvention or violation of, any 8274 // terms of an Apple operating system software license agreement. 8275 // 8276 // Please obtain a copy of the License at 8277 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8278 // 8279 // The Original Code and all software distributed under the License are 8280 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8281 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8282 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8283 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8284 // Please see the License for the specific language governing rights and 8285 // limitations under the License. 8286 // 8287 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8288 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 8289 // Copyright (c) 1991, 1993 8290 // The Regents of the University of California. All rights reserved. 8291 // 8292 // This code is derived from software contributed to Berkeley by 8293 // Berkeley Software Design, Inc. 8294 // 8295 // Redistribution and use in source and binary forms, with or without 8296 // modification, are permitted provided that the following conditions 8297 // are met: 8298 // 1. Redistributions of source code must retain the above copyright 8299 // notice, this list of conditions and the following disclaimer. 8300 // 2. Redistributions in binary form must reproduce the above copyright 8301 // notice, this list of conditions and the following disclaimer in the 8302 // documentation and/or other materials provided with the distribution. 8303 // 3. All advertising materials mentioning features or use of this software 8304 // must display the following acknowledgement: 8305 // This product includes software developed by the University of 8306 // California, Berkeley and its contributors. 8307 // 4. Neither the name of the University nor the names of its contributors 8308 // may be used to endorse or promote products derived from this software 8309 // without specific prior written permission. 8310 // 8311 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 8312 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 8313 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 8314 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 8315 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 8316 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 8317 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 8318 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 8319 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 8320 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 8321 // SUCH DAMAGE. 8322 // 8323 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 8324 8325 // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved. 8326 // 8327 // @APPLE_LICENSE_HEADER_START@ 8328 // 8329 // This file contains Original Code and/or Modifications of Original Code 8330 // as defined in and that are subject to the Apple Public Source License 8331 // Version 2.0 (the 'License'). You may not use this file except in 8332 // compliance with the License. Please obtain a copy of the License at 8333 // http://www.opensource.apple.com/apsl/ and read it before using this 8334 // file. 8335 // 8336 // The Original Code and all software distributed under the License are 8337 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8338 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8339 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8340 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8341 // Please see the License for the specific language governing rights and 8342 // limitations under the License. 8343 // 8344 // @APPLE_LICENSE_HEADER_END@ 8345 8346 // Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 8347 // 8348 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8349 // 8350 // This file contains Original Code and/or Modifications of Original Code 8351 // as defined in and that are subject to the Apple Public Source License 8352 // Version 2.0 (the 'License'). You may not use this file except in 8353 // compliance with the License. The rights granted to you under the License 8354 // may not be used to create, or enable the creation or redistribution of, 8355 // unlawful or unlicensed copies of an Apple operating system, or to 8356 // circumvent, violate, or enable the circumvention or violation of, any 8357 // terms of an Apple operating system software license agreement. 8358 // 8359 // Please obtain a copy of the License at 8360 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8361 // 8362 // The Original Code and all software distributed under the License are 8363 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8364 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8365 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8366 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8367 // Please see the License for the specific language governing rights and 8368 // limitations under the License. 8369 // 8370 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8371 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 8372 // Copyright (c) 1982, 1986, 1989, 1993, 1994 8373 // The Regents of the University of California. All rights reserved. 8374 // 8375 // Redistribution and use in source and binary forms, with or without 8376 // modification, are permitted provided that the following conditions 8377 // are met: 8378 // 1. Redistributions of source code must retain the above copyright 8379 // notice, this list of conditions and the following disclaimer. 8380 // 2. Redistributions in binary form must reproduce the above copyright 8381 // notice, this list of conditions and the following disclaimer in the 8382 // documentation and/or other materials provided with the distribution. 8383 // 3. All advertising materials mentioning features or use of this software 8384 // must display the following acknowledgement: 8385 // This product includes software developed by the University of 8386 // California, Berkeley and its contributors. 8387 // 4. Neither the name of the University nor the names of its contributors 8388 // may be used to endorse or promote products derived from this software 8389 // without specific prior written permission. 8390 // 8391 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 8392 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 8393 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 8394 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 8395 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 8396 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 8397 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 8398 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 8399 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 8400 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 8401 // SUCH DAMAGE. 8402 // 8403 // @(#)wait.h 8.2 (Berkeley) 7/10/94 8404 8405 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 8406 // 8407 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8408 // 8409 // This file contains Original Code and/or Modifications of Original Code 8410 // as defined in and that are subject to the Apple Public Source License 8411 // Version 2.0 (the 'License'). You may not use this file except in 8412 // compliance with the License. The rights granted to you under the License 8413 // may not be used to create, or enable the creation or redistribution of, 8414 // unlawful or unlicensed copies of an Apple operating system, or to 8415 // circumvent, violate, or enable the circumvention or violation of, any 8416 // terms of an Apple operating system software license agreement. 8417 // 8418 // Please obtain a copy of the License at 8419 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8420 // 8421 // The Original Code and all software distributed under the License are 8422 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8423 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8424 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8425 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8426 // Please see the License for the specific language governing rights and 8427 // limitations under the License. 8428 // 8429 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8430 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 8431 // Copyright (c) 1991, 1993 8432 // The Regents of the University of California. All rights reserved. 8433 // 8434 // This code is derived from software contributed to Berkeley by 8435 // Berkeley Software Design, Inc. 8436 // 8437 // Redistribution and use in source and binary forms, with or without 8438 // modification, are permitted provided that the following conditions 8439 // are met: 8440 // 1. Redistributions of source code must retain the above copyright 8441 // notice, this list of conditions and the following disclaimer. 8442 // 2. Redistributions in binary form must reproduce the above copyright 8443 // notice, this list of conditions and the following disclaimer in the 8444 // documentation and/or other materials provided with the distribution. 8445 // 3. All advertising materials mentioning features or use of this software 8446 // must display the following acknowledgement: 8447 // This product includes software developed by the University of 8448 // California, Berkeley and its contributors. 8449 // 4. Neither the name of the University nor the names of its contributors 8450 // may be used to endorse or promote products derived from this software 8451 // without specific prior written permission. 8452 // 8453 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 8454 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 8455 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 8456 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 8457 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 8458 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 8459 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 8460 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 8461 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 8462 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 8463 // SUCH DAMAGE. 8464 // 8465 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 8466 8467 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 8468 // 8469 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8470 // 8471 // This file contains Original Code and/or Modifications of Original Code 8472 // as defined in and that are subject to the Apple Public Source License 8473 // Version 2.0 (the 'License'). You may not use this file except in 8474 // compliance with the License. The rights granted to you under the License 8475 // may not be used to create, or enable the creation or redistribution of, 8476 // unlawful or unlicensed copies of an Apple operating system, or to 8477 // circumvent, violate, or enable the circumvention or violation of, any 8478 // terms of an Apple operating system software license agreement. 8479 // 8480 // Please obtain a copy of the License at 8481 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8482 // 8483 // The Original Code and all software distributed under the License are 8484 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8485 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8486 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8487 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8488 // Please see the License for the specific language governing rights and 8489 // limitations under the License. 8490 // 8491 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8492 8493 // This file holds definitions relevent to the wait4 system call 8494 // and the alternate interfaces that use it (wait, wait3, waitpid). 8495 8496 // [XSI] The type idtype_t shall be defined as an enumeration type whose 8497 // possible values shall include at least P_ALL, P_PID, and P_PGID. 8498 type Idtype_t = uint32 /* wait.h:83:3 */ 8499 8500 // [XSI] The id_t and pid_t types shall be defined as described 8501 // in <sys/types.h> 8502 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 8503 // 8504 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8505 // 8506 // This file contains Original Code and/or Modifications of Original Code 8507 // as defined in and that are subject to the Apple Public Source License 8508 // Version 2.0 (the 'License'). You may not use this file except in 8509 // compliance with the License. The rights granted to you under the License 8510 // may not be used to create, or enable the creation or redistribution of, 8511 // unlawful or unlicensed copies of an Apple operating system, or to 8512 // circumvent, violate, or enable the circumvention or violation of, any 8513 // terms of an Apple operating system software license agreement. 8514 // 8515 // Please obtain a copy of the License at 8516 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8517 // 8518 // The Original Code and all software distributed under the License are 8519 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8520 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8521 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8522 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8523 // Please see the License for the specific language governing rights and 8524 // limitations under the License. 8525 // 8526 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8527 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 8528 // 8529 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8530 // 8531 // This file contains Original Code and/or Modifications of Original Code 8532 // as defined in and that are subject to the Apple Public Source License 8533 // Version 2.0 (the 'License'). You may not use this file except in 8534 // compliance with the License. The rights granted to you under the License 8535 // may not be used to create, or enable the creation or redistribution of, 8536 // unlawful or unlicensed copies of an Apple operating system, or to 8537 // circumvent, violate, or enable the circumvention or violation of, any 8538 // terms of an Apple operating system software license agreement. 8539 // 8540 // Please obtain a copy of the License at 8541 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8542 // 8543 // The Original Code and all software distributed under the License are 8544 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8545 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8546 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8547 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8548 // Please see the License for the specific language governing rights and 8549 // limitations under the License. 8550 // 8551 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8552 8553 // [XSI] The siginfo_t type shall be defined as described in <signal.h> 8554 // [XSI] The rusage structure shall be defined as described in <sys/resource.h> 8555 // [XSI] Inclusion of the <sys/wait.h> header may also make visible all 8556 // symbols from <signal.h> and <sys/resource.h> 8557 // 8558 // NOTE: This requirement is currently being satisfied by the direct 8559 // inclusion of <sys/signal.h> and <sys/resource.h>, below. 8560 // 8561 // Software should not depend on the exposure of anything other 8562 // than the types siginfo_t and struct rusage as a result of 8563 // this inclusion. If you depend on any types or manifest 8564 // values othe than siginfo_t and struct rusage from either of 8565 // those files, you should explicitly include them yourself, as 8566 // well, or in future releases your stware may not compile 8567 // without modification. 8568 // Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved. 8569 // 8570 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8571 // 8572 // This file contains Original Code and/or Modifications of Original Code 8573 // as defined in and that are subject to the Apple Public Source License 8574 // Version 2.0 (the 'License'). You may not use this file except in 8575 // compliance with the License. The rights granted to you under the License 8576 // may not be used to create, or enable the creation or redistribution of, 8577 // unlawful or unlicensed copies of an Apple operating system, or to 8578 // circumvent, violate, or enable the circumvention or violation of, any 8579 // terms of an Apple operating system software license agreement. 8580 // 8581 // Please obtain a copy of the License at 8582 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8583 // 8584 // The Original Code and all software distributed under the License are 8585 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8586 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8587 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8588 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8589 // Please see the License for the specific language governing rights and 8590 // limitations under the License. 8591 // 8592 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8593 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 8594 // Copyright (c) 1982, 1986, 1989, 1991, 1993 8595 // The Regents of the University of California. All rights reserved. 8596 // (c) UNIX System Laboratories, Inc. 8597 // All or some portions of this file are derived from material licensed 8598 // to the University of California by American Telephone and Telegraph 8599 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 8600 // the permission of UNIX System Laboratories, Inc. 8601 // 8602 // Redistribution and use in source and binary forms, with or without 8603 // modification, are permitted provided that the following conditions 8604 // are met: 8605 // 1. Redistributions of source code must retain the above copyright 8606 // notice, this list of conditions and the following disclaimer. 8607 // 2. Redistributions in binary form must reproduce the above copyright 8608 // notice, this list of conditions and the following disclaimer in the 8609 // documentation and/or other materials provided with the distribution. 8610 // 3. All advertising materials mentioning features or use of this software 8611 // must display the following acknowledgement: 8612 // This product includes software developed by the University of 8613 // California, Berkeley and its contributors. 8614 // 4. Neither the name of the University nor the names of its contributors 8615 // may be used to endorse or promote products derived from this software 8616 // without specific prior written permission. 8617 // 8618 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 8619 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 8620 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 8621 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 8622 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 8623 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 8624 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 8625 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 8626 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 8627 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 8628 // SUCH DAMAGE. 8629 // 8630 // @(#)signal.h 8.2 (Berkeley) 1/21/94 8631 8632 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 8633 // 8634 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8635 // 8636 // This file contains Original Code and/or Modifications of Original Code 8637 // as defined in and that are subject to the Apple Public Source License 8638 // Version 2.0 (the 'License'). You may not use this file except in 8639 // compliance with the License. The rights granted to you under the License 8640 // may not be used to create, or enable the creation or redistribution of, 8641 // unlawful or unlicensed copies of an Apple operating system, or to 8642 // circumvent, violate, or enable the circumvention or violation of, any 8643 // terms of an Apple operating system software license agreement. 8644 // 8645 // Please obtain a copy of the License at 8646 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8647 // 8648 // The Original Code and all software distributed under the License are 8649 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8650 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8651 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8652 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8653 // Please see the License for the specific language governing rights and 8654 // limitations under the License. 8655 // 8656 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8657 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 8658 // Copyright (c) 1991, 1993 8659 // The Regents of the University of California. All rights reserved. 8660 // 8661 // This code is derived from software contributed to Berkeley by 8662 // Berkeley Software Design, Inc. 8663 // 8664 // Redistribution and use in source and binary forms, with or without 8665 // modification, are permitted provided that the following conditions 8666 // are met: 8667 // 1. Redistributions of source code must retain the above copyright 8668 // notice, this list of conditions and the following disclaimer. 8669 // 2. Redistributions in binary form must reproduce the above copyright 8670 // notice, this list of conditions and the following disclaimer in the 8671 // documentation and/or other materials provided with the distribution. 8672 // 3. All advertising materials mentioning features or use of this software 8673 // must display the following acknowledgement: 8674 // This product includes software developed by the University of 8675 // California, Berkeley and its contributors. 8676 // 4. Neither the name of the University nor the names of its contributors 8677 // may be used to endorse or promote products derived from this software 8678 // without specific prior written permission. 8679 // 8680 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 8681 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 8682 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 8683 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 8684 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 8685 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 8686 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 8687 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 8688 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 8689 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 8690 // SUCH DAMAGE. 8691 // 8692 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 8693 8694 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 8695 // 8696 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8697 // 8698 // This file contains Original Code and/or Modifications of Original Code 8699 // as defined in and that are subject to the Apple Public Source License 8700 // Version 2.0 (the 'License'). You may not use this file except in 8701 // compliance with the License. The rights granted to you under the License 8702 // may not be used to create, or enable the creation or redistribution of, 8703 // unlawful or unlicensed copies of an Apple operating system, or to 8704 // circumvent, violate, or enable the circumvention or violation of, any 8705 // terms of an Apple operating system software license agreement. 8706 // 8707 // Please obtain a copy of the License at 8708 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8709 // 8710 // The Original Code and all software distributed under the License are 8711 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8712 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8713 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8714 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8715 // Please see the License for the specific language governing rights and 8716 // limitations under the License. 8717 // 8718 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8719 8720 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 8721 // 8722 // @APPLE_LICENSE_HEADER_START@ 8723 // 8724 // This file contains Original Code and/or Modifications of Original Code 8725 // as defined in and that are subject to the Apple Public Source License 8726 // Version 2.0 (the 'License'). You may not use this file except in 8727 // compliance with the License. Please obtain a copy of the License at 8728 // http://www.opensource.apple.com/apsl/ and read it before using this 8729 // file. 8730 // 8731 // The Original Code and all software distributed under the License are 8732 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8733 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8734 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8735 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8736 // Please see the License for the specific language governing rights and 8737 // limitations under the License. 8738 // 8739 // @APPLE_LICENSE_HEADER_END@ 8740 8741 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 8742 // 8743 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8744 // 8745 // This file contains Original Code and/or Modifications of Original Code 8746 // as defined in and that are subject to the Apple Public Source License 8747 // Version 2.0 (the 'License'). You may not use this file except in 8748 // compliance with the License. The rights granted to you under the License 8749 // may not be used to create, or enable the creation or redistribution of, 8750 // unlawful or unlicensed copies of an Apple operating system, or to 8751 // circumvent, violate, or enable the circumvention or violation of, any 8752 // terms of an Apple operating system software license agreement. 8753 // 8754 // Please obtain a copy of the License at 8755 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8756 // 8757 // The Original Code and all software distributed under the License are 8758 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8759 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8760 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8761 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8762 // Please see the License for the specific language governing rights and 8763 // limitations under the License. 8764 // 8765 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8766 8767 // Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved. 8768 // 8769 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8770 // 8771 // This file contains Original Code and/or Modifications of Original Code 8772 // as defined in and that are subject to the Apple Public Source License 8773 // Version 2.0 (the 'License'). You may not use this file except in 8774 // compliance with the License. The rights granted to you under the License 8775 // may not be used to create, or enable the creation or redistribution of, 8776 // unlawful or unlicensed copies of an Apple operating system, or to 8777 // circumvent, violate, or enable the circumvention or violation of, any 8778 // terms of an Apple operating system software license agreement. 8779 // 8780 // Please obtain a copy of the License at 8781 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8782 // 8783 // The Original Code and all software distributed under the License are 8784 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8785 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8786 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8787 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8788 // Please see the License for the specific language governing rights and 8789 // limitations under the License. 8790 // 8791 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8792 // Copyright (c) 1992 NeXT Computer, Inc. 8793 // 8794 8795 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 8796 // 8797 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8798 // 8799 // This file contains Original Code and/or Modifications of Original Code 8800 // as defined in and that are subject to the Apple Public Source License 8801 // Version 2.0 (the 'License'). You may not use this file except in 8802 // compliance with the License. The rights granted to you under the License 8803 // may not be used to create, or enable the creation or redistribution of, 8804 // unlawful or unlicensed copies of an Apple operating system, or to 8805 // circumvent, violate, or enable the circumvention or violation of, any 8806 // terms of an Apple operating system software license agreement. 8807 // 8808 // Please obtain a copy of the License at 8809 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8810 // 8811 // The Original Code and all software distributed under the License are 8812 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8813 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8814 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8815 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8816 // Please see the License for the specific language governing rights and 8817 // limitations under the License. 8818 // 8819 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8820 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 8821 // Copyright (c) 1991, 1993 8822 // The Regents of the University of California. All rights reserved. 8823 // 8824 // This code is derived from software contributed to Berkeley by 8825 // Berkeley Software Design, Inc. 8826 // 8827 // Redistribution and use in source and binary forms, with or without 8828 // modification, are permitted provided that the following conditions 8829 // are met: 8830 // 1. Redistributions of source code must retain the above copyright 8831 // notice, this list of conditions and the following disclaimer. 8832 // 2. Redistributions in binary form must reproduce the above copyright 8833 // notice, this list of conditions and the following disclaimer in the 8834 // documentation and/or other materials provided with the distribution. 8835 // 3. All advertising materials mentioning features or use of this software 8836 // must display the following acknowledgement: 8837 // This product includes software developed by the University of 8838 // California, Berkeley and its contributors. 8839 // 4. Neither the name of the University nor the names of its contributors 8840 // may be used to endorse or promote products derived from this software 8841 // without specific prior written permission. 8842 // 8843 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 8844 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 8845 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 8846 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 8847 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 8848 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 8849 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 8850 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 8851 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 8852 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 8853 // SUCH DAMAGE. 8854 // 8855 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 8856 8857 type Sig_atomic_t = int32 /* signal.h:39:13 */ 8858 8859 // Language spec sez we must list exactly one parameter, even though we 8860 // actually supply three. Ugh! 8861 // SIG_HOLD is chosen to avoid KERN_SIG_* values in <sys/signalvar.h> 8862 8863 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 8864 // 8865 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8866 // 8867 // This file contains Original Code and/or Modifications of Original Code 8868 // as defined in and that are subject to the Apple Public Source License 8869 // Version 2.0 (the 'License'). You may not use this file except in 8870 // compliance with the License. The rights granted to you under the License 8871 // may not be used to create, or enable the creation or redistribution of, 8872 // unlawful or unlicensed copies of an Apple operating system, or to 8873 // circumvent, violate, or enable the circumvention or violation of, any 8874 // terms of an Apple operating system software license agreement. 8875 // 8876 // Please obtain a copy of the License at 8877 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8878 // 8879 // The Original Code and all software distributed under the License are 8880 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8881 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8882 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8883 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8884 // Please see the License for the specific language governing rights and 8885 // limitations under the License. 8886 // 8887 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8888 8889 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 8890 // 8891 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8892 // 8893 // This file contains Original Code and/or Modifications of Original Code 8894 // as defined in and that are subject to the Apple Public Source License 8895 // Version 2.0 (the 'License'). You may not use this file except in 8896 // compliance with the License. The rights granted to you under the License 8897 // may not be used to create, or enable the creation or redistribution of, 8898 // unlawful or unlicensed copies of an Apple operating system, or to 8899 // circumvent, violate, or enable the circumvention or violation of, any 8900 // terms of an Apple operating system software license agreement. 8901 // 8902 // Please obtain a copy of the License at 8903 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8904 // 8905 // The Original Code and all software distributed under the License are 8906 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8907 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8908 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8909 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8910 // Please see the License for the specific language governing rights and 8911 // limitations under the License. 8912 // 8913 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8914 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 8915 // 8916 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8917 // 8918 // This file contains Original Code and/or Modifications of Original Code 8919 // as defined in and that are subject to the Apple Public Source License 8920 // Version 2.0 (the 'License'). You may not use this file except in 8921 // compliance with the License. The rights granted to you under the License 8922 // may not be used to create, or enable the creation or redistribution of, 8923 // unlawful or unlicensed copies of an Apple operating system, or to 8924 // circumvent, violate, or enable the circumvention or violation of, any 8925 // terms of an Apple operating system software license agreement. 8926 // 8927 // Please obtain a copy of the License at 8928 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8929 // 8930 // The Original Code and all software distributed under the License are 8931 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8932 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8933 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8934 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8935 // Please see the License for the specific language governing rights and 8936 // limitations under the License. 8937 // 8938 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8939 8940 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 8941 // 8942 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 8943 // 8944 // This file contains Original Code and/or Modifications of Original Code 8945 // as defined in and that are subject to the Apple Public Source License 8946 // Version 2.0 (the 'License'). You may not use this file except in 8947 // compliance with the License. The rights granted to you under the License 8948 // may not be used to create, or enable the creation or redistribution of, 8949 // unlawful or unlicensed copies of an Apple operating system, or to 8950 // circumvent, violate, or enable the circumvention or violation of, any 8951 // terms of an Apple operating system software license agreement. 8952 // 8953 // Please obtain a copy of the License at 8954 // http://www.opensource.apple.com/apsl/ and read it before using this file. 8955 // 8956 // The Original Code and all software distributed under the License are 8957 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 8958 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 8959 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 8960 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 8961 // Please see the License for the specific language governing rights and 8962 // limitations under the License. 8963 // 8964 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 8965 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 8966 // Copyright (c) 1991, 1993 8967 // The Regents of the University of California. All rights reserved. 8968 // 8969 // This code is derived from software contributed to Berkeley by 8970 // Berkeley Software Design, Inc. 8971 // 8972 // Redistribution and use in source and binary forms, with or without 8973 // modification, are permitted provided that the following conditions 8974 // are met: 8975 // 1. Redistributions of source code must retain the above copyright 8976 // notice, this list of conditions and the following disclaimer. 8977 // 2. Redistributions in binary form must reproduce the above copyright 8978 // notice, this list of conditions and the following disclaimer in the 8979 // documentation and/or other materials provided with the distribution. 8980 // 3. All advertising materials mentioning features or use of this software 8981 // must display the following acknowledgement: 8982 // This product includes software developed by the University of 8983 // California, Berkeley and its contributors. 8984 // 4. Neither the name of the University nor the names of its contributors 8985 // may be used to endorse or promote products derived from this software 8986 // without specific prior written permission. 8987 // 8988 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 8989 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 8990 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 8991 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 8992 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 8993 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 8994 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 8995 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 8996 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 8997 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 8998 // SUCH DAMAGE. 8999 // 9000 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 9001 9002 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 9003 // 9004 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9005 // 9006 // This file contains Original Code and/or Modifications of Original Code 9007 // as defined in and that are subject to the Apple Public Source License 9008 // Version 2.0 (the 'License'). You may not use this file except in 9009 // compliance with the License. The rights granted to you under the License 9010 // may not be used to create, or enable the creation or redistribution of, 9011 // unlawful or unlicensed copies of an Apple operating system, or to 9012 // circumvent, violate, or enable the circumvention or violation of, any 9013 // terms of an Apple operating system software license agreement. 9014 // 9015 // Please obtain a copy of the License at 9016 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9017 // 9018 // The Original Code and all software distributed under the License are 9019 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9020 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9021 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9022 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9023 // Please see the License for the specific language governing rights and 9024 // limitations under the License. 9025 // 9026 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9027 9028 // Copyright (c) 2017 Apple Inc. All rights reserved. 9029 // 9030 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9031 // 9032 // This file contains Original Code and/or Modifications of Original Code 9033 // as defined in and that are subject to the Apple Public Source License 9034 // Version 2.0 (the 'License'). You may not use this file except in 9035 // compliance with the License. The rights granted to you under the License 9036 // may not be used to create, or enable the creation or redistribution of, 9037 // unlawful or unlicensed copies of an Apple operating system, or to 9038 // circumvent, violate, or enable the circumvention or violation of, any 9039 // terms of an Apple operating system software license agreement. 9040 // 9041 // Please obtain a copy of the License at 9042 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9043 // 9044 // The Original Code and all software distributed under the License are 9045 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9046 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9047 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9048 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9049 // Please see the License for the specific language governing rights and 9050 // limitations under the License. 9051 // 9052 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9053 9054 // Copyright (c) 2004-2006 Apple Computer, Inc. All rights reserved. 9055 // 9056 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9057 // 9058 // This file contains Original Code and/or Modifications of Original Code 9059 // as defined in and that are subject to the Apple Public Source License 9060 // Version 2.0 (the 'License'). You may not use this file except in 9061 // compliance with the License. The rights granted to you under the License 9062 // may not be used to create, or enable the creation or redistribution of, 9063 // unlawful or unlicensed copies of an Apple operating system, or to 9064 // circumvent, violate, or enable the circumvention or violation of, any 9065 // terms of an Apple operating system software license agreement. 9066 // 9067 // Please obtain a copy of the License at 9068 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9069 // 9070 // The Original Code and all software distributed under the License are 9071 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9072 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9073 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9074 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9075 // Please see the License for the specific language governing rights and 9076 // limitations under the License. 9077 // 9078 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9079 // @OSF_COPYRIGHT@ 9080 9081 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 9082 // 9083 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9084 // 9085 // This file contains Original Code and/or Modifications of Original Code 9086 // as defined in and that are subject to the Apple Public Source License 9087 // Version 2.0 (the 'License'). You may not use this file except in 9088 // compliance with the License. The rights granted to you under the License 9089 // may not be used to create, or enable the creation or redistribution of, 9090 // unlawful or unlicensed copies of an Apple operating system, or to 9091 // circumvent, violate, or enable the circumvention or violation of, any 9092 // terms of an Apple operating system software license agreement. 9093 // 9094 // Please obtain a copy of the License at 9095 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9096 // 9097 // The Original Code and all software distributed under the License are 9098 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9099 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9100 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9101 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9102 // Please see the License for the specific language governing rights and 9103 // limitations under the License. 9104 // 9105 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9106 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 9107 // Copyright (c) 1991, 1993 9108 // The Regents of the University of California. All rights reserved. 9109 // 9110 // This code is derived from software contributed to Berkeley by 9111 // Berkeley Software Design, Inc. 9112 // 9113 // Redistribution and use in source and binary forms, with or without 9114 // modification, are permitted provided that the following conditions 9115 // are met: 9116 // 1. Redistributions of source code must retain the above copyright 9117 // notice, this list of conditions and the following disclaimer. 9118 // 2. Redistributions in binary form must reproduce the above copyright 9119 // notice, this list of conditions and the following disclaimer in the 9120 // documentation and/or other materials provided with the distribution. 9121 // 3. All advertising materials mentioning features or use of this software 9122 // must display the following acknowledgement: 9123 // This product includes software developed by the University of 9124 // California, Berkeley and its contributors. 9125 // 4. Neither the name of the University nor the names of its contributors 9126 // may be used to endorse or promote products derived from this software 9127 // without specific prior written permission. 9128 // 9129 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 9130 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 9131 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 9132 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 9133 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 9134 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 9135 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 9136 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 9137 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 9138 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 9139 // SUCH DAMAGE. 9140 // 9141 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 9142 9143 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 9144 // 9145 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9146 // 9147 // This file contains Original Code and/or Modifications of Original Code 9148 // as defined in and that are subject to the Apple Public Source License 9149 // Version 2.0 (the 'License'). You may not use this file except in 9150 // compliance with the License. The rights granted to you under the License 9151 // may not be used to create, or enable the creation or redistribution of, 9152 // unlawful or unlicensed copies of an Apple operating system, or to 9153 // circumvent, violate, or enable the circumvention or violation of, any 9154 // terms of an Apple operating system software license agreement. 9155 // 9156 // Please obtain a copy of the License at 9157 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9158 // 9159 // The Original Code and all software distributed under the License are 9160 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9161 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9162 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9163 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9164 // Please see the License for the specific language governing rights and 9165 // limitations under the License. 9166 // 9167 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9168 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 9169 9170 // i386 is the structure that is exported to user threads for 9171 // use in status/mutate calls. This structure should never change. 9172 // 9173 9174 type X__darwin_i386_thread_state = struct { 9175 F__eax uint32 9176 F__ebx uint32 9177 F__ecx uint32 9178 F__edx uint32 9179 F__edi uint32 9180 F__esi uint32 9181 F__ebp uint32 9182 F__esp uint32 9183 F__ss uint32 9184 F__eflags uint32 9185 F__eip uint32 9186 F__cs uint32 9187 F__ds uint32 9188 F__es uint32 9189 F__fs uint32 9190 F__gs uint32 9191 } /* _structs.h:46:1 */ 9192 9193 // This structure should be double-word aligned for performance 9194 9195 type X__darwin_fp_control = struct { 9196 F__ccgo_pad1 [0]uint16 9197 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 9198 } /* _structs.h:92:1 */ 9199 9200 type X__darwin_fp_control_t = X__darwin_fp_control /* _structs.h:117:28 */ 9201 9202 // Status word. 9203 9204 type X__darwin_fp_status = struct { 9205 F__ccgo_pad1 [0]uint16 9206 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 9207 } /* _structs.h:150:1 */ 9208 9209 type X__darwin_fp_status_t = X__darwin_fp_status /* _structs.h:167:27 */ 9210 9211 // defn of 80bit x87 FPU or MMX register 9212 9213 type X__darwin_mmst_reg = struct { 9214 F__mmst_reg [10]int8 9215 F__mmst_rsrv [6]int8 9216 } /* _structs.h:194:1 */ 9217 9218 // defn of 128 bit XMM regs 9219 9220 type X__darwin_xmm_reg = struct{ F__xmm_reg [16]int8 } /* _structs.h:213:1 */ 9221 9222 // defn of 256 bit YMM regs 9223 9224 type X__darwin_ymm_reg = struct{ F__ymm_reg [32]int8 } /* _structs.h:229:1 */ 9225 9226 // defn of 512 bit ZMM regs 9227 9228 type X__darwin_zmm_reg = struct{ F__zmm_reg [64]int8 } /* _structs.h:245:1 */ 9229 9230 type X__darwin_opmask_reg = struct{ F__opmask_reg [8]int8 } /* _structs.h:259:1 */ 9231 9232 // Floating point state. 9233 9234 type X__darwin_i386_float_state = struct { 9235 F__fpu_reserved [2]int32 9236 F__fpu_fcw struct { 9237 F__ccgo_pad1 [0]uint16 9238 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 9239 } 9240 F__fpu_fsw struct { 9241 F__ccgo_pad1 [0]uint16 9242 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 9243 } 9244 F__fpu_ftw X__uint8_t 9245 F__fpu_rsrv1 X__uint8_t 9246 F__fpu_fop X__uint16_t 9247 F__fpu_ip X__uint32_t 9248 F__fpu_cs X__uint16_t 9249 F__fpu_rsrv2 X__uint16_t 9250 F__fpu_dp X__uint32_t 9251 F__fpu_ds X__uint16_t 9252 F__fpu_rsrv3 X__uint16_t 9253 F__fpu_mxcsr X__uint32_t 9254 F__fpu_mxcsrmask X__uint32_t 9255 F__fpu_stmm0 struct { 9256 F__mmst_reg [10]int8 9257 F__mmst_rsrv [6]int8 9258 } 9259 F__fpu_stmm1 struct { 9260 F__mmst_reg [10]int8 9261 F__mmst_rsrv [6]int8 9262 } 9263 F__fpu_stmm2 struct { 9264 F__mmst_reg [10]int8 9265 F__mmst_rsrv [6]int8 9266 } 9267 F__fpu_stmm3 struct { 9268 F__mmst_reg [10]int8 9269 F__mmst_rsrv [6]int8 9270 } 9271 F__fpu_stmm4 struct { 9272 F__mmst_reg [10]int8 9273 F__mmst_rsrv [6]int8 9274 } 9275 F__fpu_stmm5 struct { 9276 F__mmst_reg [10]int8 9277 F__mmst_rsrv [6]int8 9278 } 9279 F__fpu_stmm6 struct { 9280 F__mmst_reg [10]int8 9281 F__mmst_rsrv [6]int8 9282 } 9283 F__fpu_stmm7 struct { 9284 F__mmst_reg [10]int8 9285 F__mmst_rsrv [6]int8 9286 } 9287 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 9288 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 9289 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 9290 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 9291 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 9292 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 9293 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 9294 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 9295 F__fpu_rsrv4 [224]int8 9296 F__fpu_reserved1 int32 9297 } /* _structs.h:281:1 */ 9298 9299 type X__darwin_i386_avx_state = struct { 9300 F__fpu_reserved [2]int32 9301 F__fpu_fcw struct { 9302 F__ccgo_pad1 [0]uint16 9303 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 9304 } 9305 F__fpu_fsw struct { 9306 F__ccgo_pad1 [0]uint16 9307 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 9308 } 9309 F__fpu_ftw X__uint8_t 9310 F__fpu_rsrv1 X__uint8_t 9311 F__fpu_fop X__uint16_t 9312 F__fpu_ip X__uint32_t 9313 F__fpu_cs X__uint16_t 9314 F__fpu_rsrv2 X__uint16_t 9315 F__fpu_dp X__uint32_t 9316 F__fpu_ds X__uint16_t 9317 F__fpu_rsrv3 X__uint16_t 9318 F__fpu_mxcsr X__uint32_t 9319 F__fpu_mxcsrmask X__uint32_t 9320 F__fpu_stmm0 struct { 9321 F__mmst_reg [10]int8 9322 F__mmst_rsrv [6]int8 9323 } 9324 F__fpu_stmm1 struct { 9325 F__mmst_reg [10]int8 9326 F__mmst_rsrv [6]int8 9327 } 9328 F__fpu_stmm2 struct { 9329 F__mmst_reg [10]int8 9330 F__mmst_rsrv [6]int8 9331 } 9332 F__fpu_stmm3 struct { 9333 F__mmst_reg [10]int8 9334 F__mmst_rsrv [6]int8 9335 } 9336 F__fpu_stmm4 struct { 9337 F__mmst_reg [10]int8 9338 F__mmst_rsrv [6]int8 9339 } 9340 F__fpu_stmm5 struct { 9341 F__mmst_reg [10]int8 9342 F__mmst_rsrv [6]int8 9343 } 9344 F__fpu_stmm6 struct { 9345 F__mmst_reg [10]int8 9346 F__mmst_rsrv [6]int8 9347 } 9348 F__fpu_stmm7 struct { 9349 F__mmst_reg [10]int8 9350 F__mmst_rsrv [6]int8 9351 } 9352 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 9353 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 9354 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 9355 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 9356 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 9357 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 9358 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 9359 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 9360 F__fpu_rsrv4 [224]int8 9361 F__fpu_reserved1 int32 9362 F__avx_reserved1 [64]int8 9363 F__fpu_ymmh0 struct{ F__xmm_reg [16]int8 } 9364 F__fpu_ymmh1 struct{ F__xmm_reg [16]int8 } 9365 F__fpu_ymmh2 struct{ F__xmm_reg [16]int8 } 9366 F__fpu_ymmh3 struct{ F__xmm_reg [16]int8 } 9367 F__fpu_ymmh4 struct{ F__xmm_reg [16]int8 } 9368 F__fpu_ymmh5 struct{ F__xmm_reg [16]int8 } 9369 F__fpu_ymmh6 struct{ F__xmm_reg [16]int8 } 9370 F__fpu_ymmh7 struct{ F__xmm_reg [16]int8 } 9371 } /* _structs.h:318:1 */ 9372 9373 type X__darwin_i386_avx512_state = struct { 9374 F__fpu_reserved [2]int32 9375 F__fpu_fcw struct { 9376 F__ccgo_pad1 [0]uint16 9377 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 9378 } 9379 F__fpu_fsw struct { 9380 F__ccgo_pad1 [0]uint16 9381 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 9382 } 9383 F__fpu_ftw X__uint8_t 9384 F__fpu_rsrv1 X__uint8_t 9385 F__fpu_fop X__uint16_t 9386 F__fpu_ip X__uint32_t 9387 F__fpu_cs X__uint16_t 9388 F__fpu_rsrv2 X__uint16_t 9389 F__fpu_dp X__uint32_t 9390 F__fpu_ds X__uint16_t 9391 F__fpu_rsrv3 X__uint16_t 9392 F__fpu_mxcsr X__uint32_t 9393 F__fpu_mxcsrmask X__uint32_t 9394 F__fpu_stmm0 struct { 9395 F__mmst_reg [10]int8 9396 F__mmst_rsrv [6]int8 9397 } 9398 F__fpu_stmm1 struct { 9399 F__mmst_reg [10]int8 9400 F__mmst_rsrv [6]int8 9401 } 9402 F__fpu_stmm2 struct { 9403 F__mmst_reg [10]int8 9404 F__mmst_rsrv [6]int8 9405 } 9406 F__fpu_stmm3 struct { 9407 F__mmst_reg [10]int8 9408 F__mmst_rsrv [6]int8 9409 } 9410 F__fpu_stmm4 struct { 9411 F__mmst_reg [10]int8 9412 F__mmst_rsrv [6]int8 9413 } 9414 F__fpu_stmm5 struct { 9415 F__mmst_reg [10]int8 9416 F__mmst_rsrv [6]int8 9417 } 9418 F__fpu_stmm6 struct { 9419 F__mmst_reg [10]int8 9420 F__mmst_rsrv [6]int8 9421 } 9422 F__fpu_stmm7 struct { 9423 F__mmst_reg [10]int8 9424 F__mmst_rsrv [6]int8 9425 } 9426 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 9427 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 9428 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 9429 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 9430 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 9431 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 9432 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 9433 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 9434 F__fpu_rsrv4 [224]int8 9435 F__fpu_reserved1 int32 9436 F__avx_reserved1 [64]int8 9437 F__fpu_ymmh0 struct{ F__xmm_reg [16]int8 } 9438 F__fpu_ymmh1 struct{ F__xmm_reg [16]int8 } 9439 F__fpu_ymmh2 struct{ F__xmm_reg [16]int8 } 9440 F__fpu_ymmh3 struct{ F__xmm_reg [16]int8 } 9441 F__fpu_ymmh4 struct{ F__xmm_reg [16]int8 } 9442 F__fpu_ymmh5 struct{ F__xmm_reg [16]int8 } 9443 F__fpu_ymmh6 struct{ F__xmm_reg [16]int8 } 9444 F__fpu_ymmh7 struct{ F__xmm_reg [16]int8 } 9445 F__fpu_k0 struct{ F__opmask_reg [8]int8 } 9446 F__fpu_k1 struct{ F__opmask_reg [8]int8 } 9447 F__fpu_k2 struct{ F__opmask_reg [8]int8 } 9448 F__fpu_k3 struct{ F__opmask_reg [8]int8 } 9449 F__fpu_k4 struct{ F__opmask_reg [8]int8 } 9450 F__fpu_k5 struct{ F__opmask_reg [8]int8 } 9451 F__fpu_k6 struct{ F__opmask_reg [8]int8 } 9452 F__fpu_k7 struct{ F__opmask_reg [8]int8 } 9453 F__fpu_zmmh0 struct{ F__ymm_reg [32]int8 } 9454 F__fpu_zmmh1 struct{ F__ymm_reg [32]int8 } 9455 F__fpu_zmmh2 struct{ F__ymm_reg [32]int8 } 9456 F__fpu_zmmh3 struct{ F__ymm_reg [32]int8 } 9457 F__fpu_zmmh4 struct{ F__ymm_reg [32]int8 } 9458 F__fpu_zmmh5 struct{ F__ymm_reg [32]int8 } 9459 F__fpu_zmmh6 struct{ F__ymm_reg [32]int8 } 9460 F__fpu_zmmh7 struct{ F__ymm_reg [32]int8 } 9461 } /* _structs.h:364:1 */ 9462 9463 type X__darwin_i386_exception_state = struct { 9464 F__trapno X__uint16_t 9465 F__cpu X__uint16_t 9466 F__err X__uint32_t 9467 F__faultvaddr X__uint32_t 9468 } /* _structs.h:575:1 */ 9469 9470 type X__darwin_x86_debug_state32 = struct { 9471 F__dr0 uint32 9472 F__dr1 uint32 9473 F__dr2 uint32 9474 F__dr3 uint32 9475 F__dr4 uint32 9476 F__dr5 uint32 9477 F__dr6 uint32 9478 F__dr7 uint32 9479 } /* _structs.h:595:1 */ 9480 9481 type X__x86_pagein_state = struct{ F__pagein_error int32 } /* _structs.h:622:1 */ 9482 9483 // 64 bit versions of the above 9484 9485 type X__darwin_x86_thread_state64 = struct { 9486 F__rax X__uint64_t 9487 F__rbx X__uint64_t 9488 F__rcx X__uint64_t 9489 F__rdx X__uint64_t 9490 F__rdi X__uint64_t 9491 F__rsi X__uint64_t 9492 F__rbp X__uint64_t 9493 F__rsp X__uint64_t 9494 F__r8 X__uint64_t 9495 F__r9 X__uint64_t 9496 F__r10 X__uint64_t 9497 F__r11 X__uint64_t 9498 F__r12 X__uint64_t 9499 F__r13 X__uint64_t 9500 F__r14 X__uint64_t 9501 F__r15 X__uint64_t 9502 F__rip X__uint64_t 9503 F__rflags X__uint64_t 9504 F__cs X__uint64_t 9505 F__fs X__uint64_t 9506 F__gs X__uint64_t 9507 } /* _structs.h:633:1 */ 9508 9509 // 64 bit versions of the above (complete) 9510 9511 type X__darwin_x86_thread_full_state64 = struct { 9512 F__ss64 struct { 9513 F__rax X__uint64_t 9514 F__rbx X__uint64_t 9515 F__rcx X__uint64_t 9516 F__rdx X__uint64_t 9517 F__rdi X__uint64_t 9518 F__rsi X__uint64_t 9519 F__rbp X__uint64_t 9520 F__rsp X__uint64_t 9521 F__r8 X__uint64_t 9522 F__r9 X__uint64_t 9523 F__r10 X__uint64_t 9524 F__r11 X__uint64_t 9525 F__r12 X__uint64_t 9526 F__r13 X__uint64_t 9527 F__r14 X__uint64_t 9528 F__r15 X__uint64_t 9529 F__rip X__uint64_t 9530 F__rflags X__uint64_t 9531 F__cs X__uint64_t 9532 F__fs X__uint64_t 9533 F__gs X__uint64_t 9534 } 9535 F__ds X__uint64_t 9536 F__es X__uint64_t 9537 F__ss X__uint64_t 9538 F__gsbase X__uint64_t 9539 } /* _structs.h:691:1 */ 9540 9541 type X__darwin_x86_float_state64 = struct { 9542 F__fpu_reserved [2]int32 9543 F__fpu_fcw struct { 9544 F__ccgo_pad1 [0]uint16 9545 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 9546 } 9547 F__fpu_fsw struct { 9548 F__ccgo_pad1 [0]uint16 9549 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 9550 } 9551 F__fpu_ftw X__uint8_t 9552 F__fpu_rsrv1 X__uint8_t 9553 F__fpu_fop X__uint16_t 9554 F__fpu_ip X__uint32_t 9555 F__fpu_cs X__uint16_t 9556 F__fpu_rsrv2 X__uint16_t 9557 F__fpu_dp X__uint32_t 9558 F__fpu_ds X__uint16_t 9559 F__fpu_rsrv3 X__uint16_t 9560 F__fpu_mxcsr X__uint32_t 9561 F__fpu_mxcsrmask X__uint32_t 9562 F__fpu_stmm0 struct { 9563 F__mmst_reg [10]int8 9564 F__mmst_rsrv [6]int8 9565 } 9566 F__fpu_stmm1 struct { 9567 F__mmst_reg [10]int8 9568 F__mmst_rsrv [6]int8 9569 } 9570 F__fpu_stmm2 struct { 9571 F__mmst_reg [10]int8 9572 F__mmst_rsrv [6]int8 9573 } 9574 F__fpu_stmm3 struct { 9575 F__mmst_reg [10]int8 9576 F__mmst_rsrv [6]int8 9577 } 9578 F__fpu_stmm4 struct { 9579 F__mmst_reg [10]int8 9580 F__mmst_rsrv [6]int8 9581 } 9582 F__fpu_stmm5 struct { 9583 F__mmst_reg [10]int8 9584 F__mmst_rsrv [6]int8 9585 } 9586 F__fpu_stmm6 struct { 9587 F__mmst_reg [10]int8 9588 F__mmst_rsrv [6]int8 9589 } 9590 F__fpu_stmm7 struct { 9591 F__mmst_reg [10]int8 9592 F__mmst_rsrv [6]int8 9593 } 9594 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 9595 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 9596 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 9597 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 9598 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 9599 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 9600 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 9601 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 9602 F__fpu_xmm8 struct{ F__xmm_reg [16]int8 } 9603 F__fpu_xmm9 struct{ F__xmm_reg [16]int8 } 9604 F__fpu_xmm10 struct{ F__xmm_reg [16]int8 } 9605 F__fpu_xmm11 struct{ F__xmm_reg [16]int8 } 9606 F__fpu_xmm12 struct{ F__xmm_reg [16]int8 } 9607 F__fpu_xmm13 struct{ F__xmm_reg [16]int8 } 9608 F__fpu_xmm14 struct{ F__xmm_reg [16]int8 } 9609 F__fpu_xmm15 struct{ F__xmm_reg [16]int8 } 9610 F__fpu_rsrv4 [96]int8 9611 F__fpu_reserved1 int32 9612 } /* _structs.h:714:1 */ 9613 9614 type X__darwin_x86_avx_state64 = struct { 9615 F__fpu_reserved [2]int32 9616 F__fpu_fcw struct { 9617 F__ccgo_pad1 [0]uint16 9618 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 9619 } 9620 F__fpu_fsw struct { 9621 F__ccgo_pad1 [0]uint16 9622 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 9623 } 9624 F__fpu_ftw X__uint8_t 9625 F__fpu_rsrv1 X__uint8_t 9626 F__fpu_fop X__uint16_t 9627 F__fpu_ip X__uint32_t 9628 F__fpu_cs X__uint16_t 9629 F__fpu_rsrv2 X__uint16_t 9630 F__fpu_dp X__uint32_t 9631 F__fpu_ds X__uint16_t 9632 F__fpu_rsrv3 X__uint16_t 9633 F__fpu_mxcsr X__uint32_t 9634 F__fpu_mxcsrmask X__uint32_t 9635 F__fpu_stmm0 struct { 9636 F__mmst_reg [10]int8 9637 F__mmst_rsrv [6]int8 9638 } 9639 F__fpu_stmm1 struct { 9640 F__mmst_reg [10]int8 9641 F__mmst_rsrv [6]int8 9642 } 9643 F__fpu_stmm2 struct { 9644 F__mmst_reg [10]int8 9645 F__mmst_rsrv [6]int8 9646 } 9647 F__fpu_stmm3 struct { 9648 F__mmst_reg [10]int8 9649 F__mmst_rsrv [6]int8 9650 } 9651 F__fpu_stmm4 struct { 9652 F__mmst_reg [10]int8 9653 F__mmst_rsrv [6]int8 9654 } 9655 F__fpu_stmm5 struct { 9656 F__mmst_reg [10]int8 9657 F__mmst_rsrv [6]int8 9658 } 9659 F__fpu_stmm6 struct { 9660 F__mmst_reg [10]int8 9661 F__mmst_rsrv [6]int8 9662 } 9663 F__fpu_stmm7 struct { 9664 F__mmst_reg [10]int8 9665 F__mmst_rsrv [6]int8 9666 } 9667 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 9668 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 9669 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 9670 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 9671 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 9672 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 9673 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 9674 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 9675 F__fpu_xmm8 struct{ F__xmm_reg [16]int8 } 9676 F__fpu_xmm9 struct{ F__xmm_reg [16]int8 } 9677 F__fpu_xmm10 struct{ F__xmm_reg [16]int8 } 9678 F__fpu_xmm11 struct{ F__xmm_reg [16]int8 } 9679 F__fpu_xmm12 struct{ F__xmm_reg [16]int8 } 9680 F__fpu_xmm13 struct{ F__xmm_reg [16]int8 } 9681 F__fpu_xmm14 struct{ F__xmm_reg [16]int8 } 9682 F__fpu_xmm15 struct{ F__xmm_reg [16]int8 } 9683 F__fpu_rsrv4 [96]int8 9684 F__fpu_reserved1 int32 9685 F__avx_reserved1 [64]int8 9686 F__fpu_ymmh0 struct{ F__xmm_reg [16]int8 } 9687 F__fpu_ymmh1 struct{ F__xmm_reg [16]int8 } 9688 F__fpu_ymmh2 struct{ F__xmm_reg [16]int8 } 9689 F__fpu_ymmh3 struct{ F__xmm_reg [16]int8 } 9690 F__fpu_ymmh4 struct{ F__xmm_reg [16]int8 } 9691 F__fpu_ymmh5 struct{ F__xmm_reg [16]int8 } 9692 F__fpu_ymmh6 struct{ F__xmm_reg [16]int8 } 9693 F__fpu_ymmh7 struct{ F__xmm_reg [16]int8 } 9694 F__fpu_ymmh8 struct{ F__xmm_reg [16]int8 } 9695 F__fpu_ymmh9 struct{ F__xmm_reg [16]int8 } 9696 F__fpu_ymmh10 struct{ F__xmm_reg [16]int8 } 9697 F__fpu_ymmh11 struct{ F__xmm_reg [16]int8 } 9698 F__fpu_ymmh12 struct{ F__xmm_reg [16]int8 } 9699 F__fpu_ymmh13 struct{ F__xmm_reg [16]int8 } 9700 F__fpu_ymmh14 struct{ F__xmm_reg [16]int8 } 9701 F__fpu_ymmh15 struct{ F__xmm_reg [16]int8 } 9702 } /* _structs.h:765:1 */ 9703 9704 type X__darwin_x86_avx512_state64 = struct { 9705 F__fpu_reserved [2]int32 9706 F__fpu_fcw struct { 9707 F__ccgo_pad1 [0]uint16 9708 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 9709 } 9710 F__fpu_fsw struct { 9711 F__ccgo_pad1 [0]uint16 9712 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 9713 } 9714 F__fpu_ftw X__uint8_t 9715 F__fpu_rsrv1 X__uint8_t 9716 F__fpu_fop X__uint16_t 9717 F__fpu_ip X__uint32_t 9718 F__fpu_cs X__uint16_t 9719 F__fpu_rsrv2 X__uint16_t 9720 F__fpu_dp X__uint32_t 9721 F__fpu_ds X__uint16_t 9722 F__fpu_rsrv3 X__uint16_t 9723 F__fpu_mxcsr X__uint32_t 9724 F__fpu_mxcsrmask X__uint32_t 9725 F__fpu_stmm0 struct { 9726 F__mmst_reg [10]int8 9727 F__mmst_rsrv [6]int8 9728 } 9729 F__fpu_stmm1 struct { 9730 F__mmst_reg [10]int8 9731 F__mmst_rsrv [6]int8 9732 } 9733 F__fpu_stmm2 struct { 9734 F__mmst_reg [10]int8 9735 F__mmst_rsrv [6]int8 9736 } 9737 F__fpu_stmm3 struct { 9738 F__mmst_reg [10]int8 9739 F__mmst_rsrv [6]int8 9740 } 9741 F__fpu_stmm4 struct { 9742 F__mmst_reg [10]int8 9743 F__mmst_rsrv [6]int8 9744 } 9745 F__fpu_stmm5 struct { 9746 F__mmst_reg [10]int8 9747 F__mmst_rsrv [6]int8 9748 } 9749 F__fpu_stmm6 struct { 9750 F__mmst_reg [10]int8 9751 F__mmst_rsrv [6]int8 9752 } 9753 F__fpu_stmm7 struct { 9754 F__mmst_reg [10]int8 9755 F__mmst_rsrv [6]int8 9756 } 9757 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 9758 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 9759 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 9760 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 9761 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 9762 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 9763 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 9764 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 9765 F__fpu_xmm8 struct{ F__xmm_reg [16]int8 } 9766 F__fpu_xmm9 struct{ F__xmm_reg [16]int8 } 9767 F__fpu_xmm10 struct{ F__xmm_reg [16]int8 } 9768 F__fpu_xmm11 struct{ F__xmm_reg [16]int8 } 9769 F__fpu_xmm12 struct{ F__xmm_reg [16]int8 } 9770 F__fpu_xmm13 struct{ F__xmm_reg [16]int8 } 9771 F__fpu_xmm14 struct{ F__xmm_reg [16]int8 } 9772 F__fpu_xmm15 struct{ F__xmm_reg [16]int8 } 9773 F__fpu_rsrv4 [96]int8 9774 F__fpu_reserved1 int32 9775 F__avx_reserved1 [64]int8 9776 F__fpu_ymmh0 struct{ F__xmm_reg [16]int8 } 9777 F__fpu_ymmh1 struct{ F__xmm_reg [16]int8 } 9778 F__fpu_ymmh2 struct{ F__xmm_reg [16]int8 } 9779 F__fpu_ymmh3 struct{ F__xmm_reg [16]int8 } 9780 F__fpu_ymmh4 struct{ F__xmm_reg [16]int8 } 9781 F__fpu_ymmh5 struct{ F__xmm_reg [16]int8 } 9782 F__fpu_ymmh6 struct{ F__xmm_reg [16]int8 } 9783 F__fpu_ymmh7 struct{ F__xmm_reg [16]int8 } 9784 F__fpu_ymmh8 struct{ F__xmm_reg [16]int8 } 9785 F__fpu_ymmh9 struct{ F__xmm_reg [16]int8 } 9786 F__fpu_ymmh10 struct{ F__xmm_reg [16]int8 } 9787 F__fpu_ymmh11 struct{ F__xmm_reg [16]int8 } 9788 F__fpu_ymmh12 struct{ F__xmm_reg [16]int8 } 9789 F__fpu_ymmh13 struct{ F__xmm_reg [16]int8 } 9790 F__fpu_ymmh14 struct{ F__xmm_reg [16]int8 } 9791 F__fpu_ymmh15 struct{ F__xmm_reg [16]int8 } 9792 F__fpu_k0 struct{ F__opmask_reg [8]int8 } 9793 F__fpu_k1 struct{ F__opmask_reg [8]int8 } 9794 F__fpu_k2 struct{ F__opmask_reg [8]int8 } 9795 F__fpu_k3 struct{ F__opmask_reg [8]int8 } 9796 F__fpu_k4 struct{ F__opmask_reg [8]int8 } 9797 F__fpu_k5 struct{ F__opmask_reg [8]int8 } 9798 F__fpu_k6 struct{ F__opmask_reg [8]int8 } 9799 F__fpu_k7 struct{ F__opmask_reg [8]int8 } 9800 F__fpu_zmmh0 struct{ F__ymm_reg [32]int8 } 9801 F__fpu_zmmh1 struct{ F__ymm_reg [32]int8 } 9802 F__fpu_zmmh2 struct{ F__ymm_reg [32]int8 } 9803 F__fpu_zmmh3 struct{ F__ymm_reg [32]int8 } 9804 F__fpu_zmmh4 struct{ F__ymm_reg [32]int8 } 9805 F__fpu_zmmh5 struct{ F__ymm_reg [32]int8 } 9806 F__fpu_zmmh6 struct{ F__ymm_reg [32]int8 } 9807 F__fpu_zmmh7 struct{ F__ymm_reg [32]int8 } 9808 F__fpu_zmmh8 struct{ F__ymm_reg [32]int8 } 9809 F__fpu_zmmh9 struct{ F__ymm_reg [32]int8 } 9810 F__fpu_zmmh10 struct{ F__ymm_reg [32]int8 } 9811 F__fpu_zmmh11 struct{ F__ymm_reg [32]int8 } 9812 F__fpu_zmmh12 struct{ F__ymm_reg [32]int8 } 9813 F__fpu_zmmh13 struct{ F__ymm_reg [32]int8 } 9814 F__fpu_zmmh14 struct{ F__ymm_reg [32]int8 } 9815 F__fpu_zmmh15 struct{ F__ymm_reg [32]int8 } 9816 F__fpu_zmm16 struct{ F__zmm_reg [64]int8 } 9817 F__fpu_zmm17 struct{ F__zmm_reg [64]int8 } 9818 F__fpu_zmm18 struct{ F__zmm_reg [64]int8 } 9819 F__fpu_zmm19 struct{ F__zmm_reg [64]int8 } 9820 F__fpu_zmm20 struct{ F__zmm_reg [64]int8 } 9821 F__fpu_zmm21 struct{ F__zmm_reg [64]int8 } 9822 F__fpu_zmm22 struct{ F__zmm_reg [64]int8 } 9823 F__fpu_zmm23 struct{ F__zmm_reg [64]int8 } 9824 F__fpu_zmm24 struct{ F__zmm_reg [64]int8 } 9825 F__fpu_zmm25 struct{ F__zmm_reg [64]int8 } 9826 F__fpu_zmm26 struct{ F__zmm_reg [64]int8 } 9827 F__fpu_zmm27 struct{ F__zmm_reg [64]int8 } 9828 F__fpu_zmm28 struct{ F__zmm_reg [64]int8 } 9829 F__fpu_zmm29 struct{ F__zmm_reg [64]int8 } 9830 F__fpu_zmm30 struct{ F__zmm_reg [64]int8 } 9831 F__fpu_zmm31 struct{ F__zmm_reg [64]int8 } 9832 } /* _structs.h:833:1 */ 9833 9834 type X__darwin_x86_exception_state64 = struct { 9835 F__trapno X__uint16_t 9836 F__cpu X__uint16_t 9837 F__err X__uint32_t 9838 F__faultvaddr X__uint64_t 9839 } /* _structs.h:1172:1 */ 9840 9841 type X__darwin_x86_debug_state64 = struct { 9842 F__dr0 X__uint64_t 9843 F__dr1 X__uint64_t 9844 F__dr2 X__uint64_t 9845 F__dr3 X__uint64_t 9846 F__dr4 X__uint64_t 9847 F__dr5 X__uint64_t 9848 F__dr6 X__uint64_t 9849 F__dr7 X__uint64_t 9850 } /* _structs.h:1192:1 */ 9851 9852 type X__darwin_x86_cpmu_state64 = struct{ F__ctrs [16]X__uint64_t } /* _structs.h:1220:1 */ 9853 9854 type X__darwin_mcontext32 = struct { 9855 F__es struct { 9856 F__trapno X__uint16_t 9857 F__cpu X__uint16_t 9858 F__err X__uint32_t 9859 F__faultvaddr X__uint32_t 9860 } 9861 F__ss struct { 9862 F__eax uint32 9863 F__ebx uint32 9864 F__ecx uint32 9865 F__edx uint32 9866 F__edi uint32 9867 F__esi uint32 9868 F__ebp uint32 9869 F__esp uint32 9870 F__ss uint32 9871 F__eflags uint32 9872 F__eip uint32 9873 F__cs uint32 9874 F__ds uint32 9875 F__es uint32 9876 F__fs uint32 9877 F__gs uint32 9878 } 9879 F__fs struct { 9880 F__fpu_reserved [2]int32 9881 F__fpu_fcw struct { 9882 F__ccgo_pad1 [0]uint16 9883 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 9884 } 9885 F__fpu_fsw struct { 9886 F__ccgo_pad1 [0]uint16 9887 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 9888 } 9889 F__fpu_ftw X__uint8_t 9890 F__fpu_rsrv1 X__uint8_t 9891 F__fpu_fop X__uint16_t 9892 F__fpu_ip X__uint32_t 9893 F__fpu_cs X__uint16_t 9894 F__fpu_rsrv2 X__uint16_t 9895 F__fpu_dp X__uint32_t 9896 F__fpu_ds X__uint16_t 9897 F__fpu_rsrv3 X__uint16_t 9898 F__fpu_mxcsr X__uint32_t 9899 F__fpu_mxcsrmask X__uint32_t 9900 F__fpu_stmm0 struct { 9901 F__mmst_reg [10]int8 9902 F__mmst_rsrv [6]int8 9903 } 9904 F__fpu_stmm1 struct { 9905 F__mmst_reg [10]int8 9906 F__mmst_rsrv [6]int8 9907 } 9908 F__fpu_stmm2 struct { 9909 F__mmst_reg [10]int8 9910 F__mmst_rsrv [6]int8 9911 } 9912 F__fpu_stmm3 struct { 9913 F__mmst_reg [10]int8 9914 F__mmst_rsrv [6]int8 9915 } 9916 F__fpu_stmm4 struct { 9917 F__mmst_reg [10]int8 9918 F__mmst_rsrv [6]int8 9919 } 9920 F__fpu_stmm5 struct { 9921 F__mmst_reg [10]int8 9922 F__mmst_rsrv [6]int8 9923 } 9924 F__fpu_stmm6 struct { 9925 F__mmst_reg [10]int8 9926 F__mmst_rsrv [6]int8 9927 } 9928 F__fpu_stmm7 struct { 9929 F__mmst_reg [10]int8 9930 F__mmst_rsrv [6]int8 9931 } 9932 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 9933 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 9934 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 9935 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 9936 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 9937 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 9938 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 9939 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 9940 F__fpu_rsrv4 [224]int8 9941 F__fpu_reserved1 int32 9942 } 9943 } /* _mcontext.h:39:1 */ 9944 9945 type X__darwin_mcontext_avx32 = struct { 9946 F__es struct { 9947 F__trapno X__uint16_t 9948 F__cpu X__uint16_t 9949 F__err X__uint32_t 9950 F__faultvaddr X__uint32_t 9951 } 9952 F__ss struct { 9953 F__eax uint32 9954 F__ebx uint32 9955 F__ecx uint32 9956 F__edx uint32 9957 F__edi uint32 9958 F__esi uint32 9959 F__ebp uint32 9960 F__esp uint32 9961 F__ss uint32 9962 F__eflags uint32 9963 F__eip uint32 9964 F__cs uint32 9965 F__ds uint32 9966 F__es uint32 9967 F__fs uint32 9968 F__gs uint32 9969 } 9970 F__fs struct { 9971 F__fpu_reserved [2]int32 9972 F__fpu_fcw struct { 9973 F__ccgo_pad1 [0]uint16 9974 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 9975 } 9976 F__fpu_fsw struct { 9977 F__ccgo_pad1 [0]uint16 9978 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 9979 } 9980 F__fpu_ftw X__uint8_t 9981 F__fpu_rsrv1 X__uint8_t 9982 F__fpu_fop X__uint16_t 9983 F__fpu_ip X__uint32_t 9984 F__fpu_cs X__uint16_t 9985 F__fpu_rsrv2 X__uint16_t 9986 F__fpu_dp X__uint32_t 9987 F__fpu_ds X__uint16_t 9988 F__fpu_rsrv3 X__uint16_t 9989 F__fpu_mxcsr X__uint32_t 9990 F__fpu_mxcsrmask X__uint32_t 9991 F__fpu_stmm0 struct { 9992 F__mmst_reg [10]int8 9993 F__mmst_rsrv [6]int8 9994 } 9995 F__fpu_stmm1 struct { 9996 F__mmst_reg [10]int8 9997 F__mmst_rsrv [6]int8 9998 } 9999 F__fpu_stmm2 struct { 10000 F__mmst_reg [10]int8 10001 F__mmst_rsrv [6]int8 10002 } 10003 F__fpu_stmm3 struct { 10004 F__mmst_reg [10]int8 10005 F__mmst_rsrv [6]int8 10006 } 10007 F__fpu_stmm4 struct { 10008 F__mmst_reg [10]int8 10009 F__mmst_rsrv [6]int8 10010 } 10011 F__fpu_stmm5 struct { 10012 F__mmst_reg [10]int8 10013 F__mmst_rsrv [6]int8 10014 } 10015 F__fpu_stmm6 struct { 10016 F__mmst_reg [10]int8 10017 F__mmst_rsrv [6]int8 10018 } 10019 F__fpu_stmm7 struct { 10020 F__mmst_reg [10]int8 10021 F__mmst_rsrv [6]int8 10022 } 10023 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 10024 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 10025 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 10026 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 10027 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 10028 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 10029 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 10030 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 10031 F__fpu_rsrv4 [224]int8 10032 F__fpu_reserved1 int32 10033 F__avx_reserved1 [64]int8 10034 F__fpu_ymmh0 struct{ F__xmm_reg [16]int8 } 10035 F__fpu_ymmh1 struct{ F__xmm_reg [16]int8 } 10036 F__fpu_ymmh2 struct{ F__xmm_reg [16]int8 } 10037 F__fpu_ymmh3 struct{ F__xmm_reg [16]int8 } 10038 F__fpu_ymmh4 struct{ F__xmm_reg [16]int8 } 10039 F__fpu_ymmh5 struct{ F__xmm_reg [16]int8 } 10040 F__fpu_ymmh6 struct{ F__xmm_reg [16]int8 } 10041 F__fpu_ymmh7 struct{ F__xmm_reg [16]int8 } 10042 } 10043 } /* _mcontext.h:47:1 */ 10044 10045 type X__darwin_mcontext_avx512_32 = struct { 10046 F__es struct { 10047 F__trapno X__uint16_t 10048 F__cpu X__uint16_t 10049 F__err X__uint32_t 10050 F__faultvaddr X__uint32_t 10051 } 10052 F__ss struct { 10053 F__eax uint32 10054 F__ebx uint32 10055 F__ecx uint32 10056 F__edx uint32 10057 F__edi uint32 10058 F__esi uint32 10059 F__ebp uint32 10060 F__esp uint32 10061 F__ss uint32 10062 F__eflags uint32 10063 F__eip uint32 10064 F__cs uint32 10065 F__ds uint32 10066 F__es uint32 10067 F__fs uint32 10068 F__gs uint32 10069 } 10070 F__fs struct { 10071 F__fpu_reserved [2]int32 10072 F__fpu_fcw struct { 10073 F__ccgo_pad1 [0]uint16 10074 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 10075 } 10076 F__fpu_fsw struct { 10077 F__ccgo_pad1 [0]uint16 10078 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 10079 } 10080 F__fpu_ftw X__uint8_t 10081 F__fpu_rsrv1 X__uint8_t 10082 F__fpu_fop X__uint16_t 10083 F__fpu_ip X__uint32_t 10084 F__fpu_cs X__uint16_t 10085 F__fpu_rsrv2 X__uint16_t 10086 F__fpu_dp X__uint32_t 10087 F__fpu_ds X__uint16_t 10088 F__fpu_rsrv3 X__uint16_t 10089 F__fpu_mxcsr X__uint32_t 10090 F__fpu_mxcsrmask X__uint32_t 10091 F__fpu_stmm0 struct { 10092 F__mmst_reg [10]int8 10093 F__mmst_rsrv [6]int8 10094 } 10095 F__fpu_stmm1 struct { 10096 F__mmst_reg [10]int8 10097 F__mmst_rsrv [6]int8 10098 } 10099 F__fpu_stmm2 struct { 10100 F__mmst_reg [10]int8 10101 F__mmst_rsrv [6]int8 10102 } 10103 F__fpu_stmm3 struct { 10104 F__mmst_reg [10]int8 10105 F__mmst_rsrv [6]int8 10106 } 10107 F__fpu_stmm4 struct { 10108 F__mmst_reg [10]int8 10109 F__mmst_rsrv [6]int8 10110 } 10111 F__fpu_stmm5 struct { 10112 F__mmst_reg [10]int8 10113 F__mmst_rsrv [6]int8 10114 } 10115 F__fpu_stmm6 struct { 10116 F__mmst_reg [10]int8 10117 F__mmst_rsrv [6]int8 10118 } 10119 F__fpu_stmm7 struct { 10120 F__mmst_reg [10]int8 10121 F__mmst_rsrv [6]int8 10122 } 10123 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 10124 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 10125 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 10126 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 10127 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 10128 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 10129 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 10130 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 10131 F__fpu_rsrv4 [224]int8 10132 F__fpu_reserved1 int32 10133 F__avx_reserved1 [64]int8 10134 F__fpu_ymmh0 struct{ F__xmm_reg [16]int8 } 10135 F__fpu_ymmh1 struct{ F__xmm_reg [16]int8 } 10136 F__fpu_ymmh2 struct{ F__xmm_reg [16]int8 } 10137 F__fpu_ymmh3 struct{ F__xmm_reg [16]int8 } 10138 F__fpu_ymmh4 struct{ F__xmm_reg [16]int8 } 10139 F__fpu_ymmh5 struct{ F__xmm_reg [16]int8 } 10140 F__fpu_ymmh6 struct{ F__xmm_reg [16]int8 } 10141 F__fpu_ymmh7 struct{ F__xmm_reg [16]int8 } 10142 F__fpu_k0 struct{ F__opmask_reg [8]int8 } 10143 F__fpu_k1 struct{ F__opmask_reg [8]int8 } 10144 F__fpu_k2 struct{ F__opmask_reg [8]int8 } 10145 F__fpu_k3 struct{ F__opmask_reg [8]int8 } 10146 F__fpu_k4 struct{ F__opmask_reg [8]int8 } 10147 F__fpu_k5 struct{ F__opmask_reg [8]int8 } 10148 F__fpu_k6 struct{ F__opmask_reg [8]int8 } 10149 F__fpu_k7 struct{ F__opmask_reg [8]int8 } 10150 F__fpu_zmmh0 struct{ F__ymm_reg [32]int8 } 10151 F__fpu_zmmh1 struct{ F__ymm_reg [32]int8 } 10152 F__fpu_zmmh2 struct{ F__ymm_reg [32]int8 } 10153 F__fpu_zmmh3 struct{ F__ymm_reg [32]int8 } 10154 F__fpu_zmmh4 struct{ F__ymm_reg [32]int8 } 10155 F__fpu_zmmh5 struct{ F__ymm_reg [32]int8 } 10156 F__fpu_zmmh6 struct{ F__ymm_reg [32]int8 } 10157 F__fpu_zmmh7 struct{ F__ymm_reg [32]int8 } 10158 } 10159 } /* _mcontext.h:56:1 */ 10160 10161 type X__darwin_mcontext64 = struct { 10162 F__es struct { 10163 F__trapno X__uint16_t 10164 F__cpu X__uint16_t 10165 F__err X__uint32_t 10166 F__faultvaddr X__uint64_t 10167 } 10168 F__ss struct { 10169 F__rax X__uint64_t 10170 F__rbx X__uint64_t 10171 F__rcx X__uint64_t 10172 F__rdx X__uint64_t 10173 F__rdi X__uint64_t 10174 F__rsi X__uint64_t 10175 F__rbp X__uint64_t 10176 F__rsp X__uint64_t 10177 F__r8 X__uint64_t 10178 F__r9 X__uint64_t 10179 F__r10 X__uint64_t 10180 F__r11 X__uint64_t 10181 F__r12 X__uint64_t 10182 F__r13 X__uint64_t 10183 F__r14 X__uint64_t 10184 F__r15 X__uint64_t 10185 F__rip X__uint64_t 10186 F__rflags X__uint64_t 10187 F__cs X__uint64_t 10188 F__fs X__uint64_t 10189 F__gs X__uint64_t 10190 } 10191 F__fs struct { 10192 F__fpu_reserved [2]int32 10193 F__fpu_fcw struct { 10194 F__ccgo_pad1 [0]uint16 10195 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 10196 } 10197 F__fpu_fsw struct { 10198 F__ccgo_pad1 [0]uint16 10199 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 10200 } 10201 F__fpu_ftw X__uint8_t 10202 F__fpu_rsrv1 X__uint8_t 10203 F__fpu_fop X__uint16_t 10204 F__fpu_ip X__uint32_t 10205 F__fpu_cs X__uint16_t 10206 F__fpu_rsrv2 X__uint16_t 10207 F__fpu_dp X__uint32_t 10208 F__fpu_ds X__uint16_t 10209 F__fpu_rsrv3 X__uint16_t 10210 F__fpu_mxcsr X__uint32_t 10211 F__fpu_mxcsrmask X__uint32_t 10212 F__fpu_stmm0 struct { 10213 F__mmst_reg [10]int8 10214 F__mmst_rsrv [6]int8 10215 } 10216 F__fpu_stmm1 struct { 10217 F__mmst_reg [10]int8 10218 F__mmst_rsrv [6]int8 10219 } 10220 F__fpu_stmm2 struct { 10221 F__mmst_reg [10]int8 10222 F__mmst_rsrv [6]int8 10223 } 10224 F__fpu_stmm3 struct { 10225 F__mmst_reg [10]int8 10226 F__mmst_rsrv [6]int8 10227 } 10228 F__fpu_stmm4 struct { 10229 F__mmst_reg [10]int8 10230 F__mmst_rsrv [6]int8 10231 } 10232 F__fpu_stmm5 struct { 10233 F__mmst_reg [10]int8 10234 F__mmst_rsrv [6]int8 10235 } 10236 F__fpu_stmm6 struct { 10237 F__mmst_reg [10]int8 10238 F__mmst_rsrv [6]int8 10239 } 10240 F__fpu_stmm7 struct { 10241 F__mmst_reg [10]int8 10242 F__mmst_rsrv [6]int8 10243 } 10244 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 10245 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 10246 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 10247 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 10248 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 10249 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 10250 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 10251 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 10252 F__fpu_xmm8 struct{ F__xmm_reg [16]int8 } 10253 F__fpu_xmm9 struct{ F__xmm_reg [16]int8 } 10254 F__fpu_xmm10 struct{ F__xmm_reg [16]int8 } 10255 F__fpu_xmm11 struct{ F__xmm_reg [16]int8 } 10256 F__fpu_xmm12 struct{ F__xmm_reg [16]int8 } 10257 F__fpu_xmm13 struct{ F__xmm_reg [16]int8 } 10258 F__fpu_xmm14 struct{ F__xmm_reg [16]int8 } 10259 F__fpu_xmm15 struct{ F__xmm_reg [16]int8 } 10260 F__fpu_rsrv4 [96]int8 10261 F__fpu_reserved1 int32 10262 } 10263 F__ccgo_pad1 [4]byte 10264 } /* _mcontext.h:97:1 */ 10265 10266 type X__darwin_mcontext64_full = struct { 10267 F__es struct { 10268 F__trapno X__uint16_t 10269 F__cpu X__uint16_t 10270 F__err X__uint32_t 10271 F__faultvaddr X__uint64_t 10272 } 10273 F__ss struct { 10274 F__ss64 struct { 10275 F__rax X__uint64_t 10276 F__rbx X__uint64_t 10277 F__rcx X__uint64_t 10278 F__rdx X__uint64_t 10279 F__rdi X__uint64_t 10280 F__rsi X__uint64_t 10281 F__rbp X__uint64_t 10282 F__rsp X__uint64_t 10283 F__r8 X__uint64_t 10284 F__r9 X__uint64_t 10285 F__r10 X__uint64_t 10286 F__r11 X__uint64_t 10287 F__r12 X__uint64_t 10288 F__r13 X__uint64_t 10289 F__r14 X__uint64_t 10290 F__r15 X__uint64_t 10291 F__rip X__uint64_t 10292 F__rflags X__uint64_t 10293 F__cs X__uint64_t 10294 F__fs X__uint64_t 10295 F__gs X__uint64_t 10296 } 10297 F__ds X__uint64_t 10298 F__es X__uint64_t 10299 F__ss X__uint64_t 10300 F__gsbase X__uint64_t 10301 } 10302 F__fs struct { 10303 F__fpu_reserved [2]int32 10304 F__fpu_fcw struct { 10305 F__ccgo_pad1 [0]uint16 10306 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 10307 } 10308 F__fpu_fsw struct { 10309 F__ccgo_pad1 [0]uint16 10310 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 10311 } 10312 F__fpu_ftw X__uint8_t 10313 F__fpu_rsrv1 X__uint8_t 10314 F__fpu_fop X__uint16_t 10315 F__fpu_ip X__uint32_t 10316 F__fpu_cs X__uint16_t 10317 F__fpu_rsrv2 X__uint16_t 10318 F__fpu_dp X__uint32_t 10319 F__fpu_ds X__uint16_t 10320 F__fpu_rsrv3 X__uint16_t 10321 F__fpu_mxcsr X__uint32_t 10322 F__fpu_mxcsrmask X__uint32_t 10323 F__fpu_stmm0 struct { 10324 F__mmst_reg [10]int8 10325 F__mmst_rsrv [6]int8 10326 } 10327 F__fpu_stmm1 struct { 10328 F__mmst_reg [10]int8 10329 F__mmst_rsrv [6]int8 10330 } 10331 F__fpu_stmm2 struct { 10332 F__mmst_reg [10]int8 10333 F__mmst_rsrv [6]int8 10334 } 10335 F__fpu_stmm3 struct { 10336 F__mmst_reg [10]int8 10337 F__mmst_rsrv [6]int8 10338 } 10339 F__fpu_stmm4 struct { 10340 F__mmst_reg [10]int8 10341 F__mmst_rsrv [6]int8 10342 } 10343 F__fpu_stmm5 struct { 10344 F__mmst_reg [10]int8 10345 F__mmst_rsrv [6]int8 10346 } 10347 F__fpu_stmm6 struct { 10348 F__mmst_reg [10]int8 10349 F__mmst_rsrv [6]int8 10350 } 10351 F__fpu_stmm7 struct { 10352 F__mmst_reg [10]int8 10353 F__mmst_rsrv [6]int8 10354 } 10355 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 10356 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 10357 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 10358 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 10359 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 10360 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 10361 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 10362 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 10363 F__fpu_xmm8 struct{ F__xmm_reg [16]int8 } 10364 F__fpu_xmm9 struct{ F__xmm_reg [16]int8 } 10365 F__fpu_xmm10 struct{ F__xmm_reg [16]int8 } 10366 F__fpu_xmm11 struct{ F__xmm_reg [16]int8 } 10367 F__fpu_xmm12 struct{ F__xmm_reg [16]int8 } 10368 F__fpu_xmm13 struct{ F__xmm_reg [16]int8 } 10369 F__fpu_xmm14 struct{ F__xmm_reg [16]int8 } 10370 F__fpu_xmm15 struct{ F__xmm_reg [16]int8 } 10371 F__fpu_rsrv4 [96]int8 10372 F__fpu_reserved1 int32 10373 } 10374 F__ccgo_pad1 [4]byte 10375 } /* _mcontext.h:105:1 */ 10376 10377 type X__darwin_mcontext_avx64 = struct { 10378 F__es struct { 10379 F__trapno X__uint16_t 10380 F__cpu X__uint16_t 10381 F__err X__uint32_t 10382 F__faultvaddr X__uint64_t 10383 } 10384 F__ss struct { 10385 F__rax X__uint64_t 10386 F__rbx X__uint64_t 10387 F__rcx X__uint64_t 10388 F__rdx X__uint64_t 10389 F__rdi X__uint64_t 10390 F__rsi X__uint64_t 10391 F__rbp X__uint64_t 10392 F__rsp X__uint64_t 10393 F__r8 X__uint64_t 10394 F__r9 X__uint64_t 10395 F__r10 X__uint64_t 10396 F__r11 X__uint64_t 10397 F__r12 X__uint64_t 10398 F__r13 X__uint64_t 10399 F__r14 X__uint64_t 10400 F__r15 X__uint64_t 10401 F__rip X__uint64_t 10402 F__rflags X__uint64_t 10403 F__cs X__uint64_t 10404 F__fs X__uint64_t 10405 F__gs X__uint64_t 10406 } 10407 F__fs struct { 10408 F__fpu_reserved [2]int32 10409 F__fpu_fcw struct { 10410 F__ccgo_pad1 [0]uint16 10411 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 10412 } 10413 F__fpu_fsw struct { 10414 F__ccgo_pad1 [0]uint16 10415 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 10416 } 10417 F__fpu_ftw X__uint8_t 10418 F__fpu_rsrv1 X__uint8_t 10419 F__fpu_fop X__uint16_t 10420 F__fpu_ip X__uint32_t 10421 F__fpu_cs X__uint16_t 10422 F__fpu_rsrv2 X__uint16_t 10423 F__fpu_dp X__uint32_t 10424 F__fpu_ds X__uint16_t 10425 F__fpu_rsrv3 X__uint16_t 10426 F__fpu_mxcsr X__uint32_t 10427 F__fpu_mxcsrmask X__uint32_t 10428 F__fpu_stmm0 struct { 10429 F__mmst_reg [10]int8 10430 F__mmst_rsrv [6]int8 10431 } 10432 F__fpu_stmm1 struct { 10433 F__mmst_reg [10]int8 10434 F__mmst_rsrv [6]int8 10435 } 10436 F__fpu_stmm2 struct { 10437 F__mmst_reg [10]int8 10438 F__mmst_rsrv [6]int8 10439 } 10440 F__fpu_stmm3 struct { 10441 F__mmst_reg [10]int8 10442 F__mmst_rsrv [6]int8 10443 } 10444 F__fpu_stmm4 struct { 10445 F__mmst_reg [10]int8 10446 F__mmst_rsrv [6]int8 10447 } 10448 F__fpu_stmm5 struct { 10449 F__mmst_reg [10]int8 10450 F__mmst_rsrv [6]int8 10451 } 10452 F__fpu_stmm6 struct { 10453 F__mmst_reg [10]int8 10454 F__mmst_rsrv [6]int8 10455 } 10456 F__fpu_stmm7 struct { 10457 F__mmst_reg [10]int8 10458 F__mmst_rsrv [6]int8 10459 } 10460 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 10461 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 10462 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 10463 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 10464 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 10465 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 10466 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 10467 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 10468 F__fpu_xmm8 struct{ F__xmm_reg [16]int8 } 10469 F__fpu_xmm9 struct{ F__xmm_reg [16]int8 } 10470 F__fpu_xmm10 struct{ F__xmm_reg [16]int8 } 10471 F__fpu_xmm11 struct{ F__xmm_reg [16]int8 } 10472 F__fpu_xmm12 struct{ F__xmm_reg [16]int8 } 10473 F__fpu_xmm13 struct{ F__xmm_reg [16]int8 } 10474 F__fpu_xmm14 struct{ F__xmm_reg [16]int8 } 10475 F__fpu_xmm15 struct{ F__xmm_reg [16]int8 } 10476 F__fpu_rsrv4 [96]int8 10477 F__fpu_reserved1 int32 10478 F__avx_reserved1 [64]int8 10479 F__fpu_ymmh0 struct{ F__xmm_reg [16]int8 } 10480 F__fpu_ymmh1 struct{ F__xmm_reg [16]int8 } 10481 F__fpu_ymmh2 struct{ F__xmm_reg [16]int8 } 10482 F__fpu_ymmh3 struct{ F__xmm_reg [16]int8 } 10483 F__fpu_ymmh4 struct{ F__xmm_reg [16]int8 } 10484 F__fpu_ymmh5 struct{ F__xmm_reg [16]int8 } 10485 F__fpu_ymmh6 struct{ F__xmm_reg [16]int8 } 10486 F__fpu_ymmh7 struct{ F__xmm_reg [16]int8 } 10487 F__fpu_ymmh8 struct{ F__xmm_reg [16]int8 } 10488 F__fpu_ymmh9 struct{ F__xmm_reg [16]int8 } 10489 F__fpu_ymmh10 struct{ F__xmm_reg [16]int8 } 10490 F__fpu_ymmh11 struct{ F__xmm_reg [16]int8 } 10491 F__fpu_ymmh12 struct{ F__xmm_reg [16]int8 } 10492 F__fpu_ymmh13 struct{ F__xmm_reg [16]int8 } 10493 F__fpu_ymmh14 struct{ F__xmm_reg [16]int8 } 10494 F__fpu_ymmh15 struct{ F__xmm_reg [16]int8 } 10495 } 10496 F__ccgo_pad1 [4]byte 10497 } /* _mcontext.h:113:1 */ 10498 10499 type X__darwin_mcontext_avx64_full = struct { 10500 F__es struct { 10501 F__trapno X__uint16_t 10502 F__cpu X__uint16_t 10503 F__err X__uint32_t 10504 F__faultvaddr X__uint64_t 10505 } 10506 F__ss struct { 10507 F__ss64 struct { 10508 F__rax X__uint64_t 10509 F__rbx X__uint64_t 10510 F__rcx X__uint64_t 10511 F__rdx X__uint64_t 10512 F__rdi X__uint64_t 10513 F__rsi X__uint64_t 10514 F__rbp X__uint64_t 10515 F__rsp X__uint64_t 10516 F__r8 X__uint64_t 10517 F__r9 X__uint64_t 10518 F__r10 X__uint64_t 10519 F__r11 X__uint64_t 10520 F__r12 X__uint64_t 10521 F__r13 X__uint64_t 10522 F__r14 X__uint64_t 10523 F__r15 X__uint64_t 10524 F__rip X__uint64_t 10525 F__rflags X__uint64_t 10526 F__cs X__uint64_t 10527 F__fs X__uint64_t 10528 F__gs X__uint64_t 10529 } 10530 F__ds X__uint64_t 10531 F__es X__uint64_t 10532 F__ss X__uint64_t 10533 F__gsbase X__uint64_t 10534 } 10535 F__fs struct { 10536 F__fpu_reserved [2]int32 10537 F__fpu_fcw struct { 10538 F__ccgo_pad1 [0]uint16 10539 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 10540 } 10541 F__fpu_fsw struct { 10542 F__ccgo_pad1 [0]uint16 10543 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 10544 } 10545 F__fpu_ftw X__uint8_t 10546 F__fpu_rsrv1 X__uint8_t 10547 F__fpu_fop X__uint16_t 10548 F__fpu_ip X__uint32_t 10549 F__fpu_cs X__uint16_t 10550 F__fpu_rsrv2 X__uint16_t 10551 F__fpu_dp X__uint32_t 10552 F__fpu_ds X__uint16_t 10553 F__fpu_rsrv3 X__uint16_t 10554 F__fpu_mxcsr X__uint32_t 10555 F__fpu_mxcsrmask X__uint32_t 10556 F__fpu_stmm0 struct { 10557 F__mmst_reg [10]int8 10558 F__mmst_rsrv [6]int8 10559 } 10560 F__fpu_stmm1 struct { 10561 F__mmst_reg [10]int8 10562 F__mmst_rsrv [6]int8 10563 } 10564 F__fpu_stmm2 struct { 10565 F__mmst_reg [10]int8 10566 F__mmst_rsrv [6]int8 10567 } 10568 F__fpu_stmm3 struct { 10569 F__mmst_reg [10]int8 10570 F__mmst_rsrv [6]int8 10571 } 10572 F__fpu_stmm4 struct { 10573 F__mmst_reg [10]int8 10574 F__mmst_rsrv [6]int8 10575 } 10576 F__fpu_stmm5 struct { 10577 F__mmst_reg [10]int8 10578 F__mmst_rsrv [6]int8 10579 } 10580 F__fpu_stmm6 struct { 10581 F__mmst_reg [10]int8 10582 F__mmst_rsrv [6]int8 10583 } 10584 F__fpu_stmm7 struct { 10585 F__mmst_reg [10]int8 10586 F__mmst_rsrv [6]int8 10587 } 10588 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 10589 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 10590 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 10591 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 10592 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 10593 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 10594 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 10595 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 10596 F__fpu_xmm8 struct{ F__xmm_reg [16]int8 } 10597 F__fpu_xmm9 struct{ F__xmm_reg [16]int8 } 10598 F__fpu_xmm10 struct{ F__xmm_reg [16]int8 } 10599 F__fpu_xmm11 struct{ F__xmm_reg [16]int8 } 10600 F__fpu_xmm12 struct{ F__xmm_reg [16]int8 } 10601 F__fpu_xmm13 struct{ F__xmm_reg [16]int8 } 10602 F__fpu_xmm14 struct{ F__xmm_reg [16]int8 } 10603 F__fpu_xmm15 struct{ F__xmm_reg [16]int8 } 10604 F__fpu_rsrv4 [96]int8 10605 F__fpu_reserved1 int32 10606 F__avx_reserved1 [64]int8 10607 F__fpu_ymmh0 struct{ F__xmm_reg [16]int8 } 10608 F__fpu_ymmh1 struct{ F__xmm_reg [16]int8 } 10609 F__fpu_ymmh2 struct{ F__xmm_reg [16]int8 } 10610 F__fpu_ymmh3 struct{ F__xmm_reg [16]int8 } 10611 F__fpu_ymmh4 struct{ F__xmm_reg [16]int8 } 10612 F__fpu_ymmh5 struct{ F__xmm_reg [16]int8 } 10613 F__fpu_ymmh6 struct{ F__xmm_reg [16]int8 } 10614 F__fpu_ymmh7 struct{ F__xmm_reg [16]int8 } 10615 F__fpu_ymmh8 struct{ F__xmm_reg [16]int8 } 10616 F__fpu_ymmh9 struct{ F__xmm_reg [16]int8 } 10617 F__fpu_ymmh10 struct{ F__xmm_reg [16]int8 } 10618 F__fpu_ymmh11 struct{ F__xmm_reg [16]int8 } 10619 F__fpu_ymmh12 struct{ F__xmm_reg [16]int8 } 10620 F__fpu_ymmh13 struct{ F__xmm_reg [16]int8 } 10621 F__fpu_ymmh14 struct{ F__xmm_reg [16]int8 } 10622 F__fpu_ymmh15 struct{ F__xmm_reg [16]int8 } 10623 } 10624 F__ccgo_pad1 [4]byte 10625 } /* _mcontext.h:121:1 */ 10626 10627 type X__darwin_mcontext_avx512_64 = struct { 10628 F__es struct { 10629 F__trapno X__uint16_t 10630 F__cpu X__uint16_t 10631 F__err X__uint32_t 10632 F__faultvaddr X__uint64_t 10633 } 10634 F__ss struct { 10635 F__rax X__uint64_t 10636 F__rbx X__uint64_t 10637 F__rcx X__uint64_t 10638 F__rdx X__uint64_t 10639 F__rdi X__uint64_t 10640 F__rsi X__uint64_t 10641 F__rbp X__uint64_t 10642 F__rsp X__uint64_t 10643 F__r8 X__uint64_t 10644 F__r9 X__uint64_t 10645 F__r10 X__uint64_t 10646 F__r11 X__uint64_t 10647 F__r12 X__uint64_t 10648 F__r13 X__uint64_t 10649 F__r14 X__uint64_t 10650 F__r15 X__uint64_t 10651 F__rip X__uint64_t 10652 F__rflags X__uint64_t 10653 F__cs X__uint64_t 10654 F__fs X__uint64_t 10655 F__gs X__uint64_t 10656 } 10657 F__fs struct { 10658 F__fpu_reserved [2]int32 10659 F__fpu_fcw struct { 10660 F__ccgo_pad1 [0]uint16 10661 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 10662 } 10663 F__fpu_fsw struct { 10664 F__ccgo_pad1 [0]uint16 10665 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 10666 } 10667 F__fpu_ftw X__uint8_t 10668 F__fpu_rsrv1 X__uint8_t 10669 F__fpu_fop X__uint16_t 10670 F__fpu_ip X__uint32_t 10671 F__fpu_cs X__uint16_t 10672 F__fpu_rsrv2 X__uint16_t 10673 F__fpu_dp X__uint32_t 10674 F__fpu_ds X__uint16_t 10675 F__fpu_rsrv3 X__uint16_t 10676 F__fpu_mxcsr X__uint32_t 10677 F__fpu_mxcsrmask X__uint32_t 10678 F__fpu_stmm0 struct { 10679 F__mmst_reg [10]int8 10680 F__mmst_rsrv [6]int8 10681 } 10682 F__fpu_stmm1 struct { 10683 F__mmst_reg [10]int8 10684 F__mmst_rsrv [6]int8 10685 } 10686 F__fpu_stmm2 struct { 10687 F__mmst_reg [10]int8 10688 F__mmst_rsrv [6]int8 10689 } 10690 F__fpu_stmm3 struct { 10691 F__mmst_reg [10]int8 10692 F__mmst_rsrv [6]int8 10693 } 10694 F__fpu_stmm4 struct { 10695 F__mmst_reg [10]int8 10696 F__mmst_rsrv [6]int8 10697 } 10698 F__fpu_stmm5 struct { 10699 F__mmst_reg [10]int8 10700 F__mmst_rsrv [6]int8 10701 } 10702 F__fpu_stmm6 struct { 10703 F__mmst_reg [10]int8 10704 F__mmst_rsrv [6]int8 10705 } 10706 F__fpu_stmm7 struct { 10707 F__mmst_reg [10]int8 10708 F__mmst_rsrv [6]int8 10709 } 10710 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 10711 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 10712 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 10713 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 10714 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 10715 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 10716 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 10717 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 10718 F__fpu_xmm8 struct{ F__xmm_reg [16]int8 } 10719 F__fpu_xmm9 struct{ F__xmm_reg [16]int8 } 10720 F__fpu_xmm10 struct{ F__xmm_reg [16]int8 } 10721 F__fpu_xmm11 struct{ F__xmm_reg [16]int8 } 10722 F__fpu_xmm12 struct{ F__xmm_reg [16]int8 } 10723 F__fpu_xmm13 struct{ F__xmm_reg [16]int8 } 10724 F__fpu_xmm14 struct{ F__xmm_reg [16]int8 } 10725 F__fpu_xmm15 struct{ F__xmm_reg [16]int8 } 10726 F__fpu_rsrv4 [96]int8 10727 F__fpu_reserved1 int32 10728 F__avx_reserved1 [64]int8 10729 F__fpu_ymmh0 struct{ F__xmm_reg [16]int8 } 10730 F__fpu_ymmh1 struct{ F__xmm_reg [16]int8 } 10731 F__fpu_ymmh2 struct{ F__xmm_reg [16]int8 } 10732 F__fpu_ymmh3 struct{ F__xmm_reg [16]int8 } 10733 F__fpu_ymmh4 struct{ F__xmm_reg [16]int8 } 10734 F__fpu_ymmh5 struct{ F__xmm_reg [16]int8 } 10735 F__fpu_ymmh6 struct{ F__xmm_reg [16]int8 } 10736 F__fpu_ymmh7 struct{ F__xmm_reg [16]int8 } 10737 F__fpu_ymmh8 struct{ F__xmm_reg [16]int8 } 10738 F__fpu_ymmh9 struct{ F__xmm_reg [16]int8 } 10739 F__fpu_ymmh10 struct{ F__xmm_reg [16]int8 } 10740 F__fpu_ymmh11 struct{ F__xmm_reg [16]int8 } 10741 F__fpu_ymmh12 struct{ F__xmm_reg [16]int8 } 10742 F__fpu_ymmh13 struct{ F__xmm_reg [16]int8 } 10743 F__fpu_ymmh14 struct{ F__xmm_reg [16]int8 } 10744 F__fpu_ymmh15 struct{ F__xmm_reg [16]int8 } 10745 F__fpu_k0 struct{ F__opmask_reg [8]int8 } 10746 F__fpu_k1 struct{ F__opmask_reg [8]int8 } 10747 F__fpu_k2 struct{ F__opmask_reg [8]int8 } 10748 F__fpu_k3 struct{ F__opmask_reg [8]int8 } 10749 F__fpu_k4 struct{ F__opmask_reg [8]int8 } 10750 F__fpu_k5 struct{ F__opmask_reg [8]int8 } 10751 F__fpu_k6 struct{ F__opmask_reg [8]int8 } 10752 F__fpu_k7 struct{ F__opmask_reg [8]int8 } 10753 F__fpu_zmmh0 struct{ F__ymm_reg [32]int8 } 10754 F__fpu_zmmh1 struct{ F__ymm_reg [32]int8 } 10755 F__fpu_zmmh2 struct{ F__ymm_reg [32]int8 } 10756 F__fpu_zmmh3 struct{ F__ymm_reg [32]int8 } 10757 F__fpu_zmmh4 struct{ F__ymm_reg [32]int8 } 10758 F__fpu_zmmh5 struct{ F__ymm_reg [32]int8 } 10759 F__fpu_zmmh6 struct{ F__ymm_reg [32]int8 } 10760 F__fpu_zmmh7 struct{ F__ymm_reg [32]int8 } 10761 F__fpu_zmmh8 struct{ F__ymm_reg [32]int8 } 10762 F__fpu_zmmh9 struct{ F__ymm_reg [32]int8 } 10763 F__fpu_zmmh10 struct{ F__ymm_reg [32]int8 } 10764 F__fpu_zmmh11 struct{ F__ymm_reg [32]int8 } 10765 F__fpu_zmmh12 struct{ F__ymm_reg [32]int8 } 10766 F__fpu_zmmh13 struct{ F__ymm_reg [32]int8 } 10767 F__fpu_zmmh14 struct{ F__ymm_reg [32]int8 } 10768 F__fpu_zmmh15 struct{ F__ymm_reg [32]int8 } 10769 F__fpu_zmm16 struct{ F__zmm_reg [64]int8 } 10770 F__fpu_zmm17 struct{ F__zmm_reg [64]int8 } 10771 F__fpu_zmm18 struct{ F__zmm_reg [64]int8 } 10772 F__fpu_zmm19 struct{ F__zmm_reg [64]int8 } 10773 F__fpu_zmm20 struct{ F__zmm_reg [64]int8 } 10774 F__fpu_zmm21 struct{ F__zmm_reg [64]int8 } 10775 F__fpu_zmm22 struct{ F__zmm_reg [64]int8 } 10776 F__fpu_zmm23 struct{ F__zmm_reg [64]int8 } 10777 F__fpu_zmm24 struct{ F__zmm_reg [64]int8 } 10778 F__fpu_zmm25 struct{ F__zmm_reg [64]int8 } 10779 F__fpu_zmm26 struct{ F__zmm_reg [64]int8 } 10780 F__fpu_zmm27 struct{ F__zmm_reg [64]int8 } 10781 F__fpu_zmm28 struct{ F__zmm_reg [64]int8 } 10782 F__fpu_zmm29 struct{ F__zmm_reg [64]int8 } 10783 F__fpu_zmm30 struct{ F__zmm_reg [64]int8 } 10784 F__fpu_zmm31 struct{ F__zmm_reg [64]int8 } 10785 } 10786 F__ccgo_pad1 [4]byte 10787 } /* _mcontext.h:130:1 */ 10788 10789 type X__darwin_mcontext_avx512_64_full = struct { 10790 F__es struct { 10791 F__trapno X__uint16_t 10792 F__cpu X__uint16_t 10793 F__err X__uint32_t 10794 F__faultvaddr X__uint64_t 10795 } 10796 F__ss struct { 10797 F__ss64 struct { 10798 F__rax X__uint64_t 10799 F__rbx X__uint64_t 10800 F__rcx X__uint64_t 10801 F__rdx X__uint64_t 10802 F__rdi X__uint64_t 10803 F__rsi X__uint64_t 10804 F__rbp X__uint64_t 10805 F__rsp X__uint64_t 10806 F__r8 X__uint64_t 10807 F__r9 X__uint64_t 10808 F__r10 X__uint64_t 10809 F__r11 X__uint64_t 10810 F__r12 X__uint64_t 10811 F__r13 X__uint64_t 10812 F__r14 X__uint64_t 10813 F__r15 X__uint64_t 10814 F__rip X__uint64_t 10815 F__rflags X__uint64_t 10816 F__cs X__uint64_t 10817 F__fs X__uint64_t 10818 F__gs X__uint64_t 10819 } 10820 F__ds X__uint64_t 10821 F__es X__uint64_t 10822 F__ss X__uint64_t 10823 F__gsbase X__uint64_t 10824 } 10825 F__fs struct { 10826 F__fpu_reserved [2]int32 10827 F__fpu_fcw struct { 10828 F__ccgo_pad1 [0]uint16 10829 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 10830 } 10831 F__fpu_fsw struct { 10832 F__ccgo_pad1 [0]uint16 10833 F__invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 10834 } 10835 F__fpu_ftw X__uint8_t 10836 F__fpu_rsrv1 X__uint8_t 10837 F__fpu_fop X__uint16_t 10838 F__fpu_ip X__uint32_t 10839 F__fpu_cs X__uint16_t 10840 F__fpu_rsrv2 X__uint16_t 10841 F__fpu_dp X__uint32_t 10842 F__fpu_ds X__uint16_t 10843 F__fpu_rsrv3 X__uint16_t 10844 F__fpu_mxcsr X__uint32_t 10845 F__fpu_mxcsrmask X__uint32_t 10846 F__fpu_stmm0 struct { 10847 F__mmst_reg [10]int8 10848 F__mmst_rsrv [6]int8 10849 } 10850 F__fpu_stmm1 struct { 10851 F__mmst_reg [10]int8 10852 F__mmst_rsrv [6]int8 10853 } 10854 F__fpu_stmm2 struct { 10855 F__mmst_reg [10]int8 10856 F__mmst_rsrv [6]int8 10857 } 10858 F__fpu_stmm3 struct { 10859 F__mmst_reg [10]int8 10860 F__mmst_rsrv [6]int8 10861 } 10862 F__fpu_stmm4 struct { 10863 F__mmst_reg [10]int8 10864 F__mmst_rsrv [6]int8 10865 } 10866 F__fpu_stmm5 struct { 10867 F__mmst_reg [10]int8 10868 F__mmst_rsrv [6]int8 10869 } 10870 F__fpu_stmm6 struct { 10871 F__mmst_reg [10]int8 10872 F__mmst_rsrv [6]int8 10873 } 10874 F__fpu_stmm7 struct { 10875 F__mmst_reg [10]int8 10876 F__mmst_rsrv [6]int8 10877 } 10878 F__fpu_xmm0 struct{ F__xmm_reg [16]int8 } 10879 F__fpu_xmm1 struct{ F__xmm_reg [16]int8 } 10880 F__fpu_xmm2 struct{ F__xmm_reg [16]int8 } 10881 F__fpu_xmm3 struct{ F__xmm_reg [16]int8 } 10882 F__fpu_xmm4 struct{ F__xmm_reg [16]int8 } 10883 F__fpu_xmm5 struct{ F__xmm_reg [16]int8 } 10884 F__fpu_xmm6 struct{ F__xmm_reg [16]int8 } 10885 F__fpu_xmm7 struct{ F__xmm_reg [16]int8 } 10886 F__fpu_xmm8 struct{ F__xmm_reg [16]int8 } 10887 F__fpu_xmm9 struct{ F__xmm_reg [16]int8 } 10888 F__fpu_xmm10 struct{ F__xmm_reg [16]int8 } 10889 F__fpu_xmm11 struct{ F__xmm_reg [16]int8 } 10890 F__fpu_xmm12 struct{ F__xmm_reg [16]int8 } 10891 F__fpu_xmm13 struct{ F__xmm_reg [16]int8 } 10892 F__fpu_xmm14 struct{ F__xmm_reg [16]int8 } 10893 F__fpu_xmm15 struct{ F__xmm_reg [16]int8 } 10894 F__fpu_rsrv4 [96]int8 10895 F__fpu_reserved1 int32 10896 F__avx_reserved1 [64]int8 10897 F__fpu_ymmh0 struct{ F__xmm_reg [16]int8 } 10898 F__fpu_ymmh1 struct{ F__xmm_reg [16]int8 } 10899 F__fpu_ymmh2 struct{ F__xmm_reg [16]int8 } 10900 F__fpu_ymmh3 struct{ F__xmm_reg [16]int8 } 10901 F__fpu_ymmh4 struct{ F__xmm_reg [16]int8 } 10902 F__fpu_ymmh5 struct{ F__xmm_reg [16]int8 } 10903 F__fpu_ymmh6 struct{ F__xmm_reg [16]int8 } 10904 F__fpu_ymmh7 struct{ F__xmm_reg [16]int8 } 10905 F__fpu_ymmh8 struct{ F__xmm_reg [16]int8 } 10906 F__fpu_ymmh9 struct{ F__xmm_reg [16]int8 } 10907 F__fpu_ymmh10 struct{ F__xmm_reg [16]int8 } 10908 F__fpu_ymmh11 struct{ F__xmm_reg [16]int8 } 10909 F__fpu_ymmh12 struct{ F__xmm_reg [16]int8 } 10910 F__fpu_ymmh13 struct{ F__xmm_reg [16]int8 } 10911 F__fpu_ymmh14 struct{ F__xmm_reg [16]int8 } 10912 F__fpu_ymmh15 struct{ F__xmm_reg [16]int8 } 10913 F__fpu_k0 struct{ F__opmask_reg [8]int8 } 10914 F__fpu_k1 struct{ F__opmask_reg [8]int8 } 10915 F__fpu_k2 struct{ F__opmask_reg [8]int8 } 10916 F__fpu_k3 struct{ F__opmask_reg [8]int8 } 10917 F__fpu_k4 struct{ F__opmask_reg [8]int8 } 10918 F__fpu_k5 struct{ F__opmask_reg [8]int8 } 10919 F__fpu_k6 struct{ F__opmask_reg [8]int8 } 10920 F__fpu_k7 struct{ F__opmask_reg [8]int8 } 10921 F__fpu_zmmh0 struct{ F__ymm_reg [32]int8 } 10922 F__fpu_zmmh1 struct{ F__ymm_reg [32]int8 } 10923 F__fpu_zmmh2 struct{ F__ymm_reg [32]int8 } 10924 F__fpu_zmmh3 struct{ F__ymm_reg [32]int8 } 10925 F__fpu_zmmh4 struct{ F__ymm_reg [32]int8 } 10926 F__fpu_zmmh5 struct{ F__ymm_reg [32]int8 } 10927 F__fpu_zmmh6 struct{ F__ymm_reg [32]int8 } 10928 F__fpu_zmmh7 struct{ F__ymm_reg [32]int8 } 10929 F__fpu_zmmh8 struct{ F__ymm_reg [32]int8 } 10930 F__fpu_zmmh9 struct{ F__ymm_reg [32]int8 } 10931 F__fpu_zmmh10 struct{ F__ymm_reg [32]int8 } 10932 F__fpu_zmmh11 struct{ F__ymm_reg [32]int8 } 10933 F__fpu_zmmh12 struct{ F__ymm_reg [32]int8 } 10934 F__fpu_zmmh13 struct{ F__ymm_reg [32]int8 } 10935 F__fpu_zmmh14 struct{ F__ymm_reg [32]int8 } 10936 F__fpu_zmmh15 struct{ F__ymm_reg [32]int8 } 10937 F__fpu_zmm16 struct{ F__zmm_reg [64]int8 } 10938 F__fpu_zmm17 struct{ F__zmm_reg [64]int8 } 10939 F__fpu_zmm18 struct{ F__zmm_reg [64]int8 } 10940 F__fpu_zmm19 struct{ F__zmm_reg [64]int8 } 10941 F__fpu_zmm20 struct{ F__zmm_reg [64]int8 } 10942 F__fpu_zmm21 struct{ F__zmm_reg [64]int8 } 10943 F__fpu_zmm22 struct{ F__zmm_reg [64]int8 } 10944 F__fpu_zmm23 struct{ F__zmm_reg [64]int8 } 10945 F__fpu_zmm24 struct{ F__zmm_reg [64]int8 } 10946 F__fpu_zmm25 struct{ F__zmm_reg [64]int8 } 10947 F__fpu_zmm26 struct{ F__zmm_reg [64]int8 } 10948 F__fpu_zmm27 struct{ F__zmm_reg [64]int8 } 10949 F__fpu_zmm28 struct{ F__zmm_reg [64]int8 } 10950 F__fpu_zmm29 struct{ F__zmm_reg [64]int8 } 10951 F__fpu_zmm30 struct{ F__zmm_reg [64]int8 } 10952 F__fpu_zmm31 struct{ F__zmm_reg [64]int8 } 10953 } 10954 F__ccgo_pad1 [4]byte 10955 } /* _mcontext.h:138:1 */ 10956 10957 type Mcontext_t = uintptr /* _mcontext.h:204:33 */ 10958 10959 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 10960 // 10961 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10962 // 10963 // This file contains Original Code and/or Modifications of Original Code 10964 // as defined in and that are subject to the Apple Public Source License 10965 // Version 2.0 (the 'License'). You may not use this file except in 10966 // compliance with the License. The rights granted to you under the License 10967 // may not be used to create, or enable the creation or redistribution of, 10968 // unlawful or unlicensed copies of an Apple operating system, or to 10969 // circumvent, violate, or enable the circumvention or violation of, any 10970 // terms of an Apple operating system software license agreement. 10971 // 10972 // Please obtain a copy of the License at 10973 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10974 // 10975 // The Original Code and all software distributed under the License are 10976 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10977 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10978 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10979 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10980 // Please see the License for the specific language governing rights and 10981 // limitations under the License. 10982 // 10983 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10984 10985 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 10986 // 10987 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10988 // 10989 // This file contains Original Code and/or Modifications of Original Code 10990 // as defined in and that are subject to the Apple Public Source License 10991 // Version 2.0 (the 'License'). You may not use this file except in 10992 // compliance with the License. The rights granted to you under the License 10993 // may not be used to create, or enable the creation or redistribution of, 10994 // unlawful or unlicensed copies of an Apple operating system, or to 10995 // circumvent, violate, or enable the circumvention or violation of, any 10996 // terms of an Apple operating system software license agreement. 10997 // 10998 // Please obtain a copy of the License at 10999 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11000 // 11001 // The Original Code and all software distributed under the License are 11002 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11003 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11004 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11005 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11006 // Please see the License for the specific language governing rights and 11007 // limitations under the License. 11008 // 11009 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11010 11011 // Structure used in sigaltstack call. 11012 11013 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 11014 // 11015 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11016 // 11017 // This file contains Original Code and/or Modifications of Original Code 11018 // as defined in and that are subject to the Apple Public Source License 11019 // Version 2.0 (the 'License'). You may not use this file except in 11020 // compliance with the License. The rights granted to you under the License 11021 // may not be used to create, or enable the creation or redistribution of, 11022 // unlawful or unlicensed copies of an Apple operating system, or to 11023 // circumvent, violate, or enable the circumvention or violation of, any 11024 // terms of an Apple operating system software license agreement. 11025 // 11026 // Please obtain a copy of the License at 11027 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11028 // 11029 // The Original Code and all software distributed under the License are 11030 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11031 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11032 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11033 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11034 // Please see the License for the specific language governing rights and 11035 // limitations under the License. 11036 // 11037 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11038 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 11039 // Copyright (c) 1991, 1993 11040 // The Regents of the University of California. All rights reserved. 11041 // 11042 // This code is derived from software contributed to Berkeley by 11043 // Berkeley Software Design, Inc. 11044 // 11045 // Redistribution and use in source and binary forms, with or without 11046 // modification, are permitted provided that the following conditions 11047 // are met: 11048 // 1. Redistributions of source code must retain the above copyright 11049 // notice, this list of conditions and the following disclaimer. 11050 // 2. Redistributions in binary form must reproduce the above copyright 11051 // notice, this list of conditions and the following disclaimer in the 11052 // documentation and/or other materials provided with the distribution. 11053 // 3. All advertising materials mentioning features or use of this software 11054 // must display the following acknowledgement: 11055 // This product includes software developed by the University of 11056 // California, Berkeley and its contributors. 11057 // 4. Neither the name of the University nor the names of its contributors 11058 // may be used to endorse or promote products derived from this software 11059 // without specific prior written permission. 11060 // 11061 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 11062 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 11063 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 11064 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 11065 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 11066 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 11067 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 11068 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 11069 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 11070 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11071 // SUCH DAMAGE. 11072 // 11073 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 11074 11075 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 11076 // 11077 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11078 // 11079 // This file contains Original Code and/or Modifications of Original Code 11080 // as defined in and that are subject to the Apple Public Source License 11081 // Version 2.0 (the 'License'). You may not use this file except in 11082 // compliance with the License. The rights granted to you under the License 11083 // may not be used to create, or enable the creation or redistribution of, 11084 // unlawful or unlicensed copies of an Apple operating system, or to 11085 // circumvent, violate, or enable the circumvention or violation of, any 11086 // terms of an Apple operating system software license agreement. 11087 // 11088 // Please obtain a copy of the License at 11089 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11090 // 11091 // The Original Code and all software distributed under the License are 11092 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11093 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11094 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11095 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11096 // Please see the License for the specific language governing rights and 11097 // limitations under the License. 11098 // 11099 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11100 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 11101 11102 type X__darwin_sigaltstack = struct { 11103 Fss_sp uintptr 11104 Fss_size X__darwin_size_t 11105 Fss_flags int32 11106 F__ccgo_pad1 [4]byte 11107 } /* _sigaltstack.h:42:1 */ 11108 11109 type Stack_t = X__darwin_sigaltstack /* _sigaltstack.h:48:33 */ // [???] signal stack 11110 11111 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 11112 // 11113 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11114 // 11115 // This file contains Original Code and/or Modifications of Original Code 11116 // as defined in and that are subject to the Apple Public Source License 11117 // Version 2.0 (the 'License'). You may not use this file except in 11118 // compliance with the License. The rights granted to you under the License 11119 // may not be used to create, or enable the creation or redistribution of, 11120 // unlawful or unlicensed copies of an Apple operating system, or to 11121 // circumvent, violate, or enable the circumvention or violation of, any 11122 // terms of an Apple operating system software license agreement. 11123 // 11124 // Please obtain a copy of the License at 11125 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11126 // 11127 // The Original Code and all software distributed under the License are 11128 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11129 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11130 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11131 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11132 // Please see the License for the specific language governing rights and 11133 // limitations under the License. 11134 // 11135 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11136 11137 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 11138 // 11139 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11140 // 11141 // This file contains Original Code and/or Modifications of Original Code 11142 // as defined in and that are subject to the Apple Public Source License 11143 // Version 2.0 (the 'License'). You may not use this file except in 11144 // compliance with the License. The rights granted to you under the License 11145 // may not be used to create, or enable the creation or redistribution of, 11146 // unlawful or unlicensed copies of an Apple operating system, or to 11147 // circumvent, violate, or enable the circumvention or violation of, any 11148 // terms of an Apple operating system software license agreement. 11149 // 11150 // Please obtain a copy of the License at 11151 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11152 // 11153 // The Original Code and all software distributed under the License are 11154 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11155 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11156 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11157 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11158 // Please see the License for the specific language governing rights and 11159 // limitations under the License. 11160 // 11161 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11162 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 11163 // Copyright (c) 1991, 1993 11164 // The Regents of the University of California. All rights reserved. 11165 // 11166 // This code is derived from software contributed to Berkeley by 11167 // Berkeley Software Design, Inc. 11168 // 11169 // Redistribution and use in source and binary forms, with or without 11170 // modification, are permitted provided that the following conditions 11171 // are met: 11172 // 1. Redistributions of source code must retain the above copyright 11173 // notice, this list of conditions and the following disclaimer. 11174 // 2. Redistributions in binary form must reproduce the above copyright 11175 // notice, this list of conditions and the following disclaimer in the 11176 // documentation and/or other materials provided with the distribution. 11177 // 3. All advertising materials mentioning features or use of this software 11178 // must display the following acknowledgement: 11179 // This product includes software developed by the University of 11180 // California, Berkeley and its contributors. 11181 // 4. Neither the name of the University nor the names of its contributors 11182 // may be used to endorse or promote products derived from this software 11183 // without specific prior written permission. 11184 // 11185 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 11186 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 11187 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 11188 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 11189 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 11190 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 11191 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 11192 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 11193 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 11194 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11195 // SUCH DAMAGE. 11196 // 11197 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 11198 11199 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 11200 // 11201 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11202 // 11203 // This file contains Original Code and/or Modifications of Original Code 11204 // as defined in and that are subject to the Apple Public Source License 11205 // Version 2.0 (the 'License'). You may not use this file except in 11206 // compliance with the License. The rights granted to you under the License 11207 // may not be used to create, or enable the creation or redistribution of, 11208 // unlawful or unlicensed copies of an Apple operating system, or to 11209 // circumvent, violate, or enable the circumvention or violation of, any 11210 // terms of an Apple operating system software license agreement. 11211 // 11212 // Please obtain a copy of the License at 11213 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11214 // 11215 // The Original Code and all software distributed under the License are 11216 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11217 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11218 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11219 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11220 // Please see the License for the specific language governing rights and 11221 // limitations under the License. 11222 // 11223 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11224 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 11225 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 11226 // 11227 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11228 // 11229 // This file contains Original Code and/or Modifications of Original Code 11230 // as defined in and that are subject to the Apple Public Source License 11231 // Version 2.0 (the 'License'). You may not use this file except in 11232 // compliance with the License. The rights granted to you under the License 11233 // may not be used to create, or enable the creation or redistribution of, 11234 // unlawful or unlicensed copies of an Apple operating system, or to 11235 // circumvent, violate, or enable the circumvention or violation of, any 11236 // terms of an Apple operating system software license agreement. 11237 // 11238 // Please obtain a copy of the License at 11239 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11240 // 11241 // The Original Code and all software distributed under the License are 11242 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11243 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11244 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11245 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11246 // Please see the License for the specific language governing rights and 11247 // limitations under the License. 11248 // 11249 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11250 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 11251 // 11252 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11253 // 11254 // This file contains Original Code and/or Modifications of Original Code 11255 // as defined in and that are subject to the Apple Public Source License 11256 // Version 2.0 (the 'License'). You may not use this file except in 11257 // compliance with the License. The rights granted to you under the License 11258 // may not be used to create, or enable the creation or redistribution of, 11259 // unlawful or unlicensed copies of an Apple operating system, or to 11260 // circumvent, violate, or enable the circumvention or violation of, any 11261 // terms of an Apple operating system software license agreement. 11262 // 11263 // Please obtain a copy of the License at 11264 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11265 // 11266 // The Original Code and all software distributed under the License are 11267 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11268 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11269 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11270 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11271 // Please see the License for the specific language governing rights and 11272 // limitations under the License. 11273 // 11274 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11275 11276 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 11277 // 11278 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11279 // 11280 // This file contains Original Code and/or Modifications of Original Code 11281 // as defined in and that are subject to the Apple Public Source License 11282 // Version 2.0 (the 'License'). You may not use this file except in 11283 // compliance with the License. The rights granted to you under the License 11284 // may not be used to create, or enable the creation or redistribution of, 11285 // unlawful or unlicensed copies of an Apple operating system, or to 11286 // circumvent, violate, or enable the circumvention or violation of, any 11287 // terms of an Apple operating system software license agreement. 11288 // 11289 // Please obtain a copy of the License at 11290 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11291 // 11292 // The Original Code and all software distributed under the License are 11293 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11294 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11295 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11296 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11297 // Please see the License for the specific language governing rights and 11298 // limitations under the License. 11299 // 11300 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11301 11302 type X__darwin_ucontext = struct { 11303 Fuc_onstack int32 11304 Fuc_sigmask X__darwin_sigset_t 11305 Fuc_stack struct { 11306 Fss_sp uintptr 11307 Fss_size X__darwin_size_t 11308 Fss_flags int32 11309 F__ccgo_pad1 [4]byte 11310 } 11311 Fuc_link uintptr 11312 Fuc_mcsize X__darwin_size_t 11313 Fuc_mcontext uintptr 11314 } /* _ucontext.h:42:1 */ 11315 11316 // user context 11317 type Ucontext_t = X__darwin_ucontext /* _ucontext.h:56:33 */ // [???] user context 11318 11319 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 11320 // 11321 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11322 // 11323 // This file contains Original Code and/or Modifications of Original Code 11324 // as defined in and that are subject to the Apple Public Source License 11325 // Version 2.0 (the 'License'). You may not use this file except in 11326 // compliance with the License. The rights granted to you under the License 11327 // may not be used to create, or enable the creation or redistribution of, 11328 // unlawful or unlicensed copies of an Apple operating system, or to 11329 // circumvent, violate, or enable the circumvention or violation of, any 11330 // terms of an Apple operating system software license agreement. 11331 // 11332 // Please obtain a copy of the License at 11333 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11334 // 11335 // The Original Code and all software distributed under the License are 11336 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11337 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11338 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11339 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11340 // Please see the License for the specific language governing rights and 11341 // limitations under the License. 11342 // 11343 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11344 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 11345 // 11346 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11347 // 11348 // This file contains Original Code and/or Modifications of Original Code 11349 // as defined in and that are subject to the Apple Public Source License 11350 // Version 2.0 (the 'License'). You may not use this file except in 11351 // compliance with the License. The rights granted to you under the License 11352 // may not be used to create, or enable the creation or redistribution of, 11353 // unlawful or unlicensed copies of an Apple operating system, or to 11354 // circumvent, violate, or enable the circumvention or violation of, any 11355 // terms of an Apple operating system software license agreement. 11356 // 11357 // Please obtain a copy of the License at 11358 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11359 // 11360 // The Original Code and all software distributed under the License are 11361 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11362 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11363 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11364 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11365 // Please see the License for the specific language governing rights and 11366 // limitations under the License. 11367 // 11368 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11369 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 11370 // 11371 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11372 // 11373 // This file contains Original Code and/or Modifications of Original Code 11374 // as defined in and that are subject to the Apple Public Source License 11375 // Version 2.0 (the 'License'). You may not use this file except in 11376 // compliance with the License. The rights granted to you under the License 11377 // may not be used to create, or enable the creation or redistribution of, 11378 // unlawful or unlicensed copies of an Apple operating system, or to 11379 // circumvent, violate, or enable the circumvention or violation of, any 11380 // terms of an Apple operating system software license agreement. 11381 // 11382 // Please obtain a copy of the License at 11383 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11384 // 11385 // The Original Code and all software distributed under the License are 11386 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11387 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11388 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11389 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11390 // Please see the License for the specific language governing rights and 11391 // limitations under the License. 11392 // 11393 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11394 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 11395 // 11396 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11397 // 11398 // This file contains Original Code and/or Modifications of Original Code 11399 // as defined in and that are subject to the Apple Public Source License 11400 // Version 2.0 (the 'License'). You may not use this file except in 11401 // compliance with the License. The rights granted to you under the License 11402 // may not be used to create, or enable the creation or redistribution of, 11403 // unlawful or unlicensed copies of an Apple operating system, or to 11404 // circumvent, violate, or enable the circumvention or violation of, any 11405 // terms of an Apple operating system software license agreement. 11406 // 11407 // Please obtain a copy of the License at 11408 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11409 // 11410 // The Original Code and all software distributed under the License are 11411 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11412 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11413 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11414 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11415 // Please see the License for the specific language governing rights and 11416 // limitations under the License. 11417 // 11418 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11419 11420 type Sigval = struct { 11421 F__ccgo_pad1 [0]uint64 11422 Fsival_int int32 11423 F__ccgo_pad2 [4]byte 11424 } /* signal.h:158:1 */ 11425 11426 type Sigevent = struct { 11427 Fsigev_notify int32 11428 Fsigev_signo int32 11429 Fsigev_value struct { 11430 F__ccgo_pad1 [0]uint64 11431 Fsival_int int32 11432 F__ccgo_pad2 [4]byte 11433 } 11434 Fsigev_notify_function uintptr 11435 Fsigev_notify_attributes uintptr 11436 } /* signal.h:168:1 */ 11437 11438 type X__siginfo = struct { 11439 Fsi_signo int32 11440 Fsi_errno int32 11441 Fsi_code int32 11442 Fsi_pid Pid_t 11443 Fsi_uid Uid_t 11444 Fsi_status int32 11445 Fsi_addr uintptr 11446 Fsi_value struct { 11447 F__ccgo_pad1 [0]uint64 11448 Fsival_int int32 11449 F__ccgo_pad2 [4]byte 11450 } 11451 Fsi_band int64 11452 F__pad [7]uint64 11453 } /* signal.h:177:9 */ 11454 11455 type Siginfo_t = X__siginfo /* signal.h:188:3 */ 11456 11457 // When the signal is SIGILL or SIGFPE, si_addr contains the address of 11458 // the faulting instruction. 11459 // When the signal is SIGSEGV or SIGBUS, si_addr contains the address of 11460 // the faulting memory reference. Although for x86 there are cases of SIGSEGV 11461 // for which si_addr cannot be determined and is NULL. 11462 // If the signal is SIGCHLD, the si_pid field will contain the child process ID, 11463 // si_status contains the exit value or signal and 11464 // si_uid contains the real user ID of the process that sent the signal. 11465 11466 // Values for si_code 11467 11468 // Codes for SIGILL 11469 11470 // Codes for SIGFPE 11471 11472 // Codes for SIGSEGV 11473 11474 // Codes for SIGBUS 11475 11476 // Codes for SIGTRAP 11477 11478 // Codes for SIGCHLD 11479 11480 // Codes for SIGPOLL 11481 11482 // union for signal handlers 11483 type X__sigaction_u = struct{ F__sa_handler uintptr } /* signal.h:269:1 */ 11484 11485 // Signal vector template for Kernel user boundary 11486 type X__sigaction = struct { 11487 F__sigaction_u struct{ F__sa_handler uintptr } 11488 Fsa_tramp uintptr 11489 Fsa_mask Sigset_t 11490 Fsa_flags int32 11491 } /* signal.h:276:1 */ 11492 11493 // Signal vector "template" used in sigaction call. 11494 type Sigaction = struct { 11495 F__sigaction_u struct{ F__sa_handler uintptr } 11496 Fsa_mask Sigset_t 11497 Fsa_flags int32 11498 } /* signal.h:286:1 */ 11499 11500 // if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler. 11501 11502 // This will provide 64bit register set in a 32bit user address space 11503 11504 // the following are the only bits we support from user space, the 11505 // rest are for kernel use only. 11506 11507 // Flags for sigprocmask: 11508 11509 // POSIX 1003.1b required values. 11510 11511 type Sig_t = uintptr /* signal.h:331:14 */ // type of signal function 11512 11513 // Structure used in sigaltstack call. 11514 11515 // 4.3 compatibility: 11516 // Signal vector "template" used in sigvec call. 11517 type Sigvec = struct { 11518 Fsv_handler uintptr 11519 Fsv_mask int32 11520 Fsv_flags int32 11521 } /* signal.h:348:1 */ 11522 11523 // Structure used in sigstack call. 11524 type Sigstack = struct { 11525 Fss_sp uintptr 11526 Fss_onstack int32 11527 F__ccgo_pad1 [4]byte 11528 } /* signal.h:367:1 */ 11529 11530 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 11531 // 11532 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11533 // 11534 // This file contains Original Code and/or Modifications of Original Code 11535 // as defined in and that are subject to the Apple Public Source License 11536 // Version 2.0 (the 'License'). You may not use this file except in 11537 // compliance with the License. The rights granted to you under the License 11538 // may not be used to create, or enable the creation or redistribution of, 11539 // unlawful or unlicensed copies of an Apple operating system, or to 11540 // circumvent, violate, or enable the circumvention or violation of, any 11541 // terms of an Apple operating system software license agreement. 11542 // 11543 // Please obtain a copy of the License at 11544 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11545 // 11546 // The Original Code and all software distributed under the License are 11547 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11548 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11549 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11550 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11551 // Please see the License for the specific language governing rights and 11552 // limitations under the License. 11553 // 11554 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11555 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 11556 // Copyright (c) 1982, 1986, 1993 11557 // The Regents of the University of California. All rights reserved. 11558 // 11559 // Redistribution and use in source and binary forms, with or without 11560 // modification, are permitted provided that the following conditions 11561 // are met: 11562 // 1. Redistributions of source code must retain the above copyright 11563 // notice, this list of conditions and the following disclaimer. 11564 // 2. Redistributions in binary form must reproduce the above copyright 11565 // notice, this list of conditions and the following disclaimer in the 11566 // documentation and/or other materials provided with the distribution. 11567 // 3. All advertising materials mentioning features or use of this software 11568 // must display the following acknowledgement: 11569 // This product includes software developed by the University of 11570 // California, Berkeley and its contributors. 11571 // 4. Neither the name of the University nor the names of its contributors 11572 // may be used to endorse or promote products derived from this software 11573 // without specific prior written permission. 11574 // 11575 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 11576 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 11577 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 11578 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 11579 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 11580 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 11581 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 11582 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 11583 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 11584 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11585 // SUCH DAMAGE. 11586 // 11587 // @(#)resource.h 8.2 (Berkeley) 1/4/94 11588 11589 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 11590 // 11591 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11592 // 11593 // This file contains Original Code and/or Modifications of Original Code 11594 // as defined in and that are subject to the Apple Public Source License 11595 // Version 2.0 (the 'License'). You may not use this file except in 11596 // compliance with the License. The rights granted to you under the License 11597 // may not be used to create, or enable the creation or redistribution of, 11598 // unlawful or unlicensed copies of an Apple operating system, or to 11599 // circumvent, violate, or enable the circumvention or violation of, any 11600 // terms of an Apple operating system software license agreement. 11601 // 11602 // Please obtain a copy of the License at 11603 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11604 // 11605 // The Original Code and all software distributed under the License are 11606 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11607 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11608 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11609 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11610 // Please see the License for the specific language governing rights and 11611 // limitations under the License. 11612 // 11613 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11614 11615 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 11616 // 11617 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11618 // 11619 // This file contains Original Code and/or Modifications of Original Code 11620 // as defined in and that are subject to the Apple Public Source License 11621 // Version 2.0 (the 'License'). You may not use this file except in 11622 // compliance with the License. The rights granted to you under the License 11623 // may not be used to create, or enable the creation or redistribution of, 11624 // unlawful or unlicensed copies of an Apple operating system, or to 11625 // circumvent, violate, or enable the circumvention or violation of, any 11626 // terms of an Apple operating system software license agreement. 11627 // 11628 // Please obtain a copy of the License at 11629 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11630 // 11631 // The Original Code and all software distributed under the License are 11632 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11633 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11634 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11635 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11636 // Please see the License for the specific language governing rights and 11637 // limitations under the License. 11638 // 11639 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11640 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 11641 // Copyright (c) 1991, 1993 11642 // The Regents of the University of California. All rights reserved. 11643 // 11644 // This code is derived from software contributed to Berkeley by 11645 // Berkeley Software Design, Inc. 11646 // 11647 // Redistribution and use in source and binary forms, with or without 11648 // modification, are permitted provided that the following conditions 11649 // are met: 11650 // 1. Redistributions of source code must retain the above copyright 11651 // notice, this list of conditions and the following disclaimer. 11652 // 2. Redistributions in binary form must reproduce the above copyright 11653 // notice, this list of conditions and the following disclaimer in the 11654 // documentation and/or other materials provided with the distribution. 11655 // 3. All advertising materials mentioning features or use of this software 11656 // must display the following acknowledgement: 11657 // This product includes software developed by the University of 11658 // California, Berkeley and its contributors. 11659 // 4. Neither the name of the University nor the names of its contributors 11660 // may be used to endorse or promote products derived from this software 11661 // without specific prior written permission. 11662 // 11663 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 11664 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 11665 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 11666 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 11667 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 11668 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 11669 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 11670 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 11671 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 11672 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11673 // SUCH DAMAGE. 11674 // 11675 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 11676 11677 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 11678 // 11679 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11680 // 11681 // This file contains Original Code and/or Modifications of Original Code 11682 // as defined in and that are subject to the Apple Public Source License 11683 // Version 2.0 (the 'License'). You may not use this file except in 11684 // compliance with the License. The rights granted to you under the License 11685 // may not be used to create, or enable the creation or redistribution of, 11686 // unlawful or unlicensed copies of an Apple operating system, or to 11687 // circumvent, violate, or enable the circumvention or violation of, any 11688 // terms of an Apple operating system software license agreement. 11689 // 11690 // Please obtain a copy of the License at 11691 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11692 // 11693 // The Original Code and all software distributed under the License are 11694 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11695 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11696 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11697 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11698 // Please see the License for the specific language governing rights and 11699 // limitations under the License. 11700 // 11701 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11702 11703 // DO NOT EDIT THIS FILE. 11704 // 11705 // It has been auto-edited by fixincludes from: 11706 // 11707 // "/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdint.h" 11708 // 11709 // This had to be done to correct non-standard usages in the 11710 // original, manufacturer supplied header file. 11711 11712 // Copyright (c) 2000-2010 Apple Inc. 11713 // All rights reserved. 11714 11715 // from ISO/IEC 988:1999 spec 11716 11717 // 7.18.1.1 Exact-width integer types 11718 // Copyright (c) 2012 Apple Inc. All rights reserved. 11719 // 11720 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11721 // 11722 // This file contains Original Code and/or Modifications of Original Code 11723 // as defined in and that are subject to the Apple Public Source License 11724 // Version 2.0 (the 'License'). You may not use this file except in 11725 // compliance with the License. The rights granted to you under the License 11726 // may not be used to create, or enable the creation or redistribution of, 11727 // unlawful or unlicensed copies of an Apple operating system, or to 11728 // circumvent, violate, or enable the circumvention or violation of, any 11729 // terms of an Apple operating system software license agreement. 11730 // 11731 // Please obtain a copy of the License at 11732 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11733 // 11734 // The Original Code and all software distributed under the License are 11735 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11736 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11737 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11738 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11739 // Please see the License for the specific language governing rights and 11740 // limitations under the License. 11741 // 11742 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11743 // Copyright (c) 2012 Apple Inc. All rights reserved. 11744 // 11745 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11746 // 11747 // This file contains Original Code and/or Modifications of Original Code 11748 // as defined in and that are subject to the Apple Public Source License 11749 // Version 2.0 (the 'License'). You may not use this file except in 11750 // compliance with the License. The rights granted to you under the License 11751 // may not be used to create, or enable the creation or redistribution of, 11752 // unlawful or unlicensed copies of an Apple operating system, or to 11753 // circumvent, violate, or enable the circumvention or violation of, any 11754 // terms of an Apple operating system software license agreement. 11755 // 11756 // Please obtain a copy of the License at 11757 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11758 // 11759 // The Original Code and all software distributed under the License are 11760 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11761 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11762 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11763 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11764 // Please see the License for the specific language governing rights and 11765 // limitations under the License. 11766 // 11767 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11768 // Copyright (c) 2012 Apple Inc. All rights reserved. 11769 // 11770 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11771 // 11772 // This file contains Original Code and/or Modifications of Original Code 11773 // as defined in and that are subject to the Apple Public Source License 11774 // Version 2.0 (the 'License'). You may not use this file except in 11775 // compliance with the License. The rights granted to you under the License 11776 // may not be used to create, or enable the creation or redistribution of, 11777 // unlawful or unlicensed copies of an Apple operating system, or to 11778 // circumvent, violate, or enable the circumvention or violation of, any 11779 // terms of an Apple operating system software license agreement. 11780 // 11781 // Please obtain a copy of the License at 11782 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11783 // 11784 // The Original Code and all software distributed under the License are 11785 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11786 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11787 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11788 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11789 // Please see the License for the specific language governing rights and 11790 // limitations under the License. 11791 // 11792 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11793 // Copyright (c) 2012 Apple Inc. All rights reserved. 11794 // 11795 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11796 // 11797 // This file contains Original Code and/or Modifications of Original Code 11798 // as defined in and that are subject to the Apple Public Source License 11799 // Version 2.0 (the 'License'). You may not use this file except in 11800 // compliance with the License. The rights granted to you under the License 11801 // may not be used to create, or enable the creation or redistribution of, 11802 // unlawful or unlicensed copies of an Apple operating system, or to 11803 // circumvent, violate, or enable the circumvention or violation of, any 11804 // terms of an Apple operating system software license agreement. 11805 // 11806 // Please obtain a copy of the License at 11807 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11808 // 11809 // The Original Code and all software distributed under the License are 11810 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11811 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11812 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11813 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11814 // Please see the License for the specific language governing rights and 11815 // limitations under the License. 11816 // 11817 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11818 11819 // Copyright (c) 2012 Apple Inc. All rights reserved. 11820 // 11821 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11822 // 11823 // This file contains Original Code and/or Modifications of Original Code 11824 // as defined in and that are subject to the Apple Public Source License 11825 // Version 2.0 (the 'License'). You may not use this file except in 11826 // compliance with the License. The rights granted to you under the License 11827 // may not be used to create, or enable the creation or redistribution of, 11828 // unlawful or unlicensed copies of an Apple operating system, or to 11829 // circumvent, violate, or enable the circumvention or violation of, any 11830 // terms of an Apple operating system software license agreement. 11831 // 11832 // Please obtain a copy of the License at 11833 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11834 // 11835 // The Original Code and all software distributed under the License are 11836 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11837 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11838 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11839 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11840 // Please see the License for the specific language governing rights and 11841 // limitations under the License. 11842 // 11843 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11844 11845 type Uint8_t = uint8 /* _uint8_t.h:31:23 */ 11846 // Copyright (c) 2012 Apple Inc. All rights reserved. 11847 // 11848 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11849 // 11850 // This file contains Original Code and/or Modifications of Original Code 11851 // as defined in and that are subject to the Apple Public Source License 11852 // Version 2.0 (the 'License'). You may not use this file except in 11853 // compliance with the License. The rights granted to you under the License 11854 // may not be used to create, or enable the creation or redistribution of, 11855 // unlawful or unlicensed copies of an Apple operating system, or to 11856 // circumvent, violate, or enable the circumvention or violation of, any 11857 // terms of an Apple operating system software license agreement. 11858 // 11859 // Please obtain a copy of the License at 11860 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11861 // 11862 // The Original Code and all software distributed under the License are 11863 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11864 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11865 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11866 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11867 // Please see the License for the specific language governing rights and 11868 // limitations under the License. 11869 // 11870 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11871 11872 type Uint16_t = uint16 /* _uint16_t.h:31:24 */ 11873 // Copyright (c) 2012 Apple Inc. All rights reserved. 11874 // 11875 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11876 // 11877 // This file contains Original Code and/or Modifications of Original Code 11878 // as defined in and that are subject to the Apple Public Source License 11879 // Version 2.0 (the 'License'). You may not use this file except in 11880 // compliance with the License. The rights granted to you under the License 11881 // may not be used to create, or enable the creation or redistribution of, 11882 // unlawful or unlicensed copies of an Apple operating system, or to 11883 // circumvent, violate, or enable the circumvention or violation of, any 11884 // terms of an Apple operating system software license agreement. 11885 // 11886 // Please obtain a copy of the License at 11887 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11888 // 11889 // The Original Code and all software distributed under the License are 11890 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11891 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11892 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11893 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11894 // Please see the License for the specific language governing rights and 11895 // limitations under the License. 11896 // 11897 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11898 11899 // Copyright (c) 2012 Apple Inc. All rights reserved. 11900 // 11901 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11902 // 11903 // This file contains Original Code and/or Modifications of Original Code 11904 // as defined in and that are subject to the Apple Public Source License 11905 // Version 2.0 (the 'License'). You may not use this file except in 11906 // compliance with the License. The rights granted to you under the License 11907 // may not be used to create, or enable the creation or redistribution of, 11908 // unlawful or unlicensed copies of an Apple operating system, or to 11909 // circumvent, violate, or enable the circumvention or violation of, any 11910 // terms of an Apple operating system software license agreement. 11911 // 11912 // Please obtain a copy of the License at 11913 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11914 // 11915 // The Original Code and all software distributed under the License are 11916 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11917 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11918 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11919 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11920 // Please see the License for the specific language governing rights and 11921 // limitations under the License. 11922 // 11923 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11924 11925 // 7.18.1.2 Minimum-width integer types 11926 type Int_least8_t = Int8_t /* stdint.h:38:26 */ 11927 type Int_least16_t = Int16_t /* stdint.h:39:25 */ 11928 type Int_least32_t = Int32_t /* stdint.h:40:25 */ 11929 type Int_least64_t = Int64_t /* stdint.h:41:25 */ 11930 type Uint_least8_t = Uint8_t /* stdint.h:42:25 */ 11931 type Uint_least16_t = Uint16_t /* stdint.h:43:24 */ 11932 type Uint_least32_t = Uint32_t /* stdint.h:44:24 */ 11933 type Uint_least64_t = Uint64_t /* stdint.h:45:24 */ 11934 11935 // 7.18.1.3 Fastest-width integer types 11936 type Int_fast8_t = Int8_t /* stdint.h:49:27 */ 11937 type Int_fast16_t = Int16_t /* stdint.h:50:26 */ 11938 type Int_fast32_t = Int32_t /* stdint.h:51:26 */ 11939 type Int_fast64_t = Int64_t /* stdint.h:52:26 */ 11940 type Uint_fast8_t = Uint8_t /* stdint.h:53:26 */ 11941 type Uint_fast16_t = Uint16_t /* stdint.h:54:25 */ 11942 type Uint_fast32_t = Uint32_t /* stdint.h:55:25 */ 11943 type Uint_fast64_t = Uint64_t /* stdint.h:56:25 */ 11944 11945 // 7.18.1.4 Integer types capable of holding object pointers 11946 11947 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 11948 // 11949 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11950 // 11951 // This file contains Original Code and/or Modifications of Original Code 11952 // as defined in and that are subject to the Apple Public Source License 11953 // Version 2.0 (the 'License'). You may not use this file except in 11954 // compliance with the License. The rights granted to you under the License 11955 // may not be used to create, or enable the creation or redistribution of, 11956 // unlawful or unlicensed copies of an Apple operating system, or to 11957 // circumvent, violate, or enable the circumvention or violation of, any 11958 // terms of an Apple operating system software license agreement. 11959 // 11960 // Please obtain a copy of the License at 11961 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11962 // 11963 // The Original Code and all software distributed under the License are 11964 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11965 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11966 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11967 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11968 // Please see the License for the specific language governing rights and 11969 // limitations under the License. 11970 // 11971 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11972 11973 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 11974 // 11975 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11976 // 11977 // This file contains Original Code and/or Modifications of Original Code 11978 // as defined in and that are subject to the Apple Public Source License 11979 // Version 2.0 (the 'License'). You may not use this file except in 11980 // compliance with the License. The rights granted to you under the License 11981 // may not be used to create, or enable the creation or redistribution of, 11982 // unlawful or unlicensed copies of an Apple operating system, or to 11983 // circumvent, violate, or enable the circumvention or violation of, any 11984 // terms of an Apple operating system software license agreement. 11985 // 11986 // Please obtain a copy of the License at 11987 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11988 // 11989 // The Original Code and all software distributed under the License are 11990 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11991 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11992 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11993 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11994 // Please see the License for the specific language governing rights and 11995 // limitations under the License. 11996 // 11997 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11998 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 11999 // 12000 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12001 // 12002 // This file contains Original Code and/or Modifications of Original Code 12003 // as defined in and that are subject to the Apple Public Source License 12004 // Version 2.0 (the 'License'). You may not use this file except in 12005 // compliance with the License. The rights granted to you under the License 12006 // may not be used to create, or enable the creation or redistribution of, 12007 // unlawful or unlicensed copies of an Apple operating system, or to 12008 // circumvent, violate, or enable the circumvention or violation of, any 12009 // terms of an Apple operating system software license agreement. 12010 // 12011 // Please obtain a copy of the License at 12012 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12013 // 12014 // The Original Code and all software distributed under the License are 12015 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12016 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12017 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12018 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12019 // Please see the License for the specific language governing rights and 12020 // limitations under the License. 12021 // 12022 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12023 12024 // 7.18.1.5 Greatest-width integer types 12025 // Copyright (c) 2012 Apple Inc. All rights reserved. 12026 // 12027 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12028 // 12029 // This file contains Original Code and/or Modifications of Original Code 12030 // as defined in and that are subject to the Apple Public Source License 12031 // Version 2.0 (the 'License'). You may not use this file except in 12032 // compliance with the License. The rights granted to you under the License 12033 // may not be used to create, or enable the creation or redistribution of, 12034 // unlawful or unlicensed copies of an Apple operating system, or to 12035 // circumvent, violate, or enable the circumvention or violation of, any 12036 // terms of an Apple operating system software license agreement. 12037 // 12038 // Please obtain a copy of the License at 12039 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12040 // 12041 // The Original Code and all software distributed under the License are 12042 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12043 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12044 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12045 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12046 // Please see the License for the specific language governing rights and 12047 // limitations under the License. 12048 // 12049 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12050 12051 type Intmax_t = int64 /* _intmax_t.h:32:25 */ 12052 // Copyright (c) 2012 Apple Inc. All rights reserved. 12053 // 12054 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12055 // 12056 // This file contains Original Code and/or Modifications of Original Code 12057 // as defined in and that are subject to the Apple Public Source License 12058 // Version 2.0 (the 'License'). You may not use this file except in 12059 // compliance with the License. The rights granted to you under the License 12060 // may not be used to create, or enable the creation or redistribution of, 12061 // unlawful or unlicensed copies of an Apple operating system, or to 12062 // circumvent, violate, or enable the circumvention or violation of, any 12063 // terms of an Apple operating system software license agreement. 12064 // 12065 // Please obtain a copy of the License at 12066 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12067 // 12068 // The Original Code and all software distributed under the License are 12069 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12070 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12071 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12072 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12073 // Please see the License for the specific language governing rights and 12074 // limitations under the License. 12075 // 12076 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12077 12078 type Uintmax_t = uint64 /* _uintmax_t.h:32:26 */ 12079 12080 // 7.18.4 Macros for integer constants 12081 12082 // 7.18.2 Limits of specified-width integer types: 12083 // These #defines specify the minimum and maximum limits 12084 // of each of the types declared above. 12085 // 12086 // They must have "the same type as would an expression that is an 12087 // object of the corresponding type converted according to the integer 12088 // promotion". 12089 12090 // 7.18.2.1 Limits of exact-width integer types 12091 12092 // 12093 // Note: the literal "most negative int" cannot be written in C -- 12094 // the rules in the standard (section 6.4.4.1 in C99) will give it 12095 // an unsigned type, so INT32_MIN (and the most negative member of 12096 // any larger signed type) must be written via a constant expression. 12097 // 12098 12099 // 7.18.2.2 Limits of minimum-width integer types 12100 12101 // 7.18.2.3 Limits of fastest minimum-width integer types 12102 12103 // 7.18.2.4 Limits of integer types capable of holding object pointers 12104 12105 // 7.18.2.5 Limits of greatest-width integer types 12106 12107 // 7.18.3 "Other" 12108 12109 // WCHAR_MIN should be 0 if wchar_t is an unsigned type and 12110 // (-WCHAR_MAX-1) if wchar_t is a signed type. Unfortunately, 12111 // it turns out that -fshort-wchar changes the signedness of 12112 // the type. 12113 12114 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 12115 // 12116 // @APPLE_LICENSE_HEADER_START@ 12117 // 12118 // This file contains Original Code and/or Modifications of Original Code 12119 // as defined in and that are subject to the Apple Public Source License 12120 // Version 2.0 (the 'License'). You may not use this file except in 12121 // compliance with the License. Please obtain a copy of the License at 12122 // http://www.opensource.apple.com/apsl/ and read it before using this 12123 // file. 12124 // 12125 // The Original Code and all software distributed under the License are 12126 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12127 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12128 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12129 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12130 // Please see the License for the specific language governing rights and 12131 // limitations under the License. 12132 // 12133 // @APPLE_LICENSE_HEADER_END@ 12134 12135 // [XSI] The timeval structure shall be defined as described in 12136 // <sys/time.h> 12137 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 12138 // 12139 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12140 // 12141 // This file contains Original Code and/or Modifications of Original Code 12142 // as defined in and that are subject to the Apple Public Source License 12143 // Version 2.0 (the 'License'). You may not use this file except in 12144 // compliance with the License. The rights granted to you under the License 12145 // may not be used to create, or enable the creation or redistribution of, 12146 // unlawful or unlicensed copies of an Apple operating system, or to 12147 // circumvent, violate, or enable the circumvention or violation of, any 12148 // terms of an Apple operating system software license agreement. 12149 // 12150 // Please obtain a copy of the License at 12151 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12152 // 12153 // The Original Code and all software distributed under the License are 12154 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12155 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12156 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12157 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12158 // Please see the License for the specific language governing rights and 12159 // limitations under the License. 12160 // 12161 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12162 12163 // The id_t type shall be defined as described in <sys/types.h> 12164 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 12165 // 12166 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12167 // 12168 // This file contains Original Code and/or Modifications of Original Code 12169 // as defined in and that are subject to the Apple Public Source License 12170 // Version 2.0 (the 'License'). You may not use this file except in 12171 // compliance with the License. The rights granted to you under the License 12172 // may not be used to create, or enable the creation or redistribution of, 12173 // unlawful or unlicensed copies of an Apple operating system, or to 12174 // circumvent, violate, or enable the circumvention or violation of, any 12175 // terms of an Apple operating system software license agreement. 12176 // 12177 // Please obtain a copy of the License at 12178 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12179 // 12180 // The Original Code and all software distributed under the License are 12181 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12182 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12183 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12184 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12185 // Please see the License for the specific language governing rights and 12186 // limitations under the License. 12187 // 12188 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12189 12190 // Resource limit type (low 63 bits, excluding the sign bit) 12191 type Rlim_t = X__uint64_t /* resource.h:89:25 */ 12192 12193 // **** 12194 // 12195 // PRIORITY 12196 12197 // Possible values of the first parameter to getpriority()/setpriority(), 12198 // used to indicate the type of the second parameter. 12199 12200 // Range limitations for the value of the third parameter to setpriority(). 12201 12202 // use PRIO_DARWIN_BG to set the current thread into "background" state 12203 // which lowers CPU, disk IO, and networking priorites until thread terminates 12204 // or "background" state is revoked 12205 12206 // use PRIO_DARWIN_NONUI to restrict a process's ability to make calls to 12207 // the GPU. (deprecated) 12208 12209 // **** 12210 // 12211 // RESOURCE USAGE 12212 12213 // Possible values of the first parameter to getrusage(), used to indicate 12214 // the scope of the information to be returned. 12215 12216 // A structure representing an accounting of resource utilization. The 12217 // address of an instance of this structure is the second parameter to 12218 // getrusage(). 12219 // 12220 // Note: All values other than ru_utime and ru_stime are implementaiton 12221 // defined and subject to change in a future release. Their use 12222 // is discouraged for standards compliant programs. 12223 type Rusage = struct { 12224 Fru_utime struct { 12225 Ftv_sec X__darwin_time_t 12226 Ftv_usec X__darwin_suseconds_t 12227 F__ccgo_pad1 [4]byte 12228 } 12229 Fru_stime struct { 12230 Ftv_sec X__darwin_time_t 12231 Ftv_usec X__darwin_suseconds_t 12232 F__ccgo_pad1 [4]byte 12233 } 12234 Fru_maxrss int64 12235 Fru_ixrss int64 12236 Fru_idrss int64 12237 Fru_isrss int64 12238 Fru_minflt int64 12239 Fru_majflt int64 12240 Fru_nswap int64 12241 Fru_inblock int64 12242 Fru_oublock int64 12243 Fru_msgsnd int64 12244 Fru_msgrcv int64 12245 Fru_nsignals int64 12246 Fru_nvcsw int64 12247 Fru_nivcsw int64 12248 } /* resource.h:152:1 */ 12249 12250 // Flavors for proc_pid_rusage(). 12251 12252 type Rusage_info_t = uintptr /* resource.h:193:14 */ 12253 12254 type Rusage_info_v0 = struct { 12255 Fri_uuid [16]Uint8_t 12256 Fri_user_time Uint64_t 12257 Fri_system_time Uint64_t 12258 Fri_pkg_idle_wkups Uint64_t 12259 Fri_interrupt_wkups Uint64_t 12260 Fri_pageins Uint64_t 12261 Fri_wired_size Uint64_t 12262 Fri_resident_size Uint64_t 12263 Fri_phys_footprint Uint64_t 12264 Fri_proc_start_abstime Uint64_t 12265 Fri_proc_exit_abstime Uint64_t 12266 } /* resource.h:195:1 */ 12267 12268 type Rusage_info_v1 = struct { 12269 Fri_uuid [16]Uint8_t 12270 Fri_user_time Uint64_t 12271 Fri_system_time Uint64_t 12272 Fri_pkg_idle_wkups Uint64_t 12273 Fri_interrupt_wkups Uint64_t 12274 Fri_pageins Uint64_t 12275 Fri_wired_size Uint64_t 12276 Fri_resident_size Uint64_t 12277 Fri_phys_footprint Uint64_t 12278 Fri_proc_start_abstime Uint64_t 12279 Fri_proc_exit_abstime Uint64_t 12280 Fri_child_user_time Uint64_t 12281 Fri_child_system_time Uint64_t 12282 Fri_child_pkg_idle_wkups Uint64_t 12283 Fri_child_interrupt_wkups Uint64_t 12284 Fri_child_pageins Uint64_t 12285 Fri_child_elapsed_abstime Uint64_t 12286 } /* resource.h:209:1 */ 12287 12288 type Rusage_info_v2 = struct { 12289 Fri_uuid [16]Uint8_t 12290 Fri_user_time Uint64_t 12291 Fri_system_time Uint64_t 12292 Fri_pkg_idle_wkups Uint64_t 12293 Fri_interrupt_wkups Uint64_t 12294 Fri_pageins Uint64_t 12295 Fri_wired_size Uint64_t 12296 Fri_resident_size Uint64_t 12297 Fri_phys_footprint Uint64_t 12298 Fri_proc_start_abstime Uint64_t 12299 Fri_proc_exit_abstime Uint64_t 12300 Fri_child_user_time Uint64_t 12301 Fri_child_system_time Uint64_t 12302 Fri_child_pkg_idle_wkups Uint64_t 12303 Fri_child_interrupt_wkups Uint64_t 12304 Fri_child_pageins Uint64_t 12305 Fri_child_elapsed_abstime Uint64_t 12306 Fri_diskio_bytesread Uint64_t 12307 Fri_diskio_byteswritten Uint64_t 12308 } /* resource.h:229:1 */ 12309 12310 type Rusage_info_v3 = struct { 12311 Fri_uuid [16]Uint8_t 12312 Fri_user_time Uint64_t 12313 Fri_system_time Uint64_t 12314 Fri_pkg_idle_wkups Uint64_t 12315 Fri_interrupt_wkups Uint64_t 12316 Fri_pageins Uint64_t 12317 Fri_wired_size Uint64_t 12318 Fri_resident_size Uint64_t 12319 Fri_phys_footprint Uint64_t 12320 Fri_proc_start_abstime Uint64_t 12321 Fri_proc_exit_abstime Uint64_t 12322 Fri_child_user_time Uint64_t 12323 Fri_child_system_time Uint64_t 12324 Fri_child_pkg_idle_wkups Uint64_t 12325 Fri_child_interrupt_wkups Uint64_t 12326 Fri_child_pageins Uint64_t 12327 Fri_child_elapsed_abstime Uint64_t 12328 Fri_diskio_bytesread Uint64_t 12329 Fri_diskio_byteswritten Uint64_t 12330 Fri_cpu_time_qos_default Uint64_t 12331 Fri_cpu_time_qos_maintenance Uint64_t 12332 Fri_cpu_time_qos_background Uint64_t 12333 Fri_cpu_time_qos_utility Uint64_t 12334 Fri_cpu_time_qos_legacy Uint64_t 12335 Fri_cpu_time_qos_user_initiated Uint64_t 12336 Fri_cpu_time_qos_user_interactive Uint64_t 12337 Fri_billed_system_time Uint64_t 12338 Fri_serviced_system_time Uint64_t 12339 } /* resource.h:251:1 */ 12340 12341 type Rusage_info_v4 = struct { 12342 Fri_uuid [16]Uint8_t 12343 Fri_user_time Uint64_t 12344 Fri_system_time Uint64_t 12345 Fri_pkg_idle_wkups Uint64_t 12346 Fri_interrupt_wkups Uint64_t 12347 Fri_pageins Uint64_t 12348 Fri_wired_size Uint64_t 12349 Fri_resident_size Uint64_t 12350 Fri_phys_footprint Uint64_t 12351 Fri_proc_start_abstime Uint64_t 12352 Fri_proc_exit_abstime Uint64_t 12353 Fri_child_user_time Uint64_t 12354 Fri_child_system_time Uint64_t 12355 Fri_child_pkg_idle_wkups Uint64_t 12356 Fri_child_interrupt_wkups Uint64_t 12357 Fri_child_pageins Uint64_t 12358 Fri_child_elapsed_abstime Uint64_t 12359 Fri_diskio_bytesread Uint64_t 12360 Fri_diskio_byteswritten Uint64_t 12361 Fri_cpu_time_qos_default Uint64_t 12362 Fri_cpu_time_qos_maintenance Uint64_t 12363 Fri_cpu_time_qos_background Uint64_t 12364 Fri_cpu_time_qos_utility Uint64_t 12365 Fri_cpu_time_qos_legacy Uint64_t 12366 Fri_cpu_time_qos_user_initiated Uint64_t 12367 Fri_cpu_time_qos_user_interactive Uint64_t 12368 Fri_billed_system_time Uint64_t 12369 Fri_serviced_system_time Uint64_t 12370 Fri_logical_writes Uint64_t 12371 Fri_lifetime_max_phys_footprint Uint64_t 12372 Fri_instructions Uint64_t 12373 Fri_cycles Uint64_t 12374 Fri_billed_energy Uint64_t 12375 Fri_serviced_energy Uint64_t 12376 Fri_interval_max_phys_footprint Uint64_t 12377 Fri_runnable_time Uint64_t 12378 } /* resource.h:282:1 */ 12379 12380 type Rusage_info_current = Rusage_info_v4 /* resource.h:321:31 */ 12381 12382 // **** 12383 // 12384 // RESOURCE LIMITS 12385 12386 // Symbolic constants for resource limits; since all limits are representable 12387 // as a type rlim_t, we are permitted to define RLIM_SAVED_* in terms of 12388 // RLIM_INFINITY. 12389 12390 // Possible values of the first parameter to getrlimit()/setrlimit(), to 12391 // indicate for which resource the operation is being performed. 12392 12393 // A structure representing a resource limit. The address of an instance 12394 // of this structure is the second parameter to getrlimit()/setrlimit(). 12395 type Rlimit = struct { 12396 Frlim_cur Rlim_t 12397 Frlim_max Rlim_t 12398 } /* resource.h:365:1 */ 12399 12400 // proc_rlimit_control() 12401 // 12402 // Resource limit flavors 12403 12404 // Flags for wakeups monitor control. 12405 12406 // Flags for CPU usage monitor control. 12407 12408 // Flags for memory footprint interval tracking. 12409 12410 type Proc_rlimit_control_wakeupmon = struct { 12411 Fwm_flags Uint32_t 12412 Fwm_rate Int32_t 12413 } /* resource.h:400:1 */ 12414 12415 // Option bits for the third argument of wait4. WNOHANG causes the 12416 // wait to not hang if there are no stopped or terminated processes, rather 12417 // returning an error indication in this case (pid==0). WUNTRACED 12418 // indicates that the caller should receive status about untraced children 12419 // which stop due to signals. If children are stopped and a wait without 12420 // this option is done, it is as though they were still running... nothing 12421 // about them is returned. 12422 12423 // Macros to test the exit status returned by wait 12424 // and extract the relevant values. 12425 12426 // These macros are permited, as they are in the implementation namespace 12427 12428 // [XSI] The <sys/wait.h> header shall define the following macros for 12429 // analysis of process status values 12430 // 0x13 == SIGCONT 12431 12432 // [XSI] The following symbolic constants shall be defined as possible 12433 // values for the fourth argument to waitid(). 12434 // WNOHANG already defined for wait4() 12435 // WUNTRACED defined for wait4() but not for waitid() 12436 // waitid() parameter 12437 12438 // POSIX extensions and 4.2/4.3 compatability: 12439 12440 // Tokens for special values of the "pid" parameter to wait4. 12441 12442 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 12443 // 12444 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12445 // 12446 // This file contains Original Code and/or Modifications of Original Code 12447 // as defined in and that are subject to the Apple Public Source License 12448 // Version 2.0 (the 'License'). You may not use this file except in 12449 // compliance with the License. The rights granted to you under the License 12450 // may not be used to create, or enable the creation or redistribution of, 12451 // unlawful or unlicensed copies of an Apple operating system, or to 12452 // circumvent, violate, or enable the circumvention or violation of, any 12453 // terms of an Apple operating system software license agreement. 12454 // 12455 // Please obtain a copy of the License at 12456 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12457 // 12458 // The Original Code and all software distributed under the License are 12459 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12460 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12461 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12462 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12463 // Please see the License for the specific language governing rights and 12464 // limitations under the License. 12465 // 12466 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12467 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 12468 12469 // Deprecated: 12470 // Structure of the information in the status word returned by wait4. 12471 // If w_stopval==_WSTOPPED, then the second structure describes 12472 // the information returned, else the first. 12473 type Wait = struct{ Fw_status int32 } /* wait.h:194:1 */ 12474 12475 // built-in for gcc 12476 12477 // built-in for gcc 3 12478 12479 // DO NOT REMOVE THIS COMMENT: fixincludes needs to see: 12480 // _GCC_SIZE_T 12481 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 12482 // 12483 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12484 // 12485 // This file contains Original Code and/or Modifications of Original Code 12486 // as defined in and that are subject to the Apple Public Source License 12487 // Version 2.0 (the 'License'). You may not use this file except in 12488 // compliance with the License. The rights granted to you under the License 12489 // may not be used to create, or enable the creation or redistribution of, 12490 // unlawful or unlicensed copies of an Apple operating system, or to 12491 // circumvent, violate, or enable the circumvention or violation of, any 12492 // terms of an Apple operating system software license agreement. 12493 // 12494 // Please obtain a copy of the License at 12495 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12496 // 12497 // The Original Code and all software distributed under the License are 12498 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12499 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12500 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12501 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12502 // Please see the License for the specific language governing rights and 12503 // limitations under the License. 12504 // 12505 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12506 12507 // Copyright (c) 2012 Apple Inc. All rights reserved. 12508 // 12509 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12510 // 12511 // This file contains Original Code and/or Modifications of Original Code 12512 // as defined in and that are subject to the Apple Public Source License 12513 // Version 2.0 (the 'License'). You may not use this file except in 12514 // compliance with the License. The rights granted to you under the License 12515 // may not be used to create, or enable the creation or redistribution of, 12516 // unlawful or unlicensed copies of an Apple operating system, or to 12517 // circumvent, violate, or enable the circumvention or violation of, any 12518 // terms of an Apple operating system software license agreement. 12519 // 12520 // Please obtain a copy of the License at 12521 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12522 // 12523 // The Original Code and all software distributed under the License are 12524 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12525 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12526 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12527 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12528 // Please see the License for the specific language governing rights and 12529 // limitations under the License. 12530 // 12531 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12532 12533 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 12534 // 12535 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12536 // 12537 // This file contains Original Code and/or Modifications of Original Code 12538 // as defined in and that are subject to the Apple Public Source License 12539 // Version 2.0 (the 'License'). You may not use this file except in 12540 // compliance with the License. The rights granted to you under the License 12541 // may not be used to create, or enable the creation or redistribution of, 12542 // unlawful or unlicensed copies of an Apple operating system, or to 12543 // circumvent, violate, or enable the circumvention or violation of, any 12544 // terms of an Apple operating system software license agreement. 12545 // 12546 // Please obtain a copy of the License at 12547 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12548 // 12549 // The Original Code and all software distributed under the License are 12550 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12551 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12552 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12553 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12554 // Please see the License for the specific language governing rights and 12555 // limitations under the License. 12556 // 12557 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12558 type Ct_rune_t = X__darwin_ct_rune_t /* _ct_rune_t.h:32:28 */ 12559 // Copyright (c) 2012 Apple Inc. All rights reserved. 12560 // 12561 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12562 // 12563 // This file contains Original Code and/or Modifications of Original Code 12564 // as defined in and that are subject to the Apple Public Source License 12565 // Version 2.0 (the 'License'). You may not use this file except in 12566 // compliance with the License. The rights granted to you under the License 12567 // may not be used to create, or enable the creation or redistribution of, 12568 // unlawful or unlicensed copies of an Apple operating system, or to 12569 // circumvent, violate, or enable the circumvention or violation of, any 12570 // terms of an Apple operating system software license agreement. 12571 // 12572 // Please obtain a copy of the License at 12573 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12574 // 12575 // The Original Code and all software distributed under the License are 12576 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12577 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12578 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12579 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12580 // Please see the License for the specific language governing rights and 12581 // limitations under the License. 12582 // 12583 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12584 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 12585 // 12586 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12587 // 12588 // This file contains Original Code and/or Modifications of Original Code 12589 // as defined in and that are subject to the Apple Public Source License 12590 // Version 2.0 (the 'License'). You may not use this file except in 12591 // compliance with the License. The rights granted to you under the License 12592 // may not be used to create, or enable the creation or redistribution of, 12593 // unlawful or unlicensed copies of an Apple operating system, or to 12594 // circumvent, violate, or enable the circumvention or violation of, any 12595 // terms of an Apple operating system software license agreement. 12596 // 12597 // Please obtain a copy of the License at 12598 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12599 // 12600 // The Original Code and all software distributed under the License are 12601 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12602 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12603 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12604 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12605 // Please see the License for the specific language governing rights and 12606 // limitations under the License. 12607 // 12608 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12609 type Rune_t = X__darwin_rune_t /* _rune_t.h:31:25 */ 12610 12611 // Copyright (c) 2012 Apple Inc. All rights reserved. 12612 // 12613 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12614 // 12615 // This file contains Original Code and/or Modifications of Original Code 12616 // as defined in and that are subject to the Apple Public Source License 12617 // Version 2.0 (the 'License'). You may not use this file except in 12618 // compliance with the License. The rights granted to you under the License 12619 // may not be used to create, or enable the creation or redistribution of, 12620 // unlawful or unlicensed copies of an Apple operating system, or to 12621 // circumvent, violate, or enable the circumvention or violation of, any 12622 // terms of an Apple operating system software license agreement. 12623 // 12624 // Please obtain a copy of the License at 12625 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12626 // 12627 // The Original Code and all software distributed under the License are 12628 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12629 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12630 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12631 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12632 // Please see the License for the specific language governing rights and 12633 // limitations under the License. 12634 // 12635 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12636 12637 // wchar_t is a built-in type in C++ 12638 12639 type Div_t = struct { 12640 Fquot int32 12641 Frem int32 12642 } /* stdlib.h:86:3 */ 12643 12644 type Ldiv_t = struct { 12645 Fquot int64 12646 Frem int64 12647 } /* stdlib.h:91:3 */ 12648 12649 type Lldiv_t = struct { 12650 Fquot int64 12651 Frem int64 12652 } /* stdlib.h:97:3 */ // getsubopt(3) external variable 12653 // valloc is now declared in _malloc.h 12654 12655 // Poison the following routines if -fshort-wchar is set 12656 12657 // since "static" is used to mean two completely different things in C, we 12658 // define "local" for the non-static meaning of "static", for readability 12659 // (compile with -Dlocal if your debugger can't find static symbols) 12660 12661 type Uch = uint8 /* zutil.h:43:24 */ 12662 type Uchf = Uch /* zutil.h:44:17 */ 12663 type Ush = uint16 /* zutil.h:45:24 */ 12664 type Ushf = Ush /* zutil.h:46:17 */ 12665 type Ulg = uint64 /* zutil.h:47:24 */ 12666 12667 // NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 12668 12669 // use NO_DIVIDE if your processor does not do division in hardware -- 12670 // try it both ways to see which is faster 12671 12672 // ========================================================================= 12673 func Xadler32_z(tls *libc.TLS, adler ULong, buf uintptr, len Z_size_t) ULong { /* adler32.c:63:15: */ 12674 var sum2 uint64 12675 var n uint32 12676 12677 // split Adler-32 into component sums 12678 sum2 = ((adler >> 16) & uint64(0xffff)) 12679 adler = adler & (uint64(0xffff)) 12680 12681 // in case user likes doing a byte at a time, keep it fast 12682 if len == uint64(1) { 12683 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer(buf)))) 12684 if adler >= uint64(BASE) { 12685 adler = adler - (uint64(BASE)) 12686 } 12687 sum2 = sum2 + (adler) 12688 if sum2 >= uint64(BASE) { 12689 sum2 = sum2 - (uint64(BASE)) 12690 } 12691 return (adler | (sum2 << 16)) 12692 } 12693 12694 // initial Adler-32 value (deferred check for len == 1 speed) 12695 if buf == uintptr(Z_NULL) { 12696 return uint64(1) 12697 } 12698 12699 // in case short lengths are provided, keep it somewhat fast 12700 if len < uint64(16) { 12701 for libc.PostDecUint64(&len, 1) != 0 { 12702 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1))))) 12703 sum2 = sum2 + (adler) 12704 } 12705 if adler >= uint64(BASE) { 12706 adler = adler - (uint64(BASE)) 12707 } 12708 sum2 = sum2 % (uint64(BASE)) // only added so many BASE's 12709 return (adler | (sum2 << 16)) 12710 } 12711 12712 // do length NMAX blocks -- requires just one modulo operation 12713 for len >= uint64(NMAX) { 12714 len = len - (uint64(NMAX)) 12715 n = (uint32(NMAX / 16)) // NMAX is divisible by 16 12716 for ok := true; ok; ok = libc.PreDecUint32(&n, 1) != 0 { 12717 { 12718 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf))))) 12719 sum2 = sum2 + (adler) 12720 } 12721 { 12722 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 1)))) 12723 sum2 = sum2 + (adler) 12724 } 12725 12726 { 12727 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 2)))) 12728 sum2 = sum2 + (adler) 12729 } 12730 { 12731 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 3)))) 12732 sum2 = sum2 + (adler) 12733 } 12734 12735 { 12736 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 4)))) 12737 sum2 = sum2 + (adler) 12738 } 12739 { 12740 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 5)))) 12741 sum2 = sum2 + (adler) 12742 } 12743 12744 { 12745 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 6)))) 12746 sum2 = sum2 + (adler) 12747 } 12748 { 12749 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 7)))) 12750 sum2 = sum2 + (adler) 12751 } 12752 12753 { 12754 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 8)))) 12755 sum2 = sum2 + (adler) 12756 } 12757 { 12758 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 9)))) 12759 sum2 = sum2 + (adler) 12760 } 12761 12762 { 12763 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 10)))) 12764 sum2 = sum2 + (adler) 12765 } 12766 { 12767 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 11)))) 12768 sum2 = sum2 + (adler) 12769 } 12770 12771 { 12772 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 12)))) 12773 sum2 = sum2 + (adler) 12774 } 12775 { 12776 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 13)))) 12777 sum2 = sum2 + (adler) 12778 } 12779 12780 { 12781 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 14)))) 12782 sum2 = sum2 + (adler) 12783 } 12784 { 12785 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 15)))) 12786 sum2 = sum2 + (adler) 12787 } 12788 12789 // 16 sums unrolled 12790 buf += uintptr(16) 12791 } 12792 adler = adler % (uint64(BASE)) 12793 sum2 = sum2 % (uint64(BASE)) 12794 } 12795 12796 // do remaining bytes (less than NMAX, still just one modulo) 12797 if len != 0 { // avoid modulos if none remaining 12798 for len >= uint64(16) { 12799 len = len - (uint64(16)) 12800 { 12801 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf))))) 12802 sum2 = sum2 + (adler) 12803 } 12804 { 12805 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 1)))) 12806 sum2 = sum2 + (adler) 12807 } 12808 12809 { 12810 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 2)))) 12811 sum2 = sum2 + (adler) 12812 } 12813 { 12814 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 3)))) 12815 sum2 = sum2 + (adler) 12816 } 12817 12818 { 12819 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 4)))) 12820 sum2 = sum2 + (adler) 12821 } 12822 { 12823 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 5)))) 12824 sum2 = sum2 + (adler) 12825 } 12826 12827 { 12828 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 6)))) 12829 sum2 = sum2 + (adler) 12830 } 12831 { 12832 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 7)))) 12833 sum2 = sum2 + (adler) 12834 } 12835 12836 { 12837 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 8)))) 12838 sum2 = sum2 + (adler) 12839 } 12840 { 12841 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 9)))) 12842 sum2 = sum2 + (adler) 12843 } 12844 12845 { 12846 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 10)))) 12847 sum2 = sum2 + (adler) 12848 } 12849 { 12850 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 11)))) 12851 sum2 = sum2 + (adler) 12852 } 12853 12854 { 12855 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 12)))) 12856 sum2 = sum2 + (adler) 12857 } 12858 { 12859 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 13)))) 12860 sum2 = sum2 + (adler) 12861 } 12862 12863 { 12864 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 14)))) 12865 sum2 = sum2 + (adler) 12866 } 12867 { 12868 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer((buf) + 15)))) 12869 sum2 = sum2 + (adler) 12870 } 12871 12872 buf += uintptr(16) 12873 } 12874 for libc.PostDecUint64(&len, 1) != 0 { 12875 adler = adler + (ULong(*(*Bytef)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1))))) 12876 sum2 = sum2 + (adler) 12877 } 12878 adler = adler % (uint64(BASE)) 12879 sum2 = sum2 % (uint64(BASE)) 12880 } 12881 12882 // return recombined sums 12883 return (adler | (sum2 << 16)) 12884 } 12885 12886 // ========================================================================= 12887 func Xadler32(tls *libc.TLS, adler ULong, buf uintptr, len UInt) ULong { /* adler32.c:134:15: */ 12888 return Xadler32_z(tls, adler, buf, uint64(len)) 12889 } 12890 12891 // ========================================================================= 12892 func adler32_combine_(tls *libc.TLS, adler1 ULong, adler2 ULong, len2 Off_t) ULong { /* adler32.c:143:13: */ 12893 var sum1 uint64 12894 var sum2 uint64 12895 var rem uint32 12896 12897 // for negative len, return invalid adler32 as a clue for debugging 12898 if len2 < int64(0) { 12899 return 0xffffffff 12900 } 12901 12902 // the derivation of this formula is left as an exercise for the reader 12903 len2 = len2 % (int64(BASE)) // assumes len2 >= 0 12904 rem = uint32(len2) 12905 sum1 = (adler1 & uint64(0xffff)) 12906 sum2 = (uint64(rem) * sum1) 12907 sum2 = sum2 % (uint64(BASE)) 12908 sum1 = sum1 + (((adler2 & uint64(0xffff)) + uint64(BASE)) - uint64(1)) 12909 sum2 = sum2 + (((((adler1 >> 16) & uint64(0xffff)) + ((adler2 >> 16) & uint64(0xffff))) + uint64(BASE)) - ULong(rem)) 12910 if sum1 >= uint64(BASE) { 12911 sum1 = sum1 - (uint64(BASE)) 12912 } 12913 if sum1 >= uint64(BASE) { 12914 sum1 = sum1 - (uint64(BASE)) 12915 } 12916 if sum2 >= (uint64(uint64(BASE)) << 1) { 12917 sum2 = sum2 - (uint64(uint64(BASE)) << 1) 12918 } 12919 if sum2 >= uint64(BASE) { 12920 sum2 = sum2 - (uint64(BASE)) 12921 } 12922 return (sum1 | (sum2 << 16)) 12923 } 12924 12925 // ========================================================================= 12926 func Xadler32_combine(tls *libc.TLS, adler1 ULong, adler2 ULong, len2 Off_t) ULong { /* adler32.c:172:15: */ 12927 return adler32_combine_(tls, adler1, adler2, len2) 12928 } 12929 12930 func Xadler32_combine64(tls *libc.TLS, adler1 ULong, adler2 ULong, len2 Off_t) ULong { /* adler32.c:180:15: */ 12931 return adler32_combine_(tls, adler1, adler2, len2) 12932 } 12933 12934 // =========================================================================== 12935 // Compresses the source buffer into the destination buffer. The level 12936 // parameter has the same meaning as in deflateInit. sourceLen is the byte 12937 // length of the source buffer. Upon entry, destLen is the total size of the 12938 // destination buffer, which must be at least 0.1% larger than sourceLen plus 12939 // 12 bytes. Upon exit, destLen is the actual size of the compressed buffer. 12940 // 12941 // compress2 returns Z_OK if success, Z_MEM_ERROR if there was not enough 12942 // memory, Z_BUF_ERROR if there was not enough room in the output buffer, 12943 // Z_STREAM_ERROR if the level parameter is invalid. 12944 func Xcompress2(tls *libc.TLS, dest uintptr, destLen uintptr, source uintptr, sourceLen ULong, level int32) int32 { /* compress.c:22:13: */ 12945 bp := tls.Alloc(112) 12946 defer tls.Free(112) 12947 12948 // var stream Z_stream at bp, 112 12949 12950 var err int32 12951 var max UInt = libc.Uint32(libc.Uint32FromInt32(-1)) 12952 var left ULong 12953 12954 left = *(*ULongf)(unsafe.Pointer(destLen)) 12955 *(*ULongf)(unsafe.Pointer(destLen)) = uint64(0) 12956 12957 (*Z_stream)(unsafe.Pointer(bp /* &stream */)).Fzalloc = uintptr(0) 12958 (*Z_stream)(unsafe.Pointer(bp /* &stream */)).Fzfree = uintptr(0) 12959 (*Z_stream)(unsafe.Pointer(bp /* &stream */)).Fopaque = uintptr(0) 12960 12961 err = XdeflateInit_(tls, bp /* &stream */, level, ts /* "1.2.11" */, int32(unsafe.Sizeof(Z_stream{}))) 12962 if err != Z_OK { 12963 return err 12964 } 12965 12966 (*Z_stream)(unsafe.Pointer(bp /* &stream */)).Fnext_out = dest 12967 (*Z_stream)(unsafe.Pointer(bp /* &stream */)).Favail_out = UInt(0) 12968 (*Z_stream)(unsafe.Pointer(bp /* &stream */)).Fnext_in = source 12969 (*Z_stream)(unsafe.Pointer(bp /* &stream */)).Favail_in = UInt(0) 12970 12971 for ok := true; ok; ok = (err == Z_OK) { 12972 if (*Z_stream)(unsafe.Pointer(bp /* &stream */)).Favail_out == UInt(0) { 12973 (*Z_stream)(unsafe.Pointer(bp /* &stream */)).Favail_out = func() uint32 { 12974 if left > ULong(max) { 12975 return max 12976 } 12977 return UInt(left) 12978 }() 12979 left = left - (ULong((*Z_stream)(unsafe.Pointer(bp /* &stream */)).Favail_out)) 12980 } 12981 if (*Z_stream)(unsafe.Pointer(bp /* &stream */)).Favail_in == UInt(0) { 12982 (*Z_stream)(unsafe.Pointer(bp /* &stream */)).Favail_in = func() uint32 { 12983 if sourceLen > ULong(max) { 12984 return max 12985 } 12986 return UInt(sourceLen) 12987 }() 12988 sourceLen = sourceLen - (ULong((*Z_stream)(unsafe.Pointer(bp /* &stream */)).Favail_in)) 12989 } 12990 err = Xdeflate(tls, bp /* &stream */, func() int32 { 12991 if sourceLen != 0 { 12992 return Z_NO_FLUSH 12993 } 12994 return Z_FINISH 12995 }()) 12996 } 12997 12998 *(*ULongf)(unsafe.Pointer(destLen)) = (*Z_stream)(unsafe.Pointer(bp /* &stream */)).Ftotal_out 12999 XdeflateEnd(tls, bp /* &stream */) 13000 if err == Z_STREAM_END { 13001 return Z_OK 13002 } 13003 return err 13004 } 13005 13006 // =========================================================================== 13007 func Xcompress(tls *libc.TLS, dest uintptr, destLen uintptr, source uintptr, sourceLen ULong) int32 { /* compress.c:68:13: */ 13008 return Xcompress2(tls, dest, destLen, source, sourceLen, -1) 13009 } 13010 13011 // =========================================================================== 13012 // If the default memLevel or windowBits for deflateInit() is changed, then 13013 // this function needs to be updated. 13014 // 13015 func XcompressBound(tls *libc.TLS, sourceLen ULong) ULong { /* compress.c:81:15: */ 13016 return ((((sourceLen + (sourceLen >> 12)) + (sourceLen >> 14)) + (sourceLen >> 25)) + uint64(13)) 13017 } 13018 13019 // ======================================================================== 13020 // Tables of CRC-32s of all single-byte values, made by make_crc_table(). 13021 // crc32.h -- tables for rapid CRC calculation 13022 // Generated automatically by crc32.c 13023 13024 var crc_table = [8][256]Z_crc_t{ 13025 { 13026 uint32(0x00000000), uint32(0x77073096), uint32(0xee0e612c), uint32(0x990951ba), uint32(0x076dc419), 13027 uint32(0x706af48f), uint32(0xe963a535), uint32(0x9e6495a3), uint32(0x0edb8832), uint32(0x79dcb8a4), 13028 uint32(0xe0d5e91e), uint32(0x97d2d988), uint32(0x09b64c2b), uint32(0x7eb17cbd), uint32(0xe7b82d07), 13029 uint32(0x90bf1d91), uint32(0x1db71064), uint32(0x6ab020f2), uint32(0xf3b97148), uint32(0x84be41de), 13030 uint32(0x1adad47d), uint32(0x6ddde4eb), uint32(0xf4d4b551), uint32(0x83d385c7), uint32(0x136c9856), 13031 uint32(0x646ba8c0), uint32(0xfd62f97a), uint32(0x8a65c9ec), uint32(0x14015c4f), uint32(0x63066cd9), 13032 uint32(0xfa0f3d63), uint32(0x8d080df5), uint32(0x3b6e20c8), uint32(0x4c69105e), uint32(0xd56041e4), 13033 uint32(0xa2677172), uint32(0x3c03e4d1), uint32(0x4b04d447), uint32(0xd20d85fd), uint32(0xa50ab56b), 13034 uint32(0x35b5a8fa), uint32(0x42b2986c), uint32(0xdbbbc9d6), uint32(0xacbcf940), uint32(0x32d86ce3), 13035 uint32(0x45df5c75), uint32(0xdcd60dcf), uint32(0xabd13d59), uint32(0x26d930ac), uint32(0x51de003a), 13036 uint32(0xc8d75180), uint32(0xbfd06116), uint32(0x21b4f4b5), uint32(0x56b3c423), uint32(0xcfba9599), 13037 uint32(0xb8bda50f), uint32(0x2802b89e), uint32(0x5f058808), uint32(0xc60cd9b2), uint32(0xb10be924), 13038 uint32(0x2f6f7c87), uint32(0x58684c11), uint32(0xc1611dab), uint32(0xb6662d3d), uint32(0x76dc4190), 13039 uint32(0x01db7106), uint32(0x98d220bc), uint32(0xefd5102a), uint32(0x71b18589), uint32(0x06b6b51f), 13040 uint32(0x9fbfe4a5), uint32(0xe8b8d433), uint32(0x7807c9a2), uint32(0x0f00f934), uint32(0x9609a88e), 13041 uint32(0xe10e9818), uint32(0x7f6a0dbb), uint32(0x086d3d2d), uint32(0x91646c97), uint32(0xe6635c01), 13042 uint32(0x6b6b51f4), uint32(0x1c6c6162), uint32(0x856530d8), uint32(0xf262004e), uint32(0x6c0695ed), 13043 uint32(0x1b01a57b), uint32(0x8208f4c1), uint32(0xf50fc457), uint32(0x65b0d9c6), uint32(0x12b7e950), 13044 uint32(0x8bbeb8ea), uint32(0xfcb9887c), uint32(0x62dd1ddf), uint32(0x15da2d49), uint32(0x8cd37cf3), 13045 uint32(0xfbd44c65), uint32(0x4db26158), uint32(0x3ab551ce), uint32(0xa3bc0074), uint32(0xd4bb30e2), 13046 uint32(0x4adfa541), uint32(0x3dd895d7), uint32(0xa4d1c46d), uint32(0xd3d6f4fb), uint32(0x4369e96a), 13047 uint32(0x346ed9fc), uint32(0xad678846), uint32(0xda60b8d0), uint32(0x44042d73), uint32(0x33031de5), 13048 uint32(0xaa0a4c5f), uint32(0xdd0d7cc9), uint32(0x5005713c), uint32(0x270241aa), uint32(0xbe0b1010), 13049 uint32(0xc90c2086), uint32(0x5768b525), uint32(0x206f85b3), uint32(0xb966d409), uint32(0xce61e49f), 13050 uint32(0x5edef90e), uint32(0x29d9c998), uint32(0xb0d09822), uint32(0xc7d7a8b4), uint32(0x59b33d17), 13051 uint32(0x2eb40d81), uint32(0xb7bd5c3b), uint32(0xc0ba6cad), uint32(0xedb88320), uint32(0x9abfb3b6), 13052 uint32(0x03b6e20c), uint32(0x74b1d29a), uint32(0xead54739), uint32(0x9dd277af), uint32(0x04db2615), 13053 uint32(0x73dc1683), uint32(0xe3630b12), uint32(0x94643b84), uint32(0x0d6d6a3e), uint32(0x7a6a5aa8), 13054 uint32(0xe40ecf0b), uint32(0x9309ff9d), uint32(0x0a00ae27), uint32(0x7d079eb1), uint32(0xf00f9344), 13055 uint32(0x8708a3d2), uint32(0x1e01f268), uint32(0x6906c2fe), uint32(0xf762575d), uint32(0x806567cb), 13056 uint32(0x196c3671), uint32(0x6e6b06e7), uint32(0xfed41b76), uint32(0x89d32be0), uint32(0x10da7a5a), 13057 uint32(0x67dd4acc), uint32(0xf9b9df6f), uint32(0x8ebeeff9), uint32(0x17b7be43), uint32(0x60b08ed5), 13058 uint32(0xd6d6a3e8), uint32(0xa1d1937e), uint32(0x38d8c2c4), uint32(0x4fdff252), uint32(0xd1bb67f1), 13059 uint32(0xa6bc5767), uint32(0x3fb506dd), uint32(0x48b2364b), uint32(0xd80d2bda), uint32(0xaf0a1b4c), 13060 uint32(0x36034af6), uint32(0x41047a60), uint32(0xdf60efc3), uint32(0xa867df55), uint32(0x316e8eef), 13061 uint32(0x4669be79), uint32(0xcb61b38c), uint32(0xbc66831a), uint32(0x256fd2a0), uint32(0x5268e236), 13062 uint32(0xcc0c7795), uint32(0xbb0b4703), uint32(0x220216b9), uint32(0x5505262f), uint32(0xc5ba3bbe), 13063 uint32(0xb2bd0b28), uint32(0x2bb45a92), uint32(0x5cb36a04), uint32(0xc2d7ffa7), uint32(0xb5d0cf31), 13064 uint32(0x2cd99e8b), uint32(0x5bdeae1d), uint32(0x9b64c2b0), uint32(0xec63f226), uint32(0x756aa39c), 13065 uint32(0x026d930a), uint32(0x9c0906a9), uint32(0xeb0e363f), uint32(0x72076785), uint32(0x05005713), 13066 uint32(0x95bf4a82), uint32(0xe2b87a14), uint32(0x7bb12bae), uint32(0x0cb61b38), uint32(0x92d28e9b), 13067 uint32(0xe5d5be0d), uint32(0x7cdcefb7), uint32(0x0bdbdf21), uint32(0x86d3d2d4), uint32(0xf1d4e242), 13068 uint32(0x68ddb3f8), uint32(0x1fda836e), uint32(0x81be16cd), uint32(0xf6b9265b), uint32(0x6fb077e1), 13069 uint32(0x18b74777), uint32(0x88085ae6), uint32(0xff0f6a70), uint32(0x66063bca), uint32(0x11010b5c), 13070 uint32(0x8f659eff), uint32(0xf862ae69), uint32(0x616bffd3), uint32(0x166ccf45), uint32(0xa00ae278), 13071 uint32(0xd70dd2ee), uint32(0x4e048354), uint32(0x3903b3c2), uint32(0xa7672661), uint32(0xd06016f7), 13072 uint32(0x4969474d), uint32(0x3e6e77db), uint32(0xaed16a4a), uint32(0xd9d65adc), uint32(0x40df0b66), 13073 uint32(0x37d83bf0), uint32(0xa9bcae53), uint32(0xdebb9ec5), uint32(0x47b2cf7f), uint32(0x30b5ffe9), 13074 uint32(0xbdbdf21c), uint32(0xcabac28a), uint32(0x53b39330), uint32(0x24b4a3a6), uint32(0xbad03605), 13075 uint32(0xcdd70693), uint32(0x54de5729), uint32(0x23d967bf), uint32(0xb3667a2e), uint32(0xc4614ab8), 13076 uint32(0x5d681b02), uint32(0x2a6f2b94), uint32(0xb40bbe37), uint32(0xc30c8ea1), uint32(0x5a05df1b), 13077 uint32(0x2d02ef8d), 13078 }, 13079 { 13080 uint32(0x00000000), uint32(0x191b3141), uint32(0x32366282), uint32(0x2b2d53c3), uint32(0x646cc504), 13081 uint32(0x7d77f445), uint32(0x565aa786), uint32(0x4f4196c7), uint32(0xc8d98a08), uint32(0xd1c2bb49), 13082 uint32(0xfaefe88a), uint32(0xe3f4d9cb), uint32(0xacb54f0c), uint32(0xb5ae7e4d), uint32(0x9e832d8e), 13083 uint32(0x87981ccf), uint32(0x4ac21251), uint32(0x53d92310), uint32(0x78f470d3), uint32(0x61ef4192), 13084 uint32(0x2eaed755), uint32(0x37b5e614), uint32(0x1c98b5d7), uint32(0x05838496), uint32(0x821b9859), 13085 uint32(0x9b00a918), uint32(0xb02dfadb), uint32(0xa936cb9a), uint32(0xe6775d5d), uint32(0xff6c6c1c), 13086 uint32(0xd4413fdf), uint32(0xcd5a0e9e), uint32(0x958424a2), uint32(0x8c9f15e3), uint32(0xa7b24620), 13087 uint32(0xbea97761), uint32(0xf1e8e1a6), uint32(0xe8f3d0e7), uint32(0xc3de8324), uint32(0xdac5b265), 13088 uint32(0x5d5daeaa), uint32(0x44469feb), uint32(0x6f6bcc28), uint32(0x7670fd69), uint32(0x39316bae), 13089 uint32(0x202a5aef), uint32(0x0b07092c), uint32(0x121c386d), uint32(0xdf4636f3), uint32(0xc65d07b2), 13090 uint32(0xed705471), uint32(0xf46b6530), uint32(0xbb2af3f7), uint32(0xa231c2b6), uint32(0x891c9175), 13091 uint32(0x9007a034), uint32(0x179fbcfb), uint32(0x0e848dba), uint32(0x25a9de79), uint32(0x3cb2ef38), 13092 uint32(0x73f379ff), uint32(0x6ae848be), uint32(0x41c51b7d), uint32(0x58de2a3c), uint32(0xf0794f05), 13093 uint32(0xe9627e44), uint32(0xc24f2d87), uint32(0xdb541cc6), uint32(0x94158a01), uint32(0x8d0ebb40), 13094 uint32(0xa623e883), uint32(0xbf38d9c2), uint32(0x38a0c50d), uint32(0x21bbf44c), uint32(0x0a96a78f), 13095 uint32(0x138d96ce), uint32(0x5ccc0009), uint32(0x45d73148), uint32(0x6efa628b), uint32(0x77e153ca), 13096 uint32(0xbabb5d54), uint32(0xa3a06c15), uint32(0x888d3fd6), uint32(0x91960e97), uint32(0xded79850), 13097 uint32(0xc7cca911), uint32(0xece1fad2), uint32(0xf5facb93), uint32(0x7262d75c), uint32(0x6b79e61d), 13098 uint32(0x4054b5de), uint32(0x594f849f), uint32(0x160e1258), uint32(0x0f152319), uint32(0x243870da), 13099 uint32(0x3d23419b), uint32(0x65fd6ba7), uint32(0x7ce65ae6), uint32(0x57cb0925), uint32(0x4ed03864), 13100 uint32(0x0191aea3), uint32(0x188a9fe2), uint32(0x33a7cc21), uint32(0x2abcfd60), uint32(0xad24e1af), 13101 uint32(0xb43fd0ee), uint32(0x9f12832d), uint32(0x8609b26c), uint32(0xc94824ab), uint32(0xd05315ea), 13102 uint32(0xfb7e4629), uint32(0xe2657768), uint32(0x2f3f79f6), uint32(0x362448b7), uint32(0x1d091b74), 13103 uint32(0x04122a35), uint32(0x4b53bcf2), uint32(0x52488db3), uint32(0x7965de70), uint32(0x607eef31), 13104 uint32(0xe7e6f3fe), uint32(0xfefdc2bf), uint32(0xd5d0917c), uint32(0xcccba03d), uint32(0x838a36fa), 13105 uint32(0x9a9107bb), uint32(0xb1bc5478), uint32(0xa8a76539), uint32(0x3b83984b), uint32(0x2298a90a), 13106 uint32(0x09b5fac9), uint32(0x10aecb88), uint32(0x5fef5d4f), uint32(0x46f46c0e), uint32(0x6dd93fcd), 13107 uint32(0x74c20e8c), uint32(0xf35a1243), uint32(0xea412302), uint32(0xc16c70c1), uint32(0xd8774180), 13108 uint32(0x9736d747), uint32(0x8e2de606), uint32(0xa500b5c5), uint32(0xbc1b8484), uint32(0x71418a1a), 13109 uint32(0x685abb5b), uint32(0x4377e898), uint32(0x5a6cd9d9), uint32(0x152d4f1e), uint32(0x0c367e5f), 13110 uint32(0x271b2d9c), uint32(0x3e001cdd), uint32(0xb9980012), uint32(0xa0833153), uint32(0x8bae6290), 13111 uint32(0x92b553d1), uint32(0xddf4c516), uint32(0xc4eff457), uint32(0xefc2a794), uint32(0xf6d996d5), 13112 uint32(0xae07bce9), uint32(0xb71c8da8), uint32(0x9c31de6b), uint32(0x852aef2a), uint32(0xca6b79ed), 13113 uint32(0xd37048ac), uint32(0xf85d1b6f), uint32(0xe1462a2e), uint32(0x66de36e1), uint32(0x7fc507a0), 13114 uint32(0x54e85463), uint32(0x4df36522), uint32(0x02b2f3e5), uint32(0x1ba9c2a4), uint32(0x30849167), 13115 uint32(0x299fa026), uint32(0xe4c5aeb8), uint32(0xfdde9ff9), uint32(0xd6f3cc3a), uint32(0xcfe8fd7b), 13116 uint32(0x80a96bbc), uint32(0x99b25afd), uint32(0xb29f093e), uint32(0xab84387f), uint32(0x2c1c24b0), 13117 uint32(0x350715f1), uint32(0x1e2a4632), uint32(0x07317773), uint32(0x4870e1b4), uint32(0x516bd0f5), 13118 uint32(0x7a468336), uint32(0x635db277), uint32(0xcbfad74e), uint32(0xd2e1e60f), uint32(0xf9ccb5cc), 13119 uint32(0xe0d7848d), uint32(0xaf96124a), uint32(0xb68d230b), uint32(0x9da070c8), uint32(0x84bb4189), 13120 uint32(0x03235d46), uint32(0x1a386c07), uint32(0x31153fc4), uint32(0x280e0e85), uint32(0x674f9842), 13121 uint32(0x7e54a903), uint32(0x5579fac0), uint32(0x4c62cb81), uint32(0x8138c51f), uint32(0x9823f45e), 13122 uint32(0xb30ea79d), uint32(0xaa1596dc), uint32(0xe554001b), uint32(0xfc4f315a), uint32(0xd7626299), 13123 uint32(0xce7953d8), uint32(0x49e14f17), uint32(0x50fa7e56), uint32(0x7bd72d95), uint32(0x62cc1cd4), 13124 uint32(0x2d8d8a13), uint32(0x3496bb52), uint32(0x1fbbe891), uint32(0x06a0d9d0), uint32(0x5e7ef3ec), 13125 uint32(0x4765c2ad), uint32(0x6c48916e), uint32(0x7553a02f), uint32(0x3a1236e8), uint32(0x230907a9), 13126 uint32(0x0824546a), uint32(0x113f652b), uint32(0x96a779e4), uint32(0x8fbc48a5), uint32(0xa4911b66), 13127 uint32(0xbd8a2a27), uint32(0xf2cbbce0), uint32(0xebd08da1), uint32(0xc0fdde62), uint32(0xd9e6ef23), 13128 uint32(0x14bce1bd), uint32(0x0da7d0fc), uint32(0x268a833f), uint32(0x3f91b27e), uint32(0x70d024b9), 13129 uint32(0x69cb15f8), uint32(0x42e6463b), uint32(0x5bfd777a), uint32(0xdc656bb5), uint32(0xc57e5af4), 13130 uint32(0xee530937), uint32(0xf7483876), uint32(0xb809aeb1), uint32(0xa1129ff0), uint32(0x8a3fcc33), 13131 uint32(0x9324fd72), 13132 }, 13133 { 13134 uint32(0x00000000), uint32(0x01c26a37), uint32(0x0384d46e), uint32(0x0246be59), uint32(0x0709a8dc), 13135 uint32(0x06cbc2eb), uint32(0x048d7cb2), uint32(0x054f1685), uint32(0x0e1351b8), uint32(0x0fd13b8f), 13136 uint32(0x0d9785d6), uint32(0x0c55efe1), uint32(0x091af964), uint32(0x08d89353), uint32(0x0a9e2d0a), 13137 uint32(0x0b5c473d), uint32(0x1c26a370), uint32(0x1de4c947), uint32(0x1fa2771e), uint32(0x1e601d29), 13138 uint32(0x1b2f0bac), uint32(0x1aed619b), uint32(0x18abdfc2), uint32(0x1969b5f5), uint32(0x1235f2c8), 13139 uint32(0x13f798ff), uint32(0x11b126a6), uint32(0x10734c91), uint32(0x153c5a14), uint32(0x14fe3023), 13140 uint32(0x16b88e7a), uint32(0x177ae44d), uint32(0x384d46e0), uint32(0x398f2cd7), uint32(0x3bc9928e), 13141 uint32(0x3a0bf8b9), uint32(0x3f44ee3c), uint32(0x3e86840b), uint32(0x3cc03a52), uint32(0x3d025065), 13142 uint32(0x365e1758), uint32(0x379c7d6f), uint32(0x35dac336), uint32(0x3418a901), uint32(0x3157bf84), 13143 uint32(0x3095d5b3), uint32(0x32d36bea), uint32(0x331101dd), uint32(0x246be590), uint32(0x25a98fa7), 13144 uint32(0x27ef31fe), uint32(0x262d5bc9), uint32(0x23624d4c), uint32(0x22a0277b), uint32(0x20e69922), 13145 uint32(0x2124f315), uint32(0x2a78b428), uint32(0x2bbade1f), uint32(0x29fc6046), uint32(0x283e0a71), 13146 uint32(0x2d711cf4), uint32(0x2cb376c3), uint32(0x2ef5c89a), uint32(0x2f37a2ad), uint32(0x709a8dc0), 13147 uint32(0x7158e7f7), uint32(0x731e59ae), uint32(0x72dc3399), uint32(0x7793251c), uint32(0x76514f2b), 13148 uint32(0x7417f172), uint32(0x75d59b45), uint32(0x7e89dc78), uint32(0x7f4bb64f), uint32(0x7d0d0816), 13149 uint32(0x7ccf6221), uint32(0x798074a4), uint32(0x78421e93), uint32(0x7a04a0ca), uint32(0x7bc6cafd), 13150 uint32(0x6cbc2eb0), uint32(0x6d7e4487), uint32(0x6f38fade), uint32(0x6efa90e9), uint32(0x6bb5866c), 13151 uint32(0x6a77ec5b), uint32(0x68315202), uint32(0x69f33835), uint32(0x62af7f08), uint32(0x636d153f), 13152 uint32(0x612bab66), uint32(0x60e9c151), uint32(0x65a6d7d4), uint32(0x6464bde3), uint32(0x662203ba), 13153 uint32(0x67e0698d), uint32(0x48d7cb20), uint32(0x4915a117), uint32(0x4b531f4e), uint32(0x4a917579), 13154 uint32(0x4fde63fc), uint32(0x4e1c09cb), uint32(0x4c5ab792), uint32(0x4d98dda5), uint32(0x46c49a98), 13155 uint32(0x4706f0af), uint32(0x45404ef6), uint32(0x448224c1), uint32(0x41cd3244), uint32(0x400f5873), 13156 uint32(0x4249e62a), uint32(0x438b8c1d), uint32(0x54f16850), uint32(0x55330267), uint32(0x5775bc3e), 13157 uint32(0x56b7d609), uint32(0x53f8c08c), uint32(0x523aaabb), uint32(0x507c14e2), uint32(0x51be7ed5), 13158 uint32(0x5ae239e8), uint32(0x5b2053df), uint32(0x5966ed86), uint32(0x58a487b1), uint32(0x5deb9134), 13159 uint32(0x5c29fb03), uint32(0x5e6f455a), uint32(0x5fad2f6d), uint32(0xe1351b80), uint32(0xe0f771b7), 13160 uint32(0xe2b1cfee), uint32(0xe373a5d9), uint32(0xe63cb35c), uint32(0xe7fed96b), uint32(0xe5b86732), 13161 uint32(0xe47a0d05), uint32(0xef264a38), uint32(0xeee4200f), uint32(0xeca29e56), uint32(0xed60f461), 13162 uint32(0xe82fe2e4), uint32(0xe9ed88d3), uint32(0xebab368a), uint32(0xea695cbd), uint32(0xfd13b8f0), 13163 uint32(0xfcd1d2c7), uint32(0xfe976c9e), uint32(0xff5506a9), uint32(0xfa1a102c), uint32(0xfbd87a1b), 13164 uint32(0xf99ec442), uint32(0xf85cae75), uint32(0xf300e948), uint32(0xf2c2837f), uint32(0xf0843d26), 13165 uint32(0xf1465711), uint32(0xf4094194), uint32(0xf5cb2ba3), uint32(0xf78d95fa), uint32(0xf64fffcd), 13166 uint32(0xd9785d60), uint32(0xd8ba3757), uint32(0xdafc890e), uint32(0xdb3ee339), uint32(0xde71f5bc), 13167 uint32(0xdfb39f8b), uint32(0xddf521d2), uint32(0xdc374be5), uint32(0xd76b0cd8), uint32(0xd6a966ef), 13168 uint32(0xd4efd8b6), uint32(0xd52db281), uint32(0xd062a404), uint32(0xd1a0ce33), uint32(0xd3e6706a), 13169 uint32(0xd2241a5d), uint32(0xc55efe10), uint32(0xc49c9427), uint32(0xc6da2a7e), uint32(0xc7184049), 13170 uint32(0xc25756cc), uint32(0xc3953cfb), uint32(0xc1d382a2), uint32(0xc011e895), uint32(0xcb4dafa8), 13171 uint32(0xca8fc59f), uint32(0xc8c97bc6), uint32(0xc90b11f1), uint32(0xcc440774), uint32(0xcd866d43), 13172 uint32(0xcfc0d31a), uint32(0xce02b92d), uint32(0x91af9640), uint32(0x906dfc77), uint32(0x922b422e), 13173 uint32(0x93e92819), uint32(0x96a63e9c), uint32(0x976454ab), uint32(0x9522eaf2), uint32(0x94e080c5), 13174 uint32(0x9fbcc7f8), uint32(0x9e7eadcf), uint32(0x9c381396), uint32(0x9dfa79a1), uint32(0x98b56f24), 13175 uint32(0x99770513), uint32(0x9b31bb4a), uint32(0x9af3d17d), uint32(0x8d893530), uint32(0x8c4b5f07), 13176 uint32(0x8e0de15e), uint32(0x8fcf8b69), uint32(0x8a809dec), uint32(0x8b42f7db), uint32(0x89044982), 13177 uint32(0x88c623b5), uint32(0x839a6488), uint32(0x82580ebf), uint32(0x801eb0e6), uint32(0x81dcdad1), 13178 uint32(0x8493cc54), uint32(0x8551a663), uint32(0x8717183a), uint32(0x86d5720d), uint32(0xa9e2d0a0), 13179 uint32(0xa820ba97), uint32(0xaa6604ce), uint32(0xaba46ef9), uint32(0xaeeb787c), uint32(0xaf29124b), 13180 uint32(0xad6fac12), uint32(0xacadc625), uint32(0xa7f18118), uint32(0xa633eb2f), uint32(0xa4755576), 13181 uint32(0xa5b73f41), uint32(0xa0f829c4), uint32(0xa13a43f3), uint32(0xa37cfdaa), uint32(0xa2be979d), 13182 uint32(0xb5c473d0), uint32(0xb40619e7), uint32(0xb640a7be), uint32(0xb782cd89), uint32(0xb2cddb0c), 13183 uint32(0xb30fb13b), uint32(0xb1490f62), uint32(0xb08b6555), uint32(0xbbd72268), uint32(0xba15485f), 13184 uint32(0xb853f606), uint32(0xb9919c31), uint32(0xbcde8ab4), uint32(0xbd1ce083), uint32(0xbf5a5eda), 13185 uint32(0xbe9834ed), 13186 }, 13187 { 13188 uint32(0x00000000), uint32(0xb8bc6765), uint32(0xaa09c88b), uint32(0x12b5afee), uint32(0x8f629757), 13189 uint32(0x37def032), uint32(0x256b5fdc), uint32(0x9dd738b9), uint32(0xc5b428ef), uint32(0x7d084f8a), 13190 uint32(0x6fbde064), uint32(0xd7018701), uint32(0x4ad6bfb8), uint32(0xf26ad8dd), uint32(0xe0df7733), 13191 uint32(0x58631056), uint32(0x5019579f), uint32(0xe8a530fa), uint32(0xfa109f14), uint32(0x42acf871), 13192 uint32(0xdf7bc0c8), uint32(0x67c7a7ad), uint32(0x75720843), uint32(0xcdce6f26), uint32(0x95ad7f70), 13193 uint32(0x2d111815), uint32(0x3fa4b7fb), uint32(0x8718d09e), uint32(0x1acfe827), uint32(0xa2738f42), 13194 uint32(0xb0c620ac), uint32(0x087a47c9), uint32(0xa032af3e), uint32(0x188ec85b), uint32(0x0a3b67b5), 13195 uint32(0xb28700d0), uint32(0x2f503869), uint32(0x97ec5f0c), uint32(0x8559f0e2), uint32(0x3de59787), 13196 uint32(0x658687d1), uint32(0xdd3ae0b4), uint32(0xcf8f4f5a), uint32(0x7733283f), uint32(0xeae41086), 13197 uint32(0x525877e3), uint32(0x40edd80d), uint32(0xf851bf68), uint32(0xf02bf8a1), uint32(0x48979fc4), 13198 uint32(0x5a22302a), uint32(0xe29e574f), uint32(0x7f496ff6), uint32(0xc7f50893), uint32(0xd540a77d), 13199 uint32(0x6dfcc018), uint32(0x359fd04e), uint32(0x8d23b72b), uint32(0x9f9618c5), uint32(0x272a7fa0), 13200 uint32(0xbafd4719), uint32(0x0241207c), uint32(0x10f48f92), uint32(0xa848e8f7), uint32(0x9b14583d), 13201 uint32(0x23a83f58), uint32(0x311d90b6), uint32(0x89a1f7d3), uint32(0x1476cf6a), uint32(0xaccaa80f), 13202 uint32(0xbe7f07e1), uint32(0x06c36084), uint32(0x5ea070d2), uint32(0xe61c17b7), uint32(0xf4a9b859), 13203 uint32(0x4c15df3c), uint32(0xd1c2e785), uint32(0x697e80e0), uint32(0x7bcb2f0e), uint32(0xc377486b), 13204 uint32(0xcb0d0fa2), uint32(0x73b168c7), uint32(0x6104c729), uint32(0xd9b8a04c), uint32(0x446f98f5), 13205 uint32(0xfcd3ff90), uint32(0xee66507e), uint32(0x56da371b), uint32(0x0eb9274d), uint32(0xb6054028), 13206 uint32(0xa4b0efc6), uint32(0x1c0c88a3), uint32(0x81dbb01a), uint32(0x3967d77f), uint32(0x2bd27891), 13207 uint32(0x936e1ff4), uint32(0x3b26f703), uint32(0x839a9066), uint32(0x912f3f88), uint32(0x299358ed), 13208 uint32(0xb4446054), uint32(0x0cf80731), uint32(0x1e4da8df), uint32(0xa6f1cfba), uint32(0xfe92dfec), 13209 uint32(0x462eb889), uint32(0x549b1767), uint32(0xec277002), uint32(0x71f048bb), uint32(0xc94c2fde), 13210 uint32(0xdbf98030), uint32(0x6345e755), uint32(0x6b3fa09c), uint32(0xd383c7f9), uint32(0xc1366817), 13211 uint32(0x798a0f72), uint32(0xe45d37cb), uint32(0x5ce150ae), uint32(0x4e54ff40), uint32(0xf6e89825), 13212 uint32(0xae8b8873), uint32(0x1637ef16), uint32(0x048240f8), uint32(0xbc3e279d), uint32(0x21e91f24), 13213 uint32(0x99557841), uint32(0x8be0d7af), uint32(0x335cb0ca), uint32(0xed59b63b), uint32(0x55e5d15e), 13214 uint32(0x47507eb0), uint32(0xffec19d5), uint32(0x623b216c), uint32(0xda874609), uint32(0xc832e9e7), 13215 uint32(0x708e8e82), uint32(0x28ed9ed4), uint32(0x9051f9b1), uint32(0x82e4565f), uint32(0x3a58313a), 13216 uint32(0xa78f0983), uint32(0x1f336ee6), uint32(0x0d86c108), uint32(0xb53aa66d), uint32(0xbd40e1a4), 13217 uint32(0x05fc86c1), uint32(0x1749292f), uint32(0xaff54e4a), uint32(0x322276f3), uint32(0x8a9e1196), 13218 uint32(0x982bbe78), uint32(0x2097d91d), uint32(0x78f4c94b), uint32(0xc048ae2e), uint32(0xd2fd01c0), 13219 uint32(0x6a4166a5), uint32(0xf7965e1c), uint32(0x4f2a3979), uint32(0x5d9f9697), uint32(0xe523f1f2), 13220 uint32(0x4d6b1905), uint32(0xf5d77e60), uint32(0xe762d18e), uint32(0x5fdeb6eb), uint32(0xc2098e52), 13221 uint32(0x7ab5e937), uint32(0x680046d9), uint32(0xd0bc21bc), uint32(0x88df31ea), uint32(0x3063568f), 13222 uint32(0x22d6f961), uint32(0x9a6a9e04), uint32(0x07bda6bd), uint32(0xbf01c1d8), uint32(0xadb46e36), 13223 uint32(0x15080953), uint32(0x1d724e9a), uint32(0xa5ce29ff), uint32(0xb77b8611), uint32(0x0fc7e174), 13224 uint32(0x9210d9cd), uint32(0x2aacbea8), uint32(0x38191146), uint32(0x80a57623), uint32(0xd8c66675), 13225 uint32(0x607a0110), uint32(0x72cfaefe), uint32(0xca73c99b), uint32(0x57a4f122), uint32(0xef189647), 13226 uint32(0xfdad39a9), uint32(0x45115ecc), uint32(0x764dee06), uint32(0xcef18963), uint32(0xdc44268d), 13227 uint32(0x64f841e8), uint32(0xf92f7951), uint32(0x41931e34), uint32(0x5326b1da), uint32(0xeb9ad6bf), 13228 uint32(0xb3f9c6e9), uint32(0x0b45a18c), uint32(0x19f00e62), uint32(0xa14c6907), uint32(0x3c9b51be), 13229 uint32(0x842736db), uint32(0x96929935), uint32(0x2e2efe50), uint32(0x2654b999), uint32(0x9ee8defc), 13230 uint32(0x8c5d7112), uint32(0x34e11677), uint32(0xa9362ece), uint32(0x118a49ab), uint32(0x033fe645), 13231 uint32(0xbb838120), uint32(0xe3e09176), uint32(0x5b5cf613), uint32(0x49e959fd), uint32(0xf1553e98), 13232 uint32(0x6c820621), uint32(0xd43e6144), uint32(0xc68bceaa), uint32(0x7e37a9cf), uint32(0xd67f4138), 13233 uint32(0x6ec3265d), uint32(0x7c7689b3), uint32(0xc4caeed6), uint32(0x591dd66f), uint32(0xe1a1b10a), 13234 uint32(0xf3141ee4), uint32(0x4ba87981), uint32(0x13cb69d7), uint32(0xab770eb2), uint32(0xb9c2a15c), 13235 uint32(0x017ec639), uint32(0x9ca9fe80), uint32(0x241599e5), uint32(0x36a0360b), uint32(0x8e1c516e), 13236 uint32(0x866616a7), uint32(0x3eda71c2), uint32(0x2c6fde2c), uint32(0x94d3b949), uint32(0x090481f0), 13237 uint32(0xb1b8e695), uint32(0xa30d497b), uint32(0x1bb12e1e), uint32(0x43d23e48), uint32(0xfb6e592d), 13238 uint32(0xe9dbf6c3), uint32(0x516791a6), uint32(0xccb0a91f), uint32(0x740cce7a), uint32(0x66b96194), 13239 uint32(0xde0506f1), 13240 }, 13241 { 13242 uint32(0x00000000), uint32(0x96300777), uint32(0x2c610eee), uint32(0xba510999), uint32(0x19c46d07), 13243 uint32(0x8ff46a70), uint32(0x35a563e9), uint32(0xa395649e), uint32(0x3288db0e), uint32(0xa4b8dc79), 13244 uint32(0x1ee9d5e0), uint32(0x88d9d297), uint32(0x2b4cb609), uint32(0xbd7cb17e), uint32(0x072db8e7), 13245 uint32(0x911dbf90), uint32(0x6410b71d), uint32(0xf220b06a), uint32(0x4871b9f3), uint32(0xde41be84), 13246 uint32(0x7dd4da1a), uint32(0xebe4dd6d), uint32(0x51b5d4f4), uint32(0xc785d383), uint32(0x56986c13), 13247 uint32(0xc0a86b64), uint32(0x7af962fd), uint32(0xecc9658a), uint32(0x4f5c0114), uint32(0xd96c0663), 13248 uint32(0x633d0ffa), uint32(0xf50d088d), uint32(0xc8206e3b), uint32(0x5e10694c), uint32(0xe44160d5), 13249 uint32(0x727167a2), uint32(0xd1e4033c), uint32(0x47d4044b), uint32(0xfd850dd2), uint32(0x6bb50aa5), 13250 uint32(0xfaa8b535), uint32(0x6c98b242), uint32(0xd6c9bbdb), uint32(0x40f9bcac), uint32(0xe36cd832), 13251 uint32(0x755cdf45), uint32(0xcf0dd6dc), uint32(0x593dd1ab), uint32(0xac30d926), uint32(0x3a00de51), 13252 uint32(0x8051d7c8), uint32(0x1661d0bf), uint32(0xb5f4b421), uint32(0x23c4b356), uint32(0x9995bacf), 13253 uint32(0x0fa5bdb8), uint32(0x9eb80228), uint32(0x0888055f), uint32(0xb2d90cc6), uint32(0x24e90bb1), 13254 uint32(0x877c6f2f), uint32(0x114c6858), uint32(0xab1d61c1), uint32(0x3d2d66b6), uint32(0x9041dc76), 13255 uint32(0x0671db01), uint32(0xbc20d298), uint32(0x2a10d5ef), uint32(0x8985b171), uint32(0x1fb5b606), 13256 uint32(0xa5e4bf9f), uint32(0x33d4b8e8), uint32(0xa2c90778), uint32(0x34f9000f), uint32(0x8ea80996), 13257 uint32(0x18980ee1), uint32(0xbb0d6a7f), uint32(0x2d3d6d08), uint32(0x976c6491), uint32(0x015c63e6), 13258 uint32(0xf4516b6b), uint32(0x62616c1c), uint32(0xd8306585), uint32(0x4e0062f2), uint32(0xed95066c), 13259 uint32(0x7ba5011b), uint32(0xc1f40882), uint32(0x57c40ff5), uint32(0xc6d9b065), uint32(0x50e9b712), 13260 uint32(0xeab8be8b), uint32(0x7c88b9fc), uint32(0xdf1ddd62), uint32(0x492dda15), uint32(0xf37cd38c), 13261 uint32(0x654cd4fb), uint32(0x5861b24d), uint32(0xce51b53a), uint32(0x7400bca3), uint32(0xe230bbd4), 13262 uint32(0x41a5df4a), uint32(0xd795d83d), uint32(0x6dc4d1a4), uint32(0xfbf4d6d3), uint32(0x6ae96943), 13263 uint32(0xfcd96e34), uint32(0x468867ad), uint32(0xd0b860da), uint32(0x732d0444), uint32(0xe51d0333), 13264 uint32(0x5f4c0aaa), uint32(0xc97c0ddd), uint32(0x3c710550), uint32(0xaa410227), uint32(0x10100bbe), 13265 uint32(0x86200cc9), uint32(0x25b56857), uint32(0xb3856f20), uint32(0x09d466b9), uint32(0x9fe461ce), 13266 uint32(0x0ef9de5e), uint32(0x98c9d929), uint32(0x2298d0b0), uint32(0xb4a8d7c7), uint32(0x173db359), 13267 uint32(0x810db42e), uint32(0x3b5cbdb7), uint32(0xad6cbac0), uint32(0x2083b8ed), uint32(0xb6b3bf9a), 13268 uint32(0x0ce2b603), uint32(0x9ad2b174), uint32(0x3947d5ea), uint32(0xaf77d29d), uint32(0x1526db04), 13269 uint32(0x8316dc73), uint32(0x120b63e3), uint32(0x843b6494), uint32(0x3e6a6d0d), uint32(0xa85a6a7a), 13270 uint32(0x0bcf0ee4), uint32(0x9dff0993), uint32(0x27ae000a), uint32(0xb19e077d), uint32(0x44930ff0), 13271 uint32(0xd2a30887), uint32(0x68f2011e), uint32(0xfec20669), uint32(0x5d5762f7), uint32(0xcb676580), 13272 uint32(0x71366c19), uint32(0xe7066b6e), uint32(0x761bd4fe), uint32(0xe02bd389), uint32(0x5a7ada10), 13273 uint32(0xcc4add67), uint32(0x6fdfb9f9), uint32(0xf9efbe8e), uint32(0x43beb717), uint32(0xd58eb060), 13274 uint32(0xe8a3d6d6), uint32(0x7e93d1a1), uint32(0xc4c2d838), uint32(0x52f2df4f), uint32(0xf167bbd1), 13275 uint32(0x6757bca6), uint32(0xdd06b53f), uint32(0x4b36b248), uint32(0xda2b0dd8), uint32(0x4c1b0aaf), 13276 uint32(0xf64a0336), uint32(0x607a0441), uint32(0xc3ef60df), uint32(0x55df67a8), uint32(0xef8e6e31), 13277 uint32(0x79be6946), uint32(0x8cb361cb), uint32(0x1a8366bc), uint32(0xa0d26f25), uint32(0x36e26852), 13278 uint32(0x95770ccc), uint32(0x03470bbb), uint32(0xb9160222), uint32(0x2f260555), uint32(0xbe3bbac5), 13279 uint32(0x280bbdb2), uint32(0x925ab42b), uint32(0x046ab35c), uint32(0xa7ffd7c2), uint32(0x31cfd0b5), 13280 uint32(0x8b9ed92c), uint32(0x1daede5b), uint32(0xb0c2649b), uint32(0x26f263ec), uint32(0x9ca36a75), 13281 uint32(0x0a936d02), uint32(0xa906099c), uint32(0x3f360eeb), uint32(0x85670772), uint32(0x13570005), 13282 uint32(0x824abf95), uint32(0x147ab8e2), uint32(0xae2bb17b), uint32(0x381bb60c), uint32(0x9b8ed292), 13283 uint32(0x0dbed5e5), uint32(0xb7efdc7c), uint32(0x21dfdb0b), uint32(0xd4d2d386), uint32(0x42e2d4f1), 13284 uint32(0xf8b3dd68), uint32(0x6e83da1f), uint32(0xcd16be81), uint32(0x5b26b9f6), uint32(0xe177b06f), 13285 uint32(0x7747b718), uint32(0xe65a0888), uint32(0x706a0fff), uint32(0xca3b0666), uint32(0x5c0b0111), 13286 uint32(0xff9e658f), uint32(0x69ae62f8), uint32(0xd3ff6b61), uint32(0x45cf6c16), uint32(0x78e20aa0), 13287 uint32(0xeed20dd7), uint32(0x5483044e), uint32(0xc2b30339), uint32(0x612667a7), uint32(0xf71660d0), 13288 uint32(0x4d476949), uint32(0xdb776e3e), uint32(0x4a6ad1ae), uint32(0xdc5ad6d9), uint32(0x660bdf40), 13289 uint32(0xf03bd837), uint32(0x53aebca9), uint32(0xc59ebbde), uint32(0x7fcfb247), uint32(0xe9ffb530), 13290 uint32(0x1cf2bdbd), uint32(0x8ac2baca), uint32(0x3093b353), uint32(0xa6a3b424), uint32(0x0536d0ba), 13291 uint32(0x9306d7cd), uint32(0x2957de54), uint32(0xbf67d923), uint32(0x2e7a66b3), uint32(0xb84a61c4), 13292 uint32(0x021b685d), uint32(0x942b6f2a), uint32(0x37be0bb4), uint32(0xa18e0cc3), uint32(0x1bdf055a), 13293 uint32(0x8def022d), 13294 }, 13295 { 13296 uint32(0x00000000), uint32(0x41311b19), uint32(0x82623632), uint32(0xc3532d2b), uint32(0x04c56c64), 13297 uint32(0x45f4777d), uint32(0x86a75a56), uint32(0xc796414f), uint32(0x088ad9c8), uint32(0x49bbc2d1), 13298 uint32(0x8ae8effa), uint32(0xcbd9f4e3), uint32(0x0c4fb5ac), uint32(0x4d7eaeb5), uint32(0x8e2d839e), 13299 uint32(0xcf1c9887), uint32(0x5112c24a), uint32(0x1023d953), uint32(0xd370f478), uint32(0x9241ef61), 13300 uint32(0x55d7ae2e), uint32(0x14e6b537), uint32(0xd7b5981c), uint32(0x96848305), uint32(0x59981b82), 13301 uint32(0x18a9009b), uint32(0xdbfa2db0), uint32(0x9acb36a9), uint32(0x5d5d77e6), uint32(0x1c6c6cff), 13302 uint32(0xdf3f41d4), uint32(0x9e0e5acd), uint32(0xa2248495), uint32(0xe3159f8c), uint32(0x2046b2a7), 13303 uint32(0x6177a9be), uint32(0xa6e1e8f1), uint32(0xe7d0f3e8), uint32(0x2483dec3), uint32(0x65b2c5da), 13304 uint32(0xaaae5d5d), uint32(0xeb9f4644), uint32(0x28cc6b6f), uint32(0x69fd7076), uint32(0xae6b3139), 13305 uint32(0xef5a2a20), uint32(0x2c09070b), uint32(0x6d381c12), uint32(0xf33646df), uint32(0xb2075dc6), 13306 uint32(0x715470ed), uint32(0x30656bf4), uint32(0xf7f32abb), uint32(0xb6c231a2), uint32(0x75911c89), 13307 uint32(0x34a00790), uint32(0xfbbc9f17), uint32(0xba8d840e), uint32(0x79dea925), uint32(0x38efb23c), 13308 uint32(0xff79f373), uint32(0xbe48e86a), uint32(0x7d1bc541), uint32(0x3c2ade58), uint32(0x054f79f0), 13309 uint32(0x447e62e9), uint32(0x872d4fc2), uint32(0xc61c54db), uint32(0x018a1594), uint32(0x40bb0e8d), 13310 uint32(0x83e823a6), uint32(0xc2d938bf), uint32(0x0dc5a038), uint32(0x4cf4bb21), uint32(0x8fa7960a), 13311 uint32(0xce968d13), uint32(0x0900cc5c), uint32(0x4831d745), uint32(0x8b62fa6e), uint32(0xca53e177), 13312 uint32(0x545dbbba), uint32(0x156ca0a3), uint32(0xd63f8d88), uint32(0x970e9691), uint32(0x5098d7de), 13313 uint32(0x11a9ccc7), uint32(0xd2fae1ec), uint32(0x93cbfaf5), uint32(0x5cd76272), uint32(0x1de6796b), 13314 uint32(0xdeb55440), uint32(0x9f844f59), uint32(0x58120e16), uint32(0x1923150f), uint32(0xda703824), 13315 uint32(0x9b41233d), uint32(0xa76bfd65), uint32(0xe65ae67c), uint32(0x2509cb57), uint32(0x6438d04e), 13316 uint32(0xa3ae9101), uint32(0xe29f8a18), uint32(0x21cca733), uint32(0x60fdbc2a), uint32(0xafe124ad), 13317 uint32(0xeed03fb4), uint32(0x2d83129f), uint32(0x6cb20986), uint32(0xab2448c9), uint32(0xea1553d0), 13318 uint32(0x29467efb), uint32(0x687765e2), uint32(0xf6793f2f), uint32(0xb7482436), uint32(0x741b091d), 13319 uint32(0x352a1204), uint32(0xf2bc534b), uint32(0xb38d4852), uint32(0x70de6579), uint32(0x31ef7e60), 13320 uint32(0xfef3e6e7), uint32(0xbfc2fdfe), uint32(0x7c91d0d5), uint32(0x3da0cbcc), uint32(0xfa368a83), 13321 uint32(0xbb07919a), uint32(0x7854bcb1), uint32(0x3965a7a8), uint32(0x4b98833b), uint32(0x0aa99822), 13322 uint32(0xc9fab509), uint32(0x88cbae10), uint32(0x4f5def5f), uint32(0x0e6cf446), uint32(0xcd3fd96d), 13323 uint32(0x8c0ec274), uint32(0x43125af3), uint32(0x022341ea), uint32(0xc1706cc1), uint32(0x804177d8), 13324 uint32(0x47d73697), uint32(0x06e62d8e), uint32(0xc5b500a5), uint32(0x84841bbc), uint32(0x1a8a4171), 13325 uint32(0x5bbb5a68), uint32(0x98e87743), uint32(0xd9d96c5a), uint32(0x1e4f2d15), uint32(0x5f7e360c), 13326 uint32(0x9c2d1b27), uint32(0xdd1c003e), uint32(0x120098b9), uint32(0x533183a0), uint32(0x9062ae8b), 13327 uint32(0xd153b592), uint32(0x16c5f4dd), uint32(0x57f4efc4), uint32(0x94a7c2ef), uint32(0xd596d9f6), 13328 uint32(0xe9bc07ae), uint32(0xa88d1cb7), uint32(0x6bde319c), uint32(0x2aef2a85), uint32(0xed796bca), 13329 uint32(0xac4870d3), uint32(0x6f1b5df8), uint32(0x2e2a46e1), uint32(0xe136de66), uint32(0xa007c57f), 13330 uint32(0x6354e854), uint32(0x2265f34d), uint32(0xe5f3b202), uint32(0xa4c2a91b), uint32(0x67918430), 13331 uint32(0x26a09f29), uint32(0xb8aec5e4), uint32(0xf99fdefd), uint32(0x3accf3d6), uint32(0x7bfde8cf), 13332 uint32(0xbc6ba980), uint32(0xfd5ab299), uint32(0x3e099fb2), uint32(0x7f3884ab), uint32(0xb0241c2c), 13333 uint32(0xf1150735), uint32(0x32462a1e), uint32(0x73773107), uint32(0xb4e17048), uint32(0xf5d06b51), 13334 uint32(0x3683467a), uint32(0x77b25d63), uint32(0x4ed7facb), uint32(0x0fe6e1d2), uint32(0xccb5ccf9), 13335 uint32(0x8d84d7e0), uint32(0x4a1296af), uint32(0x0b238db6), uint32(0xc870a09d), uint32(0x8941bb84), 13336 uint32(0x465d2303), uint32(0x076c381a), uint32(0xc43f1531), uint32(0x850e0e28), uint32(0x42984f67), 13337 uint32(0x03a9547e), uint32(0xc0fa7955), uint32(0x81cb624c), uint32(0x1fc53881), uint32(0x5ef42398), 13338 uint32(0x9da70eb3), uint32(0xdc9615aa), uint32(0x1b0054e5), uint32(0x5a314ffc), uint32(0x996262d7), 13339 uint32(0xd85379ce), uint32(0x174fe149), uint32(0x567efa50), uint32(0x952dd77b), uint32(0xd41ccc62), 13340 uint32(0x138a8d2d), uint32(0x52bb9634), uint32(0x91e8bb1f), uint32(0xd0d9a006), uint32(0xecf37e5e), 13341 uint32(0xadc26547), uint32(0x6e91486c), uint32(0x2fa05375), uint32(0xe836123a), uint32(0xa9070923), 13342 uint32(0x6a542408), uint32(0x2b653f11), uint32(0xe479a796), uint32(0xa548bc8f), uint32(0x661b91a4), 13343 uint32(0x272a8abd), uint32(0xe0bccbf2), uint32(0xa18dd0eb), uint32(0x62defdc0), uint32(0x23efe6d9), 13344 uint32(0xbde1bc14), uint32(0xfcd0a70d), uint32(0x3f838a26), uint32(0x7eb2913f), uint32(0xb924d070), 13345 uint32(0xf815cb69), uint32(0x3b46e642), uint32(0x7a77fd5b), uint32(0xb56b65dc), uint32(0xf45a7ec5), 13346 uint32(0x370953ee), uint32(0x763848f7), uint32(0xb1ae09b8), uint32(0xf09f12a1), uint32(0x33cc3f8a), 13347 uint32(0x72fd2493), 13348 }, 13349 { 13350 uint32(0x00000000), uint32(0x376ac201), uint32(0x6ed48403), uint32(0x59be4602), uint32(0xdca80907), 13351 uint32(0xebc2cb06), uint32(0xb27c8d04), uint32(0x85164f05), uint32(0xb851130e), uint32(0x8f3bd10f), 13352 uint32(0xd685970d), uint32(0xe1ef550c), uint32(0x64f91a09), uint32(0x5393d808), uint32(0x0a2d9e0a), 13353 uint32(0x3d475c0b), uint32(0x70a3261c), uint32(0x47c9e41d), uint32(0x1e77a21f), uint32(0x291d601e), 13354 uint32(0xac0b2f1b), uint32(0x9b61ed1a), uint32(0xc2dfab18), uint32(0xf5b56919), uint32(0xc8f23512), 13355 uint32(0xff98f713), uint32(0xa626b111), uint32(0x914c7310), uint32(0x145a3c15), uint32(0x2330fe14), 13356 uint32(0x7a8eb816), uint32(0x4de47a17), uint32(0xe0464d38), uint32(0xd72c8f39), uint32(0x8e92c93b), 13357 uint32(0xb9f80b3a), uint32(0x3cee443f), uint32(0x0b84863e), uint32(0x523ac03c), uint32(0x6550023d), 13358 uint32(0x58175e36), uint32(0x6f7d9c37), uint32(0x36c3da35), uint32(0x01a91834), uint32(0x84bf5731), 13359 uint32(0xb3d59530), uint32(0xea6bd332), uint32(0xdd011133), uint32(0x90e56b24), uint32(0xa78fa925), 13360 uint32(0xfe31ef27), uint32(0xc95b2d26), uint32(0x4c4d6223), uint32(0x7b27a022), uint32(0x2299e620), 13361 uint32(0x15f32421), uint32(0x28b4782a), uint32(0x1fdeba2b), uint32(0x4660fc29), uint32(0x710a3e28), 13362 uint32(0xf41c712d), uint32(0xc376b32c), uint32(0x9ac8f52e), uint32(0xada2372f), uint32(0xc08d9a70), 13363 uint32(0xf7e75871), uint32(0xae591e73), uint32(0x9933dc72), uint32(0x1c259377), uint32(0x2b4f5176), 13364 uint32(0x72f11774), uint32(0x459bd575), uint32(0x78dc897e), uint32(0x4fb64b7f), uint32(0x16080d7d), 13365 uint32(0x2162cf7c), uint32(0xa4748079), uint32(0x931e4278), uint32(0xcaa0047a), uint32(0xfdcac67b), 13366 uint32(0xb02ebc6c), uint32(0x87447e6d), uint32(0xdefa386f), uint32(0xe990fa6e), uint32(0x6c86b56b), 13367 uint32(0x5bec776a), uint32(0x02523168), uint32(0x3538f369), uint32(0x087faf62), uint32(0x3f156d63), 13368 uint32(0x66ab2b61), uint32(0x51c1e960), uint32(0xd4d7a665), uint32(0xe3bd6464), uint32(0xba032266), 13369 uint32(0x8d69e067), uint32(0x20cbd748), uint32(0x17a11549), uint32(0x4e1f534b), uint32(0x7975914a), 13370 uint32(0xfc63de4f), uint32(0xcb091c4e), uint32(0x92b75a4c), uint32(0xa5dd984d), uint32(0x989ac446), 13371 uint32(0xaff00647), uint32(0xf64e4045), uint32(0xc1248244), uint32(0x4432cd41), uint32(0x73580f40), 13372 uint32(0x2ae64942), uint32(0x1d8c8b43), uint32(0x5068f154), uint32(0x67023355), uint32(0x3ebc7557), 13373 uint32(0x09d6b756), uint32(0x8cc0f853), uint32(0xbbaa3a52), uint32(0xe2147c50), uint32(0xd57ebe51), 13374 uint32(0xe839e25a), uint32(0xdf53205b), uint32(0x86ed6659), uint32(0xb187a458), uint32(0x3491eb5d), 13375 uint32(0x03fb295c), uint32(0x5a456f5e), uint32(0x6d2fad5f), uint32(0x801b35e1), uint32(0xb771f7e0), 13376 uint32(0xeecfb1e2), uint32(0xd9a573e3), uint32(0x5cb33ce6), uint32(0x6bd9fee7), uint32(0x3267b8e5), 13377 uint32(0x050d7ae4), uint32(0x384a26ef), uint32(0x0f20e4ee), uint32(0x569ea2ec), uint32(0x61f460ed), 13378 uint32(0xe4e22fe8), uint32(0xd388ede9), uint32(0x8a36abeb), uint32(0xbd5c69ea), uint32(0xf0b813fd), 13379 uint32(0xc7d2d1fc), uint32(0x9e6c97fe), uint32(0xa90655ff), uint32(0x2c101afa), uint32(0x1b7ad8fb), 13380 uint32(0x42c49ef9), uint32(0x75ae5cf8), uint32(0x48e900f3), uint32(0x7f83c2f2), uint32(0x263d84f0), 13381 uint32(0x115746f1), uint32(0x944109f4), uint32(0xa32bcbf5), uint32(0xfa958df7), uint32(0xcdff4ff6), 13382 uint32(0x605d78d9), uint32(0x5737bad8), uint32(0x0e89fcda), uint32(0x39e33edb), uint32(0xbcf571de), 13383 uint32(0x8b9fb3df), uint32(0xd221f5dd), uint32(0xe54b37dc), uint32(0xd80c6bd7), uint32(0xef66a9d6), 13384 uint32(0xb6d8efd4), uint32(0x81b22dd5), uint32(0x04a462d0), uint32(0x33cea0d1), uint32(0x6a70e6d3), 13385 uint32(0x5d1a24d2), uint32(0x10fe5ec5), uint32(0x27949cc4), uint32(0x7e2adac6), uint32(0x494018c7), 13386 uint32(0xcc5657c2), uint32(0xfb3c95c3), uint32(0xa282d3c1), uint32(0x95e811c0), uint32(0xa8af4dcb), 13387 uint32(0x9fc58fca), uint32(0xc67bc9c8), uint32(0xf1110bc9), uint32(0x740744cc), uint32(0x436d86cd), 13388 uint32(0x1ad3c0cf), uint32(0x2db902ce), uint32(0x4096af91), uint32(0x77fc6d90), uint32(0x2e422b92), 13389 uint32(0x1928e993), uint32(0x9c3ea696), uint32(0xab546497), uint32(0xf2ea2295), uint32(0xc580e094), 13390 uint32(0xf8c7bc9f), uint32(0xcfad7e9e), uint32(0x9613389c), uint32(0xa179fa9d), uint32(0x246fb598), 13391 uint32(0x13057799), uint32(0x4abb319b), uint32(0x7dd1f39a), uint32(0x3035898d), uint32(0x075f4b8c), 13392 uint32(0x5ee10d8e), uint32(0x698bcf8f), uint32(0xec9d808a), uint32(0xdbf7428b), uint32(0x82490489), 13393 uint32(0xb523c688), uint32(0x88649a83), uint32(0xbf0e5882), uint32(0xe6b01e80), uint32(0xd1dadc81), 13394 uint32(0x54cc9384), uint32(0x63a65185), uint32(0x3a181787), uint32(0x0d72d586), uint32(0xa0d0e2a9), 13395 uint32(0x97ba20a8), uint32(0xce0466aa), uint32(0xf96ea4ab), uint32(0x7c78ebae), uint32(0x4b1229af), 13396 uint32(0x12ac6fad), uint32(0x25c6adac), uint32(0x1881f1a7), uint32(0x2feb33a6), uint32(0x765575a4), 13397 uint32(0x413fb7a5), uint32(0xc429f8a0), uint32(0xf3433aa1), uint32(0xaafd7ca3), uint32(0x9d97bea2), 13398 uint32(0xd073c4b5), uint32(0xe71906b4), uint32(0xbea740b6), uint32(0x89cd82b7), uint32(0x0cdbcdb2), 13399 uint32(0x3bb10fb3), uint32(0x620f49b1), uint32(0x55658bb0), uint32(0x6822d7bb), uint32(0x5f4815ba), 13400 uint32(0x06f653b8), uint32(0x319c91b9), uint32(0xb48adebc), uint32(0x83e01cbd), uint32(0xda5e5abf), 13401 uint32(0xed3498be), 13402 }, 13403 { 13404 uint32(0x00000000), uint32(0x6567bcb8), uint32(0x8bc809aa), uint32(0xeeafb512), uint32(0x5797628f), 13405 uint32(0x32f0de37), uint32(0xdc5f6b25), uint32(0xb938d79d), uint32(0xef28b4c5), uint32(0x8a4f087d), 13406 uint32(0x64e0bd6f), uint32(0x018701d7), uint32(0xb8bfd64a), uint32(0xddd86af2), uint32(0x3377dfe0), 13407 uint32(0x56106358), uint32(0x9f571950), uint32(0xfa30a5e8), uint32(0x149f10fa), uint32(0x71f8ac42), 13408 uint32(0xc8c07bdf), uint32(0xada7c767), uint32(0x43087275), uint32(0x266fcecd), uint32(0x707fad95), 13409 uint32(0x1518112d), uint32(0xfbb7a43f), uint32(0x9ed01887), uint32(0x27e8cf1a), uint32(0x428f73a2), 13410 uint32(0xac20c6b0), uint32(0xc9477a08), uint32(0x3eaf32a0), uint32(0x5bc88e18), uint32(0xb5673b0a), 13411 uint32(0xd00087b2), uint32(0x6938502f), uint32(0x0c5fec97), uint32(0xe2f05985), uint32(0x8797e53d), 13412 uint32(0xd1878665), uint32(0xb4e03add), uint32(0x5a4f8fcf), uint32(0x3f283377), uint32(0x8610e4ea), 13413 uint32(0xe3775852), uint32(0x0dd8ed40), uint32(0x68bf51f8), uint32(0xa1f82bf0), uint32(0xc49f9748), 13414 uint32(0x2a30225a), uint32(0x4f579ee2), uint32(0xf66f497f), uint32(0x9308f5c7), uint32(0x7da740d5), 13415 uint32(0x18c0fc6d), uint32(0x4ed09f35), uint32(0x2bb7238d), uint32(0xc518969f), uint32(0xa07f2a27), 13416 uint32(0x1947fdba), uint32(0x7c204102), uint32(0x928ff410), uint32(0xf7e848a8), uint32(0x3d58149b), 13417 uint32(0x583fa823), uint32(0xb6901d31), uint32(0xd3f7a189), uint32(0x6acf7614), uint32(0x0fa8caac), 13418 uint32(0xe1077fbe), uint32(0x8460c306), uint32(0xd270a05e), uint32(0xb7171ce6), uint32(0x59b8a9f4), 13419 uint32(0x3cdf154c), uint32(0x85e7c2d1), uint32(0xe0807e69), uint32(0x0e2fcb7b), uint32(0x6b4877c3), 13420 uint32(0xa20f0dcb), uint32(0xc768b173), uint32(0x29c70461), uint32(0x4ca0b8d9), uint32(0xf5986f44), 13421 uint32(0x90ffd3fc), uint32(0x7e5066ee), uint32(0x1b37da56), uint32(0x4d27b90e), uint32(0x284005b6), 13422 uint32(0xc6efb0a4), uint32(0xa3880c1c), uint32(0x1ab0db81), uint32(0x7fd76739), uint32(0x9178d22b), 13423 uint32(0xf41f6e93), uint32(0x03f7263b), uint32(0x66909a83), uint32(0x883f2f91), uint32(0xed589329), 13424 uint32(0x546044b4), uint32(0x3107f80c), uint32(0xdfa84d1e), uint32(0xbacff1a6), uint32(0xecdf92fe), 13425 uint32(0x89b82e46), uint32(0x67179b54), uint32(0x027027ec), uint32(0xbb48f071), uint32(0xde2f4cc9), 13426 uint32(0x3080f9db), uint32(0x55e74563), uint32(0x9ca03f6b), uint32(0xf9c783d3), uint32(0x176836c1), 13427 uint32(0x720f8a79), uint32(0xcb375de4), uint32(0xae50e15c), uint32(0x40ff544e), uint32(0x2598e8f6), 13428 uint32(0x73888bae), uint32(0x16ef3716), uint32(0xf8408204), uint32(0x9d273ebc), uint32(0x241fe921), 13429 uint32(0x41785599), uint32(0xafd7e08b), uint32(0xcab05c33), uint32(0x3bb659ed), uint32(0x5ed1e555), 13430 uint32(0xb07e5047), uint32(0xd519ecff), uint32(0x6c213b62), uint32(0x094687da), uint32(0xe7e932c8), 13431 uint32(0x828e8e70), uint32(0xd49eed28), uint32(0xb1f95190), uint32(0x5f56e482), uint32(0x3a31583a), 13432 uint32(0x83098fa7), uint32(0xe66e331f), uint32(0x08c1860d), uint32(0x6da63ab5), uint32(0xa4e140bd), 13433 uint32(0xc186fc05), uint32(0x2f294917), uint32(0x4a4ef5af), uint32(0xf3762232), uint32(0x96119e8a), 13434 uint32(0x78be2b98), uint32(0x1dd99720), uint32(0x4bc9f478), uint32(0x2eae48c0), uint32(0xc001fdd2), 13435 uint32(0xa566416a), uint32(0x1c5e96f7), uint32(0x79392a4f), uint32(0x97969f5d), uint32(0xf2f123e5), 13436 uint32(0x05196b4d), uint32(0x607ed7f5), uint32(0x8ed162e7), uint32(0xebb6de5f), uint32(0x528e09c2), 13437 uint32(0x37e9b57a), uint32(0xd9460068), uint32(0xbc21bcd0), uint32(0xea31df88), uint32(0x8f566330), 13438 uint32(0x61f9d622), uint32(0x049e6a9a), uint32(0xbda6bd07), uint32(0xd8c101bf), uint32(0x366eb4ad), 13439 uint32(0x53090815), uint32(0x9a4e721d), uint32(0xff29cea5), uint32(0x11867bb7), uint32(0x74e1c70f), 13440 uint32(0xcdd91092), uint32(0xa8beac2a), uint32(0x46111938), uint32(0x2376a580), uint32(0x7566c6d8), 13441 uint32(0x10017a60), uint32(0xfeaecf72), uint32(0x9bc973ca), uint32(0x22f1a457), uint32(0x479618ef), 13442 uint32(0xa939adfd), uint32(0xcc5e1145), uint32(0x06ee4d76), uint32(0x6389f1ce), uint32(0x8d2644dc), 13443 uint32(0xe841f864), uint32(0x51792ff9), uint32(0x341e9341), uint32(0xdab12653), uint32(0xbfd69aeb), 13444 uint32(0xe9c6f9b3), uint32(0x8ca1450b), uint32(0x620ef019), uint32(0x07694ca1), uint32(0xbe519b3c), 13445 uint32(0xdb362784), uint32(0x35999296), uint32(0x50fe2e2e), uint32(0x99b95426), uint32(0xfcdee89e), 13446 uint32(0x12715d8c), uint32(0x7716e134), uint32(0xce2e36a9), uint32(0xab498a11), uint32(0x45e63f03), 13447 uint32(0x208183bb), uint32(0x7691e0e3), uint32(0x13f65c5b), uint32(0xfd59e949), uint32(0x983e55f1), 13448 uint32(0x2106826c), uint32(0x44613ed4), uint32(0xaace8bc6), uint32(0xcfa9377e), uint32(0x38417fd6), 13449 uint32(0x5d26c36e), uint32(0xb389767c), uint32(0xd6eecac4), uint32(0x6fd61d59), uint32(0x0ab1a1e1), 13450 uint32(0xe41e14f3), uint32(0x8179a84b), uint32(0xd769cb13), uint32(0xb20e77ab), uint32(0x5ca1c2b9), 13451 uint32(0x39c67e01), uint32(0x80fea99c), uint32(0xe5991524), uint32(0x0b36a036), uint32(0x6e511c8e), 13452 uint32(0xa7166686), uint32(0xc271da3e), uint32(0x2cde6f2c), uint32(0x49b9d394), uint32(0xf0810409), 13453 uint32(0x95e6b8b1), uint32(0x7b490da3), uint32(0x1e2eb11b), uint32(0x483ed243), uint32(0x2d596efb), 13454 uint32(0xc3f6dbe9), uint32(0xa6916751), uint32(0x1fa9b0cc), uint32(0x7ace0c74), uint32(0x9461b966), 13455 uint32(0xf10605de), 13456 }, 13457 } /* crc32.h:5:25 */ 13458 13459 // ========================================================================= 13460 // This function can be used by asm versions of crc32() 13461 func Xget_crc_table(tls *libc.TLS) uintptr { /* crc32.c:188:19: */ 13462 return uintptr(uintptr(unsafe.Pointer(&crc_table))) 13463 } 13464 13465 // ========================================================================= 13466 13467 // ========================================================================= 13468 func Xcrc32_z(tls *libc.TLS, crc uint64, buf uintptr, len Z_size_t) uint64 { /* crc32.c:202:23: */ 13469 bp := tls.Alloc(4) 13470 defer tls.Free(4) 13471 13472 if buf == uintptr(Z_NULL) { 13473 return 0 13474 } 13475 13476 if uint64(unsafe.Sizeof(uintptr(0))) == uint64(unsafe.Sizeof(Ptrdiff_t(0))) { 13477 // var endian Z_crc_t at bp, 4 13478 13479 *(*Z_crc_t)(unsafe.Pointer(bp /* endian */)) = Z_crc_t(1) 13480 if *(*uint8)(unsafe.Pointer(bp /* &endian */)) != 0 { 13481 return crc32_little(tls, crc, buf, len) 13482 } else { 13483 return crc32_big(tls, crc, buf, len) 13484 } 13485 } 13486 crc = (crc ^ 0xffffffff) 13487 for len >= uint64(8) { 13488 crc = (uint64(*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr(((int32(crc)^(int32(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1))))))&0xff))*4))) ^ (crc >> 8)) 13489 crc = (uint64(*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr(((int32(crc)^(int32(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1))))))&0xff))*4))) ^ (crc >> 8)) 13490 crc = (uint64(*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr(((int32(crc)^(int32(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1))))))&0xff))*4))) ^ (crc >> 8)) 13491 crc = (uint64(*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr(((int32(crc)^(int32(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1))))))&0xff))*4))) ^ (crc >> 8)) 13492 crc = (uint64(*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr(((int32(crc)^(int32(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1))))))&0xff))*4))) ^ (crc >> 8)) 13493 crc = (uint64(*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr(((int32(crc)^(int32(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1))))))&0xff))*4))) ^ (crc >> 8)) 13494 crc = (uint64(*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr(((int32(crc)^(int32(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1))))))&0xff))*4))) ^ (crc >> 8)) 13495 crc = (uint64(*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr(((int32(crc)^(int32(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1))))))&0xff))*4))) ^ (crc >> 8)) 13496 len = len - (uint64(8)) 13497 } 13498 if len != 0 { 13499 for ok := true; ok; ok = libc.PreDecUint64(&len, 1) != 0 { 13500 crc = (uint64(*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr(((int32(crc)^(int32(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1))))))&0xff))*4))) ^ (crc >> 8)) 13501 } 13502 } 13503 return (crc ^ 0xffffffff) 13504 } 13505 13506 // ========================================================================= 13507 func Xcrc32(tls *libc.TLS, crc uint64, buf uintptr, len UInt) uint64 { /* crc32.c:237:23: */ 13508 return Xcrc32_z(tls, crc, buf, uint64(len)) 13509 } 13510 13511 // 13512 // This BYFOUR code accesses the passed unsigned char * buffer with a 32-bit 13513 // integer pointer type. This violates the strict aliasing rule, where a 13514 // compiler can assume, for optimization purposes, that two pointers to 13515 // fundamentally different types won't ever point to the same memory. This can 13516 // manifest as a problem only if one of the pointers is written to. This code 13517 // only reads from those pointers. So long as this code remains isolated in 13518 // this compilation unit, there won't be a problem. For this reason, this code 13519 // should not be copied and pasted into a compilation unit in which other code 13520 // writes to the buffer that is passed to these routines. 13521 // 13522 13523 // ========================================================================= 13524 13525 // ========================================================================= 13526 func crc32_little(tls *libc.TLS, crc uint64, buf uintptr, len Z_size_t) uint64 { /* crc32.c:266:21: */ 13527 var c Z_crc_t 13528 var buf4 uintptr 13529 13530 c = Z_crc_t(crc) 13531 c = ^c 13532 for (len != 0) && ((Ptrdiff_t(buf) & int64(3)) != 0) { 13533 c = (*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr(((c^Z_crc_t(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1)))))&Z_crc_t(0xff)))*4)) ^ (c >> 8)) 13534 len-- 13535 } 13536 13537 buf4 = buf 13538 for len >= uint64(32) { 13539 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13540 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 3*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 2*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 1*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr((c>>24))*4))) 13541 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13542 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 3*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 2*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 1*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr((c>>24))*4))) 13543 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13544 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 3*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 2*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 1*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr((c>>24))*4))) 13545 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13546 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 3*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 2*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 1*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr((c>>24))*4))) 13547 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13548 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 3*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 2*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 1*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr((c>>24))*4))) 13549 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13550 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 3*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 2*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 1*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr((c>>24))*4))) 13551 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13552 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 3*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 2*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 1*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr((c>>24))*4))) 13553 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13554 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 3*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 2*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 1*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr((c>>24))*4))) 13555 len = len - (uint64(32)) 13556 } 13557 for len >= uint64(4) { 13558 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13559 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 3*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 2*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 1*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr((c>>24))*4))) 13560 len = len - (uint64(4)) 13561 } 13562 buf = buf4 13563 13564 if len != 0 { 13565 for ok := true; ok; ok = libc.PreDecUint64(&len, 1) != 0 { 13566 c = (*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table))) + uintptr(((c^Z_crc_t(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1)))))&Z_crc_t(0xff)))*4)) ^ (c >> 8)) 13567 } 13568 } 13569 c = ^c 13570 return uint64(c) 13571 } 13572 13573 // ========================================================================= 13574 13575 // ========================================================================= 13576 func crc32_big(tls *libc.TLS, crc uint64, buf uintptr, len Z_size_t) uint64 { /* crc32.c:306:21: */ 13577 var c Z_crc_t 13578 var buf4 uintptr 13579 13580 c = ((((((Z_crc_t(crc)) >> 24) & Z_crc_t(0xff)) + (((Z_crc_t(crc)) >> 8) & Z_crc_t(0xff00))) + (((Z_crc_t(crc)) & Z_crc_t(0xff00)) << 8)) + (((Z_crc_t(crc)) & Z_crc_t(0xff)) << 24)) 13581 c = ^c 13582 for (len != 0) && ((Ptrdiff_t(buf) & int64(3)) != 0) { 13583 c = (*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 4*1024) + uintptr(((c>>24)^Z_crc_t(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1))))))*4)) ^ (c << 8)) 13584 len-- 13585 } 13586 13587 buf4 = buf 13588 for len >= uint64(32) { 13589 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13590 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 4*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 5*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 6*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 7*1024) + uintptr((c>>24))*4))) 13591 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13592 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 4*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 5*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 6*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 7*1024) + uintptr((c>>24))*4))) 13593 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13594 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 4*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 5*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 6*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 7*1024) + uintptr((c>>24))*4))) 13595 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13596 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 4*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 5*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 6*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 7*1024) + uintptr((c>>24))*4))) 13597 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13598 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 4*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 5*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 6*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 7*1024) + uintptr((c>>24))*4))) 13599 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13600 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 4*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 5*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 6*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 7*1024) + uintptr((c>>24))*4))) 13601 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13602 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 4*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 5*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 6*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 7*1024) + uintptr((c>>24))*4))) 13603 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13604 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 4*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 5*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 6*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 7*1024) + uintptr((c>>24))*4))) 13605 len = len - (uint64(32)) 13606 } 13607 for len >= uint64(4) { 13608 c = c ^ (*(*Z_crc_t)(unsafe.Pointer(libc.PostIncUintptr(&buf4, 4)))) 13609 c = (((*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 4*1024) + uintptr((c&Z_crc_t(0xff)))*4)) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 5*1024) + uintptr(((c>>8)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 6*1024) + uintptr(((c>>16)&Z_crc_t(0xff)))*4))) ^ *(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 7*1024) + uintptr((c>>24))*4))) 13610 len = len - (uint64(4)) 13611 } 13612 buf = buf4 13613 13614 if len != 0 { 13615 for ok := true; ok; ok = libc.PreDecUint64(&len, 1) != 0 { 13616 c = (*(*Z_crc_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&crc_table)) + 4*1024) + uintptr(((c>>24)^Z_crc_t(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&buf, 1))))))*4)) ^ (c << 8)) 13617 } 13618 } 13619 c = ^c 13620 return (uint64((((((c) >> 24) & Z_crc_t(0xff)) + (((c) >> 8) & Z_crc_t(0xff00))) + (((c) & Z_crc_t(0xff00)) << 8)) + (((c) & Z_crc_t(0xff)) << 24))) 13621 } 13622 13623 // ========================================================================= 13624 func gf2_matrix_times(tls *libc.TLS, mat uintptr, vec uint64) uint64 { /* crc32.c:344:21: */ 13625 var sum uint64 13626 13627 sum = uint64(0) 13628 for vec != 0 { 13629 if (vec & uint64(1)) != 0 { 13630 sum = sum ^ (*(*uint64)(unsafe.Pointer(mat))) 13631 } 13632 vec >>= 1 13633 mat += 8 13634 } 13635 return sum 13636 } 13637 13638 // ========================================================================= 13639 func gf2_matrix_square(tls *libc.TLS, square uintptr, mat uintptr) { /* crc32.c:361:12: */ 13640 var n int32 13641 13642 for n = 0; n < GF2_DIM; n++ { 13643 *(*uint64)(unsafe.Pointer(square + uintptr(n)*8)) = gf2_matrix_times(tls, mat, *(*uint64)(unsafe.Pointer(mat + uintptr(n)*8))) 13644 } 13645 } 13646 13647 // ========================================================================= 13648 func crc32_combine_(tls *libc.TLS, crc1 ULong, crc2 ULong, len2 Off_t) ULong { /* crc32.c:372:13: */ 13649 bp := tls.Alloc(512) 13650 defer tls.Free(512) 13651 13652 var n int32 13653 var row uint64 13654 // var even [32]uint64 at bp+256, 256 13655 // even-power-of-two zeros operator 13656 // var odd [32]uint64 at bp, 256 13657 // odd-power-of-two zeros operator 13658 13659 // degenerate case (also disallow negative lengths) 13660 if len2 <= int64(0) { 13661 return crc1 13662 } 13663 13664 // put operator for one zero bit in odd 13665 *(*uint64)(unsafe.Pointer(bp /* &odd[0] */)) = 0xedb88320 // CRC-32 polynomial 13666 row = uint64(1) 13667 for n = 1; n < GF2_DIM; n++ { 13668 *(*uint64)(unsafe.Pointer(bp /* &odd[0] */ + uintptr(n)*8)) = row 13669 row <<= 1 13670 } 13671 13672 // put operator for two zero bits in even 13673 gf2_matrix_square(tls, bp+256 /* &even[0] */, bp /* &odd[0] */) 13674 13675 // put operator for four zero bits in odd 13676 gf2_matrix_square(tls, bp /* &odd[0] */, bp+256 /* &even[0] */) 13677 13678 // apply len2 zeros to crc1 (first square will put the operator for one 13679 // zero byte, eight zero bits, in even) 13680 for ok := true; ok; ok = (len2 != int64(0)) { 13681 // apply zeros operator for this bit of len2 13682 gf2_matrix_square(tls, bp+256 /* &even[0] */, bp /* &odd[0] */) 13683 if (len2 & int64(1)) != 0 { 13684 crc1 = gf2_matrix_times(tls, bp+256 /* &even[0] */, crc1) 13685 } 13686 len2 >>= 1 13687 13688 // if no more bits set, then done 13689 if len2 == int64(0) { 13690 break 13691 } 13692 13693 // another iteration of the loop with odd and even swapped 13694 gf2_matrix_square(tls, bp /* &odd[0] */, bp+256 /* &even[0] */) 13695 if (len2 & int64(1)) != 0 { 13696 crc1 = gf2_matrix_times(tls, bp /* &odd[0] */, crc1) 13697 } 13698 len2 >>= 1 13699 13700 // if no more bits set, then done 13701 } 13702 13703 // return combined crc 13704 crc1 = crc1 ^ (crc2) 13705 return crc1 13706 } 13707 13708 // ========================================================================= 13709 func Xcrc32_combine(tls *libc.TLS, crc1 ULong, crc2 ULong, len2 Off_t) ULong { /* crc32.c:428:15: */ 13710 return crc32_combine_(tls, crc1, crc2, len2) 13711 } 13712 13713 func Xcrc32_combine64(tls *libc.TLS, crc1 ULong, crc2 ULong, len2 Off_t) ULong { /* crc32.c:436:15: */ 13714 return crc32_combine_(tls, crc1, crc2, len2) 13715 } 13716 13717 // Reverse the bytes in a 32-bit value 13718 13719 // define NO_GZIP when compiling if you want to disable gzip header and 13720 // trailer creation by deflate(). NO_GZIP would be used to avoid linking in 13721 // the crc code when it is not needed. For shared libraries, gzip encoding 13722 // should be left enabled. 13723 13724 // =========================================================================== 13725 // Internal compression state. 13726 13727 // number of length codes, not counting the special END_BLOCK code 13728 13729 // number of literal bytes 0..255 13730 13731 // number of Literal or Length codes, including the END_BLOCK code 13732 13733 // number of distance codes 13734 13735 // number of codes used to transfer the bit lengths 13736 13737 // maximum heap size 13738 13739 // All codes must not exceed MAX_BITS bits 13740 13741 // size of bit buffer in bi_buf 13742 13743 // Stream status 13744 13745 // Data structure describing a single value and its code string. 13746 type Ct_data_s = struct { 13747 Ffc struct{ Ffreq Ush } 13748 Fdl struct{ Fdad Ush } 13749 } /* zlib.h:84:1 */ 13750 13751 // Reverse the bytes in a 32-bit value 13752 13753 // define NO_GZIP when compiling if you want to disable gzip header and 13754 // trailer creation by deflate(). NO_GZIP would be used to avoid linking in 13755 // the crc code when it is not needed. For shared libraries, gzip encoding 13756 // should be left enabled. 13757 13758 // =========================================================================== 13759 // Internal compression state. 13760 13761 // number of length codes, not counting the special END_BLOCK code 13762 13763 // number of literal bytes 0..255 13764 13765 // number of Literal or Length codes, including the END_BLOCK code 13766 13767 // number of distance codes 13768 13769 // number of codes used to transfer the bit lengths 13770 13771 // maximum heap size 13772 13773 // All codes must not exceed MAX_BITS bits 13774 13775 // size of bit buffer in bi_buf 13776 13777 // Stream status 13778 13779 // Data structure describing a single value and its code string. 13780 type Ct_data = Ct_data_s /* deflate.h:77:7 */ 13781 13782 type Static_tree_desc_s = struct { 13783 Fstatic_tree uintptr 13784 Fextra_bits uintptr 13785 Fextra_base int32 13786 Felems int32 13787 Fmax_length int32 13788 F__ccgo_pad1 [4]byte 13789 } /* deflate.h:84:9 */ 13790 13791 type Tree_desc_s = struct { 13792 Fdyn_tree uintptr 13793 Fmax_code int32 13794 F__ccgo_pad1 [4]byte 13795 Fstat_desc uintptr 13796 } /* zlib.h:84:1 */ 13797 13798 type Tree_desc = Tree_desc_s /* deflate.h:90:7 */ 13799 13800 type Pos = Ush /* deflate.h:92:13 */ 13801 type Posf = Pos /* deflate.h:93:17 */ 13802 type IPos = uint32 /* deflate.h:94:18 */ 13803 13804 // A Pos is an index in the character window. We use short instead of int to 13805 // save space in the various tables. IPos is used only for parameter passing. 13806 13807 type Deflate_state = Internal_state /* deflate.h:276:7 */ 13808 13809 var Xdeflate_copyright = *(*[69]int8)(unsafe.Pointer(ts + 7 /* " deflate 1.2.11 ..." */)) /* deflate.c:54:12 */ 13810 // 13811 // If you use the zlib library in a product, an acknowledgment is welcome 13812 // in the documentation of your product. If for some reason you cannot 13813 // include such an acknowledgment, I would appreciate that you keep this 13814 // copyright string in the executable of your product. 13815 // 13816 13817 // =========================================================================== 13818 // Function prototypes. 13819 type Block_state = uint32 /* deflate.c:71:3 */ 13820 13821 type Compress_func = uintptr /* deflate.c:73:21 */ 13822 13823 // =========================================================================== 13824 // Local data 13825 13826 // Tail of hash chains 13827 13828 // Matches of length 3 are discarded if their distance exceeds TOO_FAR 13829 13830 // Values for max_lazy_match, good_match and max_chain_length, depending on 13831 // the desired pack level (0..9). The values given below have been tuned to 13832 // exclude worst case performance for pathological files. Better values may be 13833 // found for specific files. 13834 type Config_s = struct { 13835 Fgood_length Ush 13836 Fmax_lazy Ush 13837 Fnice_length Ush 13838 Fmax_chain Ush 13839 Ffunc Compress_func 13840 } /* deflate.c:120:9 */ 13841 13842 // =========================================================================== 13843 // Local data 13844 13845 // Tail of hash chains 13846 13847 // Matches of length 3 are discarded if their distance exceeds TOO_FAR 13848 13849 // Values for max_lazy_match, good_match and max_chain_length, depending on 13850 // the desired pack level (0..9). The values given below have been tuned to 13851 // exclude worst case performance for pathological files. Better values may be 13852 // found for specific files. 13853 type Config = Config_s /* deflate.c:126:3 */ 13854 13855 var configuration_table = [10]Config{ 13856 // good lazy nice chain 13857 /* 0 */ {Ffunc: 0}, // store only 13858 /* 1 */ {Fgood_length: Ush(4), Fmax_lazy: Ush(4), Fnice_length: Ush(8), Fmax_chain: Ush(4), Ffunc: 0}, // max speed, no lazy matches 13859 /* 2 */ {Fgood_length: Ush(4), Fmax_lazy: Ush(5), Fnice_length: Ush(16), Fmax_chain: Ush(8), Ffunc: 0}, 13860 /* 3 */ {Fgood_length: Ush(4), Fmax_lazy: Ush(6), Fnice_length: Ush(32), Fmax_chain: Ush(32), Ffunc: 0}, 13861 13862 /* 4 */ {Fgood_length: Ush(4), Fmax_lazy: Ush(4), Fnice_length: Ush(16), Fmax_chain: Ush(16), Ffunc: 0}, // lazy matches 13863 /* 5 */ {Fgood_length: Ush(8), Fmax_lazy: Ush(16), Fnice_length: Ush(32), Fmax_chain: Ush(32), Ffunc: 0}, 13864 /* 6 */ {Fgood_length: Ush(8), Fmax_lazy: Ush(16), Fnice_length: Ush(128), Fmax_chain: Ush(128), Ffunc: 0}, 13865 /* 7 */ {Fgood_length: Ush(8), Fmax_lazy: Ush(32), Fnice_length: Ush(128), Fmax_chain: Ush(256), Ffunc: 0}, 13866 /* 8 */ {Fgood_length: Ush(32), Fmax_lazy: Ush(128), Fnice_length: Ush(258), Fmax_chain: Ush(1024), Ffunc: 0}, 13867 /* 9 */ {Fgood_length: Ush(32), Fmax_lazy: Ush(258), Fnice_length: Ush(258), Fmax_chain: Ush(4096), Ffunc: 0}} /* deflate.c:134:20 */ 13868 13869 // max compression 13870 13871 // Note: the deflate() code requires max_lazy >= MIN_MATCH and max_chain >= 4 13872 // For deflate_fast() (levels <= 3) good is ignored and lazy has a different 13873 // meaning. 13874 13875 // rank Z_BLOCK between Z_NO_FLUSH and Z_PARTIAL_FLUSH 13876 13877 // =========================================================================== 13878 // Update a hash value with the given input byte 13879 // IN assertion: all calls to UPDATE_HASH are made with consecutive input 13880 // characters, so that a running hash key can be computed from the previous 13881 // key instead of complete recalculation each time. 13882 13883 // =========================================================================== 13884 // Insert string str in the dictionary and set match_head to the previous head 13885 // of the hash chain (the most recent string with same hash key). Return 13886 // the previous length of the hash chain. 13887 // If this file is compiled with -DFASTEST, the compression level is forced 13888 // to 1, and no hash chains are maintained. 13889 // IN assertion: all calls to INSERT_STRING are made with consecutive input 13890 // characters and the first MIN_MATCH bytes of str are valid (except for 13891 // the last MIN_MATCH-1 bytes of the input file). 13892 13893 // =========================================================================== 13894 // Initialize the hash table (avoiding 64K overflow for 16 bit systems). 13895 // prev[] will be initialized on the fly. 13896 13897 // =========================================================================== 13898 // Slide the hash table when sliding the window down (could be avoided with 32 13899 // bit values at the expense of memory usage). We slide even when level == 0 to 13900 // keep the hash table consistent if we switch back to level > 0 later. 13901 func slide_hash(tls *libc.TLS, s uintptr) { /* deflate.c:201:12: */ 13902 var n uint32 13903 var m uint32 13904 var p uintptr 13905 var wsize UInt = (*Deflate_state)(unsafe.Pointer(s)).Fw_size 13906 13907 n = (*Deflate_state)(unsafe.Pointer(s)).Fhash_size 13908 p = ((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr(n)*2) 13909 for ok := true; ok; ok = libc.PreDecUint32(&n, 1) != 0 { 13910 m = uint32(*(*Posf)(unsafe.Pointer(libc.PreDecUintptr(&p, 2)))) 13911 *(*Posf)(unsafe.Pointer(p)) = func() uint16 { 13912 if m >= wsize { 13913 return (uint16(m - wsize)) 13914 } 13915 return uint16(NIL) 13916 }() 13917 } 13918 n = wsize 13919 p = ((*Deflate_state)(unsafe.Pointer(s)).Fprev + uintptr(n)*2) 13920 for ok1 := true; ok1; ok1 = libc.PreDecUint32(&n, 1) != 0 { 13921 m = uint32(*(*Posf)(unsafe.Pointer(libc.PreDecUintptr(&p, 2)))) 13922 *(*Posf)(unsafe.Pointer(p)) = func() uint16 { 13923 if m >= wsize { 13924 return (uint16(m - wsize)) 13925 } 13926 return uint16(NIL) 13927 }() 13928 // If n is not on any hash chain, prev[n] is garbage but 13929 // its value will never be used. 13930 } 13931 } 13932 13933 // ========================================================================= 13934 func XdeflateInit_(tls *libc.TLS, strm Z_streamp, level int32, version uintptr, stream_size int32) int32 { /* deflate.c:228:13: */ 13935 return XdeflateInit2_(tls, strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, 13936 Z_DEFAULT_STRATEGY, version, stream_size) 13937 // To do: ignore strm->next_in if we use it as window 13938 } 13939 13940 // ========================================================================= 13941 func XdeflateInit2_(tls *libc.TLS, strm Z_streamp, level int32, method int32, windowBits int32, memLevel int32, strategy int32, version uintptr, stream_size int32) int32 { /* deflate.c:240:13: */ 13942 var s uintptr 13943 var wrap int32 = 1 13944 var overlay uintptr 13945 // We overlay pending_buf and d_buf+l_buf. This works since the average 13946 // output size for (length,distance) codes is <= 24 bits. 13947 13948 if ((version == uintptr(Z_NULL)) || (int32(*(*int8)(unsafe.Pointer(version))) != int32(my_version[0]))) || (uint64(stream_size) != uint64(unsafe.Sizeof(Z_stream{}))) { 13949 return -6 13950 } 13951 if strm == uintptr(Z_NULL) { 13952 return -2 13953 } 13954 13955 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(Z_NULL) 13956 if (*Z_stream)(unsafe.Pointer(strm)).Fzalloc == uintptr(0) { 13957 (*Z_stream)(unsafe.Pointer(strm)).Fzalloc = *(*uintptr)(unsafe.Pointer(&struct { 13958 f func(*libc.TLS, Voidpf, uint32, uint32) Voidpf 13959 }{Xzcalloc})) 13960 (*Z_stream)(unsafe.Pointer(strm)).Fopaque = uintptr(0) 13961 } 13962 if (*Z_stream)(unsafe.Pointer(strm)).Fzfree == uintptr(0) { 13963 (*Z_stream)(unsafe.Pointer(strm)).Fzfree = *(*uintptr)(unsafe.Pointer(&struct { 13964 f func(*libc.TLS, Voidpf, Voidpf) 13965 }{Xzcfree})) 13966 } 13967 13968 if level == (-1) { 13969 level = 6 13970 } 13971 13972 if windowBits < 0 { // suppress zlib wrapper 13973 wrap = 0 13974 windowBits = -windowBits 13975 } else if windowBits > 15 { 13976 wrap = 2 // write gzip wrapper instead 13977 windowBits = windowBits - (16) 13978 } 13979 if (((((((((memLevel < 1) || (memLevel > MAX_MEM_LEVEL)) || (method != Z_DEFLATED)) || (windowBits < 8)) || (windowBits > 15)) || (level < 0)) || (level > 9)) || (strategy < 0)) || (strategy > Z_FIXED)) || ((windowBits == 8) && (wrap != 1)) { 13980 return -2 13981 } 13982 if windowBits == 8 { 13983 windowBits = 9 13984 } // until 256-byte window bug fixed 13985 s = (*struct { 13986 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 13987 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, uint32(1), uint32(unsafe.Sizeof(Deflate_state{}))) 13988 if s == uintptr(Z_NULL) { 13989 return -4 13990 } 13991 (*Z_stream)(unsafe.Pointer(strm)).Fstate = s 13992 (*Deflate_state)(unsafe.Pointer(s)).Fstrm = strm 13993 (*Deflate_state)(unsafe.Pointer(s)).Fstatus = INIT_STATE // to pass state test in deflateReset() 13994 13995 (*Deflate_state)(unsafe.Pointer(s)).Fwrap = wrap 13996 (*Deflate_state)(unsafe.Pointer(s)).Fgzhead = Gz_headerp(Z_NULL) 13997 (*Deflate_state)(unsafe.Pointer(s)).Fw_bits = UInt(windowBits) 13998 (*Deflate_state)(unsafe.Pointer(s)).Fw_size = (UInt(int32(1) << (*Deflate_state)(unsafe.Pointer(s)).Fw_bits)) 13999 (*Deflate_state)(unsafe.Pointer(s)).Fw_mask = ((*Deflate_state)(unsafe.Pointer(s)).Fw_size - UInt(1)) 14000 14001 (*Deflate_state)(unsafe.Pointer(s)).Fhash_bits = (UInt(memLevel) + UInt(7)) 14002 (*Deflate_state)(unsafe.Pointer(s)).Fhash_size = (UInt(int32(1) << (*Deflate_state)(unsafe.Pointer(s)).Fhash_bits)) 14003 (*Deflate_state)(unsafe.Pointer(s)).Fhash_mask = ((*Deflate_state)(unsafe.Pointer(s)).Fhash_size - UInt(1)) 14004 (*Deflate_state)(unsafe.Pointer(s)).Fhash_shift = ((((*Deflate_state)(unsafe.Pointer(s)).Fhash_bits + UInt(MIN_MATCH)) - UInt(1)) / UInt(MIN_MATCH)) 14005 14006 (*Deflate_state)(unsafe.Pointer(s)).Fwindow = (*struct { 14007 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 14008 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (*Deflate_state)(unsafe.Pointer(s)).Fw_size, (uint32(uint64(2) * uint64(unsafe.Sizeof(Byte(0)))))) 14009 (*Deflate_state)(unsafe.Pointer(s)).Fprev = (*struct { 14010 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 14011 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (*Deflate_state)(unsafe.Pointer(s)).Fw_size, uint32(unsafe.Sizeof(Pos(0)))) 14012 (*Deflate_state)(unsafe.Pointer(s)).Fhead = (*struct { 14013 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 14014 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (*Deflate_state)(unsafe.Pointer(s)).Fhash_size, uint32(unsafe.Sizeof(Pos(0)))) 14015 14016 (*Deflate_state)(unsafe.Pointer(s)).Fhigh_water = uint64(0) // nothing written to s->window yet 14017 14018 (*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize = (UInt(int32(1) << (memLevel + 6))) // 16K elements by default 14019 14020 overlay = (*struct { 14021 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 14022 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize, (uint32(uint64(unsafe.Sizeof(Ush(0))) + uint64(2)))) 14023 (*Deflate_state)(unsafe.Pointer(s)).Fpending_buf = overlay 14024 (*Deflate_state)(unsafe.Pointer(s)).Fpending_buf_size = (Ulg((*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize) * (uint64(unsafe.Sizeof(Ush(0))) + uint64(2))) 14025 14026 if ((((*Deflate_state)(unsafe.Pointer(s)).Fwindow == uintptr(Z_NULL)) || ((*Deflate_state)(unsafe.Pointer(s)).Fprev == uintptr(Z_NULL))) || ((*Deflate_state)(unsafe.Pointer(s)).Fhead == uintptr(Z_NULL))) || ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf == uintptr(Z_NULL)) { 14027 (*Deflate_state)(unsafe.Pointer(s)).Fstatus = FINISH_STATE 14028 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[(Z_NEED_DICT - (-4))] 14029 XdeflateEnd(tls, strm) 14030 return -4 14031 } 14032 (*Deflate_state)(unsafe.Pointer(s)).Fd_buf = (overlay + uintptr((uint64((*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize)/uint64(unsafe.Sizeof(Ush(0)))))*2) 14033 (*Deflate_state)(unsafe.Pointer(s)).Fl_buf = ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(((uint64(1) + uint64(unsafe.Sizeof(Ush(0)))) * uint64((*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize)))) 14034 14035 (*Deflate_state)(unsafe.Pointer(s)).Flevel = level 14036 (*Deflate_state)(unsafe.Pointer(s)).Fstrategy = strategy 14037 (*Deflate_state)(unsafe.Pointer(s)).Fmethod = Byte(method) 14038 14039 return XdeflateReset(tls, strm) 14040 } 14041 14042 var my_version = *(*[7]int8)(unsafe.Pointer(ts /* "1.2.11" */)) /* deflate.c:253:23 */ 14043 14044 // ========================================================================= 14045 // Check for a valid deflate stream state. Return 0 if ok, 1 if not. 14046 func deflateStateCheck(tls *libc.TLS, strm Z_streamp) int32 { /* deflate.c:353:11: */ 14047 var s uintptr 14048 if ((strm == uintptr(Z_NULL)) || ((*Z_stream)(unsafe.Pointer(strm)).Fzalloc == uintptr(0))) || ((*Z_stream)(unsafe.Pointer(strm)).Fzfree == uintptr(0)) { 14049 return 1 14050 } 14051 s = (*Z_stream)(unsafe.Pointer(strm)).Fstate 14052 if ((s == uintptr(Z_NULL)) || ((*Deflate_state)(unsafe.Pointer(s)).Fstrm != strm)) || (((((((((*Deflate_state)(unsafe.Pointer(s)).Fstatus != INIT_STATE) && ((*Deflate_state)(unsafe.Pointer(s)).Fstatus != GZIP_STATE)) && ((*Deflate_state)(unsafe.Pointer(s)).Fstatus != EXTRA_STATE)) && ((*Deflate_state)(unsafe.Pointer(s)).Fstatus != NAME_STATE)) && ((*Deflate_state)(unsafe.Pointer(s)).Fstatus != COMMENT_STATE)) && ((*Deflate_state)(unsafe.Pointer(s)).Fstatus != HCRC_STATE)) && ((*Deflate_state)(unsafe.Pointer(s)).Fstatus != BUSY_STATE)) && ((*Deflate_state)(unsafe.Pointer(s)).Fstatus != FINISH_STATE)) { 14053 return 1 14054 } 14055 return 0 14056 } 14057 14058 // ========================================================================= 14059 func XdeflateSetDictionary(tls *libc.TLS, strm Z_streamp, dictionary uintptr, dictLength UInt) int32 { /* deflate.c:376:13: */ 14060 var s uintptr 14061 var str UInt 14062 var n UInt 14063 var wrap int32 14064 var avail uint32 14065 var next uintptr 14066 14067 if (deflateStateCheck(tls, strm) != 0) || (dictionary == uintptr(Z_NULL)) { 14068 return -2 14069 } 14070 s = (*Z_stream)(unsafe.Pointer(strm)).Fstate 14071 wrap = (*Deflate_state)(unsafe.Pointer(s)).Fwrap 14072 if ((wrap == 2) || ((wrap == 1) && ((*Deflate_state)(unsafe.Pointer(s)).Fstatus != INIT_STATE))) || ((*Deflate_state)(unsafe.Pointer(s)).Flookahead != 0) { 14073 return -2 14074 } 14075 14076 // when using zlib wrappers, compute Adler-32 for provided dictionary 14077 if wrap == 1 { 14078 (*Z_stream)(unsafe.Pointer(strm)).Fadler = Xadler32(tls, (*Z_stream)(unsafe.Pointer(strm)).Fadler, dictionary, dictLength) 14079 } 14080 (*Deflate_state)(unsafe.Pointer(s)).Fwrap = 0 // avoid computing Adler-32 in read_buf 14081 14082 // if dictionary would fill window, just replace the history 14083 if dictLength >= (*Deflate_state)(unsafe.Pointer(s)).Fw_size { 14084 if wrap == 0 { // already empty otherwise 14085 *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr(((*Deflate_state)(unsafe.Pointer(s)).Fhash_size-UInt(1)))*2)) = Posf(NIL) 14086 libc.X__builtin___memset_chk(tls, (*Deflate_state)(unsafe.Pointer(s)).Fhead, 0, (uint64(((*Deflate_state)(unsafe.Pointer(s)).Fhash_size - UInt(1))) * uint64(unsafe.Sizeof(Posf(0)))), libc.X__builtin_object_size(tls, (*Deflate_state)(unsafe.Pointer(s)).Fhead, 0)) 14087 14088 (*Deflate_state)(unsafe.Pointer(s)).Fstrstart = UInt(0) 14089 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = 0 14090 (*Deflate_state)(unsafe.Pointer(s)).Finsert = UInt(0) 14091 } 14092 dictionary += (uintptr(dictLength - (*Deflate_state)(unsafe.Pointer(s)).Fw_size)) // use the tail 14093 dictLength = (*Deflate_state)(unsafe.Pointer(s)).Fw_size 14094 } 14095 14096 // insert dictionary into window and hash 14097 avail = (*Z_stream)(unsafe.Pointer(strm)).Favail_in 14098 next = (*Z_stream)(unsafe.Pointer(strm)).Fnext_in 14099 (*Z_stream)(unsafe.Pointer(strm)).Favail_in = dictLength 14100 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = dictionary 14101 fill_window(tls, s) 14102 for (*Deflate_state)(unsafe.Pointer(s)).Flookahead >= UInt(MIN_MATCH) { 14103 str = (*Deflate_state)(unsafe.Pointer(s)).Fstrstart 14104 n = ((*Deflate_state)(unsafe.Pointer(s)).Flookahead - (UInt(MIN_MATCH - 1))) 14105 for ok := true; ok; ok = libc.PreDecUint32(&n, 1) != 0 { 14106 (*Deflate_state)(unsafe.Pointer(s)).Fins_h = (((((*Deflate_state)(unsafe.Pointer(s)).Fins_h) << (*Deflate_state)(unsafe.Pointer(s)).Fhash_shift) ^ (UInt(*(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(((str + UInt(MIN_MATCH)) - UInt(1)))))))) & (*Deflate_state)(unsafe.Pointer(s)).Fhash_mask) 14107 *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fprev + uintptr((str&(*Deflate_state)(unsafe.Pointer(s)).Fw_mask))*2)) = *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fins_h)*2)) 14108 *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = Pos(str) 14109 str++ 14110 } 14111 (*Deflate_state)(unsafe.Pointer(s)).Fstrstart = str 14112 (*Deflate_state)(unsafe.Pointer(s)).Flookahead = (UInt(MIN_MATCH - 1)) 14113 fill_window(tls, s) 14114 } 14115 *(*UInt)(unsafe.Pointer(s + 172 /* &.strstart */)) += ((*Deflate_state)(unsafe.Pointer(s)).Flookahead) 14116 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 14117 (*Deflate_state)(unsafe.Pointer(s)).Finsert = (*Deflate_state)(unsafe.Pointer(s)).Flookahead 14118 (*Deflate_state)(unsafe.Pointer(s)).Flookahead = UInt(0) 14119 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length = libc.AssignPtrUint32(s+184 /* &.prev_length */, (UInt(MIN_MATCH - 1))) 14120 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_available = 0 14121 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = next 14122 (*Z_stream)(unsafe.Pointer(strm)).Favail_in = avail 14123 (*Deflate_state)(unsafe.Pointer(s)).Fwrap = wrap 14124 return Z_OK 14125 } 14126 14127 // ========================================================================= 14128 func XdeflateGetDictionary(tls *libc.TLS, strm Z_streamp, dictionary uintptr, dictLength uintptr) int32 { /* deflate.c:445:13: */ 14129 var s uintptr 14130 var len UInt 14131 14132 if deflateStateCheck(tls, strm) != 0 { 14133 return -2 14134 } 14135 s = (*Z_stream)(unsafe.Pointer(strm)).Fstate 14136 len = ((*Deflate_state)(unsafe.Pointer(s)).Fstrstart + (*Deflate_state)(unsafe.Pointer(s)).Flookahead) 14137 if len > (*Deflate_state)(unsafe.Pointer(s)).Fw_size { 14138 len = (*Deflate_state)(unsafe.Pointer(s)).Fw_size 14139 } 14140 if (dictionary != uintptr(Z_NULL)) && (len != 0) { 14141 libc.X__builtin___memcpy_chk(tls, dictionary, ((((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)) + uintptr((*Deflate_state)(unsafe.Pointer(s)).Flookahead)) - uintptr(len)), uint64(len), libc.X__builtin_object_size(tls, dictionary, 0)) 14142 } 14143 if dictLength != uintptr(Z_NULL) { 14144 *(*UInt)(unsafe.Pointer(dictLength)) = len 14145 } 14146 return Z_OK 14147 } 14148 14149 // ========================================================================= 14150 func XdeflateResetKeep(tls *libc.TLS, strm Z_streamp) int32 { /* deflate.c:467:13: */ 14151 var s uintptr 14152 14153 if deflateStateCheck(tls, strm) != 0 { 14154 return -2 14155 } 14156 14157 (*Z_stream)(unsafe.Pointer(strm)).Ftotal_in = libc.AssignPtrUint64(strm+40 /* &.total_out */, uint64(0)) 14158 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(Z_NULL) // use zfree if we ever allocate msg dynamically 14159 (*Z_stream)(unsafe.Pointer(strm)).Fdata_type = Z_UNKNOWN 14160 14161 s = (*Z_stream)(unsafe.Pointer(strm)).Fstate 14162 (*Deflate_state)(unsafe.Pointer(s)).Fpending = uint64(0) 14163 (*Deflate_state)(unsafe.Pointer(s)).Fpending_out = (*Deflate_state)(unsafe.Pointer(s)).Fpending_buf 14164 14165 if (*Deflate_state)(unsafe.Pointer(s)).Fwrap < 0 { 14166 (*Deflate_state)(unsafe.Pointer(s)).Fwrap = -(*Deflate_state)(unsafe.Pointer(s)).Fwrap // was made negative by deflate(..., Z_FINISH); 14167 } 14168 (*Deflate_state)(unsafe.Pointer(s)).Fstatus = func() int32 { 14169 if (*Deflate_state)(unsafe.Pointer(s)).Fwrap == 2 { 14170 return GZIP_STATE 14171 } 14172 return func() int32 { 14173 if (*Deflate_state)(unsafe.Pointer(s)).Fwrap != 0 { 14174 return INIT_STATE 14175 } 14176 return BUSY_STATE 14177 }() 14178 }() 14179 (*Z_stream)(unsafe.Pointer(strm)).Fadler = func() uint64 { 14180 if (*Deflate_state)(unsafe.Pointer(s)).Fwrap == 2 { 14181 return Xcrc32(tls, uint64(0), uintptr(Z_NULL), uint32(0)) 14182 } 14183 return Xadler32(tls, uint64(0), uintptr(Z_NULL), uint32(0)) 14184 }() 14185 (*Deflate_state)(unsafe.Pointer(s)).Flast_flush = Z_NO_FLUSH 14186 14187 X_tr_init(tls, s) 14188 14189 return Z_OK 14190 } 14191 14192 // ========================================================================= 14193 func XdeflateReset(tls *libc.TLS, strm Z_streamp) int32 { /* deflate.c:505:13: */ 14194 var ret int32 14195 14196 ret = XdeflateResetKeep(tls, strm) 14197 if ret == Z_OK { 14198 lm_init(tls, (*Z_stream)(unsafe.Pointer(strm)).Fstate) 14199 } 14200 return ret 14201 } 14202 14203 // ========================================================================= 14204 func XdeflateSetHeader(tls *libc.TLS, strm Z_streamp, head Gz_headerp) int32 { /* deflate.c:517:13: */ 14205 if (deflateStateCheck(tls, strm) != 0) || ((*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fwrap != 2) { 14206 return -2 14207 } 14208 (*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fgzhead = head 14209 return Z_OK 14210 } 14211 14212 // ========================================================================= 14213 func XdeflatePending(tls *libc.TLS, strm Z_streamp, pending uintptr, bits uintptr) int32 { /* deflate.c:528:13: */ 14214 if deflateStateCheck(tls, strm) != 0 { 14215 return -2 14216 } 14217 if pending != uintptr(Z_NULL) { 14218 *(*uint32)(unsafe.Pointer(pending)) = uint32((*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fpending) 14219 } 14220 if bits != uintptr(Z_NULL) { 14221 *(*int32)(unsafe.Pointer(bits)) = (*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fbi_valid 14222 } 14223 return Z_OK 14224 } 14225 14226 // ========================================================================= 14227 func XdeflatePrime(tls *libc.TLS, strm Z_streamp, bits int32, value int32) int32 { /* deflate.c:542:13: */ 14228 var s uintptr 14229 var put int32 14230 14231 if deflateStateCheck(tls, strm) != 0 { 14232 return -2 14233 } 14234 s = (*Z_stream)(unsafe.Pointer(strm)).Fstate 14235 if ((*Deflate_state)(unsafe.Pointer(s)).Fd_buf) < ((*Deflate_state)(unsafe.Pointer(s)).Fpending_out + uintptr((int32((Buf_size + 7)) >> 3))) { 14236 return -5 14237 } 14238 for ok := true; ok; ok = bits != 0 { 14239 put = (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid) 14240 if put > bits { 14241 put = bits 14242 } 14243 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((Ush((value & ((int32(1) << put) - 1)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))))) 14244 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (put) 14245 X_tr_flush_bits(tls, s) 14246 value >>= put 14247 bits = bits - (put) 14248 } 14249 return Z_OK 14250 } 14251 14252 // ========================================================================= 14253 func XdeflateParams(tls *libc.TLS, strm Z_streamp, level int32, strategy int32) int32 { /* deflate.c:568:13: */ 14254 var s uintptr 14255 var func1 Compress_func 14256 14257 if deflateStateCheck(tls, strm) != 0 { 14258 return -2 14259 } 14260 s = (*Z_stream)(unsafe.Pointer(strm)).Fstate 14261 14262 if level == (-1) { 14263 level = 6 14264 } 14265 if (((level < 0) || (level > 9)) || (strategy < 0)) || (strategy > Z_FIXED) { 14266 return -2 14267 } 14268 func1 = configuration_table[(*Deflate_state)(unsafe.Pointer(s)).Flevel].Ffunc 14269 14270 if ((strategy != (*Deflate_state)(unsafe.Pointer(s)).Fstrategy) || (func1 != configuration_table[level].Ffunc)) && ((*Deflate_state)(unsafe.Pointer(s)).Fhigh_water != 0) { 14271 // Flush the last buffer: 14272 var err int32 = Xdeflate(tls, strm, Z_BLOCK) 14273 if err == (-2) { 14274 return err 14275 } 14276 if (*Z_stream)(unsafe.Pointer(strm)).Favail_out == UInt(0) { 14277 return -5 14278 } 14279 } 14280 if (*Deflate_state)(unsafe.Pointer(s)).Flevel != level { 14281 if ((*Deflate_state)(unsafe.Pointer(s)).Flevel == 0) && ((*Deflate_state)(unsafe.Pointer(s)).Fmatches != UInt(0)) { 14282 if (*Deflate_state)(unsafe.Pointer(s)).Fmatches == UInt(1) { 14283 slide_hash(tls, s) 14284 } else { 14285 *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr(((*Deflate_state)(unsafe.Pointer(s)).Fhash_size-UInt(1)))*2)) = Posf(NIL) 14286 } 14287 libc.X__builtin___memset_chk(tls, (*Deflate_state)(unsafe.Pointer(s)).Fhead, 0, (uint64(((*Deflate_state)(unsafe.Pointer(s)).Fhash_size - UInt(1))) * uint64(unsafe.Sizeof(Posf(0)))), libc.X__builtin_object_size(tls, (*Deflate_state)(unsafe.Pointer(s)).Fhead, 0)) 14288 14289 (*Deflate_state)(unsafe.Pointer(s)).Fmatches = UInt(0) 14290 } 14291 (*Deflate_state)(unsafe.Pointer(s)).Flevel = level 14292 (*Deflate_state)(unsafe.Pointer(s)).Fmax_lazy_match = UInt(configuration_table[level].Fmax_lazy) 14293 (*Deflate_state)(unsafe.Pointer(s)).Fgood_match = UInt(configuration_table[level].Fgood_length) 14294 (*Deflate_state)(unsafe.Pointer(s)).Fnice_match = int32(configuration_table[level].Fnice_length) 14295 (*Deflate_state)(unsafe.Pointer(s)).Fmax_chain_length = UInt(configuration_table[level].Fmax_chain) 14296 } 14297 (*Deflate_state)(unsafe.Pointer(s)).Fstrategy = strategy 14298 return Z_OK 14299 } 14300 14301 // ========================================================================= 14302 func XdeflateTune(tls *libc.TLS, strm Z_streamp, good_length int32, max_lazy int32, nice_length int32, max_chain int32) int32 { /* deflate.c:617:13: */ 14303 var s uintptr 14304 14305 if deflateStateCheck(tls, strm) != 0 { 14306 return -2 14307 } 14308 s = (*Z_stream)(unsafe.Pointer(strm)).Fstate 14309 (*Deflate_state)(unsafe.Pointer(s)).Fgood_match = UInt(good_length) 14310 (*Deflate_state)(unsafe.Pointer(s)).Fmax_lazy_match = UInt(max_lazy) 14311 (*Deflate_state)(unsafe.Pointer(s)).Fnice_match = nice_length 14312 (*Deflate_state)(unsafe.Pointer(s)).Fmax_chain_length = UInt(max_chain) 14313 return Z_OK 14314 } 14315 14316 // ========================================================================= 14317 // For the default windowBits of 15 and memLevel of 8, this function returns 14318 // a close to exact, as well as small, upper bound on the compressed size. 14319 // They are coded as constants here for a reason--if the #define's are 14320 // changed, then this function needs to be changed as well. The return 14321 // value for 15 and 8 only works for those exact settings. 14322 // 14323 // For any setting other than those defaults for windowBits and memLevel, 14324 // the value returned is a conservative worst case for the maximum expansion 14325 // resulting from using fixed blocks instead of stored blocks, which deflate 14326 // can emit on compressed data for some combinations of the parameters. 14327 // 14328 // This function could be more sophisticated to provide closer upper bounds for 14329 // every combination of windowBits and memLevel. But even the conservative 14330 // upper bound of about 14% expansion does not seem onerous for output buffer 14331 // allocation. 14332 func XdeflateBound(tls *libc.TLS, strm Z_streamp, sourceLen ULong) ULong { /* deflate.c:652:15: */ 14333 var s uintptr 14334 var complen ULong 14335 var wraplen ULong 14336 14337 // conservative upper bound for compressed data 14338 complen = (((sourceLen + ((sourceLen + uint64(7)) >> 3)) + ((sourceLen + uint64(63)) >> 6)) + uint64(5)) 14339 14340 // if can't get parameters, return conservative bound plus zlib wrapper 14341 if deflateStateCheck(tls, strm) != 0 { 14342 return (complen + uint64(6)) 14343 } 14344 14345 // compute wrapper length 14346 s = (*Z_stream)(unsafe.Pointer(strm)).Fstate 14347 switch (*Deflate_state)(unsafe.Pointer(s)).Fwrap { 14348 case 0: // raw deflate 14349 wraplen = uint64(0) 14350 break 14351 case 1: // zlib wrapper 14352 wraplen = (ULong(6 + (func() int32 { 14353 if (*Deflate_state)(unsafe.Pointer(s)).Fstrstart != 0 { 14354 return 4 14355 } 14356 return 0 14357 }()))) 14358 break 14359 case 2: // gzip wrapper 14360 wraplen = uint64(18) 14361 if (*Deflate_state)(unsafe.Pointer(s)).Fgzhead != uintptr(Z_NULL) { // user-supplied gzip header 14362 var str uintptr 14363 if (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra != uintptr(Z_NULL) { 14364 wraplen = wraplen + (ULong(UInt(2) + (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra_len)) 14365 } 14366 str = (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fname 14367 if str != uintptr(Z_NULL) { 14368 for ok := true; ok; ok = *(*Bytef)(unsafe.Pointer(libc.PostIncUintptr(&str, 1))) != 0 { 14369 wraplen++ 14370 } 14371 } 14372 str = (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fcomment 14373 if str != uintptr(Z_NULL) { 14374 for ok1 := true; ok1; ok1 = *(*Bytef)(unsafe.Pointer(libc.PostIncUintptr(&str, 1))) != 0 { 14375 wraplen++ 14376 } 14377 } 14378 if (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 { 14379 wraplen = wraplen + (uint64(2)) 14380 } 14381 } 14382 break 14383 default: // for compiler happiness 14384 wraplen = uint64(6) 14385 } 14386 14387 // if not default parameters, return conservative bound 14388 if ((*Deflate_state)(unsafe.Pointer(s)).Fw_bits != UInt(15)) || ((*Deflate_state)(unsafe.Pointer(s)).Fhash_bits != (UInt(8 + 7))) { 14389 return (complen + wraplen) 14390 } 14391 14392 // default settings: return tight bound for that case 14393 return ((((((sourceLen + (sourceLen >> 12)) + (sourceLen >> 14)) + (sourceLen >> 25)) + uint64(13)) - uint64(6)) + wraplen) 14394 } 14395 14396 // ========================================================================= 14397 // Put a short in the pending buffer. The 16-bit value is put in MSB order. 14398 // IN assertion: the stream state is correct and there is enough room in 14399 // pending_buf. 14400 func putShortMSB(tls *libc.TLS, s uintptr, b UInt) { /* deflate.c:716:12: */ 14401 { 14402 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte(b >> 8)) 14403 } 14404 14405 { 14406 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte(b & UInt(0xff))) 14407 } 14408 14409 } 14410 14411 // ========================================================================= 14412 // Flush as much pending output as possible. All deflate() output, except for 14413 // some deflate_stored() output, goes through this function so some 14414 // applications may wish to modify it to avoid allocating a large 14415 // strm->next_out buffer and copying into it. (See also read_buf()). 14416 func flush_pending(tls *libc.TLS, strm Z_streamp) { /* deflate.c:730:12: */ 14417 var len uint32 14418 var s uintptr = (*Z_stream)(unsafe.Pointer(strm)).Fstate 14419 14420 X_tr_flush_bits(tls, s) 14421 len = uint32((*Deflate_state)(unsafe.Pointer(s)).Fpending) 14422 if len > (*Z_stream)(unsafe.Pointer(strm)).Favail_out { 14423 len = (*Z_stream)(unsafe.Pointer(strm)).Favail_out 14424 } 14425 if len == uint32(0) { 14426 return 14427 } 14428 14429 libc.X__builtin___memcpy_chk(tls, (*Z_stream)(unsafe.Pointer(strm)).Fnext_out, (*Deflate_state)(unsafe.Pointer(s)).Fpending_out, uint64(len), libc.X__builtin_object_size(tls, (*Z_stream)(unsafe.Pointer(strm)).Fnext_out, 0)) 14430 *(*uintptr)(unsafe.Pointer(strm + 24 /* &.next_out */)) += (uintptr(len)) 14431 *(*uintptr)(unsafe.Pointer(s + 32 /* &.pending_out */)) += (uintptr(len)) 14432 *(*ULong)(unsafe.Pointer(strm + 40 /* &.total_out */)) += (ULong(len)) 14433 *(*UInt)(unsafe.Pointer(strm + 32 /* &.avail_out */)) -= (len) 14434 *(*Ulg)(unsafe.Pointer(s + 40 /* &.pending */)) -= (Ulg(len)) 14435 if (*Deflate_state)(unsafe.Pointer(s)).Fpending == uint64(0) { 14436 (*Deflate_state)(unsafe.Pointer(s)).Fpending_out = (*Deflate_state)(unsafe.Pointer(s)).Fpending_buf 14437 } 14438 } 14439 14440 // =========================================================================== 14441 // Update the header CRC with the bytes s->pending_buf[beg..s->pending - 1]. 14442 14443 // ========================================================================= 14444 func Xdeflate(tls *libc.TLS, strm Z_streamp, flush int32) int32 { /* deflate.c:763:13: */ 14445 var old_flush int32 // value of flush param for previous deflate call 14446 var s uintptr 14447 14448 if ((deflateStateCheck(tls, strm) != 0) || (flush > Z_BLOCK)) || (flush < 0) { 14449 return -2 14450 } 14451 s = (*Z_stream)(unsafe.Pointer(strm)).Fstate 14452 14453 if (((*Z_stream)(unsafe.Pointer(strm)).Fnext_out == uintptr(Z_NULL)) || (((*Z_stream)(unsafe.Pointer(strm)).Favail_in != UInt(0)) && ((*Z_stream)(unsafe.Pointer(strm)).Fnext_in == uintptr(Z_NULL)))) || (((*Deflate_state)(unsafe.Pointer(s)).Fstatus == FINISH_STATE) && (flush != Z_FINISH)) { 14454 return func() int32 { (*Z_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[(Z_NEED_DICT - (-2))]; return -2 }() 14455 } 14456 if (*Z_stream)(unsafe.Pointer(strm)).Favail_out == UInt(0) { 14457 return func() int32 { (*Z_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[(Z_NEED_DICT - (-5))]; return -5 }() 14458 } 14459 14460 old_flush = (*Deflate_state)(unsafe.Pointer(s)).Flast_flush 14461 (*Deflate_state)(unsafe.Pointer(s)).Flast_flush = flush 14462 14463 // Flush as much pending output as possible 14464 if (*Deflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) { 14465 flush_pending(tls, strm) 14466 if (*Z_stream)(unsafe.Pointer(strm)).Favail_out == UInt(0) { 14467 // Since avail_out is 0, deflate will be called again with 14468 // more output space, but possibly with both pending and 14469 // avail_in equal to zero. There won't be anything to do, 14470 // but this is not an error situation so make sure we 14471 // return OK instead of BUF_ERROR at next call of deflate: 14472 (*Deflate_state)(unsafe.Pointer(s)).Flast_flush = -1 14473 return Z_OK 14474 } 14475 14476 // Make sure there is something to do and avoid duplicate consecutive 14477 // flushes. For repeated and useless calls with Z_FINISH, we keep 14478 // returning Z_STREAM_END instead of Z_BUF_ERROR. 14479 } else if (((*Z_stream)(unsafe.Pointer(strm)).Favail_in == UInt(0)) && ((((flush) * 2) - (func() int32 { 14480 if (flush) > 4 { 14481 return 9 14482 } 14483 return 0 14484 }())) <= (((old_flush) * 2) - (func() int32 { 14485 if (old_flush) > 4 { 14486 return 9 14487 } 14488 return 0 14489 }())))) && (flush != Z_FINISH) { 14490 return func() int32 { (*Z_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[(Z_NEED_DICT - (-5))]; return -5 }() 14491 } 14492 14493 // User must not provide more input after the first FINISH: 14494 if ((*Deflate_state)(unsafe.Pointer(s)).Fstatus == FINISH_STATE) && ((*Z_stream)(unsafe.Pointer(strm)).Favail_in != UInt(0)) { 14495 return func() int32 { (*Z_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[(Z_NEED_DICT - (-5))]; return -5 }() 14496 } 14497 14498 // Write the header 14499 if (*Deflate_state)(unsafe.Pointer(s)).Fstatus == INIT_STATE { 14500 // zlib header 14501 var header UInt = ((UInt(Z_DEFLATED) + (((*Deflate_state)(unsafe.Pointer(s)).Fw_bits - UInt(8)) << 4)) << 8) 14502 var level_flags UInt 14503 14504 if ((*Deflate_state)(unsafe.Pointer(s)).Fstrategy >= Z_HUFFMAN_ONLY) || ((*Deflate_state)(unsafe.Pointer(s)).Flevel < 2) { 14505 level_flags = UInt(0) 14506 } else if (*Deflate_state)(unsafe.Pointer(s)).Flevel < 6 { 14507 level_flags = UInt(1) 14508 } else if (*Deflate_state)(unsafe.Pointer(s)).Flevel == 6 { 14509 level_flags = UInt(2) 14510 } else { 14511 level_flags = UInt(3) 14512 } 14513 header = header | (level_flags << 6) 14514 if (*Deflate_state)(unsafe.Pointer(s)).Fstrstart != UInt(0) { 14515 header = header | (UInt(PRESET_DICT)) 14516 } 14517 header = header + (UInt(31) - (header % UInt(31))) 14518 14519 putShortMSB(tls, s, header) 14520 14521 // Save the adler32 of the preset dictionary: 14522 if (*Deflate_state)(unsafe.Pointer(s)).Fstrstart != UInt(0) { 14523 putShortMSB(tls, s, (UInt((*Z_stream)(unsafe.Pointer(strm)).Fadler >> 16))) 14524 putShortMSB(tls, s, (UInt((*Z_stream)(unsafe.Pointer(strm)).Fadler & uint64(0xffff)))) 14525 } 14526 (*Z_stream)(unsafe.Pointer(strm)).Fadler = Xadler32(tls, uint64(0), uintptr(Z_NULL), uint32(0)) 14527 (*Deflate_state)(unsafe.Pointer(s)).Fstatus = BUSY_STATE 14528 14529 // Compression must start with an empty pending buffer 14530 flush_pending(tls, strm) 14531 if (*Deflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) { 14532 (*Deflate_state)(unsafe.Pointer(s)).Flast_flush = -1 14533 return Z_OK 14534 } 14535 } 14536 if (*Deflate_state)(unsafe.Pointer(s)).Fstatus == GZIP_STATE { 14537 // gzip header 14538 (*Z_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, uint64(0), uintptr(Z_NULL), uint32(0)) 14539 { 14540 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = Bytef(31) 14541 } 14542 14543 { 14544 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = Bytef(139) 14545 } 14546 14547 { 14548 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = Bytef(8) 14549 } 14550 14551 if (*Deflate_state)(unsafe.Pointer(s)).Fgzhead == uintptr(Z_NULL) { 14552 { 14553 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = Bytef(0) 14554 } 14555 14556 { 14557 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = Bytef(0) 14558 } 14559 14560 { 14561 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = Bytef(0) 14562 } 14563 14564 { 14565 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = Bytef(0) 14566 } 14567 14568 { 14569 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = Bytef(0) 14570 } 14571 14572 { 14573 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = func() uint8 { 14574 if (*Deflate_state)(unsafe.Pointer(s)).Flevel == 9 { 14575 return uint8(2) 14576 } 14577 return func() uint8 { 14578 if ((*Deflate_state)(unsafe.Pointer(s)).Fstrategy >= Z_HUFFMAN_ONLY) || ((*Deflate_state)(unsafe.Pointer(s)).Flevel < 2) { 14579 return uint8(4) 14580 } 14581 return uint8(0) 14582 }() 14583 }() 14584 } 14585 14586 { 14587 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = Bytef(OS_CODE) 14588 } 14589 14590 (*Deflate_state)(unsafe.Pointer(s)).Fstatus = BUSY_STATE 14591 14592 // Compression must start with an empty pending buffer 14593 flush_pending(tls, strm) 14594 if (*Deflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) { 14595 (*Deflate_state)(unsafe.Pointer(s)).Flast_flush = -1 14596 return Z_OK 14597 } 14598 } else { 14599 { 14600 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Bytef(((((func() int32 { 14601 if (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Ftext != 0 { 14602 return 1 14603 } 14604 return 0 14605 }()) + (func() int32 { 14606 if (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 { 14607 return 2 14608 } 14609 return 0 14610 }())) + (func() int32 { 14611 if (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra == uintptr(Z_NULL) { 14612 return 0 14613 } 14614 return 4 14615 }())) + (func() int32 { 14616 if (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fname == uintptr(Z_NULL) { 14617 return 0 14618 } 14619 return 8 14620 }())) + (func() int32 { 14621 if (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fcomment == uintptr(Z_NULL) { 14622 return 0 14623 } 14624 return 16 14625 }()))) 14626 } 14627 14628 { 14629 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Ftime & uint64(0xff))) 14630 } 14631 14632 { 14633 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte(((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Ftime >> 8) & uint64(0xff))) 14634 } 14635 14636 { 14637 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte(((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Ftime >> 16) & uint64(0xff))) 14638 } 14639 14640 { 14641 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte(((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Ftime >> 24) & uint64(0xff))) 14642 } 14643 14644 { 14645 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = func() uint8 { 14646 if (*Deflate_state)(unsafe.Pointer(s)).Flevel == 9 { 14647 return uint8(2) 14648 } 14649 return func() uint8 { 14650 if ((*Deflate_state)(unsafe.Pointer(s)).Fstrategy >= Z_HUFFMAN_ONLY) || ((*Deflate_state)(unsafe.Pointer(s)).Flevel < 2) { 14651 return uint8(4) 14652 } 14653 return uint8(0) 14654 }() 14655 }() 14656 } 14657 14658 { 14659 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Bytef((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fos & 0xff)) 14660 } 14661 14662 if (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra != uintptr(Z_NULL) { 14663 { 14664 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Bytef((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra_len & UInt(0xff))) 14665 } 14666 14667 { 14668 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Bytef(((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra_len >> 8) & UInt(0xff))) 14669 } 14670 14671 } 14672 if (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 { 14673 (*Z_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Z_stream)(unsafe.Pointer(strm)).Fadler, (*Deflate_state)(unsafe.Pointer(s)).Fpending_buf, 14674 uint32((*Deflate_state)(unsafe.Pointer(s)).Fpending)) 14675 } 14676 (*Deflate_state)(unsafe.Pointer(s)).Fgzindex = uint64(0) 14677 (*Deflate_state)(unsafe.Pointer(s)).Fstatus = EXTRA_STATE 14678 } 14679 } 14680 if (*Deflate_state)(unsafe.Pointer(s)).Fstatus == EXTRA_STATE { 14681 if (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra != uintptr(Z_NULL) { 14682 var beg Ulg = (*Deflate_state)(unsafe.Pointer(s)).Fpending // start of bytes to update crc 14683 var left UInt = (UInt((Ulg((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra_len & UInt(0xffff))) - (*Deflate_state)(unsafe.Pointer(s)).Fgzindex)) 14684 for ((*Deflate_state)(unsafe.Pointer(s)).Fpending + Ulg(left)) > (*Deflate_state)(unsafe.Pointer(s)).Fpending_buf_size { 14685 var copy UInt = (UInt((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fpending)) 14686 libc.X__builtin___memcpy_chk(tls, ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fpending)), ((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fgzindex)), uint64(copy), libc.X__builtin_object_size(tls, ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr((*Deflate_state)(unsafe.Pointer(s)).Fpending)), 0)) 14687 (*Deflate_state)(unsafe.Pointer(s)).Fpending = (*Deflate_state)(unsafe.Pointer(s)).Fpending_buf_size 14688 for ok := true; ok; ok = 0 != 0 { 14689 if ((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0) && ((*Deflate_state)(unsafe.Pointer(s)).Fpending > (beg)) { 14690 (*Z_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Z_stream)(unsafe.Pointer(strm)).Fadler, ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((beg))), (uint32((*Deflate_state)(unsafe.Pointer(s)).Fpending - (beg)))) 14691 } 14692 } 14693 *(*Ulg)(unsafe.Pointer(s + 64 /* &.gzindex */)) += (Ulg(copy)) 14694 flush_pending(tls, strm) 14695 if (*Deflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) { 14696 (*Deflate_state)(unsafe.Pointer(s)).Flast_flush = -1 14697 return Z_OK 14698 } 14699 beg = uint64(0) 14700 left = left - (copy) 14701 } 14702 libc.X__builtin___memcpy_chk(tls, ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fpending)), ((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fgzindex)), uint64(left), libc.X__builtin_object_size(tls, ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr((*Deflate_state)(unsafe.Pointer(s)).Fpending)), 0)) 14703 *(*Ulg)(unsafe.Pointer(s + 40 /* &.pending */)) += (Ulg(left)) 14704 for ok1 := true; ok1; ok1 = 0 != 0 { 14705 if ((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0) && ((*Deflate_state)(unsafe.Pointer(s)).Fpending > (beg)) { 14706 (*Z_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Z_stream)(unsafe.Pointer(strm)).Fadler, ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((beg))), (uint32((*Deflate_state)(unsafe.Pointer(s)).Fpending - (beg)))) 14707 } 14708 } 14709 (*Deflate_state)(unsafe.Pointer(s)).Fgzindex = uint64(0) 14710 } 14711 (*Deflate_state)(unsafe.Pointer(s)).Fstatus = NAME_STATE 14712 } 14713 if (*Deflate_state)(unsafe.Pointer(s)).Fstatus == NAME_STATE { 14714 if (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fname != uintptr(Z_NULL) { 14715 var beg Ulg = (*Deflate_state)(unsafe.Pointer(s)).Fpending // start of bytes to update crc 14716 var val int32 14717 for ok2 := true; ok2; ok2 = (val != 0) { 14718 if (*Deflate_state)(unsafe.Pointer(s)).Fpending == (*Deflate_state)(unsafe.Pointer(s)).Fpending_buf_size { 14719 for ok3 := true; ok3; ok3 = 0 != 0 { 14720 if ((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0) && ((*Deflate_state)(unsafe.Pointer(s)).Fpending > (beg)) { 14721 (*Z_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Z_stream)(unsafe.Pointer(strm)).Fadler, ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((beg))), (uint32((*Deflate_state)(unsafe.Pointer(s)).Fpending - (beg)))) 14722 } 14723 } 14724 flush_pending(tls, strm) 14725 if (*Deflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) { 14726 (*Deflate_state)(unsafe.Pointer(s)).Flast_flush = -1 14727 return Z_OK 14728 } 14729 beg = uint64(0) 14730 } 14731 val = int32(*(*Bytef)(unsafe.Pointer((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fname + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fgzindex, 1))))) 14732 { 14733 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = Bytef(val) 14734 } 14735 14736 } 14737 for ok4 := true; ok4; ok4 = 0 != 0 { 14738 if ((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0) && ((*Deflate_state)(unsafe.Pointer(s)).Fpending > (beg)) { 14739 (*Z_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Z_stream)(unsafe.Pointer(strm)).Fadler, ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((beg))), (uint32((*Deflate_state)(unsafe.Pointer(s)).Fpending - (beg)))) 14740 } 14741 } 14742 (*Deflate_state)(unsafe.Pointer(s)).Fgzindex = uint64(0) 14743 } 14744 (*Deflate_state)(unsafe.Pointer(s)).Fstatus = COMMENT_STATE 14745 } 14746 if (*Deflate_state)(unsafe.Pointer(s)).Fstatus == COMMENT_STATE { 14747 if (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fcomment != uintptr(Z_NULL) { 14748 var beg Ulg = (*Deflate_state)(unsafe.Pointer(s)).Fpending // start of bytes to update crc 14749 var val int32 14750 for ok5 := true; ok5; ok5 = (val != 0) { 14751 if (*Deflate_state)(unsafe.Pointer(s)).Fpending == (*Deflate_state)(unsafe.Pointer(s)).Fpending_buf_size { 14752 for ok6 := true; ok6; ok6 = 0 != 0 { 14753 if ((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0) && ((*Deflate_state)(unsafe.Pointer(s)).Fpending > (beg)) { 14754 (*Z_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Z_stream)(unsafe.Pointer(strm)).Fadler, ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((beg))), (uint32((*Deflate_state)(unsafe.Pointer(s)).Fpending - (beg)))) 14755 } 14756 } 14757 flush_pending(tls, strm) 14758 if (*Deflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) { 14759 (*Deflate_state)(unsafe.Pointer(s)).Flast_flush = -1 14760 return Z_OK 14761 } 14762 beg = uint64(0) 14763 } 14764 val = int32(*(*Bytef)(unsafe.Pointer((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fcomment + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fgzindex, 1))))) 14765 { 14766 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = Bytef(val) 14767 } 14768 14769 } 14770 for ok7 := true; ok7; ok7 = 0 != 0 { 14771 if ((*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0) && ((*Deflate_state)(unsafe.Pointer(s)).Fpending > (beg)) { 14772 (*Z_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Z_stream)(unsafe.Pointer(strm)).Fadler, ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((beg))), (uint32((*Deflate_state)(unsafe.Pointer(s)).Fpending - (beg)))) 14773 } 14774 } 14775 } 14776 (*Deflate_state)(unsafe.Pointer(s)).Fstatus = HCRC_STATE 14777 } 14778 if (*Deflate_state)(unsafe.Pointer(s)).Fstatus == HCRC_STATE { 14779 if (*Gz_header)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 { 14780 if ((*Deflate_state)(unsafe.Pointer(s)).Fpending + uint64(2)) > (*Deflate_state)(unsafe.Pointer(s)).Fpending_buf_size { 14781 flush_pending(tls, strm) 14782 if (*Deflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) { 14783 (*Deflate_state)(unsafe.Pointer(s)).Flast_flush = -1 14784 return Z_OK 14785 } 14786 } 14787 { 14788 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte((*Z_stream)(unsafe.Pointer(strm)).Fadler & uint64(0xff))) 14789 } 14790 14791 { 14792 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte(((*Z_stream)(unsafe.Pointer(strm)).Fadler >> 8) & uint64(0xff))) 14793 } 14794 14795 (*Z_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, uint64(0), uintptr(Z_NULL), uint32(0)) 14796 } 14797 (*Deflate_state)(unsafe.Pointer(s)).Fstatus = BUSY_STATE 14798 14799 // Compression must start with an empty pending buffer 14800 flush_pending(tls, strm) 14801 if (*Deflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) { 14802 (*Deflate_state)(unsafe.Pointer(s)).Flast_flush = -1 14803 return Z_OK 14804 } 14805 } 14806 14807 // Start a new block or continue the current one. 14808 if (((*Z_stream)(unsafe.Pointer(strm)).Favail_in != UInt(0)) || ((*Deflate_state)(unsafe.Pointer(s)).Flookahead != UInt(0))) || ((flush != Z_NO_FLUSH) && ((*Deflate_state)(unsafe.Pointer(s)).Fstatus != FINISH_STATE)) { 14809 var bstate Block_state 14810 14811 if (*Deflate_state)(unsafe.Pointer(s)).Flevel == 0 { 14812 bstate = deflate_stored(tls, s, flush) 14813 } else { 14814 if (*Deflate_state)(unsafe.Pointer(s)).Fstrategy == Z_HUFFMAN_ONLY { 14815 bstate = deflate_huff(tls, s, flush) 14816 } else { 14817 if (*Deflate_state)(unsafe.Pointer(s)).Fstrategy == Z_RLE { 14818 bstate = deflate_rle(tls, s, flush) 14819 } else { 14820 bstate = (*struct { 14821 f func(*libc.TLS, uintptr, int32) Block_state 14822 })(unsafe.Pointer(&struct{ uintptr }{configuration_table[(*Deflate_state)(unsafe.Pointer(s)).Flevel].Ffunc})).f(tls, s, flush) 14823 } 14824 } 14825 } 14826 14827 if (bstate == Finish_started) || (bstate == Finish_done) { 14828 (*Deflate_state)(unsafe.Pointer(s)).Fstatus = FINISH_STATE 14829 } 14830 if (bstate == Need_more) || (bstate == Finish_started) { 14831 if (*Z_stream)(unsafe.Pointer(strm)).Favail_out == UInt(0) { 14832 (*Deflate_state)(unsafe.Pointer(s)).Flast_flush = -1 // avoid BUF_ERROR next call, see above 14833 } 14834 return Z_OK 14835 // If flush != Z_NO_FLUSH && avail_out == 0, the next call 14836 // of deflate should use the same flush parameter to make sure 14837 // that the flush is complete. So we don't have to output an 14838 // empty block here, this will be done at next call. This also 14839 // ensures that for a very small output buffer, we emit at most 14840 // one empty block. 14841 } 14842 if bstate == Block_done { 14843 if flush == Z_PARTIAL_FLUSH { 14844 X_tr_align(tls, s) 14845 } else if flush != Z_BLOCK { // FULL_FLUSH or SYNC_FLUSH 14846 X_tr_stored_block(tls, s, uintptr(0), uint64(0), 0) 14847 // For a full flush, this empty block will be recognized 14848 // as a special marker by inflate_sync(). 14849 if flush == Z_FULL_FLUSH { 14850 *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr(((*Deflate_state)(unsafe.Pointer(s)).Fhash_size-UInt(1)))*2)) = Posf(NIL) 14851 libc.X__builtin___memset_chk(tls, (*Deflate_state)(unsafe.Pointer(s)).Fhead, 0, (uint64(((*Deflate_state)(unsafe.Pointer(s)).Fhash_size - UInt(1))) * uint64(unsafe.Sizeof(Posf(0)))), libc.X__builtin_object_size(tls, (*Deflate_state)(unsafe.Pointer(s)).Fhead, 0)) 14852 // forget history 14853 if (*Deflate_state)(unsafe.Pointer(s)).Flookahead == UInt(0) { 14854 (*Deflate_state)(unsafe.Pointer(s)).Fstrstart = UInt(0) 14855 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = 0 14856 (*Deflate_state)(unsafe.Pointer(s)).Finsert = UInt(0) 14857 } 14858 } 14859 } 14860 flush_pending(tls, strm) 14861 if (*Z_stream)(unsafe.Pointer(strm)).Favail_out == UInt(0) { 14862 (*Deflate_state)(unsafe.Pointer(s)).Flast_flush = -1 // avoid BUF_ERROR at next call, see above 14863 return Z_OK 14864 } 14865 } 14866 } 14867 14868 if flush != Z_FINISH { 14869 return Z_OK 14870 } 14871 if (*Deflate_state)(unsafe.Pointer(s)).Fwrap <= 0 { 14872 return Z_STREAM_END 14873 } 14874 14875 // Write the trailer 14876 if (*Deflate_state)(unsafe.Pointer(s)).Fwrap == 2 { 14877 { 14878 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte((*Z_stream)(unsafe.Pointer(strm)).Fadler & uint64(0xff))) 14879 } 14880 14881 { 14882 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte(((*Z_stream)(unsafe.Pointer(strm)).Fadler >> 8) & uint64(0xff))) 14883 } 14884 14885 { 14886 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte(((*Z_stream)(unsafe.Pointer(strm)).Fadler >> 16) & uint64(0xff))) 14887 } 14888 14889 { 14890 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte(((*Z_stream)(unsafe.Pointer(strm)).Fadler >> 24) & uint64(0xff))) 14891 } 14892 14893 { 14894 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte((*Z_stream)(unsafe.Pointer(strm)).Ftotal_in & uint64(0xff))) 14895 } 14896 14897 { 14898 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte(((*Z_stream)(unsafe.Pointer(strm)).Ftotal_in >> 8) & uint64(0xff))) 14899 } 14900 14901 { 14902 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte(((*Z_stream)(unsafe.Pointer(strm)).Ftotal_in >> 16) & uint64(0xff))) 14903 } 14904 14905 { 14906 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Byte(((*Z_stream)(unsafe.Pointer(strm)).Ftotal_in >> 24) & uint64(0xff))) 14907 } 14908 14909 } else { 14910 putShortMSB(tls, s, (UInt((*Z_stream)(unsafe.Pointer(strm)).Fadler >> 16))) 14911 putShortMSB(tls, s, (UInt((*Z_stream)(unsafe.Pointer(strm)).Fadler & uint64(0xffff)))) 14912 } 14913 flush_pending(tls, strm) 14914 // If avail_out is zero, the application will call deflate again 14915 // to flush the rest. 14916 if (*Deflate_state)(unsafe.Pointer(s)).Fwrap > 0 { 14917 (*Deflate_state)(unsafe.Pointer(s)).Fwrap = -(*Deflate_state)(unsafe.Pointer(s)).Fwrap 14918 } // write the trailer only once! 14919 if (*Deflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) { 14920 return Z_OK 14921 } 14922 return Z_STREAM_END 14923 } 14924 14925 // ========================================================================= 14926 func XdeflateEnd(tls *libc.TLS, strm Z_streamp) int32 { /* deflate.c:1076:13: */ 14927 var status int32 14928 14929 if deflateStateCheck(tls, strm) != 0 { 14930 return -2 14931 } 14932 14933 status = (*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fstatus 14934 14935 /* Deallocate in reverse order of allocations: */ 14936 { 14937 if (*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fpending_buf != 0 { 14938 (*struct { 14939 f func(*libc.TLS, Voidpf, Voidpf) 14940 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzfree})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fpending_buf) 14941 } 14942 } 14943 14944 { 14945 if (*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fhead != 0 { 14946 (*struct { 14947 f func(*libc.TLS, Voidpf, Voidpf) 14948 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzfree})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fhead) 14949 } 14950 } 14951 14952 { 14953 if (*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fprev != 0 { 14954 (*struct { 14955 f func(*libc.TLS, Voidpf, Voidpf) 14956 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzfree})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fprev) 14957 } 14958 } 14959 14960 { 14961 if (*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fwindow != 0 { 14962 (*struct { 14963 f func(*libc.TLS, Voidpf, Voidpf) 14964 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzfree})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fwindow) 14965 } 14966 } 14967 14968 (*struct { 14969 f func(*libc.TLS, Voidpf, Voidpf) 14970 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzfree})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (*Z_stream)(unsafe.Pointer(strm)).Fstate) 14971 (*Z_stream)(unsafe.Pointer(strm)).Fstate = uintptr(Z_NULL) 14972 14973 if status == BUSY_STATE { 14974 return -3 14975 } 14976 return Z_OK 14977 } 14978 14979 // ========================================================================= 14980 // Copy the source state to the destination state. 14981 // To simplify the source, this is not supported for 16-bit MSDOS (which 14982 // doesn't have enough memory anyway to duplicate compression states). 14983 func XdeflateCopy(tls *libc.TLS, dest Z_streamp, source Z_streamp) int32 { /* deflate.c:1102:13: */ 14984 var ds uintptr 14985 var ss uintptr 14986 var overlay uintptr 14987 14988 if (deflateStateCheck(tls, source) != 0) || (dest == uintptr(Z_NULL)) { 14989 return -2 14990 } 14991 14992 ss = (*Z_stream)(unsafe.Pointer(source)).Fstate 14993 14994 libc.X__builtin___memcpy_chk(tls, dest, source, uint64(unsafe.Sizeof(Z_stream{})), libc.X__builtin_object_size(tls, dest, 0)) 14995 14996 ds = (*struct { 14997 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 14998 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((dest))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(dest)).Fopaque, uint32(1), uint32(unsafe.Sizeof(Deflate_state{}))) 14999 if ds == uintptr(Z_NULL) { 15000 return -4 15001 } 15002 (*Z_stream)(unsafe.Pointer(dest)).Fstate = ds 15003 libc.X__builtin___memcpy_chk(tls, ds, ss, uint64(unsafe.Sizeof(Deflate_state{})), libc.X__builtin_object_size(tls, ds, 0)) 15004 (*Deflate_state)(unsafe.Pointer(ds)).Fstrm = dest 15005 15006 (*Deflate_state)(unsafe.Pointer(ds)).Fwindow = (*struct { 15007 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 15008 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((dest))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(dest)).Fopaque, (*Deflate_state)(unsafe.Pointer(ds)).Fw_size, (uint32(uint64(2) * uint64(unsafe.Sizeof(Byte(0)))))) 15009 (*Deflate_state)(unsafe.Pointer(ds)).Fprev = (*struct { 15010 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 15011 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((dest))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(dest)).Fopaque, (*Deflate_state)(unsafe.Pointer(ds)).Fw_size, uint32(unsafe.Sizeof(Pos(0)))) 15012 (*Deflate_state)(unsafe.Pointer(ds)).Fhead = (*struct { 15013 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 15014 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((dest))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(dest)).Fopaque, (*Deflate_state)(unsafe.Pointer(ds)).Fhash_size, uint32(unsafe.Sizeof(Pos(0)))) 15015 overlay = (*struct { 15016 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 15017 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((dest))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(dest)).Fopaque, (*Deflate_state)(unsafe.Pointer(ds)).Flit_bufsize, (uint32(uint64(unsafe.Sizeof(Ush(0))) + uint64(2)))) 15018 (*Deflate_state)(unsafe.Pointer(ds)).Fpending_buf = overlay 15019 15020 if ((((*Deflate_state)(unsafe.Pointer(ds)).Fwindow == uintptr(Z_NULL)) || ((*Deflate_state)(unsafe.Pointer(ds)).Fprev == uintptr(Z_NULL))) || ((*Deflate_state)(unsafe.Pointer(ds)).Fhead == uintptr(Z_NULL))) || ((*Deflate_state)(unsafe.Pointer(ds)).Fpending_buf == uintptr(Z_NULL)) { 15021 XdeflateEnd(tls, dest) 15022 return -4 15023 } 15024 // following zmemcpy do not work for 16-bit MSDOS 15025 libc.X__builtin___memcpy_chk(tls, (*Deflate_state)(unsafe.Pointer(ds)).Fwindow, (*Deflate_state)(unsafe.Pointer(ss)).Fwindow, ((uint64((*Deflate_state)(unsafe.Pointer(ds)).Fw_size * UInt(2))) * uint64(unsafe.Sizeof(Byte(0)))), libc.X__builtin_object_size(tls, (*Deflate_state)(unsafe.Pointer(ds)).Fwindow, 0)) 15026 libc.X__builtin___memcpy_chk(tls, (*Deflate_state)(unsafe.Pointer(ds)).Fprev, (*Deflate_state)(unsafe.Pointer(ss)).Fprev, (uint64((*Deflate_state)(unsafe.Pointer(ds)).Fw_size) * uint64(unsafe.Sizeof(Pos(0)))), libc.X__builtin_object_size(tls, (*Deflate_state)(unsafe.Pointer(ds)).Fprev, 0)) 15027 libc.X__builtin___memcpy_chk(tls, (*Deflate_state)(unsafe.Pointer(ds)).Fhead, (*Deflate_state)(unsafe.Pointer(ss)).Fhead, (uint64((*Deflate_state)(unsafe.Pointer(ds)).Fhash_size) * uint64(unsafe.Sizeof(Pos(0)))), libc.X__builtin_object_size(tls, (*Deflate_state)(unsafe.Pointer(ds)).Fhead, 0)) 15028 libc.X__builtin___memcpy_chk(tls, (*Deflate_state)(unsafe.Pointer(ds)).Fpending_buf, (*Deflate_state)(unsafe.Pointer(ss)).Fpending_buf, uint64(UInt((*Deflate_state)(unsafe.Pointer(ds)).Fpending_buf_size)), libc.X__builtin_object_size(tls, (*Deflate_state)(unsafe.Pointer(ds)).Fpending_buf, 0)) 15029 15030 (*Deflate_state)(unsafe.Pointer(ds)).Fpending_out = ((*Deflate_state)(unsafe.Pointer(ds)).Fpending_buf + uintptr(((int64((*Deflate_state)(unsafe.Pointer(ss)).Fpending_out) - int64((*Deflate_state)(unsafe.Pointer(ss)).Fpending_buf)) / 1))) 15031 (*Deflate_state)(unsafe.Pointer(ds)).Fd_buf = (overlay + uintptr((uint64((*Deflate_state)(unsafe.Pointer(ds)).Flit_bufsize)/uint64(unsafe.Sizeof(Ush(0)))))*2) 15032 (*Deflate_state)(unsafe.Pointer(ds)).Fl_buf = ((*Deflate_state)(unsafe.Pointer(ds)).Fpending_buf + uintptr(((uint64(1) + uint64(unsafe.Sizeof(Ush(0)))) * uint64((*Deflate_state)(unsafe.Pointer(ds)).Flit_bufsize)))) 15033 15034 (*Deflate_state)(unsafe.Pointer(ds)).Fl_desc.Fdyn_tree = ds + 212 /* &.dyn_ltree */ 15035 (*Deflate_state)(unsafe.Pointer(ds)).Fd_desc.Fdyn_tree = ds + 2504 /* &.dyn_dtree */ 15036 (*Deflate_state)(unsafe.Pointer(ds)).Fbl_desc.Fdyn_tree = ds + 2748 /* &.bl_tree */ 15037 15038 return Z_OK 15039 } 15040 15041 // =========================================================================== 15042 // Read a new buffer from the current input stream, update the adler32 15043 // and total number of bytes read. All deflate() input goes through 15044 // this function so some applications may wish to modify it to avoid 15045 // allocating a large strm->next_in buffer and copying from it. 15046 // (See also flush_pending()). 15047 func read_buf(tls *libc.TLS, strm Z_streamp, buf uintptr, size uint32) uint32 { /* deflate.c:1164:16: */ 15048 var len uint32 = (*Z_stream)(unsafe.Pointer(strm)).Favail_in 15049 15050 if len > size { 15051 len = size 15052 } 15053 if len == uint32(0) { 15054 return uint32(0) 15055 } 15056 15057 *(*UInt)(unsafe.Pointer(strm + 8 /* &.avail_in */)) -= (len) 15058 15059 libc.X__builtin___memcpy_chk(tls, buf, (*Z_stream)(unsafe.Pointer(strm)).Fnext_in, uint64(len), libc.X__builtin_object_size(tls, buf, 0)) 15060 if (*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fwrap == 1 { 15061 (*Z_stream)(unsafe.Pointer(strm)).Fadler = Xadler32(tls, (*Z_stream)(unsafe.Pointer(strm)).Fadler, buf, len) 15062 } else if (*Internal_state)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fstate)).Fwrap == 2 { 15063 (*Z_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Z_stream)(unsafe.Pointer(strm)).Fadler, buf, len) 15064 } 15065 *(*uintptr)(unsafe.Pointer(strm /* &.next_in */)) += (uintptr(len)) 15066 *(*ULong)(unsafe.Pointer(strm + 16 /* &.total_in */)) += (ULong(len)) 15067 15068 return len 15069 } 15070 15071 // =========================================================================== 15072 // Initialize the "longest match" routines for a new zlib stream 15073 func lm_init(tls *libc.TLS, s uintptr) { /* deflate.c:1194:12: */ 15074 (*Deflate_state)(unsafe.Pointer(s)).Fwindow_size = (uint64(2) * Ulg((*Deflate_state)(unsafe.Pointer(s)).Fw_size)) 15075 15076 *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr(((*Deflate_state)(unsafe.Pointer(s)).Fhash_size-UInt(1)))*2)) = Posf(NIL) 15077 libc.X__builtin___memset_chk(tls, (*Deflate_state)(unsafe.Pointer(s)).Fhead, 0, (uint64(((*Deflate_state)(unsafe.Pointer(s)).Fhash_size - UInt(1))) * uint64(unsafe.Sizeof(Posf(0)))), libc.X__builtin_object_size(tls, (*Deflate_state)(unsafe.Pointer(s)).Fhead, 0)) 15078 15079 // Set the default configuration parameters: 15080 (*Deflate_state)(unsafe.Pointer(s)).Fmax_lazy_match = UInt(configuration_table[(*Deflate_state)(unsafe.Pointer(s)).Flevel].Fmax_lazy) 15081 (*Deflate_state)(unsafe.Pointer(s)).Fgood_match = UInt(configuration_table[(*Deflate_state)(unsafe.Pointer(s)).Flevel].Fgood_length) 15082 (*Deflate_state)(unsafe.Pointer(s)).Fnice_match = int32(configuration_table[(*Deflate_state)(unsafe.Pointer(s)).Flevel].Fnice_length) 15083 (*Deflate_state)(unsafe.Pointer(s)).Fmax_chain_length = UInt(configuration_table[(*Deflate_state)(unsafe.Pointer(s)).Flevel].Fmax_chain) 15084 15085 (*Deflate_state)(unsafe.Pointer(s)).Fstrstart = UInt(0) 15086 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = 0 15087 (*Deflate_state)(unsafe.Pointer(s)).Flookahead = UInt(0) 15088 (*Deflate_state)(unsafe.Pointer(s)).Finsert = UInt(0) 15089 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length = libc.AssignPtrUint32(s+184 /* &.prev_length */, (UInt(MIN_MATCH - 1))) 15090 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_available = 0 15091 (*Deflate_state)(unsafe.Pointer(s)).Fins_h = UInt(0) 15092 } 15093 15094 // =========================================================================== 15095 // Set match_start to the longest match starting at the given string and 15096 // return its length. Matches shorter or equal to prev_length are discarded, 15097 // in which case the result is equal to prev_length and match_start is 15098 // garbage. 15099 // IN assertions: cur_match is the head of the hash chain for the current 15100 // string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1 15101 // OUT assertion: the match length is not greater than s->lookahead. 15102 // For 80x86 and 680x0, an optimized version will be provided in match.asm or 15103 // match.S. The code will be functionally equivalent. 15104 func longest_match(tls *libc.TLS, s uintptr, cur_match IPos) UInt { /* deflate.c:1236:12: */ 15105 var chain_length uint32 = (*Deflate_state)(unsafe.Pointer(s)).Fmax_chain_length // max hash chain length 15106 var scan uintptr = ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)) // current string 15107 var match uintptr // matched string 15108 var len int32 // length of current match 15109 var best_len int32 = int32((*Deflate_state)(unsafe.Pointer(s)).Fprev_length) // best match length so far 15110 var nice_match int32 = (*Deflate_state)(unsafe.Pointer(s)).Fnice_match // stop if match long enough 15111 var limit IPos 15112 if (*Deflate_state)(unsafe.Pointer(s)).Fstrstart > ((*Deflate_state)(unsafe.Pointer((s))).Fw_size - (UInt((MAX_MATCH + MIN_MATCH) + 1))) { 15113 limit = ((*Deflate_state)(unsafe.Pointer(s)).Fstrstart - ((*Deflate_state)(unsafe.Pointer((s))).Fw_size - (UInt((MAX_MATCH + MIN_MATCH) + 1)))) 15114 } else { 15115 limit = uint32(NIL) 15116 } 15117 // Stop when cur_match becomes <= limit. To simplify the code, 15118 // we prevent matches with the string of window index 0. 15119 var prev uintptr = (*Deflate_state)(unsafe.Pointer(s)).Fprev 15120 var wmask UInt = (*Deflate_state)(unsafe.Pointer(s)).Fw_mask 15121 15122 var strend uintptr = (((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)) + uintptr(MAX_MATCH)) 15123 var scan_end1 Byte = *(*Bytef)(unsafe.Pointer(scan + uintptr((best_len - 1)))) 15124 var scan_end Byte = *(*Bytef)(unsafe.Pointer(scan + uintptr(best_len))) 15125 15126 // The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16. 15127 // It is easy to get rid of this optimization if necessary. 15128 15129 // Do not waste too much time if we already have a good match: 15130 if (*Deflate_state)(unsafe.Pointer(s)).Fprev_length >= (*Deflate_state)(unsafe.Pointer(s)).Fgood_match { 15131 chain_length >>= 2 15132 } 15133 // Do not look for matches beyond the end of the input. This is necessary 15134 // to make deflate deterministic. 15135 if UInt(nice_match) > (*Deflate_state)(unsafe.Pointer(s)).Flookahead { 15136 nice_match = int32((*Deflate_state)(unsafe.Pointer(s)).Flookahead) 15137 } 15138 15139 for ok := true; ok; ok = (((libc.AssignUint32(&cur_match, IPos(*(*Posf)(unsafe.Pointer(prev + uintptr((cur_match&wmask))*2))))) > limit) && 15140 (libc.PreDecUint32(&chain_length, 1) != uint32(0))) { 15141 15142 match = ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(cur_match)) 15143 15144 // Skip to next match if the match length cannot increase 15145 // or if the match length is less than 2. Note that the checks below 15146 // for insufficient lookahead only occur occasionally for performance 15147 // reasons. Therefore uninitialized memory will be accessed, and 15148 // conditional jumps will be made that depend on those values. 15149 // However the length of the match is limited to the lookahead, so 15150 // the output of deflate is not affected by the uninitialized values. 15151 15152 if (((int32(*(*Bytef)(unsafe.Pointer(match + uintptr(best_len)))) != int32(scan_end)) || (int32(*(*Bytef)(unsafe.Pointer(match + uintptr((best_len - 1))))) != int32(scan_end1))) || (int32(*(*Bytef)(unsafe.Pointer(match))) != int32(*(*Bytef)(unsafe.Pointer(scan))))) || (int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&match, 1)))) != int32(*(*Bytef)(unsafe.Pointer(scan + 1)))) { 15153 continue 15154 } 15155 15156 // The check at best_len-1 can be removed because it will be made 15157 // again later. (This heuristic is not always a win.) 15158 // It is not necessary to compare scan[2] and match[2] since they 15159 // are always equal when the other bytes match, given that 15160 // the hash keys are equal and that HASH_BITS >= 8. 15161 scan += uintptr(2) 15162 match++ 15163 15164 // We check for insufficient lookahead only every 8th comparison; 15165 // the 256th check will be made at strstart+258. 15166 for ok1 := true; ok1; ok1 = (((((((((int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))) == int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&match, 1))))) && (int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))) == int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&match, 1)))))) && (int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))) == int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&match, 1)))))) && (int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))) == int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&match, 1)))))) && (int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))) == int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&match, 1)))))) && (int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))) == int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&match, 1)))))) && (int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))) == int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&match, 1)))))) && (int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))) == int32(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&match, 1)))))) && (scan < strend)) { 15167 } 15168 15169 len = (MAX_MATCH - (int32((int64(strend) - int64(scan)) / 1))) 15170 scan = (strend - uintptr(MAX_MATCH)) 15171 15172 if len > best_len { 15173 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_start = cur_match 15174 best_len = len 15175 if len >= nice_match { 15176 break 15177 } 15178 scan_end1 = *(*Bytef)(unsafe.Pointer(scan + uintptr((best_len - 1)))) 15179 scan_end = *(*Bytef)(unsafe.Pointer(scan + uintptr(best_len))) 15180 } 15181 } 15182 15183 if UInt(best_len) <= (*Deflate_state)(unsafe.Pointer(s)).Flookahead { 15184 return UInt(best_len) 15185 } 15186 return (*Deflate_state)(unsafe.Pointer(s)).Flookahead 15187 } 15188 15189 // =========================================================================== 15190 // Fill the window when the lookahead becomes insufficient. 15191 // Updates strstart and lookahead. 15192 // 15193 // IN assertion: lookahead < MIN_LOOKAHEAD 15194 // OUT assertions: strstart <= window_size-MIN_LOOKAHEAD 15195 // At least one byte has been read, or avail_in == 0; reads are 15196 // performed for at least two bytes (required for the zip translate_eol 15197 // option -- not supported here). 15198 func fill_window(tls *libc.TLS, s uintptr) { /* deflate.c:1482:12: */ 15199 var n uint32 15200 var more uint32 // Amount of free space at the end of the window. 15201 var wsize UInt = (*Deflate_state)(unsafe.Pointer(s)).Fw_size 15202 15203 for ok := true; ok; ok = (((*Deflate_state)(unsafe.Pointer(s)).Flookahead < (UInt((MAX_MATCH + MIN_MATCH) + 1))) && ((*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in != UInt(0))) { 15204 more = (uint32(((*Deflate_state)(unsafe.Pointer(s)).Fwindow_size - Ulg((*Deflate_state)(unsafe.Pointer(s)).Flookahead)) - Ulg((*Deflate_state)(unsafe.Pointer(s)).Fstrstart))) 15205 15206 // Deal with !@#$% 64K limit: 15207 if uint64(unsafe.Sizeof(int32(0))) <= uint64(2) { 15208 if ((more == uint32(0)) && ((*Deflate_state)(unsafe.Pointer(s)).Fstrstart == UInt(0))) && ((*Deflate_state)(unsafe.Pointer(s)).Flookahead == UInt(0)) { 15209 more = wsize 15210 15211 } else if more == libc.Uint32(libc.Uint32FromInt32(-1)) { 15212 // Very unlikely, but possible on 16 bit machine if 15213 // strstart == 0 && lookahead == 1 (input done a byte at time) 15214 more-- 15215 } 15216 } 15217 15218 // If the window is almost full and there is insufficient lookahead, 15219 // move the upper half to the lower one to make room in the upper half. 15220 if (*Deflate_state)(unsafe.Pointer(s)).Fstrstart >= (wsize + ((*Deflate_state)(unsafe.Pointer((s))).Fw_size - (UInt((MAX_MATCH + MIN_MATCH) + 1)))) { 15221 15222 libc.X__builtin___memcpy_chk(tls, (*Deflate_state)(unsafe.Pointer(s)).Fwindow, ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(wsize)), (uint64(wsize - more)), libc.X__builtin_object_size(tls, (*Deflate_state)(unsafe.Pointer(s)).Fwindow, 0)) 15223 *(*UInt)(unsafe.Pointer(s + 176 /* &.match_start */)) -= (wsize) 15224 *(*UInt)(unsafe.Pointer(s + 172 /* &.strstart */)) -= (wsize) // we now have strstart >= MAX_DIST 15225 *(*int64)(unsafe.Pointer(s + 152 /* &.block_start */)) -= (int64(wsize)) 15226 slide_hash(tls, s) 15227 more = more + (wsize) 15228 } 15229 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in == UInt(0) { 15230 break 15231 } 15232 15233 // If there was no sliding: 15234 // strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 && 15235 // more == window_size - lookahead - strstart 15236 // => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1) 15237 // => more >= window_size - 2*WSIZE + 2 15238 // In the BIG_MEM or MMAP case (not yet supported), 15239 // window_size == input_size + MIN_LOOKAHEAD && 15240 // strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD. 15241 // Otherwise, window_size == 2*WSIZE so more >= 2. 15242 // If there was sliding, more >= WSIZE. So in all cases, more >= 2. 15243 15244 n = read_buf(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm, (((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)) + uintptr((*Deflate_state)(unsafe.Pointer(s)).Flookahead)), more) 15245 *(*UInt)(unsafe.Pointer(s + 180 /* &.lookahead */)) += (n) 15246 15247 // Initialize the hash value now that we have some input: 15248 if ((*Deflate_state)(unsafe.Pointer(s)).Flookahead + (*Deflate_state)(unsafe.Pointer(s)).Finsert) >= UInt(MIN_MATCH) { 15249 var str UInt = ((*Deflate_state)(unsafe.Pointer(s)).Fstrstart - (*Deflate_state)(unsafe.Pointer(s)).Finsert) 15250 (*Deflate_state)(unsafe.Pointer(s)).Fins_h = UInt(*(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(str)))) 15251 (*Deflate_state)(unsafe.Pointer(s)).Fins_h = (((((*Deflate_state)(unsafe.Pointer(s)).Fins_h) << (*Deflate_state)(unsafe.Pointer(s)).Fhash_shift) ^ (UInt(*(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((str + UInt(1)))))))) & (*Deflate_state)(unsafe.Pointer(s)).Fhash_mask) 15252 for (*Deflate_state)(unsafe.Pointer(s)).Finsert != 0 { 15253 (*Deflate_state)(unsafe.Pointer(s)).Fins_h = (((((*Deflate_state)(unsafe.Pointer(s)).Fins_h) << (*Deflate_state)(unsafe.Pointer(s)).Fhash_shift) ^ (UInt(*(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(((str + UInt(MIN_MATCH)) - UInt(1)))))))) & (*Deflate_state)(unsafe.Pointer(s)).Fhash_mask) 15254 *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fprev + uintptr((str&(*Deflate_state)(unsafe.Pointer(s)).Fw_mask))*2)) = *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fins_h)*2)) 15255 *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = Pos(str) 15256 str++ 15257 (*Deflate_state)(unsafe.Pointer(s)).Finsert-- 15258 if ((*Deflate_state)(unsafe.Pointer(s)).Flookahead + (*Deflate_state)(unsafe.Pointer(s)).Finsert) < UInt(MIN_MATCH) { 15259 break 15260 } 15261 } 15262 } 15263 // If the whole input has less than MIN_MATCH bytes, ins_h is garbage, 15264 // but this is not important since only literal bytes will be emitted. 15265 15266 } 15267 15268 // If the WIN_INIT bytes after the end of the current data have never been 15269 // written, then zero those bytes in order to avoid memory check reports of 15270 // the use of uninitialized (or uninitialised as Julian writes) bytes by 15271 // the longest match routines. Update the high water mark for the next 15272 // time through here. WIN_INIT is set to MAX_MATCH since the longest match 15273 // routines allow scanning to strstart + MAX_MATCH, ignoring lookahead. 15274 if (*Deflate_state)(unsafe.Pointer(s)).Fhigh_water < (*Deflate_state)(unsafe.Pointer(s)).Fwindow_size { 15275 var curr Ulg = (Ulg((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) + (Ulg((*Deflate_state)(unsafe.Pointer(s)).Flookahead))) 15276 var init1 Ulg 15277 15278 if (*Deflate_state)(unsafe.Pointer(s)).Fhigh_water < curr { 15279 // Previous high water mark below current data -- zero WIN_INIT 15280 // bytes or up to end of window, whichever is less. 15281 init1 = ((*Deflate_state)(unsafe.Pointer(s)).Fwindow_size - curr) 15282 if init1 > uint64(MAX_MATCH) { 15283 init1 = uint64(MAX_MATCH) 15284 } 15285 libc.X__builtin___memset_chk(tls, ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(curr)), 0, uint64(uint32(init1)), libc.X__builtin_object_size(tls, ((*Deflate_state)(unsafe.Pointer(s)).Fwindow+uintptr(curr)), 0)) 15286 (*Deflate_state)(unsafe.Pointer(s)).Fhigh_water = (curr + init1) 15287 } else if (*Deflate_state)(unsafe.Pointer(s)).Fhigh_water < (curr + uint64(MAX_MATCH)) { 15288 // High water mark at or above current data, but below current data 15289 // plus WIN_INIT -- zero out to current data plus WIN_INIT, or up 15290 // to end of window, whichever is less. 15291 init1 = ((curr + uint64(MAX_MATCH)) - (*Deflate_state)(unsafe.Pointer(s)).Fhigh_water) 15292 if init1 > ((*Deflate_state)(unsafe.Pointer(s)).Fwindow_size - (*Deflate_state)(unsafe.Pointer(s)).Fhigh_water) { 15293 init1 = ((*Deflate_state)(unsafe.Pointer(s)).Fwindow_size - (*Deflate_state)(unsafe.Pointer(s)).Fhigh_water) 15294 } 15295 libc.X__builtin___memset_chk(tls, ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fhigh_water)), 0, uint64(uint32(init1)), libc.X__builtin_object_size(tls, ((*Deflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Deflate_state)(unsafe.Pointer(s)).Fhigh_water)), 0)) 15296 *(*Ulg)(unsafe.Pointer(s + 5944 /* &.high_water */)) += (init1) 15297 } 15298 } 15299 15300 } 15301 15302 // =========================================================================== 15303 // Flush the current block, with given end-of-file flag. 15304 // IN assertion: strstart is set to the end of the current match. 15305 15306 // Same but force premature exit if necessary. 15307 15308 // Maximum stored block length in deflate format (not including header). 15309 15310 // Minimum of a and b. 15311 15312 // =========================================================================== 15313 // Copy without compression as much as possible from the input stream, return 15314 // the current block state. 15315 // 15316 // In case deflateParams() is used to later switch to a non-zero compression 15317 // level, s->matches (otherwise unused when storing) keeps track of the number 15318 // of hash table slides to perform. If s->matches is 1, then one hash table 15319 // slide will be done when switching. If s->matches is 2, the maximum value 15320 // allowed here, then the hash table will be cleared, since two or more slides 15321 // is the same as a clear. 15322 // 15323 // deflate_stored() is written to minimize the number of times an input byte is 15324 // copied. It is most efficient with large input and output buffers, which 15325 // maximizes the opportunites to have a single copy from next_in to next_out. 15326 func deflate_stored(tls *libc.TLS, s uintptr, flush int32) Block_state { /* deflate.c:1643:19: */ 15327 // Smallest worthy block size when not flushing or finishing. By default 15328 // this is 32K. This can be as small as 507 bytes for memLevel == 1. For 15329 // large input and output buffers, the stored block size will be larger. 15330 var min_block uint32 = func() uint32 { 15331 if ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf_size - uint64(5)) > (Ulg((*Deflate_state)(unsafe.Pointer(s)).Fw_size)) { 15332 return (*Deflate_state)(unsafe.Pointer(s)).Fw_size 15333 } 15334 return (uint32((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf_size - uint64(5))) 15335 }() 15336 15337 // Copy as many min_block or larger stored blocks directly to next_out as 15338 // possible. If flushing, copy the remaining available input to next_out as 15339 // stored blocks, if there is enough space. 15340 var len uint32 15341 var left uint32 15342 var have uint32 15343 var last uint32 = uint32(0) 15344 var used uint32 = (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in 15345 for ok := true; ok; ok = (last == uint32(0)) { 15346 // Set len to the maximum size block that we can copy directly with the 15347 // available input data and output space. Set left to how much of that 15348 // would be copied from what's left in the window. 15349 len = uint32(MAX_STORED) // maximum deflate stored block length 15350 have = (uint32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_valid + 42) >> 3)) // number of header bytes 15351 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out < have { // need room for header 15352 break 15353 } 15354 // maximum stored block length that will fit in avail_out: 15355 have = ((*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out - have) 15356 left = (uint32(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)) // bytes left in window 15357 if Ulg(len) > (Ulg(left) + Ulg((*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in)) { 15358 len = (left + (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in) 15359 } // limit len to the input 15360 if len > have { 15361 len = have 15362 } // limit len to the output 15363 15364 // If the stored block would be less than min_block in length, or if 15365 // unable to copy all of the available input when flushing, then try 15366 // copying to the window and the pending buffer instead. Also don't 15367 // write an empty block when flushing -- deflate() does that. 15368 if (len < min_block) && ((((len == uint32(0)) && (flush != Z_FINISH)) || (flush == Z_NO_FLUSH)) || (len != (left + (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in))) { 15369 break 15370 } 15371 15372 // Make a dummy stored block in pending to get the header bytes, 15373 // including any pending bits. This also updates the debugging counts. 15374 if (flush == Z_FINISH) && (len == (left + (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in)) { 15375 last = uint32(1) 15376 } else { 15377 last = uint32(0) 15378 } 15379 X_tr_stored_block(tls, s, uintptr(0), uint64(0), int32(last)) 15380 15381 // Replace the lengths in the dummy stored block with len. 15382 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(((*Deflate_state)(unsafe.Pointer(s)).Fpending - uint64(4))))) = Bytef(len) 15383 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(((*Deflate_state)(unsafe.Pointer(s)).Fpending - uint64(3))))) = (Bytef(len >> 8)) 15384 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(((*Deflate_state)(unsafe.Pointer(s)).Fpending - uint64(2))))) = Bytef(^len) 15385 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(((*Deflate_state)(unsafe.Pointer(s)).Fpending - uint64(1))))) = (Bytef(^len >> 8)) 15386 15387 // Write the stored block header bytes. 15388 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 15389 15390 // Copy uncompressed bytes from the window to next_out. 15391 if left != 0 { 15392 if left > len { 15393 left = len 15394 } 15395 libc.X__builtin___memcpy_chk(tls, (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Fnext_out, ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), uint64(left), libc.X__builtin_object_size(tls, (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Fnext_out, 0)) 15396 *(*uintptr)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm + 24 /* &.next_out */)) += (uintptr(left)) 15397 *(*UInt)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm + 32 /* &.avail_out */)) -= (left) 15398 *(*ULong)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm + 40 /* &.total_out */)) += (ULong(left)) 15399 *(*int64)(unsafe.Pointer(s + 152 /* &.block_start */)) += (int64(left)) 15400 len = len - (left) 15401 } 15402 15403 // Copy uncompressed bytes directly from next_in to next_out, updating 15404 // the check value. 15405 if len != 0 { 15406 read_buf(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm, (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Fnext_out, len) 15407 *(*uintptr)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm + 24 /* &.next_out */)) += (uintptr(len)) 15408 *(*UInt)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm + 32 /* &.avail_out */)) -= (len) 15409 *(*ULong)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm + 40 /* &.total_out */)) += (ULong(len)) 15410 } 15411 } 15412 15413 // Update the sliding window with the last s->w_size bytes of the copied 15414 // data, or append all of the copied data to the existing window if less 15415 // than s->w_size bytes were copied. Also update the number of bytes to 15416 // insert in the hash tables, in the event that deflateParams() switches to 15417 // a non-zero compression level. 15418 used = used - ((*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in) // number of input bytes directly copied 15419 if used != 0 { 15420 // If any input was used, then no unused input remains in the window, 15421 // therefore s->block_start == s->strstart. 15422 if used >= (*Deflate_state)(unsafe.Pointer(s)).Fw_size { // supplant the previous history 15423 (*Deflate_state)(unsafe.Pointer(s)).Fmatches = UInt(2) // clear hash 15424 libc.X__builtin___memcpy_chk(tls, (*Deflate_state)(unsafe.Pointer(s)).Fwindow, ((*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Fnext_in - uintptr((*Deflate_state)(unsafe.Pointer(s)).Fw_size)), uint64((*Deflate_state)(unsafe.Pointer(s)).Fw_size), libc.X__builtin_object_size(tls, (*Deflate_state)(unsafe.Pointer(s)).Fwindow, 0)) 15425 (*Deflate_state)(unsafe.Pointer(s)).Fstrstart = (*Deflate_state)(unsafe.Pointer(s)).Fw_size 15426 } else { 15427 if ((*Deflate_state)(unsafe.Pointer(s)).Fwindow_size - Ulg((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)) <= Ulg(used) { 15428 // Slide the window down. 15429 *(*UInt)(unsafe.Pointer(s + 172 /* &.strstart */)) -= ((*Deflate_state)(unsafe.Pointer(s)).Fw_size) 15430 libc.X__builtin___memcpy_chk(tls, (*Deflate_state)(unsafe.Pointer(s)).Fwindow, ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fw_size)), uint64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart), libc.X__builtin_object_size(tls, (*Deflate_state)(unsafe.Pointer(s)).Fwindow, 0)) 15431 if (*Deflate_state)(unsafe.Pointer(s)).Fmatches < UInt(2) { 15432 (*Deflate_state)(unsafe.Pointer(s)).Fmatches++ 15433 } // add a pending slide_hash() 15434 } 15435 libc.X__builtin___memcpy_chk(tls, ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)), ((*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Fnext_in - uintptr(used)), uint64(used), libc.X__builtin_object_size(tls, ((*Deflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)), 0)) 15436 *(*UInt)(unsafe.Pointer(s + 172 /* &.strstart */)) += (used) 15437 } 15438 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15439 *(*UInt)(unsafe.Pointer(s + 5932 /* &.insert */)) += (func() uint32 { 15440 if (used) > ((*Deflate_state)(unsafe.Pointer(s)).Fw_size - (*Deflate_state)(unsafe.Pointer(s)).Finsert) { 15441 return ((*Deflate_state)(unsafe.Pointer(s)).Fw_size - (*Deflate_state)(unsafe.Pointer(s)).Finsert) 15442 } 15443 return used 15444 }()) 15445 } 15446 if (*Deflate_state)(unsafe.Pointer(s)).Fhigh_water < Ulg((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) { 15447 (*Deflate_state)(unsafe.Pointer(s)).Fhigh_water = Ulg((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15448 } 15449 15450 // If the last block was written to next_out, then done. 15451 if last != 0 { 15452 return Finish_done 15453 } 15454 15455 // If flushing and all input has been consumed, then done. 15456 if (((flush != Z_NO_FLUSH) && (flush != Z_FINISH)) && ((*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in == UInt(0))) && (int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) == (*Deflate_state)(unsafe.Pointer(s)).Fblock_start) { 15457 return Block_done 15458 } 15459 15460 // Fill the window with any remaining input. 15461 have = (uint32(((*Deflate_state)(unsafe.Pointer(s)).Fwindow_size - Ulg((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)) - uint64(1))) 15462 if ((*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in > have) && ((*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= int64((*Deflate_state)(unsafe.Pointer(s)).Fw_size)) { 15463 // Slide the window down. 15464 *(*int64)(unsafe.Pointer(s + 152 /* &.block_start */)) -= (int64((*Deflate_state)(unsafe.Pointer(s)).Fw_size)) 15465 *(*UInt)(unsafe.Pointer(s + 172 /* &.strstart */)) -= ((*Deflate_state)(unsafe.Pointer(s)).Fw_size) 15466 libc.X__builtin___memcpy_chk(tls, (*Deflate_state)(unsafe.Pointer(s)).Fwindow, ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fw_size)), uint64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart), libc.X__builtin_object_size(tls, (*Deflate_state)(unsafe.Pointer(s)).Fwindow, 0)) 15467 if (*Deflate_state)(unsafe.Pointer(s)).Fmatches < UInt(2) { 15468 (*Deflate_state)(unsafe.Pointer(s)).Fmatches++ 15469 } // add a pending slide_hash() 15470 have = have + ((*Deflate_state)(unsafe.Pointer(s)).Fw_size) // more space now 15471 } 15472 if have > (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in { 15473 have = (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in 15474 } 15475 if have != 0 { 15476 read_buf(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm, ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)), have) 15477 *(*UInt)(unsafe.Pointer(s + 172 /* &.strstart */)) += (have) 15478 } 15479 if (*Deflate_state)(unsafe.Pointer(s)).Fhigh_water < Ulg((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) { 15480 (*Deflate_state)(unsafe.Pointer(s)).Fhigh_water = Ulg((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15481 } 15482 15483 // There was not enough avail_out to write a complete worthy or flushed 15484 // stored block to next_out. Write a stored block to pending instead, if we 15485 // have enough input for a worthy block, or if flushing and there is enough 15486 // room for the remaining input as a stored block in the pending buffer. 15487 have = (uint32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_valid + 42) >> 3)) // number of header bytes 15488 // maximum stored block length that will fit in pending: 15489 have = func() uint32 { 15490 if ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf_size - Ulg(have)) > (uint64(MAX_STORED)) { 15491 return uint32(MAX_STORED) 15492 } 15493 return (uint32((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf_size - Ulg(have))) 15494 }() 15495 min_block = func() uint32 { 15496 if (have) > ((*Deflate_state)(unsafe.Pointer(s)).Fw_size) { 15497 return (*Deflate_state)(unsafe.Pointer(s)).Fw_size 15498 } 15499 return have 15500 }() 15501 left = (uint32(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)) 15502 if (left >= min_block) || (((((left != 0) || (flush == Z_FINISH)) && (flush != Z_NO_FLUSH)) && ((*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in == UInt(0))) && (left <= have)) { 15503 len = func() uint32 { 15504 if (left) > (have) { 15505 return have 15506 } 15507 return left 15508 }() 15509 if ((flush == Z_FINISH) && ((*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in == UInt(0))) && (len == left) { 15510 last = uint32(1) 15511 } else { 15512 last = uint32(0) 15513 } 15514 X_tr_stored_block(tls, s, ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), uint64(len), int32(last)) 15515 *(*int64)(unsafe.Pointer(s + 152 /* &.block_start */)) += (int64(len)) 15516 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 15517 } 15518 15519 // We've done all we can with the available input and output. 15520 if last != 0 { 15521 return Finish_started 15522 } 15523 return Need_more 15524 } 15525 15526 // =========================================================================== 15527 // Compress as much as possible from the input stream, return the current 15528 // block state. 15529 // This function does not perform lazy evaluation of matches and inserts 15530 // new strings in the dictionary only for unmatched strings or for short 15531 // matches. It is used only for the fast compression options. 15532 func deflate_fast(tls *libc.TLS, s uintptr, flush int32) Block_state { /* deflate.c:1824:19: */ 15533 var hash_head IPos // head of the hash chain 15534 var bflush int32 // set if current block must be flushed 15535 15536 for { 15537 // Make sure that we always have enough lookahead, except 15538 // at the end of the input file. We need MAX_MATCH bytes 15539 // for the next match, plus MIN_MATCH bytes to insert the 15540 // string following the next match. 15541 if (*Deflate_state)(unsafe.Pointer(s)).Flookahead < (UInt((MAX_MATCH + MIN_MATCH) + 1)) { 15542 fill_window(tls, s) 15543 if ((*Deflate_state)(unsafe.Pointer(s)).Flookahead < (UInt((MAX_MATCH + MIN_MATCH) + 1))) && (flush == Z_NO_FLUSH) { 15544 return Need_more 15545 } 15546 if (*Deflate_state)(unsafe.Pointer(s)).Flookahead == UInt(0) { 15547 break 15548 } // flush the current block 15549 } 15550 15551 // Insert the string window[strstart .. strstart+2] in the 15552 // dictionary, and set hash_head to the head of the hash chain: 15553 hash_head = IPos(NIL) 15554 if (*Deflate_state)(unsafe.Pointer(s)).Flookahead >= UInt(MIN_MATCH) { 15555 (*Deflate_state)(unsafe.Pointer(s)).Fins_h = (((((*Deflate_state)(unsafe.Pointer(s)).Fins_h) << (*Deflate_state)(unsafe.Pointer(s)).Fhash_shift) ^ (UInt(*(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) + (UInt(MIN_MATCH - 1))))))))) & (*Deflate_state)(unsafe.Pointer(s)).Fhash_mask) 15556 hash_head = IPos(libc.AssignPtrUint16((*Deflate_state)(unsafe.Pointer(s)).Fprev+uintptr((((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)&(*Deflate_state)(unsafe.Pointer(s)).Fw_mask))*2, *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fins_h)*2)))) 15557 *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = Pos((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15558 } 15559 15560 // Find the longest match, discarding those <= prev_length. 15561 // At this point we have always match_length < MIN_MATCH 15562 if (hash_head != IPos(NIL)) && (((*Deflate_state)(unsafe.Pointer(s)).Fstrstart - hash_head) <= ((*Deflate_state)(unsafe.Pointer((s))).Fw_size - (UInt((MAX_MATCH + MIN_MATCH) + 1)))) { 15563 // To simplify the code, we prevent matches with the string 15564 // of window index 0 (in particular we have to avoid a match 15565 // of the string with itself at the start of the input file). 15566 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length = longest_match(tls, s, hash_head) 15567 // longest_match() sets match_start 15568 } 15569 if (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length >= UInt(MIN_MATCH) { 15570 15571 { 15572 var len Uch = (Uch((*Deflate_state)(unsafe.Pointer(s)).Fmatch_length - UInt(MIN_MATCH))) 15573 var dist Ush = (Ush((*Deflate_state)(unsafe.Pointer(s)).Fstrstart - (*Deflate_state)(unsafe.Pointer(s)).Fmatch_start)) 15574 *(*Ushf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fd_buf + uintptr((*Deflate_state)(unsafe.Pointer(s)).Flast_lit)*2)) = dist 15575 *(*Uchf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fl_buf + uintptr(libc.PostIncUint32(&(*Deflate_state)(unsafe.Pointer(s)).Flast_lit, 1)))) = len 15576 dist-- 15577 *(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + uintptr(((int32(X_length_code[len])+LITERALS)+1))*4 /* &.fc */))++ 15578 *(*Ush)(unsafe.Pointer((s + 2504 /* &.dyn_dtree */) + uintptr((func() int32 { 15579 if (int32(dist)) < 256 { 15580 return int32(X_dist_code[dist]) 15581 } 15582 return int32(X_dist_code[(256 + ((int32(dist)) >> 7))]) 15583 }()))*4 /* &.fc */))++ 15584 bflush = (libc.Bool32((*Deflate_state)(unsafe.Pointer(s)).Flast_lit == ((*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize - UInt(1)))) 15585 } 15586 15587 *(*UInt)(unsafe.Pointer(s + 180 /* &.lookahead */)) -= ((*Deflate_state)(unsafe.Pointer(s)).Fmatch_length) 15588 15589 // Insert new strings in the hash table only if the match length 15590 // is not too large. This saves time but degrades compression. 15591 if ((*Deflate_state)(unsafe.Pointer(s)).Fmatch_length <= (*Deflate_state)(unsafe.Pointer(s)).Fmax_lazy_match) && ((*Deflate_state)(unsafe.Pointer(s)).Flookahead >= UInt(MIN_MATCH)) { 15592 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length-- // string at strstart already in table 15593 for ok := true; ok; ok = (libc.PreDecUint32(&(*Deflate_state)(unsafe.Pointer(s)).Fmatch_length, 1) != UInt(0)) { 15594 (*Deflate_state)(unsafe.Pointer(s)).Fstrstart++ 15595 (*Deflate_state)(unsafe.Pointer(s)).Fins_h = (((((*Deflate_state)(unsafe.Pointer(s)).Fins_h) << (*Deflate_state)(unsafe.Pointer(s)).Fhash_shift) ^ (UInt(*(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) + (UInt(MIN_MATCH - 1))))))))) & (*Deflate_state)(unsafe.Pointer(s)).Fhash_mask) 15596 hash_head = IPos(libc.AssignPtrUint16((*Deflate_state)(unsafe.Pointer(s)).Fprev+uintptr((((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)&(*Deflate_state)(unsafe.Pointer(s)).Fw_mask))*2, *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fins_h)*2)))) 15597 *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = Pos((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15598 // strstart never exceeds WSIZE-MAX_MATCH, so there are 15599 // always MIN_MATCH bytes ahead. 15600 } 15601 (*Deflate_state)(unsafe.Pointer(s)).Fstrstart++ 15602 } else { 15603 *(*UInt)(unsafe.Pointer(s + 172 /* &.strstart */)) += ((*Deflate_state)(unsafe.Pointer(s)).Fmatch_length) 15604 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length = UInt(0) 15605 (*Deflate_state)(unsafe.Pointer(s)).Fins_h = UInt(*(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)))) 15606 (*Deflate_state)(unsafe.Pointer(s)).Fins_h = (((((*Deflate_state)(unsafe.Pointer(s)).Fins_h) << (*Deflate_state)(unsafe.Pointer(s)).Fhash_shift) ^ (UInt(*(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(((*Deflate_state)(unsafe.Pointer(s)).Fstrstart + UInt(1)))))))) & (*Deflate_state)(unsafe.Pointer(s)).Fhash_mask) 15607 // If lookahead < MIN_MATCH, ins_h is garbage, but it does not 15608 // matter since it will be recomputed at next deflate call. 15609 } 15610 } else { 15611 // No match, output a literal byte 15612 15613 { 15614 var cc Uch = *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fstrstart))) 15615 *(*Ushf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fd_buf + uintptr((*Deflate_state)(unsafe.Pointer(s)).Flast_lit)*2)) = Ushf(0) 15616 *(*Uchf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fl_buf + uintptr(libc.PostIncUint32(&(*Deflate_state)(unsafe.Pointer(s)).Flast_lit, 1)))) = cc 15617 *(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + uintptr(cc)*4 /* &.fc */))++ 15618 bflush = (libc.Bool32((*Deflate_state)(unsafe.Pointer(s)).Flast_lit == ((*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize - UInt(1)))) 15619 } 15620 15621 (*Deflate_state)(unsafe.Pointer(s)).Flookahead-- 15622 (*Deflate_state)(unsafe.Pointer(s)).Fstrstart++ 15623 } 15624 if bflush != 0 { 15625 { 15626 X_tr_flush_block(tls, s, func() uintptr { 15627 if (*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 { 15628 return ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(uint32((*Deflate_state)(unsafe.Pointer(s)).Fblock_start))) 15629 } 15630 return uintptr(Z_NULL) 15631 }(), (Ulg(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), 0) 15632 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15633 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 15634 } 15635 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == UInt(0) { 15636 if 0 != 0 { 15637 return Finish_started 15638 } 15639 return Need_more 15640 } 15641 } 15642 15643 } 15644 (*Deflate_state)(unsafe.Pointer(s)).Finsert = func() uint32 { 15645 if (*Deflate_state)(unsafe.Pointer(s)).Fstrstart < (UInt(MIN_MATCH - 1)) { 15646 return (*Deflate_state)(unsafe.Pointer(s)).Fstrstart 15647 } 15648 return (uint32(MIN_MATCH - 1)) 15649 }() 15650 if flush == Z_FINISH { 15651 { 15652 { 15653 X_tr_flush_block(tls, s, func() uintptr { 15654 if (*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 { 15655 return ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(uint32((*Deflate_state)(unsafe.Pointer(s)).Fblock_start))) 15656 } 15657 return uintptr(Z_NULL) 15658 }(), (Ulg(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), 1) 15659 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15660 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 15661 } 15662 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == UInt(0) { 15663 if 1 != 0 { 15664 return Finish_started 15665 } 15666 return Need_more 15667 } 15668 } 15669 15670 return Finish_done 15671 } 15672 if (*Deflate_state)(unsafe.Pointer(s)).Flast_lit != 0 { 15673 { 15674 X_tr_flush_block(tls, s, func() uintptr { 15675 if (*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 { 15676 return ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(uint32((*Deflate_state)(unsafe.Pointer(s)).Fblock_start))) 15677 } 15678 return uintptr(Z_NULL) 15679 }(), (Ulg(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), 0) 15680 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15681 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 15682 } 15683 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == UInt(0) { 15684 if 0 != 0 { 15685 return Finish_started 15686 } 15687 return Need_more 15688 } 15689 } 15690 15691 return Block_done 15692 } 15693 15694 // =========================================================================== 15695 // Same as above, but achieves better compression. We use a lazy 15696 // evaluation for matches: a match is finally adopted only if there is 15697 // no better match at the next window position. 15698 func deflate_slow(tls *libc.TLS, s uintptr, flush int32) Block_state { /* deflate.c:1926:19: */ 15699 var hash_head IPos // head of hash chain 15700 var bflush int32 // set if current block must be flushed 15701 15702 // Process the input block. 15703 for { 15704 // Make sure that we always have enough lookahead, except 15705 // at the end of the input file. We need MAX_MATCH bytes 15706 // for the next match, plus MIN_MATCH bytes to insert the 15707 // string following the next match. 15708 if (*Deflate_state)(unsafe.Pointer(s)).Flookahead < (UInt((MAX_MATCH + MIN_MATCH) + 1)) { 15709 fill_window(tls, s) 15710 if ((*Deflate_state)(unsafe.Pointer(s)).Flookahead < (UInt((MAX_MATCH + MIN_MATCH) + 1))) && (flush == Z_NO_FLUSH) { 15711 return Need_more 15712 } 15713 if (*Deflate_state)(unsafe.Pointer(s)).Flookahead == UInt(0) { 15714 break 15715 } // flush the current block 15716 } 15717 15718 // Insert the string window[strstart .. strstart+2] in the 15719 // dictionary, and set hash_head to the head of the hash chain: 15720 hash_head = IPos(NIL) 15721 if (*Deflate_state)(unsafe.Pointer(s)).Flookahead >= UInt(MIN_MATCH) { 15722 (*Deflate_state)(unsafe.Pointer(s)).Fins_h = (((((*Deflate_state)(unsafe.Pointer(s)).Fins_h) << (*Deflate_state)(unsafe.Pointer(s)).Fhash_shift) ^ (UInt(*(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) + (UInt(MIN_MATCH - 1))))))))) & (*Deflate_state)(unsafe.Pointer(s)).Fhash_mask) 15723 hash_head = IPos(libc.AssignPtrUint16((*Deflate_state)(unsafe.Pointer(s)).Fprev+uintptr((((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)&(*Deflate_state)(unsafe.Pointer(s)).Fw_mask))*2, *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fins_h)*2)))) 15724 *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = Pos((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15725 } 15726 15727 // Find the longest match, discarding those <= prev_length. 15728 (*Deflate_state)(unsafe.Pointer(s)).Fprev_length = (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length 15729 (*Deflate_state)(unsafe.Pointer(s)).Fprev_match = (*Deflate_state)(unsafe.Pointer(s)).Fmatch_start 15730 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length = (UInt(MIN_MATCH - 1)) 15731 15732 if ((hash_head != IPos(NIL)) && ((*Deflate_state)(unsafe.Pointer(s)).Fprev_length < (*Deflate_state)(unsafe.Pointer(s)).Fmax_lazy_match)) && (((*Deflate_state)(unsafe.Pointer(s)).Fstrstart - hash_head) <= ((*Deflate_state)(unsafe.Pointer((s))).Fw_size - (UInt((MAX_MATCH + MIN_MATCH) + 1)))) { 15733 // To simplify the code, we prevent matches with the string 15734 // of window index 0 (in particular we have to avoid a match 15735 // of the string with itself at the start of the input file). 15736 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length = longest_match(tls, s, hash_head) 15737 // longest_match() sets match_start 15738 15739 if ((*Deflate_state)(unsafe.Pointer(s)).Fmatch_length <= UInt(5)) && (((*Deflate_state)(unsafe.Pointer(s)).Fstrategy == Z_FILTERED) || 15740 (((*Deflate_state)(unsafe.Pointer(s)).Fmatch_length == UInt(MIN_MATCH)) && (((*Deflate_state)(unsafe.Pointer(s)).Fstrstart - (*Deflate_state)(unsafe.Pointer(s)).Fmatch_start) > UInt(TOO_FAR)))) { 15741 15742 // If prev_match is also MIN_MATCH, match_start is garbage 15743 // but we will ignore the current match anyway. 15744 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length = (UInt(MIN_MATCH - 1)) 15745 } 15746 } 15747 // If there was a match at the previous step and the current 15748 // match is not better, output the previous match: 15749 if ((*Deflate_state)(unsafe.Pointer(s)).Fprev_length >= UInt(MIN_MATCH)) && ((*Deflate_state)(unsafe.Pointer(s)).Fmatch_length <= (*Deflate_state)(unsafe.Pointer(s)).Fprev_length) { 15750 var max_insert UInt = (((*Deflate_state)(unsafe.Pointer(s)).Fstrstart + (*Deflate_state)(unsafe.Pointer(s)).Flookahead) - UInt(MIN_MATCH)) 15751 // Do not insert strings in hash table beyond this. 15752 15753 { 15754 var len Uch = (Uch((*Deflate_state)(unsafe.Pointer(s)).Fprev_length - UInt(MIN_MATCH))) 15755 var dist Ush = (Ush(((*Deflate_state)(unsafe.Pointer(s)).Fstrstart - UInt(1)) - (*Deflate_state)(unsafe.Pointer(s)).Fprev_match)) 15756 *(*Ushf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fd_buf + uintptr((*Deflate_state)(unsafe.Pointer(s)).Flast_lit)*2)) = dist 15757 *(*Uchf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fl_buf + uintptr(libc.PostIncUint32(&(*Deflate_state)(unsafe.Pointer(s)).Flast_lit, 1)))) = len 15758 dist-- 15759 *(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + uintptr(((int32(X_length_code[len])+LITERALS)+1))*4 /* &.fc */))++ 15760 *(*Ush)(unsafe.Pointer((s + 2504 /* &.dyn_dtree */) + uintptr((func() int32 { 15761 if (int32(dist)) < 256 { 15762 return int32(X_dist_code[dist]) 15763 } 15764 return int32(X_dist_code[(256 + ((int32(dist)) >> 7))]) 15765 }()))*4 /* &.fc */))++ 15766 bflush = (libc.Bool32((*Deflate_state)(unsafe.Pointer(s)).Flast_lit == ((*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize - UInt(1)))) 15767 } 15768 15769 // Insert in hash table all strings up to the end of the match. 15770 // strstart-1 and strstart are already inserted. If there is not 15771 // enough lookahead, the last two strings are not inserted in 15772 // the hash table. 15773 *(*UInt)(unsafe.Pointer(s + 180 /* &.lookahead */)) -= ((*Deflate_state)(unsafe.Pointer(s)).Fprev_length - UInt(1)) 15774 *(*UInt)(unsafe.Pointer(s + 184 /* &.prev_length */)) -= (UInt(2)) 15775 for ok := true; ok; ok = (libc.PreDecUint32(&(*Deflate_state)(unsafe.Pointer(s)).Fprev_length, 1) != UInt(0)) { 15776 if libc.PreIncUint32(&(*Deflate_state)(unsafe.Pointer(s)).Fstrstart, 1) <= max_insert { 15777 (*Deflate_state)(unsafe.Pointer(s)).Fins_h = (((((*Deflate_state)(unsafe.Pointer(s)).Fins_h) << (*Deflate_state)(unsafe.Pointer(s)).Fhash_shift) ^ (UInt(*(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) + (UInt(MIN_MATCH - 1))))))))) & (*Deflate_state)(unsafe.Pointer(s)).Fhash_mask) 15778 hash_head = IPos(libc.AssignPtrUint16((*Deflate_state)(unsafe.Pointer(s)).Fprev+uintptr((((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)&(*Deflate_state)(unsafe.Pointer(s)).Fw_mask))*2, *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fins_h)*2)))) 15779 *(*Posf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = Pos((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15780 } 15781 } 15782 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_available = 0 15783 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length = (UInt(MIN_MATCH - 1)) 15784 (*Deflate_state)(unsafe.Pointer(s)).Fstrstart++ 15785 15786 if bflush != 0 { 15787 { 15788 X_tr_flush_block(tls, s, func() uintptr { 15789 if (*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 { 15790 return ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(uint32((*Deflate_state)(unsafe.Pointer(s)).Fblock_start))) 15791 } 15792 return uintptr(Z_NULL) 15793 }(), (Ulg(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), 0) 15794 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15795 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 15796 } 15797 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == UInt(0) { 15798 if 0 != 0 { 15799 return Finish_started 15800 } 15801 return Need_more 15802 } 15803 } 15804 15805 } else if (*Deflate_state)(unsafe.Pointer(s)).Fmatch_available != 0 { 15806 // If there was no match at the previous position, output a 15807 // single literal. If there was a match but the current match 15808 // is longer, truncate the previous match to a single literal. 15809 15810 { 15811 var cc Uch = *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(((*Deflate_state)(unsafe.Pointer(s)).Fstrstart - UInt(1))))) 15812 *(*Ushf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fd_buf + uintptr((*Deflate_state)(unsafe.Pointer(s)).Flast_lit)*2)) = Ushf(0) 15813 *(*Uchf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fl_buf + uintptr(libc.PostIncUint32(&(*Deflate_state)(unsafe.Pointer(s)).Flast_lit, 1)))) = cc 15814 *(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + uintptr(cc)*4 /* &.fc */))++ 15815 bflush = (libc.Bool32((*Deflate_state)(unsafe.Pointer(s)).Flast_lit == ((*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize - UInt(1)))) 15816 } 15817 15818 if bflush != 0 { 15819 { 15820 X_tr_flush_block(tls, s, func() uintptr { 15821 if (*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 { 15822 return ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(uint32((*Deflate_state)(unsafe.Pointer(s)).Fblock_start))) 15823 } 15824 return uintptr(Z_NULL) 15825 }(), (Ulg(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), 0) 15826 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15827 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 15828 } 15829 15830 } 15831 (*Deflate_state)(unsafe.Pointer(s)).Fstrstart++ 15832 (*Deflate_state)(unsafe.Pointer(s)).Flookahead-- 15833 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == UInt(0) { 15834 return Need_more 15835 } 15836 } else { 15837 // There is no previous match to compare with, wait for 15838 // the next step to decide. 15839 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_available = 1 15840 (*Deflate_state)(unsafe.Pointer(s)).Fstrstart++ 15841 (*Deflate_state)(unsafe.Pointer(s)).Flookahead-- 15842 } 15843 } 15844 15845 if (*Deflate_state)(unsafe.Pointer(s)).Fmatch_available != 0 { 15846 15847 { 15848 var cc Uch = *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(((*Deflate_state)(unsafe.Pointer(s)).Fstrstart - UInt(1))))) 15849 *(*Ushf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fd_buf + uintptr((*Deflate_state)(unsafe.Pointer(s)).Flast_lit)*2)) = Ushf(0) 15850 *(*Uchf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fl_buf + uintptr(libc.PostIncUint32(&(*Deflate_state)(unsafe.Pointer(s)).Flast_lit, 1)))) = cc 15851 *(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + uintptr(cc)*4 /* &.fc */))++ 15852 bflush = (libc.Bool32((*Deflate_state)(unsafe.Pointer(s)).Flast_lit == ((*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize - UInt(1)))) 15853 } 15854 15855 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_available = 0 15856 } 15857 (*Deflate_state)(unsafe.Pointer(s)).Finsert = func() uint32 { 15858 if (*Deflate_state)(unsafe.Pointer(s)).Fstrstart < (UInt(MIN_MATCH - 1)) { 15859 return (*Deflate_state)(unsafe.Pointer(s)).Fstrstart 15860 } 15861 return (uint32(MIN_MATCH - 1)) 15862 }() 15863 if flush == Z_FINISH { 15864 { 15865 { 15866 X_tr_flush_block(tls, s, func() uintptr { 15867 if (*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 { 15868 return ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(uint32((*Deflate_state)(unsafe.Pointer(s)).Fblock_start))) 15869 } 15870 return uintptr(Z_NULL) 15871 }(), (Ulg(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), 1) 15872 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15873 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 15874 } 15875 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == UInt(0) { 15876 if 1 != 0 { 15877 return Finish_started 15878 } 15879 return Need_more 15880 } 15881 } 15882 15883 return Finish_done 15884 } 15885 if (*Deflate_state)(unsafe.Pointer(s)).Flast_lit != 0 { 15886 { 15887 X_tr_flush_block(tls, s, func() uintptr { 15888 if (*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 { 15889 return ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(uint32((*Deflate_state)(unsafe.Pointer(s)).Fblock_start))) 15890 } 15891 return uintptr(Z_NULL) 15892 }(), (Ulg(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), 0) 15893 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15894 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 15895 } 15896 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == UInt(0) { 15897 if 0 != 0 { 15898 return Finish_started 15899 } 15900 return Need_more 15901 } 15902 } 15903 15904 return Block_done 15905 } 15906 15907 // =========================================================================== 15908 // For Z_RLE, simply look for runs of bytes, generate matches only of distance 15909 // one. Do not maintain a hash table. (It will be regenerated if this run of 15910 // deflate switches away from Z_RLE.) 15911 func deflate_rle(tls *libc.TLS, s uintptr, flush int32) Block_state { /* deflate.c:2057:19: */ 15912 var bflush int32 // set if current block must be flushed 15913 var prev UInt // byte at distance one to match 15914 var scan uintptr 15915 var strend uintptr // scan goes up to strend for length of run 15916 15917 for { 15918 // Make sure that we always have enough lookahead, except 15919 // at the end of the input file. We need MAX_MATCH bytes 15920 // for the longest run, plus one for the unrolled loop. 15921 if (*Deflate_state)(unsafe.Pointer(s)).Flookahead <= UInt(MAX_MATCH) { 15922 fill_window(tls, s) 15923 if ((*Deflate_state)(unsafe.Pointer(s)).Flookahead <= UInt(MAX_MATCH)) && (flush == Z_NO_FLUSH) { 15924 return Need_more 15925 } 15926 if (*Deflate_state)(unsafe.Pointer(s)).Flookahead == UInt(0) { 15927 break 15928 } // flush the current block 15929 } 15930 15931 // See how many times the previous byte repeats 15932 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length = UInt(0) 15933 if ((*Deflate_state)(unsafe.Pointer(s)).Flookahead >= UInt(MIN_MATCH)) && ((*Deflate_state)(unsafe.Pointer(s)).Fstrstart > UInt(0)) { 15934 scan = (((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)) - uintptr(1)) 15935 prev = UInt(*(*Bytef)(unsafe.Pointer(scan))) 15936 if ((prev == UInt(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1))))) && (prev == UInt(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))))) && (prev == UInt(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1))))) { 15937 strend = (((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fstrstart)) + uintptr(MAX_MATCH)) 15938 for ok := true; ok; ok = (((((((((prev == UInt(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1))))) && (prev == UInt(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))))) && (prev == UInt(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))))) && (prev == UInt(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))))) && (prev == UInt(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))))) && (prev == UInt(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))))) && (prev == UInt(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))))) && (prev == UInt(*(*Bytef)(unsafe.Pointer(libc.PreIncUintptr(&scan, 1)))))) && (scan < strend)) { 15939 } 15940 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length = (UInt(MAX_MATCH) - (UInt((int64(strend) - int64(scan)) / 1))) 15941 if (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length > (*Deflate_state)(unsafe.Pointer(s)).Flookahead { 15942 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length = (*Deflate_state)(unsafe.Pointer(s)).Flookahead 15943 } 15944 } 15945 15946 } 15947 15948 // Emit match if have run of MIN_MATCH or longer, else emit literal 15949 if (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length >= UInt(MIN_MATCH) { 15950 15951 { 15952 var len Uch = (Uch((*Deflate_state)(unsafe.Pointer(s)).Fmatch_length - UInt(MIN_MATCH))) 15953 var dist Ush = Ush(1) 15954 *(*Ushf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fd_buf + uintptr((*Deflate_state)(unsafe.Pointer(s)).Flast_lit)*2)) = dist 15955 *(*Uchf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fl_buf + uintptr(libc.PostIncUint32(&(*Deflate_state)(unsafe.Pointer(s)).Flast_lit, 1)))) = len 15956 dist-- 15957 *(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + uintptr(((int32(X_length_code[len])+LITERALS)+1))*4 /* &.fc */))++ 15958 *(*Ush)(unsafe.Pointer((s + 2504 /* &.dyn_dtree */) + uintptr((func() int32 { 15959 if (int32(dist)) < 256 { 15960 return int32(X_dist_code[dist]) 15961 } 15962 return int32(X_dist_code[(256 + ((int32(dist)) >> 7))]) 15963 }()))*4 /* &.fc */))++ 15964 bflush = (libc.Bool32((*Deflate_state)(unsafe.Pointer(s)).Flast_lit == ((*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize - UInt(1)))) 15965 } 15966 15967 *(*UInt)(unsafe.Pointer(s + 180 /* &.lookahead */)) -= ((*Deflate_state)(unsafe.Pointer(s)).Fmatch_length) 15968 *(*UInt)(unsafe.Pointer(s + 172 /* &.strstart */)) += ((*Deflate_state)(unsafe.Pointer(s)).Fmatch_length) 15969 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length = UInt(0) 15970 } else { 15971 // No match, output a literal byte 15972 15973 { 15974 var cc Uch = *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fstrstart))) 15975 *(*Ushf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fd_buf + uintptr((*Deflate_state)(unsafe.Pointer(s)).Flast_lit)*2)) = Ushf(0) 15976 *(*Uchf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fl_buf + uintptr(libc.PostIncUint32(&(*Deflate_state)(unsafe.Pointer(s)).Flast_lit, 1)))) = cc 15977 *(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + uintptr(cc)*4 /* &.fc */))++ 15978 bflush = (libc.Bool32((*Deflate_state)(unsafe.Pointer(s)).Flast_lit == ((*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize - UInt(1)))) 15979 } 15980 15981 (*Deflate_state)(unsafe.Pointer(s)).Flookahead-- 15982 (*Deflate_state)(unsafe.Pointer(s)).Fstrstart++ 15983 } 15984 if bflush != 0 { 15985 { 15986 X_tr_flush_block(tls, s, func() uintptr { 15987 if (*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 { 15988 return ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(uint32((*Deflate_state)(unsafe.Pointer(s)).Fblock_start))) 15989 } 15990 return uintptr(Z_NULL) 15991 }(), (Ulg(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), 0) 15992 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 15993 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 15994 } 15995 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == UInt(0) { 15996 if 0 != 0 { 15997 return Finish_started 15998 } 15999 return Need_more 16000 } 16001 } 16002 16003 } 16004 (*Deflate_state)(unsafe.Pointer(s)).Finsert = UInt(0) 16005 if flush == Z_FINISH { 16006 { 16007 { 16008 X_tr_flush_block(tls, s, func() uintptr { 16009 if (*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 { 16010 return ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(uint32((*Deflate_state)(unsafe.Pointer(s)).Fblock_start))) 16011 } 16012 return uintptr(Z_NULL) 16013 }(), (Ulg(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), 1) 16014 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 16015 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 16016 } 16017 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == UInt(0) { 16018 if 1 != 0 { 16019 return Finish_started 16020 } 16021 return Need_more 16022 } 16023 } 16024 16025 return Finish_done 16026 } 16027 if (*Deflate_state)(unsafe.Pointer(s)).Flast_lit != 0 { 16028 { 16029 X_tr_flush_block(tls, s, func() uintptr { 16030 if (*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 { 16031 return ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(uint32((*Deflate_state)(unsafe.Pointer(s)).Fblock_start))) 16032 } 16033 return uintptr(Z_NULL) 16034 }(), (Ulg(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), 0) 16035 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 16036 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 16037 } 16038 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == UInt(0) { 16039 if 0 != 0 { 16040 return Finish_started 16041 } 16042 return Need_more 16043 } 16044 } 16045 16046 return Block_done 16047 } 16048 16049 // =========================================================================== 16050 // For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table. 16051 // (It will be regenerated if this run of deflate switches away from Huffman.) 16052 func deflate_huff(tls *libc.TLS, s uintptr, flush int32) Block_state { /* deflate.c:2130:19: */ 16053 var bflush int32 // set if current block must be flushed 16054 16055 for { 16056 // Make sure that we have a literal to write. 16057 if (*Deflate_state)(unsafe.Pointer(s)).Flookahead == UInt(0) { 16058 fill_window(tls, s) 16059 if (*Deflate_state)(unsafe.Pointer(s)).Flookahead == UInt(0) { 16060 if flush == Z_NO_FLUSH { 16061 return Need_more 16062 } 16063 break // flush the current block 16064 } 16065 } 16066 16067 // Output a literal byte 16068 (*Deflate_state)(unsafe.Pointer(s)).Fmatch_length = UInt(0) 16069 16070 { 16071 var cc Uch = *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fstrstart))) 16072 *(*Ushf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fd_buf + uintptr((*Deflate_state)(unsafe.Pointer(s)).Flast_lit)*2)) = Ushf(0) 16073 *(*Uchf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fl_buf + uintptr(libc.PostIncUint32(&(*Deflate_state)(unsafe.Pointer(s)).Flast_lit, 1)))) = cc 16074 *(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + uintptr(cc)*4 /* &.fc */))++ 16075 bflush = (libc.Bool32((*Deflate_state)(unsafe.Pointer(s)).Flast_lit == ((*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize - UInt(1)))) 16076 } 16077 16078 (*Deflate_state)(unsafe.Pointer(s)).Flookahead-- 16079 (*Deflate_state)(unsafe.Pointer(s)).Fstrstart++ 16080 if bflush != 0 { 16081 { 16082 X_tr_flush_block(tls, s, func() uintptr { 16083 if (*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 { 16084 return ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(uint32((*Deflate_state)(unsafe.Pointer(s)).Fblock_start))) 16085 } 16086 return uintptr(Z_NULL) 16087 }(), (Ulg(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), 0) 16088 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 16089 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 16090 } 16091 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == UInt(0) { 16092 if 0 != 0 { 16093 return Finish_started 16094 } 16095 return Need_more 16096 } 16097 } 16098 16099 } 16100 (*Deflate_state)(unsafe.Pointer(s)).Finsert = UInt(0) 16101 if flush == Z_FINISH { 16102 { 16103 { 16104 X_tr_flush_block(tls, s, func() uintptr { 16105 if (*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 { 16106 return ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(uint32((*Deflate_state)(unsafe.Pointer(s)).Fblock_start))) 16107 } 16108 return uintptr(Z_NULL) 16109 }(), (Ulg(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), 1) 16110 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 16111 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 16112 } 16113 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == UInt(0) { 16114 if 1 != 0 { 16115 return Finish_started 16116 } 16117 return Need_more 16118 } 16119 } 16120 16121 return Finish_done 16122 } 16123 if (*Deflate_state)(unsafe.Pointer(s)).Flast_lit != 0 { 16124 { 16125 X_tr_flush_block(tls, s, func() uintptr { 16126 if (*Deflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 { 16127 return ((*Deflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(uint32((*Deflate_state)(unsafe.Pointer(s)).Fblock_start))) 16128 } 16129 return uintptr(Z_NULL) 16130 }(), (Ulg(int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Deflate_state)(unsafe.Pointer(s)).Fblock_start)), 0) 16131 (*Deflate_state)(unsafe.Pointer(s)).Fblock_start = int64((*Deflate_state)(unsafe.Pointer(s)).Fstrstart) 16132 flush_pending(tls, (*Deflate_state)(unsafe.Pointer(s)).Fstrm) 16133 } 16134 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == UInt(0) { 16135 if 0 != 0 { 16136 return Finish_started 16137 } 16138 return Need_more 16139 } 16140 } 16141 16142 return Block_done 16143 } 16144 16145 type Fpos_t = X__darwin_off_t /* _stdio.h:81:25 */ 16146 16147 // NB: to fit things in six character monocase externals, the stdio 16148 // code uses the prefix `__s' for stdio objects, typically followed 16149 // by a three-character attempt at a mnemonic. 16150 16151 // stdio buffers 16152 type X__sbuf = struct { 16153 F_base uintptr 16154 F_size int32 16155 F__ccgo_pad1 [4]byte 16156 } /* _stdio.h:92:1 */ 16157 16158 // stdio state variables. 16159 // 16160 // The following always hold: 16161 // 16162 // if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR), 16163 // _lbfsize is -_bf._size, else _lbfsize is 0 16164 // if _flags&__SRD, _w is 0 16165 // if _flags&__SWR, _r is 0 16166 // 16167 // This ensures that the getc and putc macros (or inline functions) never 16168 // try to write or read from a file that is in `read' or `write' mode. 16169 // (Moreover, they can, and do, automatically switch from read mode to 16170 // write mode, and back, on "r+" and "w+" files.) 16171 // 16172 // _lbfsize is used only to make the inline line-buffered output stream 16173 // code as compact as possible. 16174 // 16175 // _ub, _up, and _ur are used when ungetc() pushes back more characters 16176 // than fit in the current _bf, or when ungetc() pushes back a character 16177 // that does not match the previous one in _bf. When this happens, 16178 // _ub._base becomes non-nil (i.e., a stream has ungetc() data iff 16179 // _ub._base!=NULL) and _up and _ur save the current values of _p and _r. 16180 // 16181 // NB: see WARNING above before changing the layout of this structure! 16182 type X__sFILE = struct { 16183 F_p uintptr 16184 F_r int32 16185 F_w int32 16186 F_flags int16 16187 F_file int16 16188 F__ccgo_pad1 [4]byte 16189 F_bf struct { 16190 F_base uintptr 16191 F_size int32 16192 F__ccgo_pad1 [4]byte 16193 } 16194 F_lbfsize int32 16195 F__ccgo_pad2 [4]byte 16196 F_cookie uintptr 16197 F_close uintptr 16198 F_read uintptr 16199 F_seek uintptr 16200 F_write uintptr 16201 F_ub struct { 16202 F_base uintptr 16203 F_size int32 16204 F__ccgo_pad1 [4]byte 16205 } 16206 F_extra uintptr 16207 F_ur int32 16208 F_ubuf [3]uint8 16209 F_nbuf [1]uint8 16210 F_lb struct { 16211 F_base uintptr 16212 F_size int32 16213 F__ccgo_pad1 [4]byte 16214 } 16215 F_blksize int32 16216 F__ccgo_pad3 [4]byte 16217 F_offset Fpos_t 16218 } /* _stdio.h:126:9 */ 16219 16220 // stdio state variables. 16221 // 16222 // The following always hold: 16223 // 16224 // if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR), 16225 // _lbfsize is -_bf._size, else _lbfsize is 0 16226 // if _flags&__SRD, _w is 0 16227 // if _flags&__SWR, _r is 0 16228 // 16229 // This ensures that the getc and putc macros (or inline functions) never 16230 // try to write or read from a file that is in `read' or `write' mode. 16231 // (Moreover, they can, and do, automatically switch from read mode to 16232 // write mode, and back, on "r+" and "w+" files.) 16233 // 16234 // _lbfsize is used only to make the inline line-buffered output stream 16235 // code as compact as possible. 16236 // 16237 // _ub, _up, and _ur are used when ungetc() pushes back more characters 16238 // than fit in the current _bf, or when ungetc() pushes back a character 16239 // that does not match the previous one in _bf. When this happens, 16240 // _ub._base becomes non-nil (i.e., a stream has ungetc() data iff 16241 // _ub._base!=NULL) and _up and _ur save the current values of _p and _r. 16242 // 16243 // NB: see WARNING above before changing the layout of this structure! 16244 type FILE = X__sFILE /* _stdio.h:157:3 */ // getsubopt(3) external variable 16245 // valloc is now declared in _malloc.h 16246 16247 // Poison the following routines if -fshort-wchar is set 16248 16249 // Copyright (C) 1992-2021 Free Software Foundation, Inc. 16250 // 16251 // This file is part of GCC. 16252 // 16253 // GCC is free software; you can redistribute it and/or modify it under 16254 // the terms of the GNU General Public License as published by the Free 16255 // Software Foundation; either version 3, or (at your option) any later 16256 // version. 16257 // 16258 // GCC is distributed in the hope that it will be useful, but WITHOUT ANY 16259 // WARRANTY; without even the implied warranty of MERCHANTABILITY or 16260 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16261 // for more details. 16262 // 16263 // Under Section 7 of GPL version 3, you are granted additional 16264 // permissions described in the GCC Runtime Library Exception, version 16265 // 3.1, as published by the Free Software Foundation. 16266 // 16267 // You should have received a copy of the GNU General Public License and 16268 // a copy of the GCC Runtime Library Exception along with this program; 16269 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 16270 // <http://www.gnu.org/licenses/>. 16271 16272 // This administrivia gets added to the beginning of limits.h 16273 // if the system has its own version of limits.h. 16274 16275 // We use _GCC_LIMITS_H_ because we want this not to match 16276 // any macros that the system's limits.h uses for its own purposes. 16277 16278 // Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 16279 // 16280 // @APPLE_LICENSE_HEADER_START@ 16281 // 16282 // This file contains Original Code and/or Modifications of Original Code 16283 // as defined in and that are subject to the Apple Public Source License 16284 // Version 2.0 (the 'License'). You may not use this file except in 16285 // compliance with the License. Please obtain a copy of the License at 16286 // http://www.opensource.apple.com/apsl/ and read it before using this 16287 // file. 16288 // 16289 // The Original Code and all software distributed under the License are 16290 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16291 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16292 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16293 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16294 // Please see the License for the specific language governing rights and 16295 // limitations under the License. 16296 // 16297 // @APPLE_LICENSE_HEADER_END@ 16298 // Copyright (c) 2000-2013 Apple Inc. All rights reserved. 16299 // 16300 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 16301 // 16302 // This file contains Original Code and/or Modifications of Original Code 16303 // as defined in and that are subject to the Apple Public Source License 16304 // Version 2.0 (the 'License'). You may not use this file except in 16305 // compliance with the License. The rights granted to you under the License 16306 // may not be used to create, or enable the creation or redistribution of, 16307 // unlawful or unlicensed copies of an Apple operating system, or to 16308 // circumvent, violate, or enable the circumvention or violation of, any 16309 // terms of an Apple operating system software license agreement. 16310 // 16311 // Please obtain a copy of the License at 16312 // http://www.opensource.apple.com/apsl/ and read it before using this file. 16313 // 16314 // The Original Code and all software distributed under the License are 16315 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16316 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16317 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16318 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16319 // Please see the License for the specific language governing rights and 16320 // limitations under the License. 16321 // 16322 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 16323 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 16324 // - 16325 // Copyright (c) 1983, 1990, 1993 16326 // The Regents of the University of California. All rights reserved. 16327 // (c) UNIX System Laboratories, Inc. 16328 // All or some portions of this file are derived from material licensed 16329 // to the University of California by American Telephone and Telegraph 16330 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 16331 // the permission of UNIX System Laboratories, Inc. 16332 // 16333 // Redistribution and use in source and binary forms, with or without 16334 // modification, are permitted provided that the following conditions 16335 // are met: 16336 // 1. Redistributions of source code must retain the above copyright 16337 // notice, this list of conditions and the following disclaimer. 16338 // 2. Redistributions in binary form must reproduce the above copyright 16339 // notice, this list of conditions and the following disclaimer in the 16340 // documentation and/or other materials provided with the distribution. 16341 // 3. All advertising materials mentioning features or use of this software 16342 // must display the following acknowledgement: 16343 // This product includes software developed by the University of 16344 // California, Berkeley and its contributors. 16345 // 4. Neither the name of the University nor the names of its contributors 16346 // may be used to endorse or promote products derived from this software 16347 // without specific prior written permission. 16348 // 16349 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 16350 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16351 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16352 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 16353 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 16354 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 16355 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 16356 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 16357 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 16358 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 16359 // SUCH DAMAGE. 16360 // 16361 // @(#)fcntl.h 8.3 (Berkeley) 1/21/94 16362 16363 // This file includes the definitions for open and fcntl 16364 // described by POSIX for <fcntl.h>; it also includes 16365 // related kernel definitions. 16366 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 16367 // 16368 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 16369 // 16370 // This file contains Original Code and/or Modifications of Original Code 16371 // as defined in and that are subject to the Apple Public Source License 16372 // Version 2.0 (the 'License'). You may not use this file except in 16373 // compliance with the License. The rights granted to you under the License 16374 // may not be used to create, or enable the creation or redistribution of, 16375 // unlawful or unlicensed copies of an Apple operating system, or to 16376 // circumvent, violate, or enable the circumvention or violation of, any 16377 // terms of an Apple operating system software license agreement. 16378 // 16379 // Please obtain a copy of the License at 16380 // http://www.opensource.apple.com/apsl/ and read it before using this file. 16381 // 16382 // The Original Code and all software distributed under the License are 16383 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16384 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16385 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16386 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16387 // Please see the License for the specific language governing rights and 16388 // limitations under the License. 16389 // 16390 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 16391 16392 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 16393 // 16394 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 16395 // 16396 // This file contains Original Code and/or Modifications of Original Code 16397 // as defined in and that are subject to the Apple Public Source License 16398 // Version 2.0 (the 'License'). You may not use this file except in 16399 // compliance with the License. The rights granted to you under the License 16400 // may not be used to create, or enable the creation or redistribution of, 16401 // unlawful or unlicensed copies of an Apple operating system, or to 16402 // circumvent, violate, or enable the circumvention or violation of, any 16403 // terms of an Apple operating system software license agreement. 16404 // 16405 // Please obtain a copy of the License at 16406 // http://www.opensource.apple.com/apsl/ and read it before using this file. 16407 // 16408 // The Original Code and all software distributed under the License are 16409 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16410 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16411 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16412 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16413 // Please see the License for the specific language governing rights and 16414 // limitations under the License. 16415 // 16416 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 16417 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 16418 // Copyright (c) 1991, 1993 16419 // The Regents of the University of California. All rights reserved. 16420 // 16421 // This code is derived from software contributed to Berkeley by 16422 // Berkeley Software Design, Inc. 16423 // 16424 // Redistribution and use in source and binary forms, with or without 16425 // modification, are permitted provided that the following conditions 16426 // are met: 16427 // 1. Redistributions of source code must retain the above copyright 16428 // notice, this list of conditions and the following disclaimer. 16429 // 2. Redistributions in binary form must reproduce the above copyright 16430 // notice, this list of conditions and the following disclaimer in the 16431 // documentation and/or other materials provided with the distribution. 16432 // 3. All advertising materials mentioning features or use of this software 16433 // must display the following acknowledgement: 16434 // This product includes software developed by the University of 16435 // California, Berkeley and its contributors. 16436 // 4. Neither the name of the University nor the names of its contributors 16437 // may be used to endorse or promote products derived from this software 16438 // without specific prior written permission. 16439 // 16440 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 16441 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16442 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16443 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 16444 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 16445 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 16446 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 16447 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 16448 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 16449 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 16450 // SUCH DAMAGE. 16451 // 16452 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 16453 16454 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 16455 // 16456 // @APPLE_LICENSE_HEADER_START@ 16457 // 16458 // This file contains Original Code and/or Modifications of Original Code 16459 // as defined in and that are subject to the Apple Public Source License 16460 // Version 2.0 (the 'License'). You may not use this file except in 16461 // compliance with the License. Please obtain a copy of the License at 16462 // http://www.opensource.apple.com/apsl/ and read it before using this 16463 // file. 16464 // 16465 // The Original Code and all software distributed under the License are 16466 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16467 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16468 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16469 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16470 // Please see the License for the specific language governing rights and 16471 // limitations under the License. 16472 // 16473 // @APPLE_LICENSE_HEADER_END@ 16474 16475 // We should not be exporting size_t here. Temporary for gcc bootstrapping. 16476 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 16477 // 16478 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 16479 // 16480 // This file contains Original Code and/or Modifications of Original Code 16481 // as defined in and that are subject to the Apple Public Source License 16482 // Version 2.0 (the 'License'). You may not use this file except in 16483 // compliance with the License. The rights granted to you under the License 16484 // may not be used to create, or enable the creation or redistribution of, 16485 // unlawful or unlicensed copies of an Apple operating system, or to 16486 // circumvent, violate, or enable the circumvention or violation of, any 16487 // terms of an Apple operating system software license agreement. 16488 // 16489 // Please obtain a copy of the License at 16490 // http://www.opensource.apple.com/apsl/ and read it before using this file. 16491 // 16492 // The Original Code and all software distributed under the License are 16493 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16494 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16495 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16496 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16497 // Please see the License for the specific language governing rights and 16498 // limitations under the License. 16499 // 16500 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 16501 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 16502 // 16503 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 16504 // 16505 // This file contains Original Code and/or Modifications of Original Code 16506 // as defined in and that are subject to the Apple Public Source License 16507 // Version 2.0 (the 'License'). You may not use this file except in 16508 // compliance with the License. The rights granted to you under the License 16509 // may not be used to create, or enable the creation or redistribution of, 16510 // unlawful or unlicensed copies of an Apple operating system, or to 16511 // circumvent, violate, or enable the circumvention or violation of, any 16512 // terms of an Apple operating system software license agreement. 16513 // 16514 // Please obtain a copy of the License at 16515 // http://www.opensource.apple.com/apsl/ and read it before using this file. 16516 // 16517 // The Original Code and all software distributed under the License are 16518 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16519 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16520 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16521 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16522 // Please see the License for the specific language governing rights and 16523 // limitations under the License. 16524 // 16525 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 16526 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 16527 // 16528 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 16529 // 16530 // This file contains Original Code and/or Modifications of Original Code 16531 // as defined in and that are subject to the Apple Public Source License 16532 // Version 2.0 (the 'License'). You may not use this file except in 16533 // compliance with the License. The rights granted to you under the License 16534 // may not be used to create, or enable the creation or redistribution of, 16535 // unlawful or unlicensed copies of an Apple operating system, or to 16536 // circumvent, violate, or enable the circumvention or violation of, any 16537 // terms of an Apple operating system software license agreement. 16538 // 16539 // Please obtain a copy of the License at 16540 // http://www.opensource.apple.com/apsl/ and read it before using this file. 16541 // 16542 // The Original Code and all software distributed under the License are 16543 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16544 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16545 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16546 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16547 // Please see the License for the specific language governing rights and 16548 // limitations under the License. 16549 // 16550 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 16551 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 16552 // 16553 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 16554 // 16555 // This file contains Original Code and/or Modifications of Original Code 16556 // as defined in and that are subject to the Apple Public Source License 16557 // Version 2.0 (the 'License'). You may not use this file except in 16558 // compliance with the License. The rights granted to you under the License 16559 // may not be used to create, or enable the creation or redistribution of, 16560 // unlawful or unlicensed copies of an Apple operating system, or to 16561 // circumvent, violate, or enable the circumvention or violation of, any 16562 // terms of an Apple operating system software license agreement. 16563 // 16564 // Please obtain a copy of the License at 16565 // http://www.opensource.apple.com/apsl/ and read it before using this file. 16566 // 16567 // The Original Code and all software distributed under the License are 16568 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16569 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16570 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16571 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16572 // Please see the License for the specific language governing rights and 16573 // limitations under the License. 16574 // 16575 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 16576 16577 // File status flags: these are used by open(2), fcntl(2). 16578 // They are also used (indirectly) in the kernel file structure f_flags, 16579 // which is a superset of the open/fcntl flags. Open flags and f_flags 16580 // are inter-convertible using OFLAGS(fflags) and FFLAGS(oflags). 16581 // Open/fcntl flags begin with O_; kernel-internal flags begin with F. 16582 // open-only flags 16583 16584 // Kernel encoding of open mode; separate read and write bits that are 16585 // independently testable: 1 greater than the above. 16586 // 16587 // XXX 16588 // FREAD and FWRITE are excluded from the #ifdef KERNEL so that TIOCFLUSH, 16589 // which was documented to use FREAD/FWRITE, continues to work. 16590 16591 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 16592 // 16593 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 16594 // 16595 // This file contains Original Code and/or Modifications of Original Code 16596 // as defined in and that are subject to the Apple Public Source License 16597 // Version 2.0 (the 'License'). You may not use this file except in 16598 // compliance with the License. The rights granted to you under the License 16599 // may not be used to create, or enable the creation or redistribution of, 16600 // unlawful or unlicensed copies of an Apple operating system, or to 16601 // circumvent, violate, or enable the circumvention or violation of, any 16602 // terms of an Apple operating system software license agreement. 16603 // 16604 // Please obtain a copy of the License at 16605 // http://www.opensource.apple.com/apsl/ and read it before using this file. 16606 // 16607 // The Original Code and all software distributed under the License are 16608 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16609 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16610 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16611 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16612 // Please see the License for the specific language governing rights and 16613 // limitations under the License. 16614 // 16615 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 16616 16617 // Descriptor value for the current working directory 16618 16619 // Flags for the at functions 16620 16621 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 16622 // 16623 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 16624 // 16625 // This file contains Original Code and/or Modifications of Original Code 16626 // as defined in and that are subject to the Apple Public Source License 16627 // Version 2.0 (the 'License'). You may not use this file except in 16628 // compliance with the License. The rights granted to you under the License 16629 // may not be used to create, or enable the creation or redistribution of, 16630 // unlawful or unlicensed copies of an Apple operating system, or to 16631 // circumvent, violate, or enable the circumvention or violation of, any 16632 // terms of an Apple operating system software license agreement. 16633 // 16634 // Please obtain a copy of the License at 16635 // http://www.opensource.apple.com/apsl/ and read it before using this file. 16636 // 16637 // The Original Code and all software distributed under the License are 16638 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16639 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16640 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16641 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16642 // Please see the License for the specific language governing rights and 16643 // limitations under the License. 16644 // 16645 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 16646 16647 // Data Protection Flags 16648 16649 // The O_* flags used to have only F* names, which were used in the kernel 16650 // and by fcntl. We retain the F* names for the kernel f_flags field 16651 // and for backward compatibility for fcntl. 16652 16653 // Flags used for copyfile(2) 16654 16655 // Constants used for fcntl(2) 16656 16657 // command values 16658 // 46,47 used to be F_READBOOTSTRAP and F_WRITEBOOTSTRAP 16659 16660 // should not be used (i.e. its ok to temporaily create cached pages) 16661 16662 // See F_DUPFD_CLOEXEC below for 67 16663 16664 // may be broken into smaller chunks with throttling in between 16665 16666 // FS-specific fcntl()'s numbers begin at 0x00010000 and go up 16667 16668 // file descriptor flags (F_GETFD, F_SETFD) 16669 16670 // record locking flags (F_GETLK, F_SETLK, F_SETLKW) 16671 16672 // [XSI] The values used for l_whence shall be defined as described 16673 // in <unistd.h> 16674 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 16675 // 16676 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 16677 // 16678 // This file contains Original Code and/or Modifications of Original Code 16679 // as defined in and that are subject to the Apple Public Source License 16680 // Version 2.0 (the 'License'). You may not use this file except in 16681 // compliance with the License. The rights granted to you under the License 16682 // may not be used to create, or enable the creation or redistribution of, 16683 // unlawful or unlicensed copies of an Apple operating system, or to 16684 // circumvent, violate, or enable the circumvention or violation of, any 16685 // terms of an Apple operating system software license agreement. 16686 // 16687 // Please obtain a copy of the License at 16688 // http://www.opensource.apple.com/apsl/ and read it before using this file. 16689 // 16690 // The Original Code and all software distributed under the License are 16691 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16692 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16693 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16694 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16695 // Please see the License for the specific language governing rights and 16696 // limitations under the License. 16697 // 16698 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 16699 16700 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 16701 // 16702 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 16703 // 16704 // This file contains Original Code and/or Modifications of Original Code 16705 // as defined in and that are subject to the Apple Public Source License 16706 // Version 2.0 (the 'License'). You may not use this file except in 16707 // compliance with the License. The rights granted to you under the License 16708 // may not be used to create, or enable the creation or redistribution of, 16709 // unlawful or unlicensed copies of an Apple operating system, or to 16710 // circumvent, violate, or enable the circumvention or violation of, any 16711 // terms of an Apple operating system software license agreement. 16712 // 16713 // Please obtain a copy of the License at 16714 // http://www.opensource.apple.com/apsl/ and read it before using this file. 16715 // 16716 // The Original Code and all software distributed under the License are 16717 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16718 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16719 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16720 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16721 // Please see the License for the specific language governing rights and 16722 // limitations under the License. 16723 // 16724 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 16725 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 16726 // Copyright (c) 1991, 1993 16727 // The Regents of the University of California. All rights reserved. 16728 // 16729 // This code is derived from software contributed to Berkeley by 16730 // Berkeley Software Design, Inc. 16731 // 16732 // Redistribution and use in source and binary forms, with or without 16733 // modification, are permitted provided that the following conditions 16734 // are met: 16735 // 1. Redistributions of source code must retain the above copyright 16736 // notice, this list of conditions and the following disclaimer. 16737 // 2. Redistributions in binary form must reproduce the above copyright 16738 // notice, this list of conditions and the following disclaimer in the 16739 // documentation and/or other materials provided with the distribution. 16740 // 3. All advertising materials mentioning features or use of this software 16741 // must display the following acknowledgement: 16742 // This product includes software developed by the University of 16743 // California, Berkeley and its contributors. 16744 // 4. Neither the name of the University nor the names of its contributors 16745 // may be used to endorse or promote products derived from this software 16746 // without specific prior written permission. 16747 // 16748 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 16749 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16750 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16751 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 16752 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 16753 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 16754 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 16755 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 16756 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 16757 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 16758 // SUCH DAMAGE. 16759 // 16760 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 16761 16762 // whence values for lseek(2) 16763 16764 // [XSI] The symbolic names for file modes for use as values of mode_t 16765 // shall be defined as described in <sys/stat.h> 16766 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 16767 // 16768 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 16769 // 16770 // This file contains Original Code and/or Modifications of Original Code 16771 // as defined in and that are subject to the Apple Public Source License 16772 // Version 2.0 (the 'License'). You may not use this file except in 16773 // compliance with the License. The rights granted to you under the License 16774 // may not be used to create, or enable the creation or redistribution of, 16775 // unlawful or unlicensed copies of an Apple operating system, or to 16776 // circumvent, violate, or enable the circumvention or violation of, any 16777 // terms of an Apple operating system software license agreement. 16778 // 16779 // Please obtain a copy of the License at 16780 // http://www.opensource.apple.com/apsl/ and read it before using this file. 16781 // 16782 // The Original Code and all software distributed under the License are 16783 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16784 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16785 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16786 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16787 // Please see the License for the specific language governing rights and 16788 // limitations under the License. 16789 // 16790 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 16791 16792 // [XSI] The symbolic names for file modes for use as values of mode_t 16793 // shall be defined as described in <sys/stat.h> 16794 // File type 16795 16796 // File mode 16797 // Read, write, execute/search by owner 16798 // Read, write, execute/search by group 16799 // Read, write, execute/search by others 16800 16801 // allocate flags (F_PREALLOCATE) 16802 16803 // Position Modes (fst_posmode) for F_PREALLOCATE 16804 16805 // we can keep them in sync should we desire 16806 16807 // Advisory file segment locking data type - 16808 // information passed to system by user 16809 type Flock = struct { 16810 Fl_start Off_t 16811 Fl_len Off_t 16812 Fl_pid Pid_t 16813 Fl_type int16 16814 Fl_whence int16 16815 } /* fcntl.h:343:1 */ 16816 16817 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 16818 // 16819 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 16820 // 16821 // This file contains Original Code and/or Modifications of Original Code 16822 // as defined in and that are subject to the Apple Public Source License 16823 // Version 2.0 (the 'License'). You may not use this file except in 16824 // compliance with the License. The rights granted to you under the License 16825 // may not be used to create, or enable the creation or redistribution of, 16826 // unlawful or unlicensed copies of an Apple operating system, or to 16827 // circumvent, violate, or enable the circumvention or violation of, any 16828 // terms of an Apple operating system software license agreement. 16829 // 16830 // Please obtain a copy of the License at 16831 // http://www.opensource.apple.com/apsl/ and read it before using this file. 16832 // 16833 // The Original Code and all software distributed under the License are 16834 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16835 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16836 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16837 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 16838 // Please see the License for the specific language governing rights and 16839 // limitations under the License. 16840 // 16841 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 16842 16843 // Advisory file segment locking with time out - 16844 // Information passed to system by user for F_SETLKWTIMEOUT 16845 type Flocktimeout = struct { 16846 Ffl struct { 16847 Fl_start Off_t 16848 Fl_len Off_t 16849 Fl_pid Pid_t 16850 Fl_type int16 16851 Fl_whence int16 16852 } 16853 Ftimeout struct { 16854 Ftv_sec X__darwin_time_t 16855 Ftv_nsec int64 16856 } 16857 } /* fcntl.h:358:1 */ 16858 16859 // advisory file read data type - 16860 // information passed by user to system 16861 16862 type Radvisory = struct { 16863 Fra_offset Off_t 16864 Fra_count int32 16865 F__ccgo_pad1 [4]byte 16866 } /* fcntl.h:371:1 */ 16867 16868 //* Information the user passes in to get the codeblobs out of the kernel 16869 type Fcodeblobs = struct { 16870 Ff_cd_hash uintptr 16871 Ff_hash_size Size_t 16872 Ff_cd_buffer uintptr 16873 Ff_cd_size Size_t 16874 Ff_out_size uintptr 16875 Ff_arch int32 16876 F__padding int32 16877 } /* fcntl.h:378:9 */ 16878 16879 //* Information the user passes in to get the codeblobs out of the kernel 16880 type Fcodeblobs_t = Fcodeblobs /* fcntl.h:386:3 */ 16881 16882 // detached code signatures data type - 16883 // information passed by user to system used by F_ADDSIGS and F_ADDFILESIGS. 16884 // F_ADDFILESIGS is a shortcut for files that contain their own signature and 16885 // doesn't require mapping of the file in order to load the signature. 16886 type Fsignatures = struct { 16887 Ffs_file_start Off_t 16888 Ffs_blob_start uintptr 16889 Ffs_blob_size Size_t 16890 } /* fcntl.h:395:9 */ 16891 16892 // detached code signatures data type - 16893 // information passed by user to system used by F_ADDSIGS and F_ADDFILESIGS. 16894 // F_ADDFILESIGS is a shortcut for files that contain their own signature and 16895 // doesn't require mapping of the file in order to load the signature. 16896 type Fsignatures_t = Fsignatures /* fcntl.h:399:3 */ 16897 16898 // DYLD needs to check if the object is allowed to be combined 16899 // into the main binary. This is done between the code signature 16900 // is loaded and dyld is doing all the work to process the LOAD commands. 16901 // 16902 // While this could be done in F_ADDFILESIGS.* family the hook into 16903 // the MAC module doesn't say no when LV isn't enabled and then that 16904 // is cached on the vnode, and the MAC module never gets change once 16905 // a process that library validation enabled. 16906 type Fchecklv = struct { 16907 Flv_file_start Off_t 16908 Flv_error_message_size Size_t 16909 Flv_error_message uintptr 16910 } /* fcntl.h:411:9 */ 16911 16912 // DYLD needs to check if the object is allowed to be combined 16913 // into the main binary. This is done between the code signature 16914 // is loaded and dyld is doing all the work to process the LOAD commands. 16915 // 16916 // While this could be done in F_ADDFILESIGS.* family the hook into 16917 // the MAC module doesn't say no when LV isn't enabled and then that 16918 // is cached on the vnode, and the MAC module never gets change once 16919 // a process that library validation enabled. 16920 type Fchecklv_t = Fchecklv /* fcntl.h:415:3 */ 16921 16922 // lock operations for flock(2) 16923 16924 // fstore_t type used by F_PREALLOCATE command 16925 16926 type Fstore = struct { 16927 Ffst_flags uint32 16928 Ffst_posmode int32 16929 Ffst_offset Off_t 16930 Ffst_length Off_t 16931 Ffst_bytesalloc Off_t 16932 } /* fcntl.h:427:9 */ 16933 16934 // lock operations for flock(2) 16935 16936 // fstore_t type used by F_PREALLOCATE command 16937 16938 type Fstore_t = Fstore /* fcntl.h:433:3 */ 16939 16940 // fpunchhole_t used by F_PUNCHHOLE 16941 type Fpunchhole = struct { 16942 Ffp_flags uint32 16943 Freserved uint32 16944 Ffp_offset Off_t 16945 Ffp_length Off_t 16946 } /* fcntl.h:436:9 */ 16947 16948 // fpunchhole_t used by F_PUNCHHOLE 16949 type Fpunchhole_t = Fpunchhole /* fcntl.h:441:3 */ 16950 16951 // factive_file_trim_t used by F_TRIM_ACTIVE_FILE 16952 type Ftrimactivefile = struct { 16953 Ffta_offset Off_t 16954 Ffta_length Off_t 16955 } /* fcntl.h:444:9 */ 16956 16957 // factive_file_trim_t used by F_TRIM_ACTIVE_FILE 16958 type Ftrimactivefile_t = Ftrimactivefile /* fcntl.h:447:3 */ 16959 16960 // fspecread_t used by F_SPECULATIVE_READ 16961 type Fspecread = struct { 16962 Ffsr_flags uint32 16963 Freserved uint32 16964 Ffsr_offset Off_t 16965 Ffsr_length Off_t 16966 } /* fcntl.h:450:9 */ 16967 16968 // fspecread_t used by F_SPECULATIVE_READ 16969 type Fspecread_t = Fspecread /* fcntl.h:455:3 */ 16970 16971 // fbootstraptransfer_t used by F_READBOOTSTRAP and F_WRITEBOOTSTRAP commands 16972 16973 type Fbootstraptransfer = struct { 16974 Ffbt_offset Off_t 16975 Ffbt_length Size_t 16976 Ffbt_buffer uintptr 16977 } /* fcntl.h:459:9 */ 16978 16979 // fbootstraptransfer_t used by F_READBOOTSTRAP and F_WRITEBOOTSTRAP commands 16980 16981 type Fbootstraptransfer_t = Fbootstraptransfer /* fcntl.h:463:3 */ 16982 16983 // For F_LOG2PHYS this information is passed back to user 16984 // Currently only devoffset is returned - that is the VOP_BMAP 16985 // result - the disk device address corresponding to the 16986 // current file offset (likely set with an lseek). 16987 // 16988 // The flags could hold an indication of whether the # of 16989 // contiguous bytes reflects the true extent length on disk, 16990 // or is an advisory value that indicates there is at least that 16991 // many bytes contiguous. For some filesystems it might be too 16992 // inefficient to provide anything beyond the advisory value. 16993 // Flags and contiguous bytes return values are not yet implemented. 16994 // For them the fcntl will nedd to switch from using BMAP to CMAP 16995 // and a per filesystem type flag will be needed to interpret the 16996 // contiguous bytes count result from CMAP. 16997 // 16998 // F_LOG2PHYS_EXT is a variant of F_LOG2PHYS that uses a passed in 16999 // file offset and length instead of the current file offset. 17000 // F_LOG2PHYS_EXT operates on the same structure as F_LOG2PHYS, but 17001 // treats it as an in/out. 17002 17003 type Log2phys = struct { 17004 Fl2p_flags uint32 17005 F__ccgo_pad1 [4]byte 17006 Fl2p_contigbytes Off_t 17007 Fl2p_devoffset Off_t 17008 } /* fcntl.h:489:1 */ 17009 17010 type Filesec_t = uintptr /* _filesec_t.h:31:25 */ 17011 17012 type Filesec_property_t = uint32 /* fcntl.h:523:3 */ 17013 17014 // default memLevel 17015 17016 // default i/o buffer size -- double this for output when reading (this and 17017 // twice this must be able to fit in an unsigned type) 17018 17019 // gzip modes, also provide a little integrity check on the passed structure 17020 17021 // values for gz_state how 17022 17023 // internal gzip file state data structure 17024 type Gz_state = struct { 17025 Fx GzFile_s 17026 Fmode int32 17027 Ffd int32 17028 Fpath uintptr 17029 Fsize uint32 17030 Fwant uint32 17031 Fin uintptr 17032 Fout uintptr 17033 Fdirect int32 17034 Fhow int32 17035 Fstart Off_t 17036 Feof int32 17037 Fpast int32 17038 Flevel int32 17039 Fstrategy int32 17040 Fskip Off_t 17041 Fseek int32 17042 Ferr int32 17043 Fmsg uintptr 17044 Fstrm Z_stream 17045 } /* gzguts.h:201:3 */ 17046 type Gz_statep = uintptr /* gzguts.h:202:22 */ 17047 17048 // GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t 17049 // value -- needed when comparing unsigned to z_off64_t, which is signed 17050 // (possible z_off64_t types off_t, off64_t, and long are all signed) 17051 17052 // gzclose() is in a separate file so that it is linked in only if it is used. 17053 // That way the other gzclose functions can be used instead to avoid linking in 17054 // unneeded compression or decompression routines. 17055 func Xgzclose(tls *libc.TLS, file GzFile) int32 { /* gzclose.c:11:13: */ 17056 var state Gz_statep 17057 17058 if file == (uintptr(0)) { 17059 return -2 17060 } 17061 state = file 17062 17063 if (*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_READ { 17064 return Xgzclose_r(tls, file) 17065 } 17066 return Xgzclose_w(tls, file) 17067 } 17068 17069 // Reset gzip file state 17070 func gz_reset(tls *libc.TLS, state Gz_statep) { /* gzlib.c:75:12: */ 17071 (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0) // no output data available 17072 if (*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_READ { // for reading ... 17073 (*Gz_state)(unsafe.Pointer(state)).Feof = 0 // not at end of file 17074 (*Gz_state)(unsafe.Pointer(state)).Fpast = 0 // have not read past end yet 17075 (*Gz_state)(unsafe.Pointer(state)).Fhow = LOOK // look for gzip header 17076 } 17077 (*Gz_state)(unsafe.Pointer(state)).Fseek = 0 // no seek request pending 17078 Xgz_error(tls, state, Z_OK, uintptr(0)) // clear error 17079 (*Gz_state)(unsafe.Pointer(state)).Fx.Fpos = int64(0) // no uncompressed data yet 17080 (*Gz_state)(unsafe.Pointer(state)).Fstrm.Favail_in = UInt(0) // no input data yet 17081 } 17082 17083 // Open a gzip file either by name or file descriptor. 17084 func gz_open(tls *libc.TLS, path uintptr, fd int32, mode uintptr) GzFile { /* gzlib.c:91:14: */ 17085 bp := tls.Alloc(16) 17086 defer tls.Free(16) 17087 17088 var state Gz_statep 17089 var len Z_size_t 17090 var oflag int32 17091 var cloexec int32 = 0 17092 var exclusive int32 = 0 17093 17094 // check input 17095 if path == (uintptr(0)) { 17096 return uintptr(0) 17097 } 17098 17099 // allocate gzFile structure to return 17100 state = libc.Xmalloc(tls, uint64(unsafe.Sizeof(Gz_state{}))) 17101 if state == (uintptr(0)) { 17102 return uintptr(0) 17103 } 17104 (*Gz_state)(unsafe.Pointer(state)).Fsize = uint32(0) // no buffers allocated yet 17105 (*Gz_state)(unsafe.Pointer(state)).Fwant = uint32(GZBUFSIZE) // requested buffer size 17106 (*Gz_state)(unsafe.Pointer(state)).Fmsg = uintptr(0) // no error message yet 17107 17108 // interpret mode 17109 (*Gz_state)(unsafe.Pointer(state)).Fmode = GZ_NONE 17110 (*Gz_state)(unsafe.Pointer(state)).Flevel = -1 17111 (*Gz_state)(unsafe.Pointer(state)).Fstrategy = Z_DEFAULT_STRATEGY 17112 (*Gz_state)(unsafe.Pointer(state)).Fdirect = 0 17113 for *(*int8)(unsafe.Pointer(mode)) != 0 { 17114 if (int32(*(*int8)(unsafe.Pointer(mode))) >= '0') && (int32(*(*int8)(unsafe.Pointer(mode))) <= '9') { 17115 (*Gz_state)(unsafe.Pointer(state)).Flevel = (int32(*(*int8)(unsafe.Pointer(mode))) - '0') 17116 } else { 17117 switch int32(*(*int8)(unsafe.Pointer(mode))) { 17118 case 'r': 17119 (*Gz_state)(unsafe.Pointer(state)).Fmode = GZ_READ 17120 break 17121 fallthrough 17122 case 'w': 17123 (*Gz_state)(unsafe.Pointer(state)).Fmode = GZ_WRITE 17124 break 17125 fallthrough 17126 case 'a': 17127 (*Gz_state)(unsafe.Pointer(state)).Fmode = GZ_APPEND 17128 break 17129 fallthrough 17130 case '+': // can't read and write at the same time 17131 libc.Xfree(tls, state) 17132 return uintptr(0) 17133 fallthrough 17134 case 'b': // ignore -- will request binary anyway 17135 break 17136 fallthrough 17137 case 'e': 17138 cloexec = 1 17139 break 17140 fallthrough 17141 case 'x': 17142 exclusive = 1 17143 break 17144 fallthrough 17145 case 'f': 17146 (*Gz_state)(unsafe.Pointer(state)).Fstrategy = Z_FILTERED 17147 break 17148 fallthrough 17149 case 'h': 17150 (*Gz_state)(unsafe.Pointer(state)).Fstrategy = Z_HUFFMAN_ONLY 17151 break 17152 fallthrough 17153 case 'R': 17154 (*Gz_state)(unsafe.Pointer(state)).Fstrategy = Z_RLE 17155 break 17156 fallthrough 17157 case 'F': 17158 (*Gz_state)(unsafe.Pointer(state)).Fstrategy = Z_FIXED 17159 break 17160 fallthrough 17161 case 'T': 17162 (*Gz_state)(unsafe.Pointer(state)).Fdirect = 1 17163 break 17164 fallthrough 17165 default: // could consider as an error, but just ignore 17166 17167 } 17168 } 17169 mode++ 17170 } 17171 17172 // must provide an "r", "w", or "a" 17173 if (*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_NONE { 17174 libc.Xfree(tls, state) 17175 return uintptr(0) 17176 } 17177 17178 // can't force transparent read 17179 if (*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_READ { 17180 if (*Gz_state)(unsafe.Pointer(state)).Fdirect != 0 { 17181 libc.Xfree(tls, state) 17182 return uintptr(0) 17183 } 17184 (*Gz_state)(unsafe.Pointer(state)).Fdirect = 1 // for empty file 17185 } 17186 17187 // save the path name for error messages 17188 len = libc.Xstrlen(tls, path) 17189 (*Gz_state)(unsafe.Pointer(state)).Fpath = libc.Xmalloc(tls, (len + uint64(1))) 17190 if (*Gz_state)(unsafe.Pointer(state)).Fpath == (uintptr(0)) { 17191 libc.Xfree(tls, state) 17192 return uintptr(0) 17193 } 17194 libc.X__builtin___snprintf_chk(tls, (*Gz_state)(unsafe.Pointer(state)).Fpath, (len + uint64(1)), 0, libc.X__builtin_object_size(tls, (*Gz_state)(unsafe.Pointer(state)).Fpath, func() int32 { 17195 if X_USE_FORTIFY_LEVEL > 1 { 17196 return 1 17197 } 17198 return 0 17199 }()), ts+76 /* "%s" */, libc.VaList(bp, path)) 17200 17201 // compute the flags for open() 17202 oflag = ((func() int32 { 17203 if cloexec != 0 { 17204 return O_CLOEXEC 17205 } 17206 return 0 17207 }()) | (func() int32 { 17208 if (*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_READ { 17209 return O_RDONLY 17210 } 17211 return (((O_WRONLY | O_CREAT) | (func() int32 { 17212 if exclusive != 0 { 17213 return O_EXCL 17214 } 17215 return 0 17216 }())) | (func() int32 { 17217 if (*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_WRITE { 17218 return O_TRUNC 17219 } 17220 return O_APPEND 17221 }())) 17222 }())) 17223 17224 // open the file with the appropriate flags (or just use fd) 17225 (*Gz_state)(unsafe.Pointer(state)).Ffd = func() int32 { 17226 if fd > -1 { 17227 return fd 17228 } 17229 return libc.Xopen(tls, path, oflag, libc.VaList(bp+8, 0666)) 17230 }() 17231 if (*Gz_state)(unsafe.Pointer(state)).Ffd == -1 { 17232 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fpath) 17233 libc.Xfree(tls, state) 17234 return uintptr(0) 17235 } 17236 if (*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_APPEND { 17237 libc.Xlseek(tls, (*Gz_state)(unsafe.Pointer(state)).Ffd, int64(0), SEEK_END) // so gzoffset() is correct 17238 (*Gz_state)(unsafe.Pointer(state)).Fmode = GZ_WRITE // simplify later checks 17239 } 17240 17241 // save the current position for rewinding (only if reading) 17242 if (*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_READ { 17243 (*Gz_state)(unsafe.Pointer(state)).Fstart = libc.Xlseek(tls, (*Gz_state)(unsafe.Pointer(state)).Ffd, int64(0), SEEK_CUR) 17244 if (*Gz_state)(unsafe.Pointer(state)).Fstart == int64(-1) { 17245 (*Gz_state)(unsafe.Pointer(state)).Fstart = int64(0) 17246 } 17247 } 17248 17249 // initialize stream 17250 gz_reset(tls, state) 17251 17252 // return stream 17253 return state 17254 } 17255 17256 // -- see zlib.h -- 17257 func Xgzopen(tls *libc.TLS, path uintptr, mode uintptr) GzFile { /* gzlib.c:270:16: */ 17258 return gz_open(tls, path, -1, mode) 17259 } 17260 17261 // -- see zlib.h -- 17262 func Xgzopen64(tls *libc.TLS, path uintptr, mode uintptr) GzFile { /* gzlib.c:278:16: */ 17263 return gz_open(tls, path, -1, mode) 17264 } 17265 17266 // -- see zlib.h -- 17267 func Xgzdopen(tls *libc.TLS, fd int32, mode uintptr) GzFile { /* gzlib.c:286:16: */ 17268 bp := tls.Alloc(8) 17269 defer tls.Free(8) 17270 17271 var path uintptr // identifier for error messages 17272 var gz GzFile 17273 17274 if (fd == -1) || ((libc.AssignUintptr(&path, libc.Xmalloc(tls, (uint64(7)+(uint64(3)*uint64(unsafe.Sizeof(int32(0)))))))) == (uintptr(0))) { 17275 return uintptr(0) 17276 } 17277 libc.X__builtin___snprintf_chk(tls, path, (uint64(7) + (uint64(3) * uint64(unsafe.Sizeof(int32(0))))), 0, libc.X__builtin_object_size(tls, path, func() int32 { 17278 if X_USE_FORTIFY_LEVEL > 1 { 17279 return 1 17280 } 17281 return 0 17282 }()), ts+79 /* "<fd:%d>" */, libc.VaList(bp, fd)) 17283 gz = gz_open(tls, path, fd, mode) 17284 libc.Xfree(tls, path) 17285 return gz 17286 } 17287 17288 // -- see zlib.h -- 17289 17290 // -- see zlib.h -- 17291 func Xgzbuffer(tls *libc.TLS, file GzFile, size uint32) int32 { /* gzlib.c:316:13: */ 17292 var state Gz_statep 17293 17294 // get internal structure and check integrity 17295 if file == (uintptr(0)) { 17296 return -1 17297 } 17298 state = file 17299 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ) && ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) { 17300 return -1 17301 } 17302 17303 // make sure we haven't already allocated memory 17304 if (*Gz_state)(unsafe.Pointer(state)).Fsize != uint32(0) { 17305 return -1 17306 } 17307 17308 // check and set requested size 17309 if (size << 1) < size { 17310 return -1 17311 } // need to be able to double it 17312 if size < uint32(2) { 17313 size = uint32(2) 17314 } // need two bytes to check magic header 17315 (*Gz_state)(unsafe.Pointer(state)).Fwant = size 17316 return 0 17317 } 17318 17319 // -- see zlib.h -- 17320 func Xgzrewind(tls *libc.TLS, file GzFile) int32 { /* gzlib.c:343:13: */ 17321 var state Gz_statep 17322 17323 // get internal structure 17324 if file == (uintptr(0)) { 17325 return -1 17326 } 17327 state = file 17328 17329 // check that we're reading and that there's no error 17330 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ) || (((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) && ((*Gz_state)(unsafe.Pointer(state)).Ferr != (-5))) { 17331 return -1 17332 } 17333 17334 // back up and start over 17335 if libc.Xlseek(tls, (*Gz_state)(unsafe.Pointer(state)).Ffd, (*Gz_state)(unsafe.Pointer(state)).Fstart, SEEK_SET) == int64(-1) { 17336 return -1 17337 } 17338 gz_reset(tls, state) 17339 return 0 17340 } 17341 17342 // -- see zlib.h -- 17343 func Xgzseek64(tls *libc.TLS, file GzFile, offset Off_t, whence int32) Off_t { /* gzlib.c:366:19: */ 17344 var n uint32 17345 var ret Off_t 17346 var state Gz_statep 17347 17348 // get internal structure and check integrity 17349 if file == (uintptr(0)) { 17350 return int64(-1) 17351 } 17352 state = file 17353 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ) && ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) { 17354 return int64(-1) 17355 } 17356 17357 // check that there's no error 17358 if ((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) && ((*Gz_state)(unsafe.Pointer(state)).Ferr != (-5)) { 17359 return int64(-1) 17360 } 17361 17362 // can only seek from start or relative to current position 17363 if (whence != SEEK_SET) && (whence != SEEK_CUR) { 17364 return int64(-1) 17365 } 17366 17367 // normalize offset to a SEEK_CUR specification 17368 if whence == SEEK_SET { 17369 offset = offset - ((*Gz_state)(unsafe.Pointer(state)).Fx.Fpos) 17370 } else if (*Gz_state)(unsafe.Pointer(state)).Fseek != 0 { 17371 offset = offset + ((*Gz_state)(unsafe.Pointer(state)).Fskip) 17372 } 17373 (*Gz_state)(unsafe.Pointer(state)).Fseek = 0 17374 17375 // if within raw area while reading, just go there 17376 if (((*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_READ) && ((*Gz_state)(unsafe.Pointer(state)).Fhow == COPY1)) && (((*Gz_state)(unsafe.Pointer(state)).Fx.Fpos + offset) >= int64(0)) { 17377 ret = libc.Xlseek(tls, (*Gz_state)(unsafe.Pointer(state)).Ffd, (offset - Off_t((*Gz_state)(unsafe.Pointer(state)).Fx.Fhave)), SEEK_CUR) 17378 if ret == int64(-1) { 17379 return int64(-1) 17380 } 17381 (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0) 17382 (*Gz_state)(unsafe.Pointer(state)).Feof = 0 17383 (*Gz_state)(unsafe.Pointer(state)).Fpast = 0 17384 (*Gz_state)(unsafe.Pointer(state)).Fseek = 0 17385 Xgz_error(tls, state, Z_OK, uintptr(0)) 17386 (*Gz_state)(unsafe.Pointer(state)).Fstrm.Favail_in = UInt(0) 17387 *(*Off_t)(unsafe.Pointer(state /* &.x */ + 16 /* &.pos */)) += (offset) 17388 return (*Gz_state)(unsafe.Pointer(state)).Fx.Fpos 17389 } 17390 17391 // calculate skip amount, rewinding if needed for back seek when reading 17392 if offset < int64(0) { 17393 if (*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ { // writing -- can't go backwards 17394 return int64(-1) 17395 } 17396 offset = offset + ((*Gz_state)(unsafe.Pointer(state)).Fx.Fpos) 17397 if offset < int64(0) { // before start of file! 17398 return int64(-1) 17399 } 17400 if Xgzrewind(tls, file) == -1 { // rewind, then skip to offset 17401 return int64(-1) 17402 } 17403 } 17404 17405 // if reading, skip what's in output buffer (one less gzgetc() check) 17406 if (*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_READ { 17407 if ((uint64(unsafe.Sizeof(int32(0))) == uint64(unsafe.Sizeof(Off_t(0)))) && (((*Gz_state)(unsafe.Pointer(state)).Fx.Fhave) > uint32(0x7fffffff))) || (Off_t((*Gz_state)(unsafe.Pointer(state)).Fx.Fhave) > offset) { 17408 n = uint32(offset) 17409 } else { 17410 n = (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave 17411 } 17412 *(*uint32)(unsafe.Pointer(state /* &.x */ /* &.have */)) -= (n) 17413 *(*uintptr)(unsafe.Pointer(state /* &.x */ + 8 /* &.next */)) += (uintptr(n)) 17414 *(*Off_t)(unsafe.Pointer(state /* &.x */ + 16 /* &.pos */)) += (Off_t(n)) 17415 offset = offset - (Off_t(n)) 17416 } 17417 17418 // request skip (if not zero) 17419 if offset != 0 { 17420 (*Gz_state)(unsafe.Pointer(state)).Fseek = 1 17421 (*Gz_state)(unsafe.Pointer(state)).Fskip = offset 17422 } 17423 return ((*Gz_state)(unsafe.Pointer(state)).Fx.Fpos + offset) 17424 } 17425 17426 // -- see zlib.h -- 17427 func Xgzseek(tls *libc.TLS, file GzFile, offset Off_t, whence int32) Off_t { /* gzlib.c:443:17: */ 17428 var ret Off_t 17429 17430 ret = Xgzseek64(tls, file, offset, whence) 17431 if ret == ret { 17432 return ret 17433 } 17434 return int64(-1) 17435 } 17436 17437 // -- see zlib.h -- 17438 func Xgztell64(tls *libc.TLS, file GzFile) Off_t { /* gzlib.c:455:19: */ 17439 var state Gz_statep 17440 17441 // get internal structure and check integrity 17442 if file == (uintptr(0)) { 17443 return int64(-1) 17444 } 17445 state = file 17446 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ) && ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) { 17447 return int64(-1) 17448 } 17449 17450 // return position 17451 return ((*Gz_state)(unsafe.Pointer(state)).Fx.Fpos + (func() int64 { 17452 if (*Gz_state)(unsafe.Pointer(state)).Fseek != 0 { 17453 return (*Gz_state)(unsafe.Pointer(state)).Fskip 17454 } 17455 return int64(0) 17456 }())) 17457 } 17458 17459 // -- see zlib.h -- 17460 func Xgztell(tls *libc.TLS, file GzFile) Off_t { /* gzlib.c:472:17: */ 17461 var ret Off_t 17462 17463 ret = Xgztell64(tls, file) 17464 if ret == ret { 17465 return ret 17466 } 17467 return int64(-1) 17468 } 17469 17470 // -- see zlib.h -- 17471 func Xgzoffset64(tls *libc.TLS, file GzFile) Off_t { /* gzlib.c:482:19: */ 17472 var offset Off_t 17473 var state Gz_statep 17474 17475 // get internal structure and check integrity 17476 if file == (uintptr(0)) { 17477 return int64(-1) 17478 } 17479 state = file 17480 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ) && ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) { 17481 return int64(-1) 17482 } 17483 17484 // compute and return effective offset in file 17485 offset = libc.Xlseek(tls, (*Gz_state)(unsafe.Pointer(state)).Ffd, int64(0), SEEK_CUR) 17486 if offset == int64(-1) { 17487 return int64(-1) 17488 } 17489 if (*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_READ { // reading 17490 offset = offset - (Off_t((*Gz_state)(unsafe.Pointer(state)).Fstrm.Favail_in)) 17491 } // don't count buffered input 17492 return offset 17493 } 17494 17495 // -- see zlib.h -- 17496 func Xgzoffset(tls *libc.TLS, file GzFile) Off_t { /* gzlib.c:505:17: */ 17497 var ret Off_t 17498 17499 ret = Xgzoffset64(tls, file) 17500 if ret == ret { 17501 return ret 17502 } 17503 return int64(-1) 17504 } 17505 17506 // -- see zlib.h -- 17507 func Xgzeof(tls *libc.TLS, file GzFile) int32 { /* gzlib.c:515:13: */ 17508 var state Gz_statep 17509 17510 // get internal structure and check integrity 17511 if file == (uintptr(0)) { 17512 return 0 17513 } 17514 state = file 17515 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ) && ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) { 17516 return 0 17517 } 17518 17519 // return end-of-file state 17520 if (*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_READ { 17521 return (*Gz_state)(unsafe.Pointer(state)).Fpast 17522 } 17523 return 0 17524 } 17525 17526 // -- see zlib.h -- 17527 func Xgzerror(tls *libc.TLS, file GzFile, errnum uintptr) uintptr { /* gzlib.c:532:12: */ 17528 var state Gz_statep 17529 17530 // get internal structure and check integrity 17531 if file == (uintptr(0)) { 17532 return uintptr(0) 17533 } 17534 state = file 17535 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ) && ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) { 17536 return uintptr(0) 17537 } 17538 17539 // return error information 17540 if errnum != (uintptr(0)) { 17541 *(*int32)(unsafe.Pointer(errnum)) = (*Gz_state)(unsafe.Pointer(state)).Ferr 17542 } 17543 if (*Gz_state)(unsafe.Pointer(state)).Ferr == (-4) { 17544 return ts + 87 /* "out of memory" */ 17545 } 17546 return func() uintptr { 17547 if (*Gz_state)(unsafe.Pointer(state)).Fmsg == (uintptr(0)) { 17548 return ts + 101 /* "" */ 17549 } 17550 return (*Gz_state)(unsafe.Pointer(state)).Fmsg 17551 }() 17552 } 17553 17554 // -- see zlib.h -- 17555 func Xgzclearerr(tls *libc.TLS, file GzFile) { /* gzlib.c:553:14: */ 17556 var state Gz_statep 17557 17558 // get internal structure and check integrity 17559 if file == (uintptr(0)) { 17560 return 17561 } 17562 state = file 17563 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ) && ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) { 17564 return 17565 } 17566 17567 // clear error and end-of-file 17568 if (*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_READ { 17569 (*Gz_state)(unsafe.Pointer(state)).Feof = 0 17570 (*Gz_state)(unsafe.Pointer(state)).Fpast = 0 17571 } 17572 Xgz_error(tls, state, Z_OK, uintptr(0)) 17573 } 17574 17575 // Create an error message in allocated memory and set state->err and 17576 // state->msg accordingly. Free any previous error message already there. Do 17577 // not try to free or allocate space if the error is Z_MEM_ERROR (out of 17578 // memory). Simply save the error message as a static string. If there is an 17579 // allocation failure constructing the error message, then convert the error to 17580 // out of memory. 17581 func Xgz_error(tls *libc.TLS, state Gz_statep, err int32, msg uintptr) { /* gzlib.c:579:20: */ 17582 bp := tls.Alloc(24) 17583 defer tls.Free(24) 17584 17585 // free previously allocated message and clear 17586 if (*Gz_state)(unsafe.Pointer(state)).Fmsg != (uintptr(0)) { 17587 if (*Gz_state)(unsafe.Pointer(state)).Ferr != (-4) { 17588 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fmsg) 17589 } 17590 (*Gz_state)(unsafe.Pointer(state)).Fmsg = uintptr(0) 17591 } 17592 17593 // if fatal, set state->x.have to 0 so that the gzgetc() macro fails 17594 if (err != Z_OK) && (err != (-5)) { 17595 (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0) 17596 } 17597 17598 // set error code, and if no message, then done 17599 (*Gz_state)(unsafe.Pointer(state)).Ferr = err 17600 if msg == (uintptr(0)) { 17601 return 17602 } 17603 17604 // for an out of memory error, return literal string when requested 17605 if err == (-4) { 17606 return 17607 } 17608 17609 // construct error message with path 17610 if (libc.AssignPtrUintptr(state+112 /* &.msg */, libc.Xmalloc(tls, ((libc.Xstrlen(tls, (*Gz_state)(unsafe.Pointer(state)).Fpath)+libc.Xstrlen(tls, msg))+uint64(3))))) == (uintptr(0)) { 17611 (*Gz_state)(unsafe.Pointer(state)).Ferr = -4 17612 return 17613 } 17614 libc.X__builtin___snprintf_chk(tls, (*Gz_state)(unsafe.Pointer(state)).Fmsg, ((libc.Xstrlen(tls, (*Gz_state)(unsafe.Pointer(state)).Fpath) + libc.Xstrlen(tls, msg)) + uint64(3)), 0, libc.X__builtin_object_size(tls, (*Gz_state)(unsafe.Pointer(state)).Fmsg, func() int32 { 17615 if X_USE_FORTIFY_LEVEL > 1 { 17616 return 1 17617 } 17618 return 0 17619 }()), ts+102 /* "%s%s%s" */, libc.VaList(bp, (*Gz_state)(unsafe.Pointer(state)).Fpath, ts+109 /* ": " */, msg)) 17620 } 17621 17622 // Use read() to load a buffer -- return -1 on error, otherwise 0. Read from 17623 // state->fd, and update state->eof, state->err, and state->msg as appropriate. 17624 // This function needs to loop on read(), since read() is not guaranteed to 17625 // read the number of bytes requested, depending on the type of descriptor. 17626 func gz_load(tls *libc.TLS, state Gz_statep, buf uintptr, len uint32, have uintptr) int32 { /* gzread.c:21:11: */ 17627 var ret int32 17628 var get uint32 17629 var max uint32 = ((uint32(libc.Uint32(libc.Uint32FromInt32(-1))) >> 2) + uint32(1)) 17630 17631 *(*uint32)(unsafe.Pointer(have)) = uint32(0) 17632 for ok := true; ok; ok = (*(*uint32)(unsafe.Pointer(have)) < len) { 17633 get = (len - *(*uint32)(unsafe.Pointer(have))) 17634 if get > max { 17635 get = max 17636 } 17637 ret = int32(libc.Xread(tls, (*Gz_state)(unsafe.Pointer(state)).Ffd, (buf + uintptr(*(*uint32)(unsafe.Pointer(have)))), uint64(get))) 17638 if ret <= 0 { 17639 break 17640 } 17641 *(*uint32)(unsafe.Pointer(have)) += (uint32(ret)) 17642 } 17643 if ret < 0 { 17644 Xgz_error(tls, state, -1, libc.Xstrerror(tls, *(*int32)(unsafe.Pointer(libc.X__error(tls))))) 17645 return -1 17646 } 17647 if ret == 0 { 17648 (*Gz_state)(unsafe.Pointer(state)).Feof = 1 17649 } 17650 return 0 17651 } 17652 17653 // Load up input buffer and set eof flag if last data loaded -- return -1 on 17654 // error, 0 otherwise. Note that the eof flag is set when the end of the input 17655 // file is reached, even though there may be unused data in the buffer. Once 17656 // that data has been used, no more attempts will be made to read the file. 17657 // If strm->avail_in != 0, then the current data is moved to the beginning of 17658 // the input buffer, and then the remainder of the buffer is loaded with the 17659 // available data from the input file. 17660 func gz_avail(tls *libc.TLS, state Gz_statep) int32 { /* gzread.c:56:11: */ 17661 bp := tls.Alloc(4) 17662 defer tls.Free(4) 17663 17664 // var got uint32 at bp, 4 17665 17666 var strm Z_streamp = (state + 120 /* &.strm */) 17667 17668 if ((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) && ((*Gz_state)(unsafe.Pointer(state)).Ferr != (-5)) { 17669 return -1 17670 } 17671 if (*Gz_state)(unsafe.Pointer(state)).Feof == 0 { 17672 if (*Z_stream)(unsafe.Pointer(strm)).Favail_in != 0 { // copy what's there to the start 17673 var p uintptr = (*Gz_state)(unsafe.Pointer(state)).Fin 17674 var q uintptr = (*Z_stream)(unsafe.Pointer(strm)).Fnext_in 17675 var n uint32 = (*Z_stream)(unsafe.Pointer(strm)).Favail_in 17676 for ok := true; ok; ok = libc.PreDecUint32(&n, 1) != 0 { 17677 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&p, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&q, 1))) 17678 } 17679 } 17680 if gz_load(tls, state, ((*Gz_state)(unsafe.Pointer(state)).Fin+uintptr((*Z_stream)(unsafe.Pointer(strm)).Favail_in)), 17681 ((*Gz_state)(unsafe.Pointer(state)).Fsize-(*Z_stream)(unsafe.Pointer(strm)).Favail_in), bp /* &got */) == -1 { 17682 return -1 17683 } 17684 *(*UInt)(unsafe.Pointer(strm + 8 /* &.avail_in */)) += (*(*uint32)(unsafe.Pointer(bp /* got */))) 17685 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = (*Gz_state)(unsafe.Pointer(state)).Fin 17686 } 17687 return 0 17688 } 17689 17690 // Look for gzip header, set up for inflate or copy. state->x.have must be 0. 17691 // If this is the first time in, allocate required memory. state->how will be 17692 // left unchanged if there is no more input data available, will be set to COPY 17693 // if there is no gzip header and direct copying will be performed, or it will 17694 // be set to GZIP for decompression. If direct copying, then leftover input 17695 // data from the input buffer will be copied to the output buffer. In that 17696 // case, all further file reads will be directly to either the output buffer or 17697 // a user buffer. If decompressing, the inflate state will be initialized. 17698 // gz_look() will return 0 on success or -1 on failure. 17699 func gz_look(tls *libc.TLS, state Gz_statep) int32 { /* gzread.c:91:11: */ 17700 var strm Z_streamp = (state + 120 /* &.strm */) 17701 17702 // allocate read buffers and inflate memory 17703 if (*Gz_state)(unsafe.Pointer(state)).Fsize == uint32(0) { 17704 // allocate buffers 17705 (*Gz_state)(unsafe.Pointer(state)).Fin = libc.Xmalloc(tls, uint64((*Gz_state)(unsafe.Pointer(state)).Fwant)) 17706 (*Gz_state)(unsafe.Pointer(state)).Fout = libc.Xmalloc(tls, (uint64((*Gz_state)(unsafe.Pointer(state)).Fwant << 1))) 17707 if ((*Gz_state)(unsafe.Pointer(state)).Fin == (uintptr(0))) || ((*Gz_state)(unsafe.Pointer(state)).Fout == (uintptr(0))) { 17708 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fout) 17709 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fin) 17710 Xgz_error(tls, state, -4, ts+87 /* "out of memory" */) 17711 return -1 17712 } 17713 (*Gz_state)(unsafe.Pointer(state)).Fsize = (*Gz_state)(unsafe.Pointer(state)).Fwant 17714 17715 // allocate inflate memory 17716 (*Gz_state)(unsafe.Pointer(state)).Fstrm.Fzalloc = Alloc_func(Z_NULL) 17717 (*Gz_state)(unsafe.Pointer(state)).Fstrm.Fzfree = Free_func(Z_NULL) 17718 (*Gz_state)(unsafe.Pointer(state)).Fstrm.Fopaque = Voidpf(Z_NULL) 17719 (*Gz_state)(unsafe.Pointer(state)).Fstrm.Favail_in = UInt(0) 17720 (*Gz_state)(unsafe.Pointer(state)).Fstrm.Fnext_in = uintptr(Z_NULL) 17721 if (XinflateInit2_(tls, (state+120 /* &.strm */), (15+16), ts /* "1.2.11" */, int32(unsafe.Sizeof(Z_stream{}))) != Z_OK) { // gunzip 17722 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fout) 17723 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fin) 17724 (*Gz_state)(unsafe.Pointer(state)).Fsize = uint32(0) 17725 Xgz_error(tls, state, -4, ts+87 /* "out of memory" */) 17726 return -1 17727 } 17728 } 17729 17730 // get at least the magic bytes in the input buffer 17731 if (*Z_stream)(unsafe.Pointer(strm)).Favail_in < UInt(2) { 17732 if gz_avail(tls, state) == -1 { 17733 return -1 17734 } 17735 if (*Z_stream)(unsafe.Pointer(strm)).Favail_in == UInt(0) { 17736 return 0 17737 } 17738 } 17739 17740 // look for gzip magic bytes -- if there, do gzip decoding (note: there is 17741 // a logical dilemma here when considering the case of a partially written 17742 // gzip file, to wit, if a single 31 byte is written, then we cannot tell 17743 // whether this is a single-byte file, or just a partially written gzip 17744 // file -- for here we assume that if a gzip file is being written, then 17745 // the header will be written in a single operation, so that reading a 17746 // single byte is sufficient indication that it is not a gzip file) 17747 if (((*Z_stream)(unsafe.Pointer(strm)).Favail_in > UInt(1)) && (int32(*(*Bytef)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fnext_in))) == 31)) && (int32(*(*Bytef)(unsafe.Pointer((*Z_stream)(unsafe.Pointer(strm)).Fnext_in + 1))) == 139) { 17748 XinflateReset(tls, strm) 17749 (*Gz_state)(unsafe.Pointer(state)).Fhow = /* GZIP */ 2 17750 (*Gz_state)(unsafe.Pointer(state)).Fdirect = 0 17751 return 0 17752 } 17753 17754 // no gzip header -- if we were decoding gzip before, then this is trailing 17755 // garbage. Ignore the trailing garbage and finish. 17756 if (*Gz_state)(unsafe.Pointer(state)).Fdirect == 0 { 17757 (*Z_stream)(unsafe.Pointer(strm)).Favail_in = UInt(0) 17758 (*Gz_state)(unsafe.Pointer(state)).Feof = 1 17759 (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0) 17760 return 0 17761 } 17762 17763 // doing raw i/o, copy any leftover input to output -- this assumes that 17764 // the output buffer is larger than the input buffer, which also assures 17765 // space for gzungetc() 17766 (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Gz_state)(unsafe.Pointer(state)).Fout 17767 if (*Z_stream)(unsafe.Pointer(strm)).Favail_in != 0 { 17768 libc.X__builtin___memcpy_chk(tls, (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext, (*Z_stream)(unsafe.Pointer(strm)).Fnext_in, uint64((*Z_stream)(unsafe.Pointer(strm)).Favail_in), libc.X__builtin_object_size(tls, (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext, 0)) 17769 (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave = (*Z_stream)(unsafe.Pointer(strm)).Favail_in 17770 (*Z_stream)(unsafe.Pointer(strm)).Favail_in = UInt(0) 17771 } 17772 (*Gz_state)(unsafe.Pointer(state)).Fhow = COPY1 17773 (*Gz_state)(unsafe.Pointer(state)).Fdirect = 1 17774 return 0 17775 } 17776 17777 // Decompress from input to the provided next_out and avail_out in the state. 17778 // On return, state->x.have and state->x.next point to the just decompressed 17779 // data. If the gzip stream completes, state->how is reset to LOOK to look for 17780 // the next gzip stream or raw data, once state->x.have is depleted. Returns 0 17781 // on success, -1 on failure. 17782 func gz_decomp(tls *libc.TLS, state Gz_statep) int32 { /* gzread.c:175:11: */ 17783 var ret int32 = Z_OK 17784 var had uint32 17785 var strm Z_streamp = (state + 120 /* &.strm */) 17786 17787 // fill output buffer up to end of deflate stream 17788 had = (*Z_stream)(unsafe.Pointer(strm)).Favail_out 17789 for ok := true; ok; ok = (((*Z_stream)(unsafe.Pointer(strm)).Favail_out != 0) && (ret != Z_STREAM_END)) { 17790 // get more input for inflate() 17791 if ((*Z_stream)(unsafe.Pointer(strm)).Favail_in == UInt(0)) && (gz_avail(tls, state) == -1) { 17792 return -1 17793 } 17794 if (*Z_stream)(unsafe.Pointer(strm)).Favail_in == UInt(0) { 17795 Xgz_error(tls, state, -5, ts+112 /* "unexpected end o..." */) 17796 break 17797 } 17798 17799 // decompress and handle errors 17800 ret = Xinflate(tls, strm, Z_NO_FLUSH) 17801 if (ret == (-2)) || (ret == Z_NEED_DICT) { 17802 Xgz_error(tls, state, -2, 17803 ts+135 /* "internal error: ..." */) 17804 return -1 17805 } 17806 if ret == (-4) { 17807 Xgz_error(tls, state, -4, ts+87 /* "out of memory" */) 17808 return -1 17809 } 17810 if ret == (-3) { // deflate stream invalid 17811 Xgz_error(tls, state, -3, 17812 func() uintptr { 17813 if (*Z_stream)(unsafe.Pointer(strm)).Fmsg == (uintptr(0)) { 17814 return ts + 174 /* "compressed data ..." */ 17815 } 17816 return (*Z_stream)(unsafe.Pointer(strm)).Fmsg 17817 }()) 17818 return -1 17819 } 17820 } 17821 17822 // update available output 17823 (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave = (had - (*Z_stream)(unsafe.Pointer(strm)).Favail_out) 17824 (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext = ((*Z_stream)(unsafe.Pointer(strm)).Fnext_out - uintptr((*Gz_state)(unsafe.Pointer(state)).Fx.Fhave)) 17825 17826 // if the gzip stream completed successfully, look for another 17827 if ret == Z_STREAM_END { 17828 (*Gz_state)(unsafe.Pointer(state)).Fhow = LOOK 17829 } 17830 17831 // good decompression 17832 return 0 17833 } 17834 17835 // Fetch data and put it in the output buffer. Assumes state->x.have is 0. 17836 // Data is either copied from the input file or decompressed from the input 17837 // file depending on state->how. If state->how is LOOK, then a gzip header is 17838 // looked for to determine whether to copy or decompress. Returns -1 on error, 17839 // otherwise 0. gz_fetch() will leave state->how as COPY or GZIP unless the 17840 // end of the input file has been reached and all data has been processed. 17841 func gz_fetch(tls *libc.TLS, state Gz_statep) int32 { /* gzread.c:229:11: */ 17842 var strm Z_streamp = (state + 120 /* &.strm */) 17843 17844 for ok := true; ok; ok = (((*Gz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0)) && (!((*Gz_state)(unsafe.Pointer(state)).Feof != 0) || ((*Z_stream)(unsafe.Pointer(strm)).Favail_in != 0))) { 17845 switch (*Gz_state)(unsafe.Pointer(state)).Fhow { 17846 case LOOK: // -> LOOK, COPY (only if never GZIP), or GZIP 17847 if gz_look(tls, state) == -1 { 17848 return -1 17849 } 17850 if (*Gz_state)(unsafe.Pointer(state)).Fhow == LOOK { 17851 return 0 17852 } 17853 break 17854 case COPY1: // -> COPY 17855 if gz_load(tls, state, (*Gz_state)(unsafe.Pointer(state)).Fout, ((*Gz_state)(unsafe.Pointer(state)).Fsize<<1), (state /* &.x */ /* &.have */)) == 17856 -1 { 17857 return -1 17858 } 17859 (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Gz_state)(unsafe.Pointer(state)).Fout 17860 return 0 17861 case /* GZIP */ 2: // -> GZIP or LOOK (if end of gzip stream) 17862 (*Z_stream)(unsafe.Pointer(strm)).Favail_out = ((*Gz_state)(unsafe.Pointer(state)).Fsize << 1) 17863 (*Z_stream)(unsafe.Pointer(strm)).Fnext_out = (*Gz_state)(unsafe.Pointer(state)).Fout 17864 if gz_decomp(tls, state) == -1 { 17865 return -1 17866 } 17867 } 17868 } 17869 return 0 17870 } 17871 17872 // Skip len uncompressed bytes of output. Return -1 on error, 0 on success. 17873 func gz_skip(tls *libc.TLS, state Gz_statep, len Off_t) int32 { /* gzread.c:259:11: */ 17874 var n uint32 17875 17876 // skip over len bytes or reach end-of-file, whichever comes first 17877 for len != 0 { 17878 // skip over whatever is in output buffer 17879 if (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave != 0 { 17880 if ((uint64(unsafe.Sizeof(int32(0))) == uint64(unsafe.Sizeof(Off_t(0)))) && (((*Gz_state)(unsafe.Pointer(state)).Fx.Fhave) > uint32(0x7fffffff))) || (Off_t((*Gz_state)(unsafe.Pointer(state)).Fx.Fhave) > len) { 17881 n = uint32(len) 17882 } else { 17883 n = (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave 17884 } 17885 *(*uint32)(unsafe.Pointer(state /* &.x */ /* &.have */)) -= (n) 17886 *(*uintptr)(unsafe.Pointer(state /* &.x */ + 8 /* &.next */)) += (uintptr(n)) 17887 *(*Off_t)(unsafe.Pointer(state /* &.x */ + 16 /* &.pos */)) += (Off_t(n)) 17888 len = len - (Off_t(n)) 17889 } else if ((*Gz_state)(unsafe.Pointer(state)).Feof != 0) && ((*Gz_state)(unsafe.Pointer(state)).Fstrm.Favail_in == UInt(0)) { 17890 break 17891 } else { 17892 // get more output, looking for header if required 17893 if gz_fetch(tls, state) == -1 { 17894 return -1 17895 } 17896 } 17897 } 17898 return 0 17899 } 17900 17901 // Read len bytes into buf from file, or less than len up to the end of the 17902 // input. Return the number of bytes read. If zero is returned, either the 17903 // end of file was reached, or there was an error. state->err must be 17904 // consulted in that case to determine which. 17905 func gz_read(tls *libc.TLS, state Gz_statep, buf Voidp, len Z_size_t) Z_size_t { /* gzread.c:294:16: */ 17906 bp := tls.Alloc(4) 17907 defer tls.Free(4) 17908 17909 var got Z_size_t 17910 // var n uint32 at bp, 4 17911 17912 // if len is zero, avoid unnecessary operations 17913 if len == uint64(0) { 17914 return uint64(0) 17915 } 17916 17917 // process a skip request 17918 if (*Gz_state)(unsafe.Pointer(state)).Fseek != 0 { 17919 (*Gz_state)(unsafe.Pointer(state)).Fseek = 0 17920 if gz_skip(tls, state, (*Gz_state)(unsafe.Pointer(state)).Fskip) == -1 { 17921 return uint64(0) 17922 } 17923 } 17924 17925 // get len bytes to buf, or less than len if at the end 17926 got = uint64(0) 17927 for ok := true; ok; ok = len != 0 { 17928 // set n to the maximum amount of len that fits in an unsigned int 17929 *(*uint32)(unsafe.Pointer(bp /* n */)) = libc.Uint32FromInt32(-1) 17930 if Z_size_t(*(*uint32)(unsafe.Pointer(bp /* n */))) > len { 17931 *(*uint32)(unsafe.Pointer(bp /* n */)) = uint32(len) 17932 } 17933 17934 // first just try copying data from the output buffer 17935 if (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave != 0 { 17936 if (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave < *(*uint32)(unsafe.Pointer(bp /* n */)) { 17937 *(*uint32)(unsafe.Pointer(bp /* n */)) = (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave 17938 } 17939 libc.X__builtin___memcpy_chk(tls, buf, (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext, uint64(*(*uint32)(unsafe.Pointer(bp /* n */))), libc.X__builtin_object_size(tls, buf, 0)) 17940 *(*uintptr)(unsafe.Pointer(state /* &.x */ + 8 /* &.next */)) += (uintptr(*(*uint32)(unsafe.Pointer(bp /* n */)))) 17941 *(*uint32)(unsafe.Pointer(state /* &.x */ /* &.have */)) -= (*(*uint32)(unsafe.Pointer(bp /* n */))) 17942 } else if ((*Gz_state)(unsafe.Pointer(state)).Feof != 0) && ((*Gz_state)(unsafe.Pointer(state)).Fstrm.Favail_in == UInt(0)) { 17943 (*Gz_state)(unsafe.Pointer(state)).Fpast = 1 // tried to read past end 17944 break 17945 } else if ((*Gz_state)(unsafe.Pointer(state)).Fhow == LOOK) || (*(*uint32)(unsafe.Pointer(bp /* n */)) < ((*Gz_state)(unsafe.Pointer(state)).Fsize << 1)) { 17946 // get more output, looking for header if required 17947 if gz_fetch(tls, state) == -1 { 17948 return uint64(0) 17949 } 17950 continue // no progress yet -- go back to copy above 17951 // the copy above assures that we will leave with space in the 17952 // output buffer, allowing at least one gzungetc() to succeed 17953 } else if (*Gz_state)(unsafe.Pointer(state)).Fhow == COPY1 { // read directly 17954 if gz_load(tls, state, buf, *(*uint32)(unsafe.Pointer(bp /* n */)), bp /* &n */) == -1 { 17955 return uint64(0) 17956 } 17957 } else { // state->how == GZIP 17958 (*Gz_state)(unsafe.Pointer(state)).Fstrm.Favail_out = *(*uint32)(unsafe.Pointer(bp /* n */)) 17959 (*Gz_state)(unsafe.Pointer(state)).Fstrm.Fnext_out = buf 17960 if gz_decomp(tls, state) == -1 { 17961 return uint64(0) 17962 } 17963 *(*uint32)(unsafe.Pointer(bp /* n */)) = (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave 17964 (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0) 17965 } 17966 17967 // update progress 17968 len = len - (Z_size_t(*(*uint32)(unsafe.Pointer(bp /* n */)))) 17969 buf = (buf + uintptr(*(*uint32)(unsafe.Pointer(bp /* n */)))) 17970 got = got + (Z_size_t(*(*uint32)(unsafe.Pointer(bp /* n */)))) 17971 *(*Off_t)(unsafe.Pointer(state /* &.x */ + 16 /* &.pos */)) += (Off_t(*(*uint32)(unsafe.Pointer(bp /* n */)))) 17972 } 17973 17974 // return number of bytes read into user buffer 17975 return got 17976 } 17977 17978 // -- see zlib.h -- 17979 func Xgzread(tls *libc.TLS, file GzFile, buf Voidp, len uint32) int32 { /* gzread.c:375:13: */ 17980 var state Gz_statep 17981 17982 // get internal structure 17983 if file == (uintptr(0)) { 17984 return -1 17985 } 17986 state = file 17987 17988 // check that we're reading and that there's no (serious) error 17989 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ) || (((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) && ((*Gz_state)(unsafe.Pointer(state)).Ferr != (-5))) { 17990 return -1 17991 } 17992 17993 // since an int is returned, make sure len fits in one, otherwise return 17994 // with an error (this avoids a flaw in the interface) 17995 if int32(len) < 0 { 17996 Xgz_error(tls, state, -2, ts+196 /* "request does not..." */) 17997 return -1 17998 } 17999 18000 // read len or fewer bytes to buf 18001 len = uint32(gz_read(tls, state, buf, uint64(len))) 18002 18003 // check for an error 18004 if ((len == uint32(0)) && ((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK)) && ((*Gz_state)(unsafe.Pointer(state)).Ferr != (-5)) { 18005 return -1 18006 } 18007 18008 // return the number of bytes read (this is assured to fit in an int) 18009 return int32(len) 18010 } 18011 18012 // -- see zlib.h -- 18013 func Xgzfread(tls *libc.TLS, buf Voidp, size Z_size_t, nitems Z_size_t, file GzFile) Z_size_t { /* gzread.c:411:18: */ 18014 var len Z_size_t 18015 var state Gz_statep 18016 18017 // get internal structure 18018 if file == (uintptr(0)) { 18019 return uint64(0) 18020 } 18021 state = file 18022 18023 // check that we're reading and that there's no (serious) error 18024 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ) || (((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) && ((*Gz_state)(unsafe.Pointer(state)).Ferr != (-5))) { 18025 return uint64(0) 18026 } 18027 18028 // compute bytes to read -- error on overflow 18029 len = (nitems * size) 18030 if (size != 0) && ((len / size) != nitems) { 18031 Xgz_error(tls, state, -2, ts+227 /* "request does not..." */) 18032 return uint64(0) 18033 } 18034 18035 // read len or fewer bytes to buf, return the number of full items read 18036 if len != 0 { 18037 return (gz_read(tls, state, buf, len) / size) 18038 } 18039 return uint64(0) 18040 } 18041 18042 // -- see zlib.h -- 18043 func Xgzgetc(tls *libc.TLS, file GzFile) int32 { /* gzread.c:447:13: */ 18044 bp := tls.Alloc(1) 18045 defer tls.Free(1) 18046 18047 var ret int32 18048 // var buf [1]uint8 at bp, 1 18049 18050 var state Gz_statep 18051 18052 // get internal structure 18053 if file == (uintptr(0)) { 18054 return -1 18055 } 18056 state = file 18057 18058 // check that we're reading and that there's no (serious) error 18059 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ) || (((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) && ((*Gz_state)(unsafe.Pointer(state)).Ferr != (-5))) { 18060 return -1 18061 } 18062 18063 // try output buffer (no need to check for skip request) 18064 if (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave != 0 { 18065 (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave-- 18066 (*Gz_state)(unsafe.Pointer(state)).Fx.Fpos++ 18067 return int32(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&((*Gz_state)(unsafe.Pointer(state)).Fx.Fnext), 1)))) 18068 } 18069 18070 // nothing there -- try gz_read() 18071 ret = int32(gz_read(tls, state, bp /* &buf[0] */, uint64(1))) 18072 if ret < 1 { 18073 return -1 18074 } 18075 return int32(*(*uint8)(unsafe.Pointer(bp /* &buf[0] */))) 18076 } 18077 18078 func Xgzgetc_(tls *libc.TLS, file GzFile) int32 { /* gzread.c:476:13: */ 18079 return Xgzgetc(tls, file) 18080 } 18081 18082 // -- see zlib.h -- 18083 func Xgzungetc(tls *libc.TLS, c int32, file GzFile) int32 { /* gzread.c:483:13: */ 18084 var state Gz_statep 18085 18086 // get internal structure 18087 if file == (uintptr(0)) { 18088 return -1 18089 } 18090 state = file 18091 18092 // check that we're reading and that there's no (serious) error 18093 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ) || (((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) && ((*Gz_state)(unsafe.Pointer(state)).Ferr != (-5))) { 18094 return -1 18095 } 18096 18097 // process a skip request 18098 if (*Gz_state)(unsafe.Pointer(state)).Fseek != 0 { 18099 (*Gz_state)(unsafe.Pointer(state)).Fseek = 0 18100 if gz_skip(tls, state, (*Gz_state)(unsafe.Pointer(state)).Fskip) == -1 { 18101 return -1 18102 } 18103 } 18104 18105 // can't push EOF 18106 if c < 0 { 18107 return -1 18108 } 18109 18110 // if output buffer empty, put byte at end (allows more pushing) 18111 if (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0) { 18112 (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(1) 18113 (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext = (((*Gz_state)(unsafe.Pointer(state)).Fout + uintptr(((*Gz_state)(unsafe.Pointer(state)).Fsize << 1))) - uintptr(1)) 18114 *(*uint8)(unsafe.Pointer((*Gz_state)(unsafe.Pointer(state)).Fx.Fnext)) = uint8(c) 18115 (*Gz_state)(unsafe.Pointer(state)).Fx.Fpos-- 18116 (*Gz_state)(unsafe.Pointer(state)).Fpast = 0 18117 return c 18118 } 18119 18120 // if no room, give up (must have already done a gzungetc()) 18121 if (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave == ((*Gz_state)(unsafe.Pointer(state)).Fsize << 1) { 18122 Xgz_error(tls, state, -3, ts+260 /* "out of room to p..." */) 18123 return -1 18124 } 18125 18126 // slide output data if needed and insert byte before existing data 18127 if (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext == (*Gz_state)(unsafe.Pointer(state)).Fout { 18128 var src uintptr = ((*Gz_state)(unsafe.Pointer(state)).Fout + uintptr((*Gz_state)(unsafe.Pointer(state)).Fx.Fhave)) 18129 var dest uintptr = ((*Gz_state)(unsafe.Pointer(state)).Fout + uintptr(((*Gz_state)(unsafe.Pointer(state)).Fsize << 1))) 18130 for src > (*Gz_state)(unsafe.Pointer(state)).Fout { 18131 *(*uint8)(unsafe.Pointer(libc.PreDecUintptr(&dest, 1))) = *(*uint8)(unsafe.Pointer(libc.PreDecUintptr(&src, 1))) 18132 } 18133 (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext = dest 18134 } 18135 (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave++ 18136 (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext-- 18137 *(*uint8)(unsafe.Pointer((*Gz_state)(unsafe.Pointer(state)).Fx.Fnext)) = uint8(c) 18138 (*Gz_state)(unsafe.Pointer(state)).Fx.Fpos-- 18139 (*Gz_state)(unsafe.Pointer(state)).Fpast = 0 18140 return c 18141 } 18142 18143 // -- see zlib.h -- 18144 func Xgzgets(tls *libc.TLS, file GzFile, buf uintptr, len int32) uintptr { /* gzread.c:543:6: */ 18145 var left uint32 18146 var n uint32 18147 var str uintptr 18148 var eol uintptr 18149 var state Gz_statep 18150 18151 // check parameters and get internal structure 18152 if ((file == (uintptr(0))) || (buf == (uintptr(0)))) || (len < 1) { 18153 return uintptr(0) 18154 } 18155 state = file 18156 18157 // check that we're reading and that there's no (serious) error 18158 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ) || (((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) && ((*Gz_state)(unsafe.Pointer(state)).Ferr != (-5))) { 18159 return uintptr(0) 18160 } 18161 18162 // process a skip request 18163 if (*Gz_state)(unsafe.Pointer(state)).Fseek != 0 { 18164 (*Gz_state)(unsafe.Pointer(state)).Fseek = 0 18165 if gz_skip(tls, state, (*Gz_state)(unsafe.Pointer(state)).Fskip) == -1 { 18166 return uintptr(0) 18167 } 18168 } 18169 18170 // copy output bytes up to new line or len - 1, whichever comes first -- 18171 // append a terminating zero to the string (we don't check for a zero in 18172 // the contents, let the user worry about that) 18173 str = buf 18174 left = (uint32(len) - uint32(1)) 18175 if left != 0 { 18176 for ok := true; ok; ok = ((left != 0) && (eol == (uintptr(0)))) { 18177 // assure that something is in the output buffer 18178 if ((*Gz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0)) && (gz_fetch(tls, state) == -1) { 18179 return uintptr(0) 18180 } // error 18181 if (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0) { // end of file 18182 (*Gz_state)(unsafe.Pointer(state)).Fpast = 1 // read past end 18183 break // return what we have 18184 } 18185 18186 // look for end-of-line in current output buffer 18187 if (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave > left { 18188 n = left 18189 } else { 18190 n = (*Gz_state)(unsafe.Pointer(state)).Fx.Fhave 18191 } 18192 eol = libc.Xmemchr(tls, (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext, '\n', uint64(n)) 18193 if eol != (uintptr(0)) { 18194 n = ((uint32((int64(eol) - int64((*Gz_state)(unsafe.Pointer(state)).Fx.Fnext)) / 1)) + uint32(1)) 18195 } 18196 18197 // copy through end-of-line, or remainder if not found 18198 libc.X__builtin___memcpy_chk(tls, buf, (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext, uint64(n), libc.X__builtin_object_size(tls, buf, 0)) 18199 *(*uint32)(unsafe.Pointer(state /* &.x */ /* &.have */)) -= (n) 18200 *(*uintptr)(unsafe.Pointer(state /* &.x */ + 8 /* &.next */)) += (uintptr(n)) 18201 *(*Off_t)(unsafe.Pointer(state /* &.x */ + 16 /* &.pos */)) += (Off_t(n)) 18202 left = left - (n) 18203 buf += uintptr(n) 18204 } 18205 } 18206 18207 // return terminated string, or if nothing, end of file 18208 if buf == str { 18209 return uintptr(0) 18210 } 18211 *(*int8)(unsafe.Pointer(buf)) = int8(0) 18212 return str 18213 } 18214 18215 // -- see zlib.h -- 18216 func Xgzdirect(tls *libc.TLS, file GzFile) int32 { /* gzread.c:607:13: */ 18217 var state Gz_statep 18218 18219 // get internal structure 18220 if file == (uintptr(0)) { 18221 return 0 18222 } 18223 state = file 18224 18225 // if the state is not known, but we can find out, then do so (this is 18226 // mainly for right after a gzopen() or gzdopen()) 18227 if (((*Gz_state)(unsafe.Pointer(state)).Fmode == GZ_READ) && ((*Gz_state)(unsafe.Pointer(state)).Fhow == LOOK)) && ((*Gz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0)) { 18228 gz_look(tls, state) 18229 } 18230 18231 // return 1 if transparent, 0 if processing a gzip stream 18232 return (*Gz_state)(unsafe.Pointer(state)).Fdirect 18233 } 18234 18235 // -- see zlib.h -- 18236 func Xgzclose_r(tls *libc.TLS, file GzFile) int32 { /* gzread.c:627:13: */ 18237 var ret int32 18238 var err int32 18239 var state Gz_statep 18240 18241 // get internal structure 18242 if file == (uintptr(0)) { 18243 return -2 18244 } 18245 state = file 18246 18247 // check that we're reading 18248 if (*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_READ { 18249 return -2 18250 } 18251 18252 // free memory and close file 18253 if (*Gz_state)(unsafe.Pointer(state)).Fsize != 0 { 18254 XinflateEnd(tls, (state + 120 /* &.strm */)) 18255 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fout) 18256 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fin) 18257 } 18258 if (*Gz_state)(unsafe.Pointer(state)).Ferr == (-5) { 18259 err = -5 18260 } else { 18261 err = Z_OK 18262 } 18263 Xgz_error(tls, state, Z_OK, uintptr(0)) 18264 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fpath) 18265 ret = libc.Xclose(tls, (*Gz_state)(unsafe.Pointer(state)).Ffd) 18266 libc.Xfree(tls, state) 18267 if ret != 0 { 18268 return -1 18269 } 18270 return err 18271 } 18272 18273 // Initialize state for writing a gzip file. Mark initialization by setting 18274 // state->size to non-zero. Return -1 on a memory allocation failure, or 0 on 18275 // success. 18276 func gz_init(tls *libc.TLS, state Gz_statep) int32 { /* gzwrite.c:17:11: */ 18277 var ret int32 18278 var strm Z_streamp = (state + 120 /* &.strm */) 18279 18280 // allocate input buffer (double size for gzprintf) 18281 (*Gz_state)(unsafe.Pointer(state)).Fin = libc.Xmalloc(tls, (uint64((*Gz_state)(unsafe.Pointer(state)).Fwant << 1))) 18282 if (*Gz_state)(unsafe.Pointer(state)).Fin == (uintptr(0)) { 18283 Xgz_error(tls, state, -4, ts+87 /* "out of memory" */) 18284 return -1 18285 } 18286 18287 // only need output buffer and deflate state if compressing 18288 if !((*Gz_state)(unsafe.Pointer(state)).Fdirect != 0) { 18289 // allocate output buffer 18290 (*Gz_state)(unsafe.Pointer(state)).Fout = libc.Xmalloc(tls, uint64((*Gz_state)(unsafe.Pointer(state)).Fwant)) 18291 if (*Gz_state)(unsafe.Pointer(state)).Fout == (uintptr(0)) { 18292 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fin) 18293 Xgz_error(tls, state, -4, ts+87 /* "out of memory" */) 18294 return -1 18295 } 18296 18297 // allocate deflate memory, set up for gzip compression 18298 (*Z_stream)(unsafe.Pointer(strm)).Fzalloc = Alloc_func(Z_NULL) 18299 (*Z_stream)(unsafe.Pointer(strm)).Fzfree = Free_func(Z_NULL) 18300 (*Z_stream)(unsafe.Pointer(strm)).Fopaque = Voidpf(Z_NULL) 18301 ret = XdeflateInit2_(tls, strm, (*Gz_state)(unsafe.Pointer(state)).Flevel, Z_DEFLATED, (MAX_WBITS + 16), DEF_MEM_LEVEL, (*Gz_state)(unsafe.Pointer(state)).Fstrategy, ts /* "1.2.11" */, int32(unsafe.Sizeof(Z_stream{}))) 18302 if ret != Z_OK { 18303 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fout) 18304 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fin) 18305 Xgz_error(tls, state, -4, ts+87 /* "out of memory" */) 18306 return -1 18307 } 18308 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = uintptr(0) 18309 } 18310 18311 // mark state as initialized 18312 (*Gz_state)(unsafe.Pointer(state)).Fsize = (*Gz_state)(unsafe.Pointer(state)).Fwant 18313 18314 // initialize write buffer if compressing 18315 if !((*Gz_state)(unsafe.Pointer(state)).Fdirect != 0) { 18316 (*Z_stream)(unsafe.Pointer(strm)).Favail_out = (*Gz_state)(unsafe.Pointer(state)).Fsize 18317 (*Z_stream)(unsafe.Pointer(strm)).Fnext_out = (*Gz_state)(unsafe.Pointer(state)).Fout 18318 (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Z_stream)(unsafe.Pointer(strm)).Fnext_out 18319 } 18320 return 0 18321 } 18322 18323 // Compress whatever is at avail_in and next_in and write to the output file. 18324 // Return -1 if there is an error writing to the output file or if gz_init() 18325 // fails to allocate memory, otherwise 0. flush is assumed to be a valid 18326 // deflate() flush value. If flush is Z_FINISH, then the deflate() state is 18327 // reset to start a new gzip stream. If gz->direct is true, then simply write 18328 // to the output file without compressing, and ignore flush. 18329 func gz_comp(tls *libc.TLS, state Gz_statep, flush int32) int32 { /* gzwrite.c:73:11: */ 18330 var ret int32 18331 var writ int32 18332 var have uint32 18333 var put uint32 18334 var max uint32 = ((uint32(libc.Uint32(libc.Uint32FromInt32(-1))) >> 2) + uint32(1)) 18335 var strm Z_streamp = (state + 120 /* &.strm */) 18336 18337 // allocate memory if this is the first time through 18338 if ((*Gz_state)(unsafe.Pointer(state)).Fsize == uint32(0)) && (gz_init(tls, state) == -1) { 18339 return -1 18340 } 18341 18342 // write directly if requested 18343 if (*Gz_state)(unsafe.Pointer(state)).Fdirect != 0 { 18344 for (*Z_stream)(unsafe.Pointer(strm)).Favail_in != 0 { 18345 if (*Z_stream)(unsafe.Pointer(strm)).Favail_in > max { 18346 put = max 18347 } else { 18348 put = (*Z_stream)(unsafe.Pointer(strm)).Favail_in 18349 } 18350 writ = int32(libc.Xwrite(tls, (*Gz_state)(unsafe.Pointer(state)).Ffd, (*Z_stream)(unsafe.Pointer(strm)).Fnext_in, uint64(put))) 18351 if writ < 0 { 18352 Xgz_error(tls, state, -1, libc.Xstrerror(tls, *(*int32)(unsafe.Pointer(libc.X__error(tls))))) 18353 return -1 18354 } 18355 *(*UInt)(unsafe.Pointer(strm + 8 /* &.avail_in */)) -= (uint32(writ)) 18356 *(*uintptr)(unsafe.Pointer(strm /* &.next_in */)) += (uintptr(writ)) 18357 } 18358 return 0 18359 } 18360 18361 // run deflate() on provided input until it produces no more output 18362 ret = Z_OK 18363 for ok := true; ok; ok = have != 0 { 18364 // write out current buffer contents if full, or if flushing, but if 18365 // doing Z_FINISH then don't write until we get to Z_STREAM_END 18366 if ((*Z_stream)(unsafe.Pointer(strm)).Favail_out == UInt(0)) || ((flush != Z_NO_FLUSH) && ((flush != Z_FINISH) || (ret == Z_STREAM_END))) { 18367 for (*Z_stream)(unsafe.Pointer(strm)).Fnext_out > (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext { 18368 if ((int64((*Z_stream)(unsafe.Pointer(strm)).Fnext_out) - int64((*Gz_state)(unsafe.Pointer(state)).Fx.Fnext)) / 1) > int64(int32(max)) { 18369 put = max 18370 } else { 18371 put = (uint32((int64((*Z_stream)(unsafe.Pointer(strm)).Fnext_out) - int64((*Gz_state)(unsafe.Pointer(state)).Fx.Fnext)) / 1)) 18372 } 18373 writ = int32(libc.Xwrite(tls, (*Gz_state)(unsafe.Pointer(state)).Ffd, (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext, uint64(put))) 18374 if writ < 0 { 18375 Xgz_error(tls, state, -1, libc.Xstrerror(tls, *(*int32)(unsafe.Pointer(libc.X__error(tls))))) 18376 return -1 18377 } 18378 *(*uintptr)(unsafe.Pointer(state /* &.x */ + 8 /* &.next */)) += (uintptr(writ)) 18379 } 18380 if (*Z_stream)(unsafe.Pointer(strm)).Favail_out == UInt(0) { 18381 (*Z_stream)(unsafe.Pointer(strm)).Favail_out = (*Gz_state)(unsafe.Pointer(state)).Fsize 18382 (*Z_stream)(unsafe.Pointer(strm)).Fnext_out = (*Gz_state)(unsafe.Pointer(state)).Fout 18383 (*Gz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Gz_state)(unsafe.Pointer(state)).Fout 18384 } 18385 } 18386 18387 // compress 18388 have = (*Z_stream)(unsafe.Pointer(strm)).Favail_out 18389 ret = Xdeflate(tls, strm, flush) 18390 if ret == (-2) { 18391 Xgz_error(tls, state, -2, 18392 ts+291 /* "internal error: ..." */) 18393 return -1 18394 } 18395 have = have - ((*Z_stream)(unsafe.Pointer(strm)).Favail_out) 18396 } 18397 18398 // if that completed a deflate stream, allow another to start 18399 if flush == Z_FINISH { 18400 XdeflateReset(tls, strm) 18401 } 18402 18403 // all done, no errors 18404 return 0 18405 } 18406 18407 // Compress len zeros to output. Return -1 on a write error or memory 18408 // allocation failure by gz_comp(), or 0 on success. 18409 func gz_zero(tls *libc.TLS, state Gz_statep, len Off_t) int32 { /* gzwrite.c:145:11: */ 18410 var first int32 18411 var n uint32 18412 var strm Z_streamp = (state + 120 /* &.strm */) 18413 18414 // consume whatever's left in the input buffer 18415 if ((*Z_stream)(unsafe.Pointer(strm)).Favail_in != 0) && (gz_comp(tls, state, Z_NO_FLUSH) == -1) { 18416 return -1 18417 } 18418 18419 // compress len zeros (len guaranteed > 0) 18420 first = 1 18421 for len != 0 { 18422 if ((uint64(unsafe.Sizeof(int32(0))) == uint64(unsafe.Sizeof(Off_t(0)))) && (((*Gz_state)(unsafe.Pointer(state)).Fsize) > uint32(0x7fffffff))) || (Off_t((*Gz_state)(unsafe.Pointer(state)).Fsize) > len) { 18423 n = uint32(len) 18424 } else { 18425 n = (*Gz_state)(unsafe.Pointer(state)).Fsize 18426 } 18427 if first != 0 { 18428 libc.X__builtin___memset_chk(tls, (*Gz_state)(unsafe.Pointer(state)).Fin, 0, uint64(n), libc.X__builtin_object_size(tls, (*Gz_state)(unsafe.Pointer(state)).Fin, 0)) 18429 first = 0 18430 } 18431 (*Z_stream)(unsafe.Pointer(strm)).Favail_in = n 18432 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = (*Gz_state)(unsafe.Pointer(state)).Fin 18433 *(*Off_t)(unsafe.Pointer(state /* &.x */ + 16 /* &.pos */)) += (Off_t(n)) 18434 if gz_comp(tls, state, Z_NO_FLUSH) == -1 { 18435 return -1 18436 } 18437 len = len - (Off_t(n)) 18438 } 18439 return 0 18440 } 18441 18442 // Write len bytes from buf to file. Return the number of bytes written. If 18443 // the returned value is less than len, then there was an error. 18444 func gz_write(tls *libc.TLS, state Gz_statep, buf Voidpc, len Z_size_t) Z_size_t { /* gzwrite.c:178:16: */ 18445 var put Z_size_t = len 18446 18447 // if len is zero, avoid unnecessary operations 18448 if len == uint64(0) { 18449 return uint64(0) 18450 } 18451 18452 // allocate memory if this is the first time through 18453 if ((*Gz_state)(unsafe.Pointer(state)).Fsize == uint32(0)) && (gz_init(tls, state) == -1) { 18454 return uint64(0) 18455 } 18456 18457 // check for seek request 18458 if (*Gz_state)(unsafe.Pointer(state)).Fseek != 0 { 18459 (*Gz_state)(unsafe.Pointer(state)).Fseek = 0 18460 if gz_zero(tls, state, (*Gz_state)(unsafe.Pointer(state)).Fskip) == -1 { 18461 return uint64(0) 18462 } 18463 } 18464 18465 // for small len, copy to input buffer, otherwise compress directly 18466 if len < Z_size_t((*Gz_state)(unsafe.Pointer(state)).Fsize) { 18467 // copy to input buffer, compress when full 18468 for ok := true; ok; ok = len != 0 { 18469 var have uint32 18470 var copy uint32 18471 18472 if (*Gz_state)(unsafe.Pointer(state)).Fstrm.Favail_in == UInt(0) { 18473 (*Gz_state)(unsafe.Pointer(state)).Fstrm.Fnext_in = (*Gz_state)(unsafe.Pointer(state)).Fin 18474 } 18475 have = (uint32(((int64((*Gz_state)(unsafe.Pointer(state)).Fstrm.Fnext_in + uintptr((*Gz_state)(unsafe.Pointer(state)).Fstrm.Favail_in))) - int64((*Gz_state)(unsafe.Pointer(state)).Fin)) / 1)) 18476 copy = ((*Gz_state)(unsafe.Pointer(state)).Fsize - have) 18477 if Z_size_t(copy) > len { 18478 copy = uint32(len) 18479 } 18480 libc.X__builtin___memcpy_chk(tls, ((*Gz_state)(unsafe.Pointer(state)).Fin + uintptr(have)), buf, uint64(copy), libc.X__builtin_object_size(tls, ((*Gz_state)(unsafe.Pointer(state)).Fin+uintptr(have)), 0)) 18481 *(*UInt)(unsafe.Pointer(state + 120 /* &.strm */ + 8 /* &.avail_in */)) += (copy) 18482 *(*Off_t)(unsafe.Pointer(state /* &.x */ + 16 /* &.pos */)) += (Off_t(copy)) 18483 buf = (buf + uintptr(copy)) 18484 len = len - (Z_size_t(copy)) 18485 if (len != 0) && (gz_comp(tls, state, Z_NO_FLUSH) == -1) { 18486 return uint64(0) 18487 } 18488 } 18489 } else { 18490 // consume whatever's left in the input buffer 18491 if ((*Gz_state)(unsafe.Pointer(state)).Fstrm.Favail_in != 0) && (gz_comp(tls, state, Z_NO_FLUSH) == -1) { 18492 return uint64(0) 18493 } 18494 18495 // directly compress user buffer to file 18496 (*Gz_state)(unsafe.Pointer(state)).Fstrm.Fnext_in = buf 18497 for ok1 := true; ok1; ok1 = len != 0 { 18498 var n uint32 = libc.Uint32(libc.Uint32FromInt32(-1)) 18499 if Z_size_t(n) > len { 18500 n = uint32(len) 18501 } 18502 (*Gz_state)(unsafe.Pointer(state)).Fstrm.Favail_in = n 18503 *(*Off_t)(unsafe.Pointer(state /* &.x */ + 16 /* &.pos */)) += (Off_t(n)) 18504 if gz_comp(tls, state, Z_NO_FLUSH) == -1 { 18505 return uint64(0) 18506 } 18507 len = len - (Z_size_t(n)) 18508 } 18509 } 18510 18511 // input was all buffered or compressed 18512 return put 18513 } 18514 18515 // -- see zlib.h -- 18516 func Xgzwrite(tls *libc.TLS, file GzFile, buf Voidpc, len uint32) int32 { /* gzwrite.c:246:13: */ 18517 var state Gz_statep 18518 18519 // get internal structure 18520 if file == (uintptr(0)) { 18521 return 0 18522 } 18523 state = file 18524 18525 // check that we're writing and that there's no error 18526 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) || ((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) { 18527 return 0 18528 } 18529 18530 // since an int is returned, make sure len fits in one, otherwise return 18531 // with an error (this avoids a flaw in the interface) 18532 if int32(len) < 0 { 18533 Xgz_error(tls, state, -3, ts+330 /* "requested length..." */) 18534 return 0 18535 } 18536 18537 // write len bytes from buf (the return value will fit in an int) 18538 return int32(gz_write(tls, state, buf, uint64(len))) 18539 } 18540 18541 // -- see zlib.h -- 18542 func Xgzfwrite(tls *libc.TLS, buf Voidpc, size Z_size_t, nitems Z_size_t, file GzFile) Z_size_t { /* gzwrite.c:274:18: */ 18543 var len Z_size_t 18544 var state Gz_statep 18545 18546 // get internal structure 18547 if file == (uintptr(0)) { 18548 return uint64(0) 18549 } 18550 state = file 18551 18552 // check that we're writing and that there's no error 18553 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) || ((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) { 18554 return uint64(0) 18555 } 18556 18557 // compute bytes to read -- error on overflow 18558 len = (nitems * size) 18559 if (size != 0) && ((len / size) != nitems) { 18560 Xgz_error(tls, state, -2, ts+227 /* "request does not..." */) 18561 return uint64(0) 18562 } 18563 18564 // write len bytes to buf, return the number of full items written 18565 if len != 0 { 18566 return (gz_write(tls, state, buf, len) / size) 18567 } 18568 return uint64(0) 18569 } 18570 18571 // -- see zlib.h -- 18572 func Xgzputc(tls *libc.TLS, file GzFile, c int32) int32 { /* gzwrite.c:304:13: */ 18573 bp := tls.Alloc(1) 18574 defer tls.Free(1) 18575 18576 var have uint32 18577 // var buf [1]uint8 at bp, 1 18578 18579 var state Gz_statep 18580 var strm Z_streamp 18581 18582 // get internal structure 18583 if file == (uintptr(0)) { 18584 return -1 18585 } 18586 state = file 18587 strm = (state + 120 /* &.strm */) 18588 18589 // check that we're writing and that there's no error 18590 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) || ((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) { 18591 return -1 18592 } 18593 18594 // check for seek request 18595 if (*Gz_state)(unsafe.Pointer(state)).Fseek != 0 { 18596 (*Gz_state)(unsafe.Pointer(state)).Fseek = 0 18597 if gz_zero(tls, state, (*Gz_state)(unsafe.Pointer(state)).Fskip) == -1 { 18598 return -1 18599 } 18600 } 18601 18602 // try writing to input buffer for speed (state->size == 0 if buffer not 18603 // initialized) 18604 if (*Gz_state)(unsafe.Pointer(state)).Fsize != 0 { 18605 if (*Z_stream)(unsafe.Pointer(strm)).Favail_in == UInt(0) { 18606 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = (*Gz_state)(unsafe.Pointer(state)).Fin 18607 } 18608 have = (uint32(((int64((*Z_stream)(unsafe.Pointer(strm)).Fnext_in + uintptr((*Z_stream)(unsafe.Pointer(strm)).Favail_in))) - int64((*Gz_state)(unsafe.Pointer(state)).Fin)) / 1)) 18609 if have < (*Gz_state)(unsafe.Pointer(state)).Fsize { 18610 *(*uint8)(unsafe.Pointer((*Gz_state)(unsafe.Pointer(state)).Fin + uintptr(have))) = uint8(c) 18611 (*Z_stream)(unsafe.Pointer(strm)).Favail_in++ 18612 (*Gz_state)(unsafe.Pointer(state)).Fx.Fpos++ 18613 return (c & 0xff) 18614 } 18615 } 18616 18617 // no room in buffer or not initialized, use gz_write() 18618 *(*uint8)(unsafe.Pointer(bp /* &buf[0] */)) = uint8(c) 18619 if gz_write(tls, state, bp /* &buf[0] */, uint64(1)) != uint64(1) { 18620 return -1 18621 } 18622 return (c & 0xff) 18623 } 18624 18625 // -- see zlib.h -- 18626 func Xgzputs(tls *libc.TLS, file GzFile, str uintptr) int32 { /* gzwrite.c:352:13: */ 18627 var ret int32 18628 var len Z_size_t 18629 var state Gz_statep 18630 18631 // get internal structure 18632 if file == (uintptr(0)) { 18633 return -1 18634 } 18635 state = file 18636 18637 // check that we're writing and that there's no error 18638 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) || ((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) { 18639 return -1 18640 } 18641 18642 // write string 18643 len = libc.Xstrlen(tls, str) 18644 ret = int32(gz_write(tls, state, str, len)) 18645 if (ret == 0) && (len != uint64(0)) { 18646 return -1 18647 } 18648 return ret 18649 } 18650 18651 // Copyright (C) 1989-2021 Free Software Foundation, Inc. 18652 // 18653 // This file is part of GCC. 18654 // 18655 // GCC is free software; you can redistribute it and/or modify 18656 // it under the terms of the GNU General Public License as published by 18657 // the Free Software Foundation; either version 3, or (at your option) 18658 // any later version. 18659 // 18660 // GCC is distributed in the hope that it will be useful, 18661 // but WITHOUT ANY WARRANTY; without even the implied warranty of 18662 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18663 // GNU General Public License for more details. 18664 // 18665 // Under Section 7 of GPL version 3, you are granted additional 18666 // permissions described in the GCC Runtime Library Exception, version 18667 // 3.1, as published by the Free Software Foundation. 18668 // 18669 // You should have received a copy of the GNU General Public License and 18670 // a copy of the GCC Runtime Library Exception along with this program; 18671 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 18672 // <http://www.gnu.org/licenses/>. 18673 18674 // ISO C Standard: 7.15 Variable arguments <stdarg.h> 18675 18676 // -- see zlib.h -- 18677 func Xgzvprintf(tls *libc.TLS, file GzFile, format uintptr, va Va_list) int32 { /* gzwrite.c:379:15: */ 18678 var len int32 18679 var left uint32 18680 var next uintptr 18681 var state Gz_statep 18682 var strm Z_streamp 18683 18684 // get internal structure 18685 if file == (uintptr(0)) { 18686 return -2 18687 } 18688 state = file 18689 strm = (state + 120 /* &.strm */) 18690 18691 // check that we're writing and that there's no error 18692 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) || ((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) { 18693 return -2 18694 } 18695 18696 // make sure we have some buffer space 18697 if ((*Gz_state)(unsafe.Pointer(state)).Fsize == uint32(0)) && (gz_init(tls, state) == -1) { 18698 return (*Gz_state)(unsafe.Pointer(state)).Ferr 18699 } 18700 18701 // check for seek request 18702 if (*Gz_state)(unsafe.Pointer(state)).Fseek != 0 { 18703 (*Gz_state)(unsafe.Pointer(state)).Fseek = 0 18704 if gz_zero(tls, state, (*Gz_state)(unsafe.Pointer(state)).Fskip) == -1 { 18705 return (*Gz_state)(unsafe.Pointer(state)).Ferr 18706 } 18707 } 18708 18709 // do the printf() into the input buffer, put length in len -- the input 18710 // buffer is double-sized just for this function, so there is guaranteed to 18711 // be state->size bytes available after the current contents 18712 if (*Z_stream)(unsafe.Pointer(strm)).Favail_in == UInt(0) { 18713 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = (*Gz_state)(unsafe.Pointer(state)).Fin 18714 } 18715 next = (((*Gz_state)(unsafe.Pointer(state)).Fin + uintptr(((int64((*Z_stream)(unsafe.Pointer(strm)).Fnext_in) - int64((*Gz_state)(unsafe.Pointer(state)).Fin)) / 1))) + uintptr((*Z_stream)(unsafe.Pointer(strm)).Favail_in)) 18716 *(*int8)(unsafe.Pointer(next + uintptr(((*Gz_state)(unsafe.Pointer(state)).Fsize - uint32(1))))) = int8(0) 18717 len = libc.X__builtin___vsnprintf_chk(tls, next, uint64((*Gz_state)(unsafe.Pointer(state)).Fsize), 0, libc.X__builtin_object_size(tls, next, func() int32 { 18718 if X_USE_FORTIFY_LEVEL > 1 { 18719 return 1 18720 } 18721 return 0 18722 }()), format, va) 18723 18724 // check that printf() results fit in buffer 18725 if ((len == 0) || (uint32(len) >= (*Gz_state)(unsafe.Pointer(state)).Fsize)) || (int32(*(*int8)(unsafe.Pointer(next + uintptr(((*Gz_state)(unsafe.Pointer(state)).Fsize - uint32(1)))))) != 0) { 18726 return 0 18727 } 18728 18729 // update buffer and position, compress first half if past that 18730 *(*UInt)(unsafe.Pointer(strm + 8 /* &.avail_in */)) += (uint32(len)) 18731 *(*Off_t)(unsafe.Pointer(state /* &.x */ + 16 /* &.pos */)) += (Off_t(len)) 18732 if (*Z_stream)(unsafe.Pointer(strm)).Favail_in >= (*Gz_state)(unsafe.Pointer(state)).Fsize { 18733 left = ((*Z_stream)(unsafe.Pointer(strm)).Favail_in - (*Gz_state)(unsafe.Pointer(state)).Fsize) 18734 (*Z_stream)(unsafe.Pointer(strm)).Favail_in = (*Gz_state)(unsafe.Pointer(state)).Fsize 18735 if gz_comp(tls, state, Z_NO_FLUSH) == -1 { 18736 return (*Gz_state)(unsafe.Pointer(state)).Ferr 18737 } 18738 libc.X__builtin___memcpy_chk(tls, (*Gz_state)(unsafe.Pointer(state)).Fin, ((*Gz_state)(unsafe.Pointer(state)).Fin + uintptr((*Gz_state)(unsafe.Pointer(state)).Fsize)), uint64(left), libc.X__builtin_object_size(tls, (*Gz_state)(unsafe.Pointer(state)).Fin, 0)) 18739 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = (*Gz_state)(unsafe.Pointer(state)).Fin 18740 (*Z_stream)(unsafe.Pointer(strm)).Favail_in = left 18741 } 18742 return len 18743 } 18744 18745 func Xgzprintf(tls *libc.TLS, file GzFile, format uintptr, va uintptr) int32 { /* gzwrite.c:451:15: */ 18746 var va1 Va_list 18747 _ = va1 18748 var ret int32 18749 18750 va1 = va 18751 ret = Xgzvprintf(tls, file, format, va1) 18752 _ = va1 18753 return ret 18754 } 18755 18756 // -- see zlib.h -- 18757 func Xgzflush(tls *libc.TLS, file GzFile, flush int32) int32 { /* gzwrite.c:553:13: */ 18758 var state Gz_statep 18759 18760 // get internal structure 18761 if file == (uintptr(0)) { 18762 return -2 18763 } 18764 state = file 18765 18766 // check that we're writing and that there's no error 18767 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) || ((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) { 18768 return -2 18769 } 18770 18771 // check flush parameter 18772 if (flush < 0) || (flush > Z_FINISH) { 18773 return -2 18774 } 18775 18776 // check for seek request 18777 if (*Gz_state)(unsafe.Pointer(state)).Fseek != 0 { 18778 (*Gz_state)(unsafe.Pointer(state)).Fseek = 0 18779 if gz_zero(tls, state, (*Gz_state)(unsafe.Pointer(state)).Fskip) == -1 { 18780 return (*Gz_state)(unsafe.Pointer(state)).Ferr 18781 } 18782 } 18783 18784 // compress remaining data with requested flush 18785 gz_comp(tls, state, flush) 18786 return (*Gz_state)(unsafe.Pointer(state)).Ferr 18787 } 18788 18789 // -- see zlib.h -- 18790 func Xgzsetparams(tls *libc.TLS, file GzFile, level int32, strategy int32) int32 { /* gzwrite.c:585:13: */ 18791 var state Gz_statep 18792 var strm Z_streamp 18793 18794 // get internal structure 18795 if file == (uintptr(0)) { 18796 return -2 18797 } 18798 state = file 18799 strm = (state + 120 /* &.strm */) 18800 18801 // check that we're writing and that there's no error 18802 if ((*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE) || ((*Gz_state)(unsafe.Pointer(state)).Ferr != Z_OK) { 18803 return -2 18804 } 18805 18806 // if no change is requested, then do nothing 18807 if (level == (*Gz_state)(unsafe.Pointer(state)).Flevel) && (strategy == (*Gz_state)(unsafe.Pointer(state)).Fstrategy) { 18808 return Z_OK 18809 } 18810 18811 // check for seek request 18812 if (*Gz_state)(unsafe.Pointer(state)).Fseek != 0 { 18813 (*Gz_state)(unsafe.Pointer(state)).Fseek = 0 18814 if gz_zero(tls, state, (*Gz_state)(unsafe.Pointer(state)).Fskip) == -1 { 18815 return (*Gz_state)(unsafe.Pointer(state)).Ferr 18816 } 18817 } 18818 18819 // change compression parameters for subsequent input 18820 if (*Gz_state)(unsafe.Pointer(state)).Fsize != 0 { 18821 // flush previous input with previous parameters before changing 18822 if ((*Z_stream)(unsafe.Pointer(strm)).Favail_in != 0) && (gz_comp(tls, state, Z_BLOCK) == -1) { 18823 return (*Gz_state)(unsafe.Pointer(state)).Ferr 18824 } 18825 XdeflateParams(tls, strm, level, strategy) 18826 } 18827 (*Gz_state)(unsafe.Pointer(state)).Flevel = level 18828 (*Gz_state)(unsafe.Pointer(state)).Fstrategy = strategy 18829 return Z_OK 18830 } 18831 18832 // -- see zlib.h -- 18833 func Xgzclose_w(tls *libc.TLS, file GzFile) int32 { /* gzwrite.c:627:13: */ 18834 var ret int32 = Z_OK 18835 var state Gz_statep 18836 18837 // get internal structure 18838 if file == (uintptr(0)) { 18839 return -2 18840 } 18841 state = file 18842 18843 // check that we're writing 18844 if (*Gz_state)(unsafe.Pointer(state)).Fmode != GZ_WRITE { 18845 return -2 18846 } 18847 18848 // check for seek request 18849 if (*Gz_state)(unsafe.Pointer(state)).Fseek != 0 { 18850 (*Gz_state)(unsafe.Pointer(state)).Fseek = 0 18851 if gz_zero(tls, state, (*Gz_state)(unsafe.Pointer(state)).Fskip) == -1 { 18852 ret = (*Gz_state)(unsafe.Pointer(state)).Ferr 18853 } 18854 } 18855 18856 // flush, free memory, and close file 18857 if gz_comp(tls, state, Z_FINISH) == -1 { 18858 ret = (*Gz_state)(unsafe.Pointer(state)).Ferr 18859 } 18860 if (*Gz_state)(unsafe.Pointer(state)).Fsize != 0 { 18861 if !((*Gz_state)(unsafe.Pointer(state)).Fdirect != 0) { 18862 XdeflateEnd(tls, (state + 120 /* &.strm */)) 18863 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fout) 18864 } 18865 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fin) 18866 } 18867 Xgz_error(tls, state, Z_OK, uintptr(0)) 18868 libc.Xfree(tls, (*Gz_state)(unsafe.Pointer(state)).Fpath) 18869 if libc.Xclose(tls, (*Gz_state)(unsafe.Pointer(state)).Ffd) == -1 { 18870 ret = -1 18871 } 18872 libc.Xfree(tls, state) 18873 return ret 18874 } 18875 18876 // Reverse the bytes in a 32-bit value 18877 18878 // inftrees.h -- header to use inftrees.c 18879 // Copyright (C) 1995-2005, 2010 Mark Adler 18880 // For conditions of distribution and use, see copyright notice in zlib.h 18881 18882 // WARNING: this file should *not* be used by applications. It is 18883 // part of the implementation of the compression library and is 18884 // subject to change. Applications should only use zlib.h. 18885 // 18886 18887 // Structure for decoding tables. Each entry provides either the 18888 // information needed to do the operation requested by the code that 18889 // indexed that table entry, or it provides a pointer to another 18890 // table that indexes more bits of the code. op indicates whether 18891 // the entry is a pointer to another table, a literal, a length or 18892 // distance, an end-of-block, or an invalid code. For a table 18893 // pointer, the low four bits of op is the number of index bits of 18894 // that table. For a length or distance, the low four bits of op 18895 // is the number of extra bits to get after the code. bits is 18896 // the number of bits in this code or part of the code to drop off 18897 // of the bit buffer. val is the actual byte to output in the case 18898 // of a literal, the base length or distance, or the offset from 18899 // the current table to the next table. Each entry is four bytes. 18900 type Code = struct { 18901 Fop uint8 18902 Fbits uint8 18903 Fval uint16 18904 } /* inftrees.h:28:3 */ 18905 18906 // op values as set by inflate_table(): 18907 // 00000000 - literal 18908 // 0000tttt - table link, tttt != 0 is the number of table index bits 18909 // 0001eeee - length or distance, eeee is the number of extra bits 18910 // 01100000 - end of block 18911 // 01000000 - invalid code 18912 // 18913 18914 // Maximum size of the dynamic table. The maximum number of code structures is 18915 // 1444, which is the sum of 852 for literal/length codes and 592 for distance 18916 // codes. These values were found by exhaustive searches using the program 18917 // examples/enough.c found in the zlib distribtution. The arguments to that 18918 // program are the number of symbols, the initial root table size, and the 18919 // maximum bit length of a code. "enough 286 9 15" for literal/length codes 18920 // returns returns 852, and "enough 30 6 15" for distance codes returns 592. 18921 // The initial root table size (9 or 6) is found in the fifth argument of the 18922 // inflate_table() calls in inflate.c and infback.c. If the root table size is 18923 // changed, then these maximum sizes would be need to be recalculated and 18924 // updated. 18925 18926 // Type of code to build for inflate_table() 18927 type Codetype = uint32 /* inftrees.h:58:3 */ 18928 // inflate.h -- internal inflate state definition 18929 // Copyright (C) 1995-2016 Mark Adler 18930 // For conditions of distribution and use, see copyright notice in zlib.h 18931 18932 // WARNING: this file should *not* be used by applications. It is 18933 // part of the implementation of the compression library and is 18934 // subject to change. Applications should only use zlib.h. 18935 // 18936 18937 // define NO_GZIP when compiling if you want to disable gzip header and 18938 // trailer decoding by inflate(). NO_GZIP would be used to avoid linking in 18939 // the crc code when it is not needed. For shared libraries, gzip decoding 18940 // should be left enabled. 18941 18942 // Possible inflate modes between inflate() calls 18943 type Inflate_mode = uint32 /* inflate.h:53:3 */ 18944 18945 // 18946 // State transitions between above modes - 18947 // 18948 // (most modes can go to BAD or MEM on error -- not shown for clarity) 18949 // 18950 // Process header: 18951 // HEAD -> (gzip) or (zlib) or (raw) 18952 // (gzip) -> FLAGS -> TIME -> OS -> EXLEN -> EXTRA -> NAME -> COMMENT -> 18953 // HCRC -> TYPE 18954 // (zlib) -> DICTID or TYPE 18955 // DICTID -> DICT -> TYPE 18956 // (raw) -> TYPEDO 18957 // Read deflate blocks: 18958 // TYPE -> TYPEDO -> STORED or TABLE or LEN_ or CHECK 18959 // STORED -> COPY_ -> COPY -> TYPE 18960 // TABLE -> LENLENS -> CODELENS -> LEN_ 18961 // LEN_ -> LEN 18962 // Read deflate codes in fixed or dynamic block: 18963 // LEN -> LENEXT or LIT or TYPE 18964 // LENEXT -> DIST -> DISTEXT -> MATCH -> LEN 18965 // LIT -> LEN 18966 // Process trailer: 18967 // CHECK -> LENGTH -> DONE 18968 // 18969 18970 // State maintained between inflate() calls -- approximately 7K bytes, not 18971 // including the allocated sliding window, which is up to 32K bytes. 18972 type Inflate_state = struct { 18973 Fstrm Z_streamp 18974 Fmode Inflate_mode 18975 Flast int32 18976 Fwrap int32 18977 Fhavedict int32 18978 Fflags int32 18979 Fdmax uint32 18980 Fcheck uint64 18981 Ftotal uint64 18982 Fhead Gz_headerp 18983 Fwbits uint32 18984 Fwsize uint32 18985 Fwhave uint32 18986 Fwnext uint32 18987 Fwindow uintptr 18988 Fhold uint64 18989 Fbits uint32 18990 Flength uint32 18991 Foffset uint32 18992 Fextra uint32 18993 Flencode uintptr 18994 Fdistcode uintptr 18995 Flenbits uint32 18996 Fdistbits uint32 18997 Fncode uint32 18998 Fnlen uint32 18999 Fndist uint32 19000 Fhave uint32 19001 Fnext uintptr 19002 Flens [320]uint16 19003 Fwork [288]uint16 19004 Fcodes [1444]Code 19005 Fsane int32 19006 Fback int32 19007 Fwas uint32 19008 F__ccgo_pad1 [4]byte 19009 } /* inflate.h:82:1 */ 19010 19011 // 19012 // strm provides memory allocation functions in zalloc and zfree, or 19013 // Z_NULL to use the library memory allocation functions. 19014 // 19015 // windowBits is in the range 8..15, and window is a user-supplied 19016 // window and output buffer that is 2**windowBits bytes. 19017 // 19018 func XinflateBackInit_(tls *libc.TLS, strm Z_streamp, windowBits int32, window uintptr, version uintptr, stream_size int32) int32 { /* infback.c:28:13: */ 19019 var state uintptr 19020 19021 if ((version == uintptr(Z_NULL)) || (int32(*(*int8)(unsafe.Pointer(version))) != int32(*(*int8)(unsafe.Pointer(ts /* "1.2.11" */))))) || (stream_size != (int32(unsafe.Sizeof(Z_stream{})))) { 19022 return -6 19023 } 19024 if (((strm == uintptr(Z_NULL)) || (window == uintptr(Z_NULL))) || (windowBits < 8)) || (windowBits > 15) { 19025 return -2 19026 } 19027 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(Z_NULL) // in case we return an error 19028 if (*Z_stream)(unsafe.Pointer(strm)).Fzalloc == uintptr(0) { 19029 (*Z_stream)(unsafe.Pointer(strm)).Fzalloc = *(*uintptr)(unsafe.Pointer(&struct { 19030 f func(*libc.TLS, Voidpf, uint32, uint32) Voidpf 19031 }{Xzcalloc})) 19032 (*Z_stream)(unsafe.Pointer(strm)).Fopaque = uintptr(0) 19033 } 19034 if (*Z_stream)(unsafe.Pointer(strm)).Fzfree == uintptr(0) { 19035 (*Z_stream)(unsafe.Pointer(strm)).Fzfree = *(*uintptr)(unsafe.Pointer(&struct { 19036 f func(*libc.TLS, Voidpf, Voidpf) 19037 }{Xzcfree})) 19038 } 19039 state = (*struct { 19040 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 19041 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, uint32(1), uint32(unsafe.Sizeof(Inflate_state{}))) 19042 if state == uintptr(Z_NULL) { 19043 return -4 19044 } 19045 19046 (*Z_stream)(unsafe.Pointer(strm)).Fstate = state 19047 (*Inflate_state)(unsafe.Pointer(state)).Fdmax = 32768 19048 (*Inflate_state)(unsafe.Pointer(state)).Fwbits = UInt(windowBits) 19049 (*Inflate_state)(unsafe.Pointer(state)).Fwsize = (uint32(1) << windowBits) 19050 (*Inflate_state)(unsafe.Pointer(state)).Fwindow = window 19051 (*Inflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0) 19052 (*Inflate_state)(unsafe.Pointer(state)).Fwhave = uint32(0) 19053 return Z_OK 19054 } 19055 19056 // 19057 // Return state with length and distance decoding tables and index sizes set to 19058 // fixed code decoding. Normally this returns fixed tables from inffixed.h. 19059 // If BUILDFIXED is defined, then instead this routine builds the tables the 19060 // first time it's called, and returns those tables the first time and 19061 // thereafter. This reduces the size of the code by about 2K bytes, in 19062 // exchange for a little execution time. However, BUILDFIXED should not be 19063 // used for threaded applications, since the rewriting of the tables and virgin 19064 // may not be thread-safe. 19065 // 19066 func fixedtables(tls *libc.TLS, state uintptr) { /* infback.c:82:12: */ 19067 (*Inflate_state)(unsafe.Pointer(state)).Flencode = uintptr(unsafe.Pointer(&lenfix)) 19068 (*Inflate_state)(unsafe.Pointer(state)).Flenbits = uint32(9) 19069 (*Inflate_state)(unsafe.Pointer(state)).Fdistcode = uintptr(unsafe.Pointer(&distfix)) 19070 (*Inflate_state)(unsafe.Pointer(state)).Fdistbits = uint32(5) 19071 } 19072 19073 var lenfix = [512]Code{ 19074 {Fop: uint8(96), Fbits: uint8(7)}, {Fbits: uint8(8), Fval: uint16(80)}, {Fbits: uint8(8), Fval: uint16(16)}, {Fop: uint8(20), Fbits: uint8(8), Fval: uint16(115)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(31)}, {Fbits: uint8(8), Fval: uint16(112)}, {Fbits: uint8(8), Fval: uint16(48)}, 19075 {Fbits: uint8(9), Fval: uint16(192)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(10)}, {Fbits: uint8(8), Fval: uint16(96)}, {Fbits: uint8(8), Fval: uint16(32)}, {Fbits: uint8(9), Fval: uint16(160)}, {Fbits: uint8(8)}, {Fbits: uint8(8), Fval: uint16(128)}, 19076 {Fbits: uint8(8), Fval: uint16(64)}, {Fbits: uint8(9), Fval: uint16(224)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(6)}, {Fbits: uint8(8), Fval: uint16(88)}, {Fbits: uint8(8), Fval: uint16(24)}, {Fbits: uint8(9), Fval: uint16(144)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(59)}, 19077 {Fbits: uint8(8), Fval: uint16(120)}, {Fbits: uint8(8), Fval: uint16(56)}, {Fbits: uint8(9), Fval: uint16(208)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(17)}, {Fbits: uint8(8), Fval: uint16(104)}, {Fbits: uint8(8), Fval: uint16(40)}, {Fbits: uint8(9), Fval: uint16(176)}, 19078 {Fbits: uint8(8), Fval: uint16(8)}, {Fbits: uint8(8), Fval: uint16(136)}, {Fbits: uint8(8), Fval: uint16(72)}, {Fbits: uint8(9), Fval: uint16(240)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(4)}, {Fbits: uint8(8), Fval: uint16(84)}, {Fbits: uint8(8), Fval: uint16(20)}, 19079 {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(227)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(43)}, {Fbits: uint8(8), Fval: uint16(116)}, {Fbits: uint8(8), Fval: uint16(52)}, {Fbits: uint8(9), Fval: uint16(200)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(13)}, {Fbits: uint8(8), Fval: uint16(100)}, 19080 {Fbits: uint8(8), Fval: uint16(36)}, {Fbits: uint8(9), Fval: uint16(168)}, {Fbits: uint8(8), Fval: uint16(4)}, {Fbits: uint8(8), Fval: uint16(132)}, {Fbits: uint8(8), Fval: uint16(68)}, {Fbits: uint8(9), Fval: uint16(232)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(8)}, 19081 {Fbits: uint8(8), Fval: uint16(92)}, {Fbits: uint8(8), Fval: uint16(28)}, {Fbits: uint8(9), Fval: uint16(152)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(83)}, {Fbits: uint8(8), Fval: uint16(124)}, {Fbits: uint8(8), Fval: uint16(60)}, {Fbits: uint8(9), Fval: uint16(216)}, 19082 {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(23)}, {Fbits: uint8(8), Fval: uint16(108)}, {Fbits: uint8(8), Fval: uint16(44)}, {Fbits: uint8(9), Fval: uint16(184)}, {Fbits: uint8(8), Fval: uint16(12)}, {Fbits: uint8(8), Fval: uint16(140)}, {Fbits: uint8(8), Fval: uint16(76)}, 19083 {Fbits: uint8(9), Fval: uint16(248)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(3)}, {Fbits: uint8(8), Fval: uint16(82)}, {Fbits: uint8(8), Fval: uint16(18)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(163)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(35)}, {Fbits: uint8(8), Fval: uint16(114)}, 19084 {Fbits: uint8(8), Fval: uint16(50)}, {Fbits: uint8(9), Fval: uint16(196)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(11)}, {Fbits: uint8(8), Fval: uint16(98)}, {Fbits: uint8(8), Fval: uint16(34)}, {Fbits: uint8(9), Fval: uint16(164)}, {Fbits: uint8(8), Fval: uint16(2)}, 19085 {Fbits: uint8(8), Fval: uint16(130)}, {Fbits: uint8(8), Fval: uint16(66)}, {Fbits: uint8(9), Fval: uint16(228)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(7)}, {Fbits: uint8(8), Fval: uint16(90)}, {Fbits: uint8(8), Fval: uint16(26)}, {Fbits: uint8(9), Fval: uint16(148)}, 19086 {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(67)}, {Fbits: uint8(8), Fval: uint16(122)}, {Fbits: uint8(8), Fval: uint16(58)}, {Fbits: uint8(9), Fval: uint16(212)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(19)}, {Fbits: uint8(8), Fval: uint16(106)}, {Fbits: uint8(8), Fval: uint16(42)}, 19087 {Fbits: uint8(9), Fval: uint16(180)}, {Fbits: uint8(8), Fval: uint16(10)}, {Fbits: uint8(8), Fval: uint16(138)}, {Fbits: uint8(8), Fval: uint16(74)}, {Fbits: uint8(9), Fval: uint16(244)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(5)}, {Fbits: uint8(8), Fval: uint16(86)}, 19088 {Fbits: uint8(8), Fval: uint16(22)}, {Fop: uint8(64), Fbits: uint8(8)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(51)}, {Fbits: uint8(8), Fval: uint16(118)}, {Fbits: uint8(8), Fval: uint16(54)}, {Fbits: uint8(9), Fval: uint16(204)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(15)}, 19089 {Fbits: uint8(8), Fval: uint16(102)}, {Fbits: uint8(8), Fval: uint16(38)}, {Fbits: uint8(9), Fval: uint16(172)}, {Fbits: uint8(8), Fval: uint16(6)}, {Fbits: uint8(8), Fval: uint16(134)}, {Fbits: uint8(8), Fval: uint16(70)}, {Fbits: uint8(9), Fval: uint16(236)}, 19090 {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(9)}, {Fbits: uint8(8), Fval: uint16(94)}, {Fbits: uint8(8), Fval: uint16(30)}, {Fbits: uint8(9), Fval: uint16(156)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(99)}, {Fbits: uint8(8), Fval: uint16(126)}, {Fbits: uint8(8), Fval: uint16(62)}, 19091 {Fbits: uint8(9), Fval: uint16(220)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(27)}, {Fbits: uint8(8), Fval: uint16(110)}, {Fbits: uint8(8), Fval: uint16(46)}, {Fbits: uint8(9), Fval: uint16(188)}, {Fbits: uint8(8), Fval: uint16(14)}, {Fbits: uint8(8), Fval: uint16(142)}, 19092 {Fbits: uint8(8), Fval: uint16(78)}, {Fbits: uint8(9), Fval: uint16(252)}, {Fop: uint8(96), Fbits: uint8(7)}, {Fbits: uint8(8), Fval: uint16(81)}, {Fbits: uint8(8), Fval: uint16(17)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(131)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(31)}, 19093 {Fbits: uint8(8), Fval: uint16(113)}, {Fbits: uint8(8), Fval: uint16(49)}, {Fbits: uint8(9), Fval: uint16(194)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(10)}, {Fbits: uint8(8), Fval: uint16(97)}, {Fbits: uint8(8), Fval: uint16(33)}, {Fbits: uint8(9), Fval: uint16(162)}, 19094 {Fbits: uint8(8), Fval: uint16(1)}, {Fbits: uint8(8), Fval: uint16(129)}, {Fbits: uint8(8), Fval: uint16(65)}, {Fbits: uint8(9), Fval: uint16(226)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(6)}, {Fbits: uint8(8), Fval: uint16(89)}, {Fbits: uint8(8), Fval: uint16(25)}, 19095 {Fbits: uint8(9), Fval: uint16(146)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(59)}, {Fbits: uint8(8), Fval: uint16(121)}, {Fbits: uint8(8), Fval: uint16(57)}, {Fbits: uint8(9), Fval: uint16(210)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(17)}, {Fbits: uint8(8), Fval: uint16(105)}, 19096 {Fbits: uint8(8), Fval: uint16(41)}, {Fbits: uint8(9), Fval: uint16(178)}, {Fbits: uint8(8), Fval: uint16(9)}, {Fbits: uint8(8), Fval: uint16(137)}, {Fbits: uint8(8), Fval: uint16(73)}, {Fbits: uint8(9), Fval: uint16(242)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(4)}, 19097 {Fbits: uint8(8), Fval: uint16(85)}, {Fbits: uint8(8), Fval: uint16(21)}, {Fop: uint8(16), Fbits: uint8(8), Fval: uint16(258)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(43)}, {Fbits: uint8(8), Fval: uint16(117)}, {Fbits: uint8(8), Fval: uint16(53)}, {Fbits: uint8(9), Fval: uint16(202)}, 19098 {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(13)}, {Fbits: uint8(8), Fval: uint16(101)}, {Fbits: uint8(8), Fval: uint16(37)}, {Fbits: uint8(9), Fval: uint16(170)}, {Fbits: uint8(8), Fval: uint16(5)}, {Fbits: uint8(8), Fval: uint16(133)}, {Fbits: uint8(8), Fval: uint16(69)}, 19099 {Fbits: uint8(9), Fval: uint16(234)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(8)}, {Fbits: uint8(8), Fval: uint16(93)}, {Fbits: uint8(8), Fval: uint16(29)}, {Fbits: uint8(9), Fval: uint16(154)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(83)}, {Fbits: uint8(8), Fval: uint16(125)}, 19100 {Fbits: uint8(8), Fval: uint16(61)}, {Fbits: uint8(9), Fval: uint16(218)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(23)}, {Fbits: uint8(8), Fval: uint16(109)}, {Fbits: uint8(8), Fval: uint16(45)}, {Fbits: uint8(9), Fval: uint16(186)}, {Fbits: uint8(8), Fval: uint16(13)}, 19101 {Fbits: uint8(8), Fval: uint16(141)}, {Fbits: uint8(8), Fval: uint16(77)}, {Fbits: uint8(9), Fval: uint16(250)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(3)}, {Fbits: uint8(8), Fval: uint16(83)}, {Fbits: uint8(8), Fval: uint16(19)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(195)}, 19102 {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(35)}, {Fbits: uint8(8), Fval: uint16(115)}, {Fbits: uint8(8), Fval: uint16(51)}, {Fbits: uint8(9), Fval: uint16(198)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(11)}, {Fbits: uint8(8), Fval: uint16(99)}, {Fbits: uint8(8), Fval: uint16(35)}, 19103 {Fbits: uint8(9), Fval: uint16(166)}, {Fbits: uint8(8), Fval: uint16(3)}, {Fbits: uint8(8), Fval: uint16(131)}, {Fbits: uint8(8), Fval: uint16(67)}, {Fbits: uint8(9), Fval: uint16(230)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(7)}, {Fbits: uint8(8), Fval: uint16(91)}, 19104 {Fbits: uint8(8), Fval: uint16(27)}, {Fbits: uint8(9), Fval: uint16(150)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(67)}, {Fbits: uint8(8), Fval: uint16(123)}, {Fbits: uint8(8), Fval: uint16(59)}, {Fbits: uint8(9), Fval: uint16(214)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(19)}, 19105 {Fbits: uint8(8), Fval: uint16(107)}, {Fbits: uint8(8), Fval: uint16(43)}, {Fbits: uint8(9), Fval: uint16(182)}, {Fbits: uint8(8), Fval: uint16(11)}, {Fbits: uint8(8), Fval: uint16(139)}, {Fbits: uint8(8), Fval: uint16(75)}, {Fbits: uint8(9), Fval: uint16(246)}, 19106 {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(5)}, {Fbits: uint8(8), Fval: uint16(87)}, {Fbits: uint8(8), Fval: uint16(23)}, {Fop: uint8(64), Fbits: uint8(8)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(51)}, {Fbits: uint8(8), Fval: uint16(119)}, {Fbits: uint8(8), Fval: uint16(55)}, 19107 {Fbits: uint8(9), Fval: uint16(206)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(15)}, {Fbits: uint8(8), Fval: uint16(103)}, {Fbits: uint8(8), Fval: uint16(39)}, {Fbits: uint8(9), Fval: uint16(174)}, {Fbits: uint8(8), Fval: uint16(7)}, {Fbits: uint8(8), Fval: uint16(135)}, 19108 {Fbits: uint8(8), Fval: uint16(71)}, {Fbits: uint8(9), Fval: uint16(238)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(9)}, {Fbits: uint8(8), Fval: uint16(95)}, {Fbits: uint8(8), Fval: uint16(31)}, {Fbits: uint8(9), Fval: uint16(158)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(99)}, 19109 {Fbits: uint8(8), Fval: uint16(127)}, {Fbits: uint8(8), Fval: uint16(63)}, {Fbits: uint8(9), Fval: uint16(222)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(27)}, {Fbits: uint8(8), Fval: uint16(111)}, {Fbits: uint8(8), Fval: uint16(47)}, {Fbits: uint8(9), Fval: uint16(190)}, 19110 {Fbits: uint8(8), Fval: uint16(15)}, {Fbits: uint8(8), Fval: uint16(143)}, {Fbits: uint8(8), Fval: uint16(79)}, {Fbits: uint8(9), Fval: uint16(254)}, {Fop: uint8(96), Fbits: uint8(7)}, {Fbits: uint8(8), Fval: uint16(80)}, {Fbits: uint8(8), Fval: uint16(16)}, 19111 {Fop: uint8(20), Fbits: uint8(8), Fval: uint16(115)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(31)}, {Fbits: uint8(8), Fval: uint16(112)}, {Fbits: uint8(8), Fval: uint16(48)}, {Fbits: uint8(9), Fval: uint16(193)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(10)}, {Fbits: uint8(8), Fval: uint16(96)}, 19112 {Fbits: uint8(8), Fval: uint16(32)}, {Fbits: uint8(9), Fval: uint16(161)}, {Fbits: uint8(8)}, {Fbits: uint8(8), Fval: uint16(128)}, {Fbits: uint8(8), Fval: uint16(64)}, {Fbits: uint8(9), Fval: uint16(225)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(6)}, 19113 {Fbits: uint8(8), Fval: uint16(88)}, {Fbits: uint8(8), Fval: uint16(24)}, {Fbits: uint8(9), Fval: uint16(145)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(59)}, {Fbits: uint8(8), Fval: uint16(120)}, {Fbits: uint8(8), Fval: uint16(56)}, {Fbits: uint8(9), Fval: uint16(209)}, 19114 {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(17)}, {Fbits: uint8(8), Fval: uint16(104)}, {Fbits: uint8(8), Fval: uint16(40)}, {Fbits: uint8(9), Fval: uint16(177)}, {Fbits: uint8(8), Fval: uint16(8)}, {Fbits: uint8(8), Fval: uint16(136)}, {Fbits: uint8(8), Fval: uint16(72)}, 19115 {Fbits: uint8(9), Fval: uint16(241)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(4)}, {Fbits: uint8(8), Fval: uint16(84)}, {Fbits: uint8(8), Fval: uint16(20)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(227)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(43)}, {Fbits: uint8(8), Fval: uint16(116)}, 19116 {Fbits: uint8(8), Fval: uint16(52)}, {Fbits: uint8(9), Fval: uint16(201)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(13)}, {Fbits: uint8(8), Fval: uint16(100)}, {Fbits: uint8(8), Fval: uint16(36)}, {Fbits: uint8(9), Fval: uint16(169)}, {Fbits: uint8(8), Fval: uint16(4)}, 19117 {Fbits: uint8(8), Fval: uint16(132)}, {Fbits: uint8(8), Fval: uint16(68)}, {Fbits: uint8(9), Fval: uint16(233)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(8)}, {Fbits: uint8(8), Fval: uint16(92)}, {Fbits: uint8(8), Fval: uint16(28)}, {Fbits: uint8(9), Fval: uint16(153)}, 19118 {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(83)}, {Fbits: uint8(8), Fval: uint16(124)}, {Fbits: uint8(8), Fval: uint16(60)}, {Fbits: uint8(9), Fval: uint16(217)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(23)}, {Fbits: uint8(8), Fval: uint16(108)}, {Fbits: uint8(8), Fval: uint16(44)}, 19119 {Fbits: uint8(9), Fval: uint16(185)}, {Fbits: uint8(8), Fval: uint16(12)}, {Fbits: uint8(8), Fval: uint16(140)}, {Fbits: uint8(8), Fval: uint16(76)}, {Fbits: uint8(9), Fval: uint16(249)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(3)}, {Fbits: uint8(8), Fval: uint16(82)}, 19120 {Fbits: uint8(8), Fval: uint16(18)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(163)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(35)}, {Fbits: uint8(8), Fval: uint16(114)}, {Fbits: uint8(8), Fval: uint16(50)}, {Fbits: uint8(9), Fval: uint16(197)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(11)}, 19121 {Fbits: uint8(8), Fval: uint16(98)}, {Fbits: uint8(8), Fval: uint16(34)}, {Fbits: uint8(9), Fval: uint16(165)}, {Fbits: uint8(8), Fval: uint16(2)}, {Fbits: uint8(8), Fval: uint16(130)}, {Fbits: uint8(8), Fval: uint16(66)}, {Fbits: uint8(9), Fval: uint16(229)}, 19122 {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(7)}, {Fbits: uint8(8), Fval: uint16(90)}, {Fbits: uint8(8), Fval: uint16(26)}, {Fbits: uint8(9), Fval: uint16(149)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(67)}, {Fbits: uint8(8), Fval: uint16(122)}, {Fbits: uint8(8), Fval: uint16(58)}, 19123 {Fbits: uint8(9), Fval: uint16(213)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(19)}, {Fbits: uint8(8), Fval: uint16(106)}, {Fbits: uint8(8), Fval: uint16(42)}, {Fbits: uint8(9), Fval: uint16(181)}, {Fbits: uint8(8), Fval: uint16(10)}, {Fbits: uint8(8), Fval: uint16(138)}, 19124 {Fbits: uint8(8), Fval: uint16(74)}, {Fbits: uint8(9), Fval: uint16(245)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(5)}, {Fbits: uint8(8), Fval: uint16(86)}, {Fbits: uint8(8), Fval: uint16(22)}, {Fop: uint8(64), Fbits: uint8(8)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(51)}, 19125 {Fbits: uint8(8), Fval: uint16(118)}, {Fbits: uint8(8), Fval: uint16(54)}, {Fbits: uint8(9), Fval: uint16(205)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(15)}, {Fbits: uint8(8), Fval: uint16(102)}, {Fbits: uint8(8), Fval: uint16(38)}, {Fbits: uint8(9), Fval: uint16(173)}, 19126 {Fbits: uint8(8), Fval: uint16(6)}, {Fbits: uint8(8), Fval: uint16(134)}, {Fbits: uint8(8), Fval: uint16(70)}, {Fbits: uint8(9), Fval: uint16(237)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(9)}, {Fbits: uint8(8), Fval: uint16(94)}, {Fbits: uint8(8), Fval: uint16(30)}, 19127 {Fbits: uint8(9), Fval: uint16(157)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(99)}, {Fbits: uint8(8), Fval: uint16(126)}, {Fbits: uint8(8), Fval: uint16(62)}, {Fbits: uint8(9), Fval: uint16(221)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(27)}, {Fbits: uint8(8), Fval: uint16(110)}, 19128 {Fbits: uint8(8), Fval: uint16(46)}, {Fbits: uint8(9), Fval: uint16(189)}, {Fbits: uint8(8), Fval: uint16(14)}, {Fbits: uint8(8), Fval: uint16(142)}, {Fbits: uint8(8), Fval: uint16(78)}, {Fbits: uint8(9), Fval: uint16(253)}, {Fop: uint8(96), Fbits: uint8(7)}, 19129 {Fbits: uint8(8), Fval: uint16(81)}, {Fbits: uint8(8), Fval: uint16(17)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(131)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(31)}, {Fbits: uint8(8), Fval: uint16(113)}, {Fbits: uint8(8), Fval: uint16(49)}, {Fbits: uint8(9), Fval: uint16(195)}, 19130 {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(10)}, {Fbits: uint8(8), Fval: uint16(97)}, {Fbits: uint8(8), Fval: uint16(33)}, {Fbits: uint8(9), Fval: uint16(163)}, {Fbits: uint8(8), Fval: uint16(1)}, {Fbits: uint8(8), Fval: uint16(129)}, {Fbits: uint8(8), Fval: uint16(65)}, 19131 {Fbits: uint8(9), Fval: uint16(227)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(6)}, {Fbits: uint8(8), Fval: uint16(89)}, {Fbits: uint8(8), Fval: uint16(25)}, {Fbits: uint8(9), Fval: uint16(147)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(59)}, {Fbits: uint8(8), Fval: uint16(121)}, 19132 {Fbits: uint8(8), Fval: uint16(57)}, {Fbits: uint8(9), Fval: uint16(211)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(17)}, {Fbits: uint8(8), Fval: uint16(105)}, {Fbits: uint8(8), Fval: uint16(41)}, {Fbits: uint8(9), Fval: uint16(179)}, {Fbits: uint8(8), Fval: uint16(9)}, 19133 {Fbits: uint8(8), Fval: uint16(137)}, {Fbits: uint8(8), Fval: uint16(73)}, {Fbits: uint8(9), Fval: uint16(243)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(4)}, {Fbits: uint8(8), Fval: uint16(85)}, {Fbits: uint8(8), Fval: uint16(21)}, {Fop: uint8(16), Fbits: uint8(8), Fval: uint16(258)}, 19134 {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(43)}, {Fbits: uint8(8), Fval: uint16(117)}, {Fbits: uint8(8), Fval: uint16(53)}, {Fbits: uint8(9), Fval: uint16(203)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(13)}, {Fbits: uint8(8), Fval: uint16(101)}, {Fbits: uint8(8), Fval: uint16(37)}, 19135 {Fbits: uint8(9), Fval: uint16(171)}, {Fbits: uint8(8), Fval: uint16(5)}, {Fbits: uint8(8), Fval: uint16(133)}, {Fbits: uint8(8), Fval: uint16(69)}, {Fbits: uint8(9), Fval: uint16(235)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(8)}, {Fbits: uint8(8), Fval: uint16(93)}, 19136 {Fbits: uint8(8), Fval: uint16(29)}, {Fbits: uint8(9), Fval: uint16(155)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(83)}, {Fbits: uint8(8), Fval: uint16(125)}, {Fbits: uint8(8), Fval: uint16(61)}, {Fbits: uint8(9), Fval: uint16(219)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(23)}, 19137 {Fbits: uint8(8), Fval: uint16(109)}, {Fbits: uint8(8), Fval: uint16(45)}, {Fbits: uint8(9), Fval: uint16(187)}, {Fbits: uint8(8), Fval: uint16(13)}, {Fbits: uint8(8), Fval: uint16(141)}, {Fbits: uint8(8), Fval: uint16(77)}, {Fbits: uint8(9), Fval: uint16(251)}, 19138 {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(3)}, {Fbits: uint8(8), Fval: uint16(83)}, {Fbits: uint8(8), Fval: uint16(19)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(195)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(35)}, {Fbits: uint8(8), Fval: uint16(115)}, {Fbits: uint8(8), Fval: uint16(51)}, 19139 {Fbits: uint8(9), Fval: uint16(199)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(11)}, {Fbits: uint8(8), Fval: uint16(99)}, {Fbits: uint8(8), Fval: uint16(35)}, {Fbits: uint8(9), Fval: uint16(167)}, {Fbits: uint8(8), Fval: uint16(3)}, {Fbits: uint8(8), Fval: uint16(131)}, 19140 {Fbits: uint8(8), Fval: uint16(67)}, {Fbits: uint8(9), Fval: uint16(231)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(7)}, {Fbits: uint8(8), Fval: uint16(91)}, {Fbits: uint8(8), Fval: uint16(27)}, {Fbits: uint8(9), Fval: uint16(151)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(67)}, 19141 {Fbits: uint8(8), Fval: uint16(123)}, {Fbits: uint8(8), Fval: uint16(59)}, {Fbits: uint8(9), Fval: uint16(215)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(19)}, {Fbits: uint8(8), Fval: uint16(107)}, {Fbits: uint8(8), Fval: uint16(43)}, {Fbits: uint8(9), Fval: uint16(183)}, 19142 {Fbits: uint8(8), Fval: uint16(11)}, {Fbits: uint8(8), Fval: uint16(139)}, {Fbits: uint8(8), Fval: uint16(75)}, {Fbits: uint8(9), Fval: uint16(247)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(5)}, {Fbits: uint8(8), Fval: uint16(87)}, {Fbits: uint8(8), Fval: uint16(23)}, 19143 {Fop: uint8(64), Fbits: uint8(8)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(51)}, {Fbits: uint8(8), Fval: uint16(119)}, {Fbits: uint8(8), Fval: uint16(55)}, {Fbits: uint8(9), Fval: uint16(207)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(15)}, {Fbits: uint8(8), Fval: uint16(103)}, 19144 {Fbits: uint8(8), Fval: uint16(39)}, {Fbits: uint8(9), Fval: uint16(175)}, {Fbits: uint8(8), Fval: uint16(7)}, {Fbits: uint8(8), Fval: uint16(135)}, {Fbits: uint8(8), Fval: uint16(71)}, {Fbits: uint8(9), Fval: uint16(239)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(9)}, 19145 {Fbits: uint8(8), Fval: uint16(95)}, {Fbits: uint8(8), Fval: uint16(31)}, {Fbits: uint8(9), Fval: uint16(159)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(99)}, {Fbits: uint8(8), Fval: uint16(127)}, {Fbits: uint8(8), Fval: uint16(63)}, {Fbits: uint8(9), Fval: uint16(223)}, 19146 {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(27)}, {Fbits: uint8(8), Fval: uint16(111)}, {Fbits: uint8(8), Fval: uint16(47)}, {Fbits: uint8(9), Fval: uint16(191)}, {Fbits: uint8(8), Fval: uint16(15)}, {Fbits: uint8(8), Fval: uint16(143)}, {Fbits: uint8(8), Fval: uint16(79)}, 19147 {Fbits: uint8(9), Fval: uint16(255)}, 19148 } /* inffixed.h:10:23 */ 19149 var distfix = [32]Code{ 19150 {Fop: uint8(16), Fbits: uint8(5), Fval: uint16(1)}, {Fop: uint8(23), Fbits: uint8(5), Fval: uint16(257)}, {Fop: uint8(19), Fbits: uint8(5), Fval: uint16(17)}, {Fop: uint8(27), Fbits: uint8(5), Fval: uint16(4097)}, {Fop: uint8(17), Fbits: uint8(5), Fval: uint16(5)}, {Fop: uint8(25), Fbits: uint8(5), Fval: uint16(1025)}, 19151 {Fop: uint8(21), Fbits: uint8(5), Fval: uint16(65)}, {Fop: uint8(29), Fbits: uint8(5), Fval: uint16(16385)}, {Fop: uint8(16), Fbits: uint8(5), Fval: uint16(3)}, {Fop: uint8(24), Fbits: uint8(5), Fval: uint16(513)}, {Fop: uint8(20), Fbits: uint8(5), Fval: uint16(33)}, {Fop: uint8(28), Fbits: uint8(5), Fval: uint16(8193)}, 19152 {Fop: uint8(18), Fbits: uint8(5), Fval: uint16(9)}, {Fop: uint8(26), Fbits: uint8(5), Fval: uint16(2049)}, {Fop: uint8(22), Fbits: uint8(5), Fval: uint16(129)}, {Fop: uint8(64), Fbits: uint8(5)}, {Fop: uint8(16), Fbits: uint8(5), Fval: uint16(2)}, {Fop: uint8(23), Fbits: uint8(5), Fval: uint16(385)}, 19153 {Fop: uint8(19), Fbits: uint8(5), Fval: uint16(25)}, {Fop: uint8(27), Fbits: uint8(5), Fval: uint16(6145)}, {Fop: uint8(17), Fbits: uint8(5), Fval: uint16(7)}, {Fop: uint8(25), Fbits: uint8(5), Fval: uint16(1537)}, {Fop: uint8(21), Fbits: uint8(5), Fval: uint16(97)}, {Fop: uint8(29), Fbits: uint8(5), Fval: uint16(24577)}, 19154 {Fop: uint8(16), Fbits: uint8(5), Fval: uint16(4)}, {Fop: uint8(24), Fbits: uint8(5), Fval: uint16(769)}, {Fop: uint8(20), Fbits: uint8(5), Fval: uint16(49)}, {Fop: uint8(28), Fbits: uint8(5), Fval: uint16(12289)}, {Fop: uint8(18), Fbits: uint8(5), Fval: uint16(13)}, {Fop: uint8(26), Fbits: uint8(5), Fval: uint16(3073)}, 19155 {Fop: uint8(22), Fbits: uint8(5), Fval: uint16(193)}, {Fop: uint8(64), Fbits: uint8(5)}, 19156 } /* inffixed.h:87:23 */ 19157 19158 // Macros for inflateBack(): 19159 19160 // Load returned state from inflate_fast() 19161 19162 // Set state from registers for inflate_fast() 19163 19164 // Clear the input bit accumulator 19165 19166 // Assure that some input is available. If input is requested, but denied, 19167 // then return a Z_BUF_ERROR from inflateBack(). 19168 19169 // Get a byte of input into the bit accumulator, or return from inflateBack() 19170 // with an error if there is no input available. 19171 19172 // Assure that there are at least n bits in the bit accumulator. If there is 19173 // not enough available input to do that, then return from inflateBack() with 19174 // an error. 19175 19176 // Return the low n bits of the bit accumulator (n < 16) 19177 19178 // Remove n bits from the bit accumulator 19179 19180 // Remove zero to seven bits as needed to go to a byte boundary 19181 19182 // Assure that some output space is available, by writing out the window 19183 // if it's full. If the write fails, return from inflateBack() with a 19184 // Z_BUF_ERROR. 19185 19186 // 19187 // strm provides the memory allocation functions and window buffer on input, 19188 // and provides information on the unused input on return. For Z_DATA_ERROR 19189 // returns, strm will also provide an error message. 19190 // 19191 // in() and out() are the call-back input and output functions. When 19192 // inflateBack() needs more input, it calls in(). When inflateBack() has 19193 // filled the window with output, or when it completes with data in the 19194 // window, it calls out() to write out the data. The application must not 19195 // change the provided input until in() is called again or inflateBack() 19196 // returns. The application must not change the window/output buffer until 19197 // inflateBack() returns. 19198 // 19199 // in() and out() are called with a descriptor parameter provided in the 19200 // inflateBack() call. This parameter can be a structure that provides the 19201 // information required to do the read or write, as well as accumulated 19202 // information on the input and output such as totals and check values. 19203 // 19204 // in() should return zero on failure. out() should return non-zero on 19205 // failure. If either in() or out() fails, than inflateBack() returns a 19206 // Z_BUF_ERROR. strm->next_in can be checked for Z_NULL to see whether it 19207 // was in() or out() that caused in the error. Otherwise, inflateBack() 19208 // returns Z_STREAM_END on success, Z_DATA_ERROR for an deflate format 19209 // error, or Z_MEM_ERROR if it could not allocate memory for the state. 19210 // inflateBack() can also return Z_STREAM_ERROR if the input parameters 19211 // are not correct, i.e. strm is Z_NULL or the state was not initialized. 19212 // 19213 func XinflateBack(tls *libc.TLS, strm Z_streamp, in In_func, in_desc uintptr, out Out_func, out_desc uintptr) int32 { /* infback.c:250:13: */ 19214 bp := tls.Alloc(8) 19215 defer tls.Free(8) 19216 19217 var state uintptr 19218 // var next uintptr at bp, 8 19219 // next input 19220 var put uintptr // next output 19221 var have uint32 19222 var left uint32 // available input and output 19223 var hold uint64 // bit buffer 19224 var bits uint32 // bits in bit buffer 19225 var copy uint32 // number of stored or match bytes to copy 19226 var from uintptr // where to copy match bytes from 19227 var here Code // current decoding table entry 19228 var last Code // parent table entry 19229 var len uint32 // length to copy for repeats, bits to drop 19230 var ret int32 19231 19232 // Check that the strm exists and that the state was initialized 19233 if !((strm == uintptr(Z_NULL)) || ((*Z_stream)(unsafe.Pointer(strm)).Fstate == uintptr(Z_NULL))) { 19234 goto __1 19235 } 19236 return -2 19237 __1: 19238 ; 19239 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 19240 19241 // Reset the state 19242 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(Z_NULL) 19243 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TYPE 19244 (*Inflate_state)(unsafe.Pointer(state)).Flast = 0 19245 (*Inflate_state)(unsafe.Pointer(state)).Fwhave = uint32(0) 19246 *(*uintptr)(unsafe.Pointer(bp /* next */)) = (*Z_stream)(unsafe.Pointer(strm)).Fnext_in 19247 if *(*uintptr)(unsafe.Pointer(bp /* next */)) != uintptr(Z_NULL) { 19248 have = (*Z_stream)(unsafe.Pointer(strm)).Favail_in 19249 } else { 19250 have = uint32(0) 19251 } 19252 hold = uint64(0) 19253 bits = uint32(0) 19254 put = (*Inflate_state)(unsafe.Pointer(state)).Fwindow 19255 left = (*Inflate_state)(unsafe.Pointer(state)).Fwsize 19256 19257 // Inflate until end of block marked as last 19258 __2: 19259 switch (*Inflate_state)(unsafe.Pointer(state)).Fmode { 19260 case TYPE: 19261 goto __6 19262 19263 case STORED: 19264 goto __7 19265 19266 case TABLE: 19267 goto __8 19268 19269 case LEN: 19270 goto __9 19271 19272 case DONE: 19273 goto __10 19274 19275 case BAD: 19276 goto __11 19277 19278 default: 19279 goto __12 19280 } 19281 goto __5 19282 __6: 19283 // determine and dispatch block type 19284 if !((*Inflate_state)(unsafe.Pointer(state)).Flast != 0) { 19285 goto __13 19286 } 19287 __14: 19288 hold >>= (bits & uint32(7)) 19289 bits = bits - (bits & uint32(7)) 19290 goto __15 19291 __15: 19292 if 0 != 0 { 19293 goto __14 19294 } 19295 goto __16 19296 __16: 19297 ; 19298 (*Inflate_state)(unsafe.Pointer(state)).Fmode = DONE 19299 goto __5 19300 __13: 19301 ; 19302 __17: 19303 __20: 19304 if !(bits < (uint32(3))) { 19305 goto __21 19306 } 19307 __22: 19308 __25: 19309 if !(have == uint32(0)) { 19310 goto __28 19311 } 19312 have = (*struct { 19313 f func(*libc.TLS, uintptr, uintptr) uint32 19314 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 19315 if !(have == uint32(0)) { 19316 goto __29 19317 } 19318 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 19319 ret = -5 19320 goto inf_leave 19321 __29: 19322 ; 19323 __28: 19324 ; 19325 goto __26 19326 __26: 19327 if 0 != 0 { 19328 goto __25 19329 } 19330 goto __27 19331 __27: 19332 ; 19333 have-- 19334 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 19335 bits = bits + (uint32(8)) 19336 goto __23 19337 __23: 19338 if 0 != 0 { 19339 goto __22 19340 } 19341 goto __24 19342 __24: 19343 ; 19344 goto __20 19345 __21: 19346 ; 19347 goto __18 19348 __18: 19349 if 0 != 0 { 19350 goto __17 19351 } 19352 goto __19 19353 __19: 19354 ; 19355 (*Inflate_state)(unsafe.Pointer(state)).Flast = (int32(uint32(hold) & ((uint32(1) << (1)) - uint32(1)))) 19356 __30: 19357 hold >>= 1 19358 bits = bits - (uint32(1)) 19359 goto __31 19360 __31: 19361 if 0 != 0 { 19362 goto __30 19363 } 19364 goto __32 19365 __32: 19366 ; 19367 switch uint32(hold) & ((uint32(1) << (2)) - uint32(1)) { 19368 case uint32(0): 19369 goto __34 19370 case uint32(1): 19371 goto __35 19372 case uint32(2): 19373 goto __36 19374 case uint32(3): 19375 goto __37 19376 } 19377 goto __33 19378 __34: // stored block 19379 ; 19380 (*Inflate_state)(unsafe.Pointer(state)).Fmode = STORED 19381 goto __33 19382 __35: // fixed block 19383 fixedtables(tls, state) 19384 19385 (*Inflate_state)(unsafe.Pointer(state)).Fmode = LEN // decode codes 19386 goto __33 19387 __36: // dynamic block 19388 ; 19389 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TABLE 19390 goto __33 19391 __37: 19392 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 367 /* "invalid block ty..." */ 19393 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 19394 __33: 19395 ; 19396 __38: 19397 hold >>= 2 19398 bits = bits - (uint32(2)) 19399 goto __39 19400 __39: 19401 if 0 != 0 { 19402 goto __38 19403 } 19404 goto __40 19405 __40: 19406 ; 19407 goto __5 19408 19409 __7: 19410 // get and verify stored block length 19411 __41: 19412 hold >>= (bits & uint32(7)) 19413 bits = bits - (bits & uint32(7)) 19414 goto __42 19415 __42: 19416 if 0 != 0 { 19417 goto __41 19418 } 19419 goto __43 19420 __43: 19421 ; // go to byte boundary 19422 __44: 19423 __47: 19424 if !(bits < (uint32(32))) { 19425 goto __48 19426 } 19427 __49: 19428 __52: 19429 if !(have == uint32(0)) { 19430 goto __55 19431 } 19432 have = (*struct { 19433 f func(*libc.TLS, uintptr, uintptr) uint32 19434 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 19435 if !(have == uint32(0)) { 19436 goto __56 19437 } 19438 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 19439 ret = -5 19440 goto inf_leave 19441 __56: 19442 ; 19443 __55: 19444 ; 19445 goto __53 19446 __53: 19447 if 0 != 0 { 19448 goto __52 19449 } 19450 goto __54 19451 __54: 19452 ; 19453 have-- 19454 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 19455 bits = bits + (uint32(8)) 19456 goto __50 19457 __50: 19458 if 0 != 0 { 19459 goto __49 19460 } 19461 goto __51 19462 __51: 19463 ; 19464 goto __47 19465 __48: 19466 ; 19467 goto __45 19468 __45: 19469 if 0 != 0 { 19470 goto __44 19471 } 19472 goto __46 19473 __46: 19474 ; 19475 if !((hold & uint64(0xffff)) != ((hold >> 16) ^ uint64(0xffff))) { 19476 goto __57 19477 } 19478 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 386 /* "invalid stored b..." */ 19479 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 19480 goto __5 19481 __57: 19482 ; 19483 (*Inflate_state)(unsafe.Pointer(state)).Flength = (uint32(hold) & uint32(0xffff)) 19484 19485 __58: 19486 hold = uint64(0) 19487 bits = uint32(0) 19488 goto __59 19489 __59: 19490 if 0 != 0 { 19491 goto __58 19492 } 19493 goto __60 19494 __60: 19495 ; 19496 19497 // copy stored block from input to output 19498 __61: 19499 if !((*Inflate_state)(unsafe.Pointer(state)).Flength != uint32(0)) { 19500 goto __62 19501 } 19502 copy = (*Inflate_state)(unsafe.Pointer(state)).Flength 19503 __63: 19504 if !(have == uint32(0)) { 19505 goto __66 19506 } 19507 have = (*struct { 19508 f func(*libc.TLS, uintptr, uintptr) uint32 19509 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 19510 if !(have == uint32(0)) { 19511 goto __67 19512 } 19513 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 19514 ret = -5 19515 goto inf_leave 19516 __67: 19517 ; 19518 __66: 19519 ; 19520 goto __64 19521 __64: 19522 if 0 != 0 { 19523 goto __63 19524 } 19525 goto __65 19526 __65: 19527 ; 19528 __68: 19529 if !(left == uint32(0)) { 19530 goto __71 19531 } 19532 put = (*Inflate_state)(unsafe.Pointer(state)).Fwindow 19533 left = (*Inflate_state)(unsafe.Pointer(state)).Fwsize 19534 (*Inflate_state)(unsafe.Pointer(state)).Fwhave = left 19535 if !((*struct { 19536 f func(*libc.TLS, uintptr, uintptr, uint32) int32 19537 })(unsafe.Pointer(&struct{ uintptr }{out})).f(tls, out_desc, put, left) != 0) { 19538 goto __72 19539 } 19540 ret = -5 19541 goto inf_leave 19542 __72: 19543 ; 19544 __71: 19545 ; 19546 goto __69 19547 __69: 19548 if 0 != 0 { 19549 goto __68 19550 } 19551 goto __70 19552 __70: 19553 ; 19554 if !(copy > have) { 19555 goto __73 19556 } 19557 copy = have 19558 __73: 19559 ; 19560 if !(copy > left) { 19561 goto __74 19562 } 19563 copy = left 19564 __74: 19565 ; 19566 libc.X__builtin___memcpy_chk(tls, put, *(*uintptr)(unsafe.Pointer(bp /* next */)), uint64(copy), libc.X__builtin_object_size(tls, put, 0)) 19567 have = have - (copy) 19568 *(*uintptr)(unsafe.Pointer(bp /* next */)) += uintptr(copy) 19569 left = left - (copy) 19570 put += uintptr(copy) 19571 *(*uint32)(unsafe.Pointer(state + 92 /* &.length */)) -= (copy) 19572 goto __61 19573 __62: 19574 ; 19575 19576 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TYPE 19577 goto __5 19578 19579 __8: 19580 // get dynamic table entries descriptor 19581 __75: 19582 __78: 19583 if !(bits < (uint32(14))) { 19584 goto __79 19585 } 19586 __80: 19587 __83: 19588 if !(have == uint32(0)) { 19589 goto __86 19590 } 19591 have = (*struct { 19592 f func(*libc.TLS, uintptr, uintptr) uint32 19593 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 19594 if !(have == uint32(0)) { 19595 goto __87 19596 } 19597 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 19598 ret = -5 19599 goto inf_leave 19600 __87: 19601 ; 19602 __86: 19603 ; 19604 goto __84 19605 __84: 19606 if 0 != 0 { 19607 goto __83 19608 } 19609 goto __85 19610 __85: 19611 ; 19612 have-- 19613 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 19614 bits = bits + (uint32(8)) 19615 goto __81 19616 __81: 19617 if 0 != 0 { 19618 goto __80 19619 } 19620 goto __82 19621 __82: 19622 ; 19623 goto __78 19624 __79: 19625 ; 19626 goto __76 19627 __76: 19628 if 0 != 0 { 19629 goto __75 19630 } 19631 goto __77 19632 __77: 19633 ; 19634 (*Inflate_state)(unsafe.Pointer(state)).Fnlen = ((uint32(hold) & ((uint32(1) << (5)) - uint32(1))) + uint32(257)) 19635 __88: 19636 hold >>= 5 19637 bits = bits - (uint32(5)) 19638 goto __89 19639 __89: 19640 if 0 != 0 { 19641 goto __88 19642 } 19643 goto __90 19644 __90: 19645 ; 19646 (*Inflate_state)(unsafe.Pointer(state)).Fndist = ((uint32(hold) & ((uint32(1) << (5)) - uint32(1))) + uint32(1)) 19647 __91: 19648 hold >>= 5 19649 bits = bits - (uint32(5)) 19650 goto __92 19651 __92: 19652 if 0 != 0 { 19653 goto __91 19654 } 19655 goto __93 19656 __93: 19657 ; 19658 (*Inflate_state)(unsafe.Pointer(state)).Fncode = ((uint32(hold) & ((uint32(1) << (4)) - uint32(1))) + uint32(4)) 19659 __94: 19660 hold >>= 4 19661 bits = bits - (uint32(4)) 19662 goto __95 19663 __95: 19664 if 0 != 0 { 19665 goto __94 19666 } 19667 goto __96 19668 __96: 19669 ; 19670 if !(((*Inflate_state)(unsafe.Pointer(state)).Fnlen > uint32(286)) || ((*Inflate_state)(unsafe.Pointer(state)).Fndist > uint32(30))) { 19671 goto __97 19672 } 19673 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 415 /* "too many length ..." */ 19674 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 19675 goto __5 19676 __97: 19677 ; 19678 19679 // get code length code lengths (not a typo) 19680 (*Inflate_state)(unsafe.Pointer(state)).Fhave = uint32(0) 19681 __98: 19682 if !((*Inflate_state)(unsafe.Pointer(state)).Fhave < (*Inflate_state)(unsafe.Pointer(state)).Fncode) { 19683 goto __99 19684 } 19685 __100: 19686 __103: 19687 if !(bits < (uint32(3))) { 19688 goto __104 19689 } 19690 __105: 19691 __108: 19692 if !(have == uint32(0)) { 19693 goto __111 19694 } 19695 have = (*struct { 19696 f func(*libc.TLS, uintptr, uintptr) uint32 19697 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 19698 if !(have == uint32(0)) { 19699 goto __112 19700 } 19701 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 19702 ret = -5 19703 goto inf_leave 19704 __112: 19705 ; 19706 __111: 19707 ; 19708 goto __109 19709 __109: 19710 if 0 != 0 { 19711 goto __108 19712 } 19713 goto __110 19714 __110: 19715 ; 19716 have-- 19717 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 19718 bits = bits + (uint32(8)) 19719 goto __106 19720 __106: 19721 if 0 != 0 { 19722 goto __105 19723 } 19724 goto __107 19725 __107: 19726 ; 19727 goto __103 19728 __104: 19729 ; 19730 goto __101 19731 __101: 19732 if 0 != 0 { 19733 goto __100 19734 } 19735 goto __102 19736 __102: 19737 ; 19738 *(*uint16)(unsafe.Pointer((state + 152 /* &.lens */) + uintptr(order[libc.PostIncUint32(&(*Inflate_state)(unsafe.Pointer(state)).Fhave, 1)])*2)) = (uint16(uint32(hold) & ((uint32(1) << (3)) - uint32(1)))) 19739 __113: 19740 hold >>= 3 19741 bits = bits - (uint32(3)) 19742 goto __114 19743 __114: 19744 if 0 != 0 { 19745 goto __113 19746 } 19747 goto __115 19748 __115: 19749 ; 19750 goto __98 19751 __99: 19752 ; 19753 __116: 19754 if !((*Inflate_state)(unsafe.Pointer(state)).Fhave < uint32(19)) { 19755 goto __117 19756 } 19757 *(*uint16)(unsafe.Pointer((state + 152 /* &.lens */) + uintptr(order[libc.PostIncUint32(&(*Inflate_state)(unsafe.Pointer(state)).Fhave, 1)])*2)) = uint16(0) 19758 goto __116 19759 __117: 19760 ; 19761 (*Inflate_state)(unsafe.Pointer(state)).Fnext = state + 1368 /* &.codes */ 19762 (*Inflate_state)(unsafe.Pointer(state)).Flencode = (*Inflate_state)(unsafe.Pointer(state)).Fnext 19763 (*Inflate_state)(unsafe.Pointer(state)).Flenbits = uint32(7) 19764 ret = Xinflate_table(tls, CODES, state+152 /* &.lens */, uint32(19), (state + 144 /* &.next */), 19765 (state + 120 /* &.lenbits */), state+792 /* &.work */) 19766 if !(ret != 0) { 19767 goto __118 19768 } 19769 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 451 /* "invalid code len..." */ 19770 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 19771 goto __5 19772 __118: 19773 ; 19774 19775 // get length and distance code code lengths 19776 (*Inflate_state)(unsafe.Pointer(state)).Fhave = uint32(0) 19777 __119: 19778 if !((*Inflate_state)(unsafe.Pointer(state)).Fhave < ((*Inflate_state)(unsafe.Pointer(state)).Fnlen + (*Inflate_state)(unsafe.Pointer(state)).Fndist)) { 19779 goto __120 19780 } 19781 __121: 19782 here = *(*Code)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Flencode + uintptr((uint32(hold)&((uint32(1)<<((*Inflate_state)(unsafe.Pointer(state)).Flenbits))-uint32(1))))*4)) 19783 if !((uint32(here.Fbits)) <= bits) { 19784 goto __124 19785 } 19786 goto __123 19787 __124: 19788 ; 19789 __125: 19790 __128: 19791 if !(have == uint32(0)) { 19792 goto __131 19793 } 19794 have = (*struct { 19795 f func(*libc.TLS, uintptr, uintptr) uint32 19796 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 19797 if !(have == uint32(0)) { 19798 goto __132 19799 } 19800 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 19801 ret = -5 19802 goto inf_leave 19803 __132: 19804 ; 19805 __131: 19806 ; 19807 goto __129 19808 __129: 19809 if 0 != 0 { 19810 goto __128 19811 } 19812 goto __130 19813 __130: 19814 ; 19815 have-- 19816 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 19817 bits = bits + (uint32(8)) 19818 goto __126 19819 __126: 19820 if 0 != 0 { 19821 goto __125 19822 } 19823 goto __127 19824 __127: 19825 ; 19826 goto __122 19827 __122: 19828 goto __121 19829 goto __123 19830 __123: 19831 ; 19832 if !(int32(here.Fval) < 16) { 19833 goto __133 19834 } 19835 __135: 19836 hold >>= int32(here.Fbits) 19837 bits = bits - (uint32(here.Fbits)) 19838 goto __136 19839 __136: 19840 if 0 != 0 { 19841 goto __135 19842 } 19843 goto __137 19844 __137: 19845 ; 19846 *(*uint16)(unsafe.Pointer((state + 152 /* &.lens */) + uintptr(libc.PostIncUint32(&(*Inflate_state)(unsafe.Pointer(state)).Fhave, 1))*2)) = here.Fval 19847 goto __134 19848 __133: 19849 if !(int32(here.Fval) == 16) { 19850 goto __138 19851 } 19852 __140: 19853 __143: 19854 if !(bits < (uint32(int32(here.Fbits) + 2))) { 19855 goto __144 19856 } 19857 __145: 19858 __148: 19859 if !(have == uint32(0)) { 19860 goto __151 19861 } 19862 have = (*struct { 19863 f func(*libc.TLS, uintptr, uintptr) uint32 19864 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 19865 if !(have == uint32(0)) { 19866 goto __152 19867 } 19868 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 19869 ret = -5 19870 goto inf_leave 19871 __152: 19872 ; 19873 __151: 19874 ; 19875 goto __149 19876 __149: 19877 if 0 != 0 { 19878 goto __148 19879 } 19880 goto __150 19881 __150: 19882 ; 19883 have-- 19884 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 19885 bits = bits + (uint32(8)) 19886 goto __146 19887 __146: 19888 if 0 != 0 { 19889 goto __145 19890 } 19891 goto __147 19892 __147: 19893 ; 19894 goto __143 19895 __144: 19896 ; 19897 goto __141 19898 __141: 19899 if 0 != 0 { 19900 goto __140 19901 } 19902 goto __142 19903 __142: 19904 ; 19905 __153: 19906 hold >>= int32(here.Fbits) 19907 bits = bits - (uint32(here.Fbits)) 19908 goto __154 19909 __154: 19910 if 0 != 0 { 19911 goto __153 19912 } 19913 goto __155 19914 __155: 19915 ; 19916 if !((*Inflate_state)(unsafe.Pointer(state)).Fhave == uint32(0)) { 19917 goto __156 19918 } 19919 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 476 /* "invalid bit leng..." */ 19920 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 19921 goto __120 19922 __156: 19923 ; 19924 len = uint32(*(*uint16)(unsafe.Pointer((state + 152 /* &.lens */) + uintptr(((*Inflate_state)(unsafe.Pointer(state)).Fhave-uint32(1)))*2))) 19925 copy = (uint32(3) + (uint32(hold) & ((uint32(1) << (2)) - uint32(1)))) 19926 __157: 19927 hold >>= 2 19928 bits = bits - (uint32(2)) 19929 goto __158 19930 __158: 19931 if 0 != 0 { 19932 goto __157 19933 } 19934 goto __159 19935 __159: 19936 ; 19937 goto __139 19938 __138: 19939 if !(int32(here.Fval) == 17) { 19940 goto __160 19941 } 19942 __162: 19943 __165: 19944 if !(bits < (uint32(int32(here.Fbits) + 3))) { 19945 goto __166 19946 } 19947 __167: 19948 __170: 19949 if !(have == uint32(0)) { 19950 goto __173 19951 } 19952 have = (*struct { 19953 f func(*libc.TLS, uintptr, uintptr) uint32 19954 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 19955 if !(have == uint32(0)) { 19956 goto __174 19957 } 19958 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 19959 ret = -5 19960 goto inf_leave 19961 __174: 19962 ; 19963 __173: 19964 ; 19965 goto __171 19966 __171: 19967 if 0 != 0 { 19968 goto __170 19969 } 19970 goto __172 19971 __172: 19972 ; 19973 have-- 19974 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 19975 bits = bits + (uint32(8)) 19976 goto __168 19977 __168: 19978 if 0 != 0 { 19979 goto __167 19980 } 19981 goto __169 19982 __169: 19983 ; 19984 goto __165 19985 __166: 19986 ; 19987 goto __163 19988 __163: 19989 if 0 != 0 { 19990 goto __162 19991 } 19992 goto __164 19993 __164: 19994 ; 19995 __175: 19996 hold >>= int32(here.Fbits) 19997 bits = bits - (uint32(here.Fbits)) 19998 goto __176 19999 __176: 20000 if 0 != 0 { 20001 goto __175 20002 } 20003 goto __177 20004 __177: 20005 ; 20006 len = uint32(0) 20007 copy = (uint32(3) + (uint32(hold) & ((uint32(1) << (3)) - uint32(1)))) 20008 __178: 20009 hold >>= 3 20010 bits = bits - (uint32(3)) 20011 goto __179 20012 __179: 20013 if 0 != 0 { 20014 goto __178 20015 } 20016 goto __180 20017 __180: 20018 ; 20019 goto __161 20020 __160: 20021 __181: 20022 __184: 20023 if !(bits < (uint32(int32(here.Fbits) + 7))) { 20024 goto __185 20025 } 20026 __186: 20027 __189: 20028 if !(have == uint32(0)) { 20029 goto __192 20030 } 20031 have = (*struct { 20032 f func(*libc.TLS, uintptr, uintptr) uint32 20033 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 20034 if !(have == uint32(0)) { 20035 goto __193 20036 } 20037 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 20038 ret = -5 20039 goto inf_leave 20040 __193: 20041 ; 20042 __192: 20043 ; 20044 goto __190 20045 __190: 20046 if 0 != 0 { 20047 goto __189 20048 } 20049 goto __191 20050 __191: 20051 ; 20052 have-- 20053 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 20054 bits = bits + (uint32(8)) 20055 goto __187 20056 __187: 20057 if 0 != 0 { 20058 goto __186 20059 } 20060 goto __188 20061 __188: 20062 ; 20063 goto __184 20064 __185: 20065 ; 20066 goto __182 20067 __182: 20068 if 0 != 0 { 20069 goto __181 20070 } 20071 goto __183 20072 __183: 20073 ; 20074 __194: 20075 hold >>= int32(here.Fbits) 20076 bits = bits - (uint32(here.Fbits)) 20077 goto __195 20078 __195: 20079 if 0 != 0 { 20080 goto __194 20081 } 20082 goto __196 20083 __196: 20084 ; 20085 len = uint32(0) 20086 copy = (uint32(11) + (uint32(hold) & ((uint32(1) << (7)) - uint32(1)))) 20087 __197: 20088 hold >>= 7 20089 bits = bits - (uint32(7)) 20090 goto __198 20091 __198: 20092 if 0 != 0 { 20093 goto __197 20094 } 20095 goto __199 20096 __199: 20097 ; 20098 __161: 20099 ; 20100 __139: 20101 ; 20102 if !(((*Inflate_state)(unsafe.Pointer(state)).Fhave + copy) > ((*Inflate_state)(unsafe.Pointer(state)).Fnlen + (*Inflate_state)(unsafe.Pointer(state)).Fndist)) { 20103 goto __200 20104 } 20105 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 476 /* "invalid bit leng..." */ 20106 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 20107 goto __120 20108 __200: 20109 ; 20110 __201: 20111 if !(libc.PostDecUint32(©, 1) != 0) { 20112 goto __202 20113 } 20114 *(*uint16)(unsafe.Pointer((state + 152 /* &.lens */) + uintptr(libc.PostIncUint32(&(*Inflate_state)(unsafe.Pointer(state)).Fhave, 1))*2)) = uint16(len) 20115 goto __201 20116 __202: 20117 ; 20118 __134: 20119 ; 20120 goto __119 20121 __120: 20122 ; 20123 20124 // handle error breaks in while 20125 if !((*Inflate_state)(unsafe.Pointer(state)).Fmode == BAD) { 20126 goto __203 20127 } 20128 goto __5 20129 __203: 20130 ; 20131 20132 // check for end-of-block code (better have one) 20133 if !(int32(*(*uint16)(unsafe.Pointer((state + 152 /* &.lens */) + 256*2))) == 0) { 20134 goto __204 20135 } 20136 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 502 /* "invalid code -- ..." */ 20137 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 20138 goto __5 20139 __204: 20140 ; 20141 20142 // build code tables -- note: do not change the lenbits or distbits 20143 // values here (9 and 6) without reading the comments in inftrees.h 20144 // concerning the ENOUGH constants, which depend on those values 20145 (*Inflate_state)(unsafe.Pointer(state)).Fnext = state + 1368 /* &.codes */ 20146 (*Inflate_state)(unsafe.Pointer(state)).Flencode = (*Inflate_state)(unsafe.Pointer(state)).Fnext 20147 (*Inflate_state)(unsafe.Pointer(state)).Flenbits = uint32(9) 20148 ret = Xinflate_table(tls, LENS, state+152 /* &.lens */, (*Inflate_state)(unsafe.Pointer(state)).Fnlen, (state + 144 /* &.next */), 20149 (state + 120 /* &.lenbits */), state+792 /* &.work */) 20150 if !(ret != 0) { 20151 goto __205 20152 } 20153 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 539 /* "invalid literal/..." */ 20154 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 20155 goto __5 20156 __205: 20157 ; 20158 (*Inflate_state)(unsafe.Pointer(state)).Fdistcode = (*Inflate_state)(unsafe.Pointer(state)).Fnext 20159 (*Inflate_state)(unsafe.Pointer(state)).Fdistbits = uint32(6) 20160 ret = Xinflate_table(tls, DISTS, ((state + 152 /* &.lens */) + uintptr((*Inflate_state)(unsafe.Pointer(state)).Fnlen)*2), (*Inflate_state)(unsafe.Pointer(state)).Fndist, 20161 (state + 144 /* &.next */), (state + 124 /* &.distbits */), state+792 /* &.work */) 20162 if !(ret != 0) { 20163 goto __206 20164 } 20165 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 567 /* "invalid distance..." */ 20166 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 20167 goto __5 20168 __206: 20169 ; 20170 20171 (*Inflate_state)(unsafe.Pointer(state)).Fmode = LEN 20172 20173 __9: 20174 // use inflate_fast() if we have enough input and output 20175 if !((have >= uint32(6)) && (left >= uint32(258))) { 20176 goto __207 20177 } 20178 __208: 20179 (*Z_stream)(unsafe.Pointer(strm)).Fnext_out = put 20180 (*Z_stream)(unsafe.Pointer(strm)).Favail_out = left 20181 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = *(*uintptr)(unsafe.Pointer(bp /* next */)) 20182 (*Z_stream)(unsafe.Pointer(strm)).Favail_in = have 20183 (*Inflate_state)(unsafe.Pointer(state)).Fhold = hold 20184 (*Inflate_state)(unsafe.Pointer(state)).Fbits = bits 20185 goto __209 20186 __209: 20187 if 0 != 0 { 20188 goto __208 20189 } 20190 goto __210 20191 __210: 20192 ; 20193 if !((*Inflate_state)(unsafe.Pointer(state)).Fwhave < (*Inflate_state)(unsafe.Pointer(state)).Fwsize) { 20194 goto __211 20195 } 20196 (*Inflate_state)(unsafe.Pointer(state)).Fwhave = ((*Inflate_state)(unsafe.Pointer(state)).Fwsize - left) 20197 __211: 20198 ; 20199 Xinflate_fast(tls, strm, (*Inflate_state)(unsafe.Pointer(state)).Fwsize) 20200 __212: 20201 put = (*Z_stream)(unsafe.Pointer(strm)).Fnext_out 20202 left = (*Z_stream)(unsafe.Pointer(strm)).Favail_out 20203 *(*uintptr)(unsafe.Pointer(bp /* next */)) = (*Z_stream)(unsafe.Pointer(strm)).Fnext_in 20204 have = (*Z_stream)(unsafe.Pointer(strm)).Favail_in 20205 hold = (*Inflate_state)(unsafe.Pointer(state)).Fhold 20206 bits = (*Inflate_state)(unsafe.Pointer(state)).Fbits 20207 goto __213 20208 __213: 20209 if 0 != 0 { 20210 goto __212 20211 } 20212 goto __214 20213 __214: 20214 ; 20215 goto __5 20216 __207: 20217 ; 20218 20219 // get a literal, length, or end-of-block code 20220 __215: 20221 here = *(*Code)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Flencode + uintptr((uint32(hold)&((uint32(1)<<((*Inflate_state)(unsafe.Pointer(state)).Flenbits))-uint32(1))))*4)) 20222 if !((uint32(here.Fbits)) <= bits) { 20223 goto __218 20224 } 20225 goto __217 20226 __218: 20227 ; 20228 __219: 20229 __222: 20230 if !(have == uint32(0)) { 20231 goto __225 20232 } 20233 have = (*struct { 20234 f func(*libc.TLS, uintptr, uintptr) uint32 20235 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 20236 if !(have == uint32(0)) { 20237 goto __226 20238 } 20239 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 20240 ret = -5 20241 goto inf_leave 20242 __226: 20243 ; 20244 __225: 20245 ; 20246 goto __223 20247 __223: 20248 if 0 != 0 { 20249 goto __222 20250 } 20251 goto __224 20252 __224: 20253 ; 20254 have-- 20255 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 20256 bits = bits + (uint32(8)) 20257 goto __220 20258 __220: 20259 if 0 != 0 { 20260 goto __219 20261 } 20262 goto __221 20263 __221: 20264 ; 20265 goto __216 20266 __216: 20267 goto __215 20268 goto __217 20269 __217: 20270 ; 20271 if !((here.Fop != 0) && ((int32(here.Fop) & 0xf0) == 0)) { 20272 goto __227 20273 } 20274 last = here 20275 __228: 20276 here = *(*Code)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Flencode + uintptr((uint32(last.Fval)+((uint32(hold)&((uint32(1)<<(int32(last.Fbits)+int32(last.Fop)))-uint32(1)))>>int32(last.Fbits))))*4)) 20277 if !((uint32(int32(last.Fbits) + int32(here.Fbits))) <= bits) { 20278 goto __231 20279 } 20280 goto __230 20281 __231: 20282 ; 20283 __232: 20284 __235: 20285 if !(have == uint32(0)) { 20286 goto __238 20287 } 20288 have = (*struct { 20289 f func(*libc.TLS, uintptr, uintptr) uint32 20290 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 20291 if !(have == uint32(0)) { 20292 goto __239 20293 } 20294 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 20295 ret = -5 20296 goto inf_leave 20297 __239: 20298 ; 20299 __238: 20300 ; 20301 goto __236 20302 __236: 20303 if 0 != 0 { 20304 goto __235 20305 } 20306 goto __237 20307 __237: 20308 ; 20309 have-- 20310 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 20311 bits = bits + (uint32(8)) 20312 goto __233 20313 __233: 20314 if 0 != 0 { 20315 goto __232 20316 } 20317 goto __234 20318 __234: 20319 ; 20320 goto __229 20321 __229: 20322 goto __228 20323 goto __230 20324 __230: 20325 ; 20326 __240: 20327 hold >>= int32(last.Fbits) 20328 bits = bits - (uint32(last.Fbits)) 20329 goto __241 20330 __241: 20331 if 0 != 0 { 20332 goto __240 20333 } 20334 goto __242 20335 __242: 20336 ; 20337 __227: 20338 ; 20339 __243: 20340 hold >>= int32(here.Fbits) 20341 bits = bits - (uint32(here.Fbits)) 20342 goto __244 20343 __244: 20344 if 0 != 0 { 20345 goto __243 20346 } 20347 goto __245 20348 __245: 20349 ; 20350 (*Inflate_state)(unsafe.Pointer(state)).Flength = uint32(here.Fval) 20351 20352 // process literal 20353 if !(int32(here.Fop) == 0) { 20354 goto __246 20355 } 20356 20357 __247: 20358 if !(left == uint32(0)) { 20359 goto __250 20360 } 20361 put = (*Inflate_state)(unsafe.Pointer(state)).Fwindow 20362 left = (*Inflate_state)(unsafe.Pointer(state)).Fwsize 20363 (*Inflate_state)(unsafe.Pointer(state)).Fwhave = left 20364 if !((*struct { 20365 f func(*libc.TLS, uintptr, uintptr, uint32) int32 20366 })(unsafe.Pointer(&struct{ uintptr }{out})).f(tls, out_desc, put, left) != 0) { 20367 goto __251 20368 } 20369 ret = -5 20370 goto inf_leave 20371 __251: 20372 ; 20373 __250: 20374 ; 20375 goto __248 20376 __248: 20377 if 0 != 0 { 20378 goto __247 20379 } 20380 goto __249 20381 __249: 20382 ; 20383 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&put, 1))) = uint8((*Inflate_state)(unsafe.Pointer(state)).Flength) 20384 left-- 20385 (*Inflate_state)(unsafe.Pointer(state)).Fmode = LEN 20386 goto __5 20387 __246: 20388 ; 20389 20390 // process end of block 20391 if !((int32(here.Fop) & 32) != 0) { 20392 goto __252 20393 } 20394 20395 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TYPE 20396 goto __5 20397 __252: 20398 ; 20399 20400 // invalid code 20401 if !((int32(here.Fop) & 64) != 0) { 20402 goto __253 20403 } 20404 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 589 /* "invalid literal/..." */ 20405 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 20406 goto __5 20407 __253: 20408 ; 20409 20410 // length code -- get extra bits, if any 20411 (*Inflate_state)(unsafe.Pointer(state)).Fextra = ((uint32(here.Fop)) & uint32(15)) 20412 if !((*Inflate_state)(unsafe.Pointer(state)).Fextra != uint32(0)) { 20413 goto __254 20414 } 20415 __255: 20416 __258: 20417 if !(bits < ((*Inflate_state)(unsafe.Pointer(state)).Fextra)) { 20418 goto __259 20419 } 20420 __260: 20421 __263: 20422 if !(have == uint32(0)) { 20423 goto __266 20424 } 20425 have = (*struct { 20426 f func(*libc.TLS, uintptr, uintptr) uint32 20427 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 20428 if !(have == uint32(0)) { 20429 goto __267 20430 } 20431 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 20432 ret = -5 20433 goto inf_leave 20434 __267: 20435 ; 20436 __266: 20437 ; 20438 goto __264 20439 __264: 20440 if 0 != 0 { 20441 goto __263 20442 } 20443 goto __265 20444 __265: 20445 ; 20446 have-- 20447 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 20448 bits = bits + (uint32(8)) 20449 goto __261 20450 __261: 20451 if 0 != 0 { 20452 goto __260 20453 } 20454 goto __262 20455 __262: 20456 ; 20457 goto __258 20458 __259: 20459 ; 20460 goto __256 20461 __256: 20462 if 0 != 0 { 20463 goto __255 20464 } 20465 goto __257 20466 __257: 20467 ; 20468 *(*uint32)(unsafe.Pointer(state + 92 /* &.length */)) += (uint32(hold) & ((uint32(1) << ((*Inflate_state)(unsafe.Pointer(state)).Fextra)) - uint32(1))) 20469 __268: 20470 hold >>= (*Inflate_state)(unsafe.Pointer(state)).Fextra 20471 bits = bits - ((*Inflate_state)(unsafe.Pointer(state)).Fextra) 20472 goto __269 20473 __269: 20474 if 0 != 0 { 20475 goto __268 20476 } 20477 goto __270 20478 __270: 20479 ; 20480 __254: 20481 ; 20482 20483 // get distance code 20484 __271: 20485 here = *(*Code)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fdistcode + uintptr((uint32(hold)&((uint32(1)<<((*Inflate_state)(unsafe.Pointer(state)).Fdistbits))-uint32(1))))*4)) 20486 if !((uint32(here.Fbits)) <= bits) { 20487 goto __274 20488 } 20489 goto __273 20490 __274: 20491 ; 20492 __275: 20493 __278: 20494 if !(have == uint32(0)) { 20495 goto __281 20496 } 20497 have = (*struct { 20498 f func(*libc.TLS, uintptr, uintptr) uint32 20499 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 20500 if !(have == uint32(0)) { 20501 goto __282 20502 } 20503 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 20504 ret = -5 20505 goto inf_leave 20506 __282: 20507 ; 20508 __281: 20509 ; 20510 goto __279 20511 __279: 20512 if 0 != 0 { 20513 goto __278 20514 } 20515 goto __280 20516 __280: 20517 ; 20518 have-- 20519 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 20520 bits = bits + (uint32(8)) 20521 goto __276 20522 __276: 20523 if 0 != 0 { 20524 goto __275 20525 } 20526 goto __277 20527 __277: 20528 ; 20529 goto __272 20530 __272: 20531 goto __271 20532 goto __273 20533 __273: 20534 ; 20535 if !((int32(here.Fop) & 0xf0) == 0) { 20536 goto __283 20537 } 20538 last = here 20539 __284: 20540 here = *(*Code)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fdistcode + uintptr((uint32(last.Fval)+((uint32(hold)&((uint32(1)<<(int32(last.Fbits)+int32(last.Fop)))-uint32(1)))>>int32(last.Fbits))))*4)) 20541 if !((uint32(int32(last.Fbits) + int32(here.Fbits))) <= bits) { 20542 goto __287 20543 } 20544 goto __286 20545 __287: 20546 ; 20547 __288: 20548 __291: 20549 if !(have == uint32(0)) { 20550 goto __294 20551 } 20552 have = (*struct { 20553 f func(*libc.TLS, uintptr, uintptr) uint32 20554 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 20555 if !(have == uint32(0)) { 20556 goto __295 20557 } 20558 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 20559 ret = -5 20560 goto inf_leave 20561 __295: 20562 ; 20563 __294: 20564 ; 20565 goto __292 20566 __292: 20567 if 0 != 0 { 20568 goto __291 20569 } 20570 goto __293 20571 __293: 20572 ; 20573 have-- 20574 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 20575 bits = bits + (uint32(8)) 20576 goto __289 20577 __289: 20578 if 0 != 0 { 20579 goto __288 20580 } 20581 goto __290 20582 __290: 20583 ; 20584 goto __285 20585 __285: 20586 goto __284 20587 goto __286 20588 __286: 20589 ; 20590 __296: 20591 hold >>= int32(last.Fbits) 20592 bits = bits - (uint32(last.Fbits)) 20593 goto __297 20594 __297: 20595 if 0 != 0 { 20596 goto __296 20597 } 20598 goto __298 20599 __298: 20600 ; 20601 __283: 20602 ; 20603 __299: 20604 hold >>= int32(here.Fbits) 20605 bits = bits - (uint32(here.Fbits)) 20606 goto __300 20607 __300: 20608 if 0 != 0 { 20609 goto __299 20610 } 20611 goto __301 20612 __301: 20613 ; 20614 if !((int32(here.Fop) & 64) != 0) { 20615 goto __302 20616 } 20617 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 617 /* "invalid distance..." */ 20618 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 20619 goto __5 20620 __302: 20621 ; 20622 (*Inflate_state)(unsafe.Pointer(state)).Foffset = uint32(here.Fval) 20623 20624 // get distance extra bits, if any 20625 (*Inflate_state)(unsafe.Pointer(state)).Fextra = ((uint32(here.Fop)) & uint32(15)) 20626 if !((*Inflate_state)(unsafe.Pointer(state)).Fextra != uint32(0)) { 20627 goto __303 20628 } 20629 __304: 20630 __307: 20631 if !(bits < ((*Inflate_state)(unsafe.Pointer(state)).Fextra)) { 20632 goto __308 20633 } 20634 __309: 20635 __312: 20636 if !(have == uint32(0)) { 20637 goto __315 20638 } 20639 have = (*struct { 20640 f func(*libc.TLS, uintptr, uintptr) uint32 20641 })(unsafe.Pointer(&struct{ uintptr }{in})).f(tls, in_desc, bp /* &next */) 20642 if !(have == uint32(0)) { 20643 goto __316 20644 } 20645 *(*uintptr)(unsafe.Pointer(bp /* next */)) = uintptr(Z_NULL) 20646 ret = -5 20647 goto inf_leave 20648 __316: 20649 ; 20650 __315: 20651 ; 20652 goto __313 20653 __313: 20654 if 0 != 0 { 20655 goto __312 20656 } 20657 goto __314 20658 __314: 20659 ; 20660 have-- 20661 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&*(*uintptr)(unsafe.Pointer(bp /* next */)), 1))))) << bits) 20662 bits = bits + (uint32(8)) 20663 goto __310 20664 __310: 20665 if 0 != 0 { 20666 goto __309 20667 } 20668 goto __311 20669 __311: 20670 ; 20671 goto __307 20672 __308: 20673 ; 20674 goto __305 20675 __305: 20676 if 0 != 0 { 20677 goto __304 20678 } 20679 goto __306 20680 __306: 20681 ; 20682 *(*uint32)(unsafe.Pointer(state + 96 /* &.offset */)) += (uint32(hold) & ((uint32(1) << ((*Inflate_state)(unsafe.Pointer(state)).Fextra)) - uint32(1))) 20683 __317: 20684 hold >>= (*Inflate_state)(unsafe.Pointer(state)).Fextra 20685 bits = bits - ((*Inflate_state)(unsafe.Pointer(state)).Fextra) 20686 goto __318 20687 __318: 20688 if 0 != 0 { 20689 goto __317 20690 } 20691 goto __319 20692 __319: 20693 ; 20694 __303: 20695 ; 20696 if !((*Inflate_state)(unsafe.Pointer(state)).Foffset > ((*Inflate_state)(unsafe.Pointer(state)).Fwsize - (func() uint32 { 20697 if (*Inflate_state)(unsafe.Pointer(state)).Fwhave < (*Inflate_state)(unsafe.Pointer(state)).Fwsize { 20698 return left 20699 } 20700 return uint32(0) 20701 }()))) { 20702 goto __320 20703 } 20704 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 639 /* "invalid distance..." */ 20705 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 20706 goto __5 20707 __320: 20708 ; 20709 20710 // copy match from window to output 20711 __321: 20712 __324: 20713 if !(left == uint32(0)) { 20714 goto __327 20715 } 20716 put = (*Inflate_state)(unsafe.Pointer(state)).Fwindow 20717 left = (*Inflate_state)(unsafe.Pointer(state)).Fwsize 20718 (*Inflate_state)(unsafe.Pointer(state)).Fwhave = left 20719 if !((*struct { 20720 f func(*libc.TLS, uintptr, uintptr, uint32) int32 20721 })(unsafe.Pointer(&struct{ uintptr }{out})).f(tls, out_desc, put, left) != 0) { 20722 goto __328 20723 } 20724 ret = -5 20725 goto inf_leave 20726 __328: 20727 ; 20728 __327: 20729 ; 20730 goto __325 20731 __325: 20732 if 0 != 0 { 20733 goto __324 20734 } 20735 goto __326 20736 __326: 20737 ; 20738 copy = ((*Inflate_state)(unsafe.Pointer(state)).Fwsize - (*Inflate_state)(unsafe.Pointer(state)).Foffset) 20739 if !(copy < left) { 20740 goto __329 20741 } 20742 from = (put + uintptr(copy)) 20743 copy = (left - copy) 20744 goto __330 20745 __329: 20746 from = (put - uintptr((*Inflate_state)(unsafe.Pointer(state)).Foffset)) 20747 copy = left 20748 __330: 20749 ; 20750 if !(copy > (*Inflate_state)(unsafe.Pointer(state)).Flength) { 20751 goto __331 20752 } 20753 copy = (*Inflate_state)(unsafe.Pointer(state)).Flength 20754 __331: 20755 ; 20756 *(*uint32)(unsafe.Pointer(state + 92 /* &.length */)) -= (copy) 20757 left = left - (copy) 20758 __332: 20759 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&put, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 20760 goto __333 20761 __333: 20762 if libc.PreDecUint32(©, 1) != 0 { 20763 goto __332 20764 } 20765 goto __334 20766 __334: 20767 ; 20768 goto __322 20769 __322: 20770 if (*Inflate_state)(unsafe.Pointer(state)).Flength != uint32(0) { 20771 goto __321 20772 } 20773 goto __323 20774 __323: 20775 ; 20776 goto __5 20777 20778 __10: 20779 // inflate stream terminated properly -- write leftover output 20780 ret = Z_STREAM_END 20781 if !(left < (*Inflate_state)(unsafe.Pointer(state)).Fwsize) { 20782 goto __335 20783 } 20784 if !((*struct { 20785 f func(*libc.TLS, uintptr, uintptr, uint32) int32 20786 })(unsafe.Pointer(&struct{ uintptr }{out})).f(tls, out_desc, (*Inflate_state)(unsafe.Pointer(state)).Fwindow, ((*Inflate_state)(unsafe.Pointer(state)).Fwsize-left)) != 0) { 20787 goto __336 20788 } 20789 ret = -5 20790 __336: 20791 ; 20792 __335: 20793 ; 20794 goto inf_leave 20795 20796 __11: 20797 ret = -3 20798 goto inf_leave 20799 20800 __12: // can't happen, but makes compilers happy 20801 ret = -2 20802 goto inf_leave 20803 __5: 20804 ; 20805 goto __3 20806 __3: 20807 goto __2 20808 goto __4 20809 __4: 20810 ; 20811 20812 // Return unused input 20813 inf_leave: 20814 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = *(*uintptr)(unsafe.Pointer(bp /* next */)) 20815 (*Z_stream)(unsafe.Pointer(strm)).Favail_in = have 20816 return ret 20817 } 20818 20819 var order = // permutation of code lengths 20820 [19]uint16{uint16(16), uint16(17), uint16(18), uint16(0), uint16(8), uint16(7), uint16(9), uint16(6), uint16(10), uint16(5), uint16(11), uint16(4), uint16(12), uint16(3), uint16(13), uint16(2), uint16(14), uint16(1), uint16(15)} /* infback.c:269:33 */ 20821 20822 func XinflateBackEnd(tls *libc.TLS, strm Z_streamp) int32 { /* infback.c:631:13: */ 20823 if ((strm == uintptr(Z_NULL)) || ((*Z_stream)(unsafe.Pointer(strm)).Fstate == uintptr(Z_NULL))) || ((*Z_stream)(unsafe.Pointer(strm)).Fzfree == uintptr(0)) { 20824 return -2 20825 } 20826 (*struct { 20827 f func(*libc.TLS, Voidpf, Voidpf) 20828 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzfree})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (*Z_stream)(unsafe.Pointer(strm)).Fstate) 20829 (*Z_stream)(unsafe.Pointer(strm)).Fstate = uintptr(Z_NULL) 20830 20831 return Z_OK 20832 } 20833 20834 // 20835 // Decode literal, length, and distance codes and write out the resulting 20836 // literal and match bytes until either not enough input or output is 20837 // available, an end-of-block is encountered, or a data error is encountered. 20838 // When large enough input and output buffers are supplied to inflate(), for 20839 // example, a 16K input buffer and a 64K output buffer, more than 95% of the 20840 // inflate execution time is spent in this routine. 20841 // 20842 // Entry assumptions: 20843 // 20844 // state->mode == LEN 20845 // strm->avail_in >= 6 20846 // strm->avail_out >= 258 20847 // start >= strm->avail_out 20848 // state->bits < 8 20849 // 20850 // On return, state->mode is one of: 20851 // 20852 // LEN -- ran out of enough output space or enough available input 20853 // TYPE -- reached end of block code, inflate() to interpret next block 20854 // BAD -- error in block data 20855 // 20856 // Notes: 20857 // 20858 // - The maximum input bits used by a length/distance pair is 15 bits for the 20859 // length code, 5 bits for the length extra, 15 bits for the distance code, 20860 // and 13 bits for the distance extra. This totals 48 bits, or six bytes. 20861 // Therefore if strm->avail_in >= 6, then there is enough input to avoid 20862 // checking for available input while decoding. 20863 // 20864 // - The maximum bytes that a single length/distance pair can output is 258 20865 // bytes, which is the maximum length that can be coded. inflate_fast() 20866 // requires strm->avail_out >= 258 for each loop to avoid checking for 20867 // output space. 20868 // 20869 func Xinflate_fast(tls *libc.TLS, strm Z_streamp, start uint32) { /* inffast.c:50:20: */ 20870 var state uintptr 20871 var in uintptr // local strm->next_in 20872 var last uintptr // have enough input while in < last 20873 var out uintptr // local strm->next_out 20874 var beg uintptr // inflate()'s initial strm->next_out 20875 var end uintptr // while out < end, enough space available 20876 var wsize uint32 // window size or zero if not using window 20877 var whave uint32 // valid bytes in the window 20878 var wnext uint32 // window write index 20879 var window uintptr // allocated sliding window, if wsize != 0 20880 var hold uint64 // local strm->hold 20881 var bits uint32 // local strm->bits 20882 var lcode uintptr // local strm->lencode 20883 var dcode uintptr // local strm->distcode 20884 var lmask uint32 // mask for first level of length codes 20885 var dmask uint32 // mask for first level of distance codes 20886 var here Code // retrieved table entry 20887 var op uint32 // code bits, operation, extra bits, or 20888 // window position, window bytes to copy 20889 var len uint32 // match length, unused bytes 20890 var dist uint32 // match distance 20891 var from uintptr // where to copy match from 20892 20893 // copy state to local variables 20894 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 20895 in = (*Z_stream)(unsafe.Pointer(strm)).Fnext_in 20896 last = (in + uintptr(((*Z_stream)(unsafe.Pointer(strm)).Favail_in - UInt(5)))) 20897 out = (*Z_stream)(unsafe.Pointer(strm)).Fnext_out 20898 beg = (out - uintptr((start - (*Z_stream)(unsafe.Pointer(strm)).Favail_out))) 20899 end = (out + uintptr(((*Z_stream)(unsafe.Pointer(strm)).Favail_out - UInt(257)))) 20900 wsize = (*Inflate_state)(unsafe.Pointer(state)).Fwsize 20901 whave = (*Inflate_state)(unsafe.Pointer(state)).Fwhave 20902 wnext = (*Inflate_state)(unsafe.Pointer(state)).Fwnext 20903 window = (*Inflate_state)(unsafe.Pointer(state)).Fwindow 20904 hold = (*Inflate_state)(unsafe.Pointer(state)).Fhold 20905 bits = (*Inflate_state)(unsafe.Pointer(state)).Fbits 20906 lcode = (*Inflate_state)(unsafe.Pointer(state)).Flencode 20907 dcode = (*Inflate_state)(unsafe.Pointer(state)).Fdistcode 20908 lmask = ((uint32(1) << (*Inflate_state)(unsafe.Pointer(state)).Flenbits) - uint32(1)) 20909 dmask = ((uint32(1) << (*Inflate_state)(unsafe.Pointer(state)).Fdistbits) - uint32(1)) 20910 20911 // decode literals and length/distances until end-of-block or not enough 20912 // input data or output space 20913 __1: 20914 if !(bits < uint32(15)) { 20915 goto __4 20916 } 20917 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))) << bits) 20918 bits = bits + (uint32(8)) 20919 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))) << bits) 20920 bits = bits + (uint32(8)) 20921 __4: 20922 ; 20923 here = *(*Code)(unsafe.Pointer(lcode + uintptr((hold&uint64(lmask)))*4)) 20924 dolen: 20925 op = uint32(here.Fbits) 20926 hold >>= op 20927 bits = bits - (op) 20928 op = uint32(here.Fop) 20929 if !(op == uint32(0)) { 20930 goto __5 20931 } // literal 20932 20933 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = uint8(here.Fval) 20934 goto __6 20935 __5: 20936 if !((op & uint32(16)) != 0) { 20937 goto __7 20938 } // length base 20939 len = uint32(here.Fval) 20940 op = op & (uint32(15)) // number of extra bits 20941 if !(op != 0) { 20942 goto __9 20943 } 20944 if !(bits < op) { 20945 goto __10 20946 } 20947 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))) << bits) 20948 bits = bits + (uint32(8)) 20949 __10: 20950 ; 20951 len = len + (uint32(hold) & ((uint32(1) << op) - uint32(1))) 20952 hold >>= op 20953 bits = bits - (op) 20954 __9: 20955 ; 20956 20957 if !(bits < uint32(15)) { 20958 goto __11 20959 } 20960 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))) << bits) 20961 bits = bits + (uint32(8)) 20962 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))) << bits) 20963 bits = bits + (uint32(8)) 20964 __11: 20965 ; 20966 here = *(*Code)(unsafe.Pointer(dcode + uintptr((hold&uint64(dmask)))*4)) 20967 dodist: 20968 op = uint32(here.Fbits) 20969 hold >>= op 20970 bits = bits - (op) 20971 op = uint32(here.Fop) 20972 if !((op & uint32(16)) != 0) { 20973 goto __12 20974 } // distance base 20975 dist = uint32(here.Fval) 20976 op = op & (uint32(15)) // number of extra bits 20977 if !(bits < op) { 20978 goto __14 20979 } 20980 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))) << bits) 20981 bits = bits + (uint32(8)) 20982 if !(bits < op) { 20983 goto __15 20984 } 20985 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))) << bits) 20986 bits = bits + (uint32(8)) 20987 __15: 20988 ; 20989 __14: 20990 ; 20991 dist = dist + (uint32(hold) & ((uint32(1) << op) - uint32(1))) 20992 hold >>= op 20993 bits = bits - (op) 20994 20995 op = (uint32((int64(out) - int64(beg)) / 1)) // max distance in output 20996 if !(dist > op) { 20997 goto __16 20998 } // see if copy from window 20999 op = (dist - op) // distance back in window 21000 if !(op > whave) { 21001 goto __18 21002 } 21003 if !((*Inflate_state)(unsafe.Pointer(state)).Fsane != 0) { 21004 goto __19 21005 } 21006 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 639 /* "invalid distance..." */ 21007 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 21008 goto __3 21009 __19: 21010 ; 21011 __18: 21012 ; 21013 from = window 21014 if !(wnext == uint32(0)) { 21015 goto __20 21016 } // very common case 21017 from += (uintptr(wsize - op)) 21018 if !(op < len) { 21019 goto __22 21020 } // some from window 21021 len = len - (op) 21022 __23: 21023 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21024 goto __24 21025 __24: 21026 if libc.PreDecUint32(&op, 1) != 0 { 21027 goto __23 21028 } 21029 goto __25 21030 __25: 21031 ; 21032 from = (out - uintptr(dist)) // rest from output 21033 __22: 21034 ; 21035 goto __21 21036 __20: 21037 if !(wnext < op) { 21038 goto __26 21039 } // wrap around window 21040 from += (uintptr((wsize + wnext) - op)) 21041 op = op - (wnext) 21042 if !(op < len) { 21043 goto __28 21044 } // some from end of window 21045 len = len - (op) 21046 __29: 21047 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21048 goto __30 21049 __30: 21050 if libc.PreDecUint32(&op, 1) != 0 { 21051 goto __29 21052 } 21053 goto __31 21054 __31: 21055 ; 21056 from = window 21057 if !(wnext < len) { 21058 goto __32 21059 } // some from start of window 21060 op = wnext 21061 len = len - (op) 21062 __33: 21063 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21064 goto __34 21065 __34: 21066 if libc.PreDecUint32(&op, 1) != 0 { 21067 goto __33 21068 } 21069 goto __35 21070 __35: 21071 ; 21072 from = (out - uintptr(dist)) // rest from output 21073 __32: 21074 ; 21075 __28: 21076 ; 21077 goto __27 21078 __26: // contiguous in window 21079 from += (uintptr(wnext - op)) 21080 if !(op < len) { 21081 goto __36 21082 } // some from window 21083 len = len - (op) 21084 __37: 21085 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21086 goto __38 21087 __38: 21088 if libc.PreDecUint32(&op, 1) != 0 { 21089 goto __37 21090 } 21091 goto __39 21092 __39: 21093 ; 21094 from = (out - uintptr(dist)) // rest from output 21095 __36: 21096 ; 21097 __27: 21098 ; 21099 __21: 21100 ; 21101 __40: 21102 if !(len > uint32(2)) { 21103 goto __41 21104 } 21105 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21106 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21107 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21108 len = len - (uint32(3)) 21109 goto __40 21110 __41: 21111 ; 21112 if !(len != 0) { 21113 goto __42 21114 } 21115 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21116 if !(len > uint32(1)) { 21117 goto __43 21118 } 21119 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21120 __43: 21121 ; 21122 __42: 21123 ; 21124 goto __17 21125 __16: 21126 from = (out - uintptr(dist)) // copy direct from output 21127 __44: // minimum length is three 21128 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21129 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21130 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21131 len = len - (uint32(3)) 21132 goto __45 21133 __45: 21134 if len > uint32(2) { 21135 goto __44 21136 } 21137 goto __46 21138 __46: 21139 ; 21140 if !(len != 0) { 21141 goto __47 21142 } 21143 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21144 if !(len > uint32(1)) { 21145 goto __48 21146 } 21147 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 21148 __48: 21149 ; 21150 __47: 21151 ; 21152 __17: 21153 ; 21154 goto __13 21155 __12: 21156 if !((op & uint32(64)) == uint32(0)) { 21157 goto __49 21158 } // 2nd level distance code 21159 here = *(*Code)(unsafe.Pointer(dcode + uintptr((uint64(here.Fval)+(hold&(uint64((uint32(1)<<op)-uint32(1))))))*4)) 21160 goto dodist 21161 goto __50 21162 __49: 21163 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 617 /* "invalid distance..." */ 21164 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 21165 goto __3 21166 __50: 21167 ; 21168 __13: 21169 ; 21170 goto __8 21171 __7: 21172 if !((op & uint32(64)) == uint32(0)) { 21173 goto __51 21174 } // 2nd level length code 21175 here = *(*Code)(unsafe.Pointer(lcode + uintptr((uint64(here.Fval)+(hold&(uint64((uint32(1)<<op)-uint32(1))))))*4)) 21176 goto dolen 21177 goto __52 21178 __51: 21179 if !((op & uint32(32)) != 0) { 21180 goto __53 21181 } // end-of-block 21182 21183 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TYPE 21184 goto __3 21185 goto __54 21186 __53: 21187 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 589 /* "invalid literal/..." */ 21188 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 21189 goto __3 21190 __54: 21191 ; 21192 __52: 21193 ; 21194 __8: 21195 ; 21196 __6: 21197 ; 21198 goto __2 21199 __2: 21200 if (in < last) && (out < end) { 21201 goto __1 21202 } 21203 goto __3 21204 __3: 21205 ; 21206 21207 // return unused bytes (on entry, bits < 8, so in won't go too far back) 21208 len = (bits >> 3) 21209 in -= uintptr(len) 21210 bits = bits - (len << 3) 21211 hold = hold & (uint64((uint32(1) << bits) - uint32(1))) 21212 21213 // update state and return 21214 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = in 21215 (*Z_stream)(unsafe.Pointer(strm)).Fnext_out = out 21216 (*Z_stream)(unsafe.Pointer(strm)).Favail_in = func() uint32 { 21217 if in < last { 21218 return (uint32(int64(5) + ((int64(last) - int64(in)) / 1))) 21219 } 21220 return (uint32(int64(5) - ((int64(in) - int64(last)) / 1))) 21221 }() 21222 (*Z_stream)(unsafe.Pointer(strm)).Favail_out = func() uint32 { 21223 if out < end { 21224 return (uint32(int64(257) + ((int64(end) - int64(out)) / 1))) 21225 } 21226 return (uint32(int64(257) - ((int64(out) - int64(end)) / 1))) 21227 }() 21228 (*Inflate_state)(unsafe.Pointer(state)).Fhold = hold 21229 (*Inflate_state)(unsafe.Pointer(state)).Fbits = bits 21230 return 21231 } 21232 21233 // 21234 // inflate_fast() speedups that turned out slower (on a PowerPC G3 750CXe): 21235 // - Using bit fields for code structure 21236 // - Different op definition to avoid & for extra bits (do & for table bits) 21237 // - Three separate decoding do-loops for direct, window, and wnext == 0 21238 // - Special case for distance > 1 copies to do overlapped load and store copy 21239 // - Explicit branch predictions (based on measured branch probabilities) 21240 // - Deferring match copy and interspersed it with decoding subsequent codes 21241 // - Swapping literal/length else 21242 // - Swapping window/direct else 21243 // - Larger unrolled copy loops (three is about right) 21244 // - Moving len -= 3 statement into middle of loop 21245 // 21246 21247 func inflateStateCheck(tls *libc.TLS, strm Z_streamp) int32 { /* inflate.c:105:11: */ 21248 var state uintptr 21249 if ((strm == uintptr(Z_NULL)) || ((*Z_stream)(unsafe.Pointer(strm)).Fzalloc == uintptr(0))) || ((*Z_stream)(unsafe.Pointer(strm)).Fzfree == uintptr(0)) { 21250 return 1 21251 } 21252 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 21253 if (((state == uintptr(Z_NULL)) || ((*Inflate_state)(unsafe.Pointer(state)).Fstrm != strm)) || ((*Inflate_state)(unsafe.Pointer(state)).Fmode < HEAD)) || ((*Inflate_state)(unsafe.Pointer(state)).Fmode > SYNC) { 21254 return 1 21255 } 21256 return 0 21257 } 21258 21259 func XinflateResetKeep(tls *libc.TLS, strm Z_streamp) int32 { /* inflate.c:119:13: */ 21260 var state uintptr 21261 21262 if inflateStateCheck(tls, strm) != 0 { 21263 return -2 21264 } 21265 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 21266 (*Z_stream)(unsafe.Pointer(strm)).Ftotal_in = libc.AssignPtrUint64(strm+40 /* &.total_out */, libc.AssignPtrUint64(state+40 /* &.total */, uint64(0))) 21267 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(Z_NULL) 21268 if (*Inflate_state)(unsafe.Pointer(state)).Fwrap != 0 { // to support ill-conceived Java test suite 21269 (*Z_stream)(unsafe.Pointer(strm)).Fadler = (ULong((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 1)) 21270 } 21271 (*Inflate_state)(unsafe.Pointer(state)).Fmode = HEAD 21272 (*Inflate_state)(unsafe.Pointer(state)).Flast = 0 21273 (*Inflate_state)(unsafe.Pointer(state)).Fhavedict = 0 21274 (*Inflate_state)(unsafe.Pointer(state)).Fdmax = 32768 21275 (*Inflate_state)(unsafe.Pointer(state)).Fhead = Gz_headerp(Z_NULL) 21276 (*Inflate_state)(unsafe.Pointer(state)).Fhold = uint64(0) 21277 (*Inflate_state)(unsafe.Pointer(state)).Fbits = uint32(0) 21278 (*Inflate_state)(unsafe.Pointer(state)).Flencode = libc.AssignPtrUintptr(state+112 /* &.distcode */, libc.AssignPtrUintptr(state+144 /* &.next */, state+1368 /* &.codes */)) 21279 (*Inflate_state)(unsafe.Pointer(state)).Fsane = 1 21280 (*Inflate_state)(unsafe.Pointer(state)).Fback = -1 21281 21282 return Z_OK 21283 } 21284 21285 func XinflateReset(tls *libc.TLS, strm Z_streamp) int32 { /* inflate.c:144:13: */ 21286 var state uintptr 21287 21288 if inflateStateCheck(tls, strm) != 0 { 21289 return -2 21290 } 21291 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 21292 (*Inflate_state)(unsafe.Pointer(state)).Fwsize = uint32(0) 21293 (*Inflate_state)(unsafe.Pointer(state)).Fwhave = uint32(0) 21294 (*Inflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0) 21295 return XinflateResetKeep(tls, strm) 21296 } 21297 21298 func XinflateReset2(tls *libc.TLS, strm Z_streamp, windowBits int32) int32 { /* inflate.c:157:13: */ 21299 var wrap int32 21300 var state uintptr 21301 21302 // get the state 21303 if inflateStateCheck(tls, strm) != 0 { 21304 return -2 21305 } 21306 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 21307 21308 // extract wrap request from windowBits parameter 21309 if windowBits < 0 { 21310 wrap = 0 21311 windowBits = -windowBits 21312 } else { 21313 wrap = ((windowBits >> 4) + 5) 21314 if windowBits < 48 { 21315 windowBits = windowBits & (15) 21316 } 21317 } 21318 21319 // set number of window bits, free window if different 21320 if (windowBits != 0) && ((windowBits < 8) || (windowBits > 15)) { 21321 return -2 21322 } 21323 if ((*Inflate_state)(unsafe.Pointer(state)).Fwindow != uintptr(Z_NULL)) && ((*Inflate_state)(unsafe.Pointer(state)).Fwbits != uint32(windowBits)) { 21324 (*struct { 21325 f func(*libc.TLS, Voidpf, Voidpf) 21326 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzfree})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (*Inflate_state)(unsafe.Pointer(state)).Fwindow) 21327 (*Inflate_state)(unsafe.Pointer(state)).Fwindow = uintptr(Z_NULL) 21328 } 21329 21330 // update state and reset the rest of it 21331 (*Inflate_state)(unsafe.Pointer(state)).Fwrap = wrap 21332 (*Inflate_state)(unsafe.Pointer(state)).Fwbits = uint32(windowBits) 21333 return XinflateReset(tls, strm) 21334 } 21335 21336 func XinflateInit2_(tls *libc.TLS, strm Z_streamp, windowBits int32, version uintptr, stream_size int32) int32 { /* inflate.c:195:13: */ 21337 var ret int32 21338 var state uintptr 21339 21340 if ((version == uintptr(Z_NULL)) || (int32(*(*int8)(unsafe.Pointer(version))) != int32(*(*int8)(unsafe.Pointer(ts /* "1.2.11" */))))) || (stream_size != (int32(unsafe.Sizeof(Z_stream{})))) { 21341 return -6 21342 } 21343 if strm == uintptr(Z_NULL) { 21344 return -2 21345 } 21346 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(Z_NULL) // in case we return an error 21347 if (*Z_stream)(unsafe.Pointer(strm)).Fzalloc == uintptr(0) { 21348 (*Z_stream)(unsafe.Pointer(strm)).Fzalloc = *(*uintptr)(unsafe.Pointer(&struct { 21349 f func(*libc.TLS, Voidpf, uint32, uint32) Voidpf 21350 }{Xzcalloc})) 21351 (*Z_stream)(unsafe.Pointer(strm)).Fopaque = uintptr(0) 21352 } 21353 if (*Z_stream)(unsafe.Pointer(strm)).Fzfree == uintptr(0) { 21354 (*Z_stream)(unsafe.Pointer(strm)).Fzfree = *(*uintptr)(unsafe.Pointer(&struct { 21355 f func(*libc.TLS, Voidpf, Voidpf) 21356 }{Xzcfree})) 21357 } 21358 state = (*struct { 21359 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 21360 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, uint32(1), uint32(unsafe.Sizeof(Inflate_state{}))) 21361 if state == uintptr(Z_NULL) { 21362 return -4 21363 } 21364 21365 (*Z_stream)(unsafe.Pointer(strm)).Fstate = state 21366 (*Inflate_state)(unsafe.Pointer(state)).Fstrm = strm 21367 (*Inflate_state)(unsafe.Pointer(state)).Fwindow = uintptr(Z_NULL) 21368 (*Inflate_state)(unsafe.Pointer(state)).Fmode = HEAD // to pass state test in inflateReset2() 21369 ret = XinflateReset2(tls, strm, windowBits) 21370 if ret != Z_OK { 21371 (*struct { 21372 f func(*libc.TLS, Voidpf, Voidpf) 21373 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzfree})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, state) 21374 (*Z_stream)(unsafe.Pointer(strm)).Fstate = uintptr(Z_NULL) 21375 } 21376 return ret 21377 } 21378 21379 func XinflateInit_(tls *libc.TLS, strm Z_streamp, version uintptr, stream_size int32) int32 { /* inflate.c:239:13: */ 21380 return XinflateInit2_(tls, strm, MAX_WBITS, version, stream_size) 21381 } 21382 21383 func XinflatePrime(tls *libc.TLS, strm Z_streamp, bits int32, value int32) int32 { /* inflate.c:247:13: */ 21384 var state uintptr 21385 21386 if inflateStateCheck(tls, strm) != 0 { 21387 return -2 21388 } 21389 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 21390 if bits < 0 { 21391 (*Inflate_state)(unsafe.Pointer(state)).Fhold = uint64(0) 21392 (*Inflate_state)(unsafe.Pointer(state)).Fbits = uint32(0) 21393 return Z_OK 21394 } 21395 if (bits > 16) || (((*Inflate_state)(unsafe.Pointer(state)).Fbits + UInt(bits)) > uint32(32)) { 21396 return -2 21397 } 21398 value = int32(int64(value) & ((int64(1) << bits) - int64(1))) 21399 *(*uint64)(unsafe.Pointer(state + 80 /* &.hold */)) += (uint64(uint32(value) << (*Inflate_state)(unsafe.Pointer(state)).Fbits)) 21400 *(*uint32)(unsafe.Pointer(state + 88 /* &.bits */)) += (UInt(bits)) 21401 return Z_OK 21402 } 21403 21404 // 21405 // Return state with length and distance decoding tables and index sizes set to 21406 // fixed code decoding. Normally this returns fixed tables from inffixed.h. 21407 // If BUILDFIXED is defined, then instead this routine builds the tables the 21408 // first time it's called, and returns those tables the first time and 21409 // thereafter. This reduces the size of the code by about 2K bytes, in 21410 // exchange for a little execution time. However, BUILDFIXED should not be 21411 // used for threaded applications, since the rewriting of the tables and virgin 21412 // may not be thread-safe. 21413 // 21414 func fixedtables1(tls *libc.TLS, state uintptr) { /* inflate.c:278:12: */ 21415 (*Inflate_state)(unsafe.Pointer(state)).Flencode = uintptr(unsafe.Pointer(&lenfix1)) 21416 (*Inflate_state)(unsafe.Pointer(state)).Flenbits = uint32(9) 21417 (*Inflate_state)(unsafe.Pointer(state)).Fdistcode = uintptr(unsafe.Pointer(&distfix1)) 21418 (*Inflate_state)(unsafe.Pointer(state)).Fdistbits = uint32(5) 21419 } 21420 21421 var lenfix1 = [512]Code{ 21422 {Fop: uint8(96), Fbits: uint8(7)}, {Fbits: uint8(8), Fval: uint16(80)}, {Fbits: uint8(8), Fval: uint16(16)}, {Fop: uint8(20), Fbits: uint8(8), Fval: uint16(115)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(31)}, {Fbits: uint8(8), Fval: uint16(112)}, {Fbits: uint8(8), Fval: uint16(48)}, 21423 {Fbits: uint8(9), Fval: uint16(192)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(10)}, {Fbits: uint8(8), Fval: uint16(96)}, {Fbits: uint8(8), Fval: uint16(32)}, {Fbits: uint8(9), Fval: uint16(160)}, {Fbits: uint8(8)}, {Fbits: uint8(8), Fval: uint16(128)}, 21424 {Fbits: uint8(8), Fval: uint16(64)}, {Fbits: uint8(9), Fval: uint16(224)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(6)}, {Fbits: uint8(8), Fval: uint16(88)}, {Fbits: uint8(8), Fval: uint16(24)}, {Fbits: uint8(9), Fval: uint16(144)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(59)}, 21425 {Fbits: uint8(8), Fval: uint16(120)}, {Fbits: uint8(8), Fval: uint16(56)}, {Fbits: uint8(9), Fval: uint16(208)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(17)}, {Fbits: uint8(8), Fval: uint16(104)}, {Fbits: uint8(8), Fval: uint16(40)}, {Fbits: uint8(9), Fval: uint16(176)}, 21426 {Fbits: uint8(8), Fval: uint16(8)}, {Fbits: uint8(8), Fval: uint16(136)}, {Fbits: uint8(8), Fval: uint16(72)}, {Fbits: uint8(9), Fval: uint16(240)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(4)}, {Fbits: uint8(8), Fval: uint16(84)}, {Fbits: uint8(8), Fval: uint16(20)}, 21427 {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(227)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(43)}, {Fbits: uint8(8), Fval: uint16(116)}, {Fbits: uint8(8), Fval: uint16(52)}, {Fbits: uint8(9), Fval: uint16(200)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(13)}, {Fbits: uint8(8), Fval: uint16(100)}, 21428 {Fbits: uint8(8), Fval: uint16(36)}, {Fbits: uint8(9), Fval: uint16(168)}, {Fbits: uint8(8), Fval: uint16(4)}, {Fbits: uint8(8), Fval: uint16(132)}, {Fbits: uint8(8), Fval: uint16(68)}, {Fbits: uint8(9), Fval: uint16(232)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(8)}, 21429 {Fbits: uint8(8), Fval: uint16(92)}, {Fbits: uint8(8), Fval: uint16(28)}, {Fbits: uint8(9), Fval: uint16(152)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(83)}, {Fbits: uint8(8), Fval: uint16(124)}, {Fbits: uint8(8), Fval: uint16(60)}, {Fbits: uint8(9), Fval: uint16(216)}, 21430 {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(23)}, {Fbits: uint8(8), Fval: uint16(108)}, {Fbits: uint8(8), Fval: uint16(44)}, {Fbits: uint8(9), Fval: uint16(184)}, {Fbits: uint8(8), Fval: uint16(12)}, {Fbits: uint8(8), Fval: uint16(140)}, {Fbits: uint8(8), Fval: uint16(76)}, 21431 {Fbits: uint8(9), Fval: uint16(248)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(3)}, {Fbits: uint8(8), Fval: uint16(82)}, {Fbits: uint8(8), Fval: uint16(18)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(163)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(35)}, {Fbits: uint8(8), Fval: uint16(114)}, 21432 {Fbits: uint8(8), Fval: uint16(50)}, {Fbits: uint8(9), Fval: uint16(196)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(11)}, {Fbits: uint8(8), Fval: uint16(98)}, {Fbits: uint8(8), Fval: uint16(34)}, {Fbits: uint8(9), Fval: uint16(164)}, {Fbits: uint8(8), Fval: uint16(2)}, 21433 {Fbits: uint8(8), Fval: uint16(130)}, {Fbits: uint8(8), Fval: uint16(66)}, {Fbits: uint8(9), Fval: uint16(228)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(7)}, {Fbits: uint8(8), Fval: uint16(90)}, {Fbits: uint8(8), Fval: uint16(26)}, {Fbits: uint8(9), Fval: uint16(148)}, 21434 {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(67)}, {Fbits: uint8(8), Fval: uint16(122)}, {Fbits: uint8(8), Fval: uint16(58)}, {Fbits: uint8(9), Fval: uint16(212)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(19)}, {Fbits: uint8(8), Fval: uint16(106)}, {Fbits: uint8(8), Fval: uint16(42)}, 21435 {Fbits: uint8(9), Fval: uint16(180)}, {Fbits: uint8(8), Fval: uint16(10)}, {Fbits: uint8(8), Fval: uint16(138)}, {Fbits: uint8(8), Fval: uint16(74)}, {Fbits: uint8(9), Fval: uint16(244)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(5)}, {Fbits: uint8(8), Fval: uint16(86)}, 21436 {Fbits: uint8(8), Fval: uint16(22)}, {Fop: uint8(64), Fbits: uint8(8)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(51)}, {Fbits: uint8(8), Fval: uint16(118)}, {Fbits: uint8(8), Fval: uint16(54)}, {Fbits: uint8(9), Fval: uint16(204)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(15)}, 21437 {Fbits: uint8(8), Fval: uint16(102)}, {Fbits: uint8(8), Fval: uint16(38)}, {Fbits: uint8(9), Fval: uint16(172)}, {Fbits: uint8(8), Fval: uint16(6)}, {Fbits: uint8(8), Fval: uint16(134)}, {Fbits: uint8(8), Fval: uint16(70)}, {Fbits: uint8(9), Fval: uint16(236)}, 21438 {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(9)}, {Fbits: uint8(8), Fval: uint16(94)}, {Fbits: uint8(8), Fval: uint16(30)}, {Fbits: uint8(9), Fval: uint16(156)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(99)}, {Fbits: uint8(8), Fval: uint16(126)}, {Fbits: uint8(8), Fval: uint16(62)}, 21439 {Fbits: uint8(9), Fval: uint16(220)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(27)}, {Fbits: uint8(8), Fval: uint16(110)}, {Fbits: uint8(8), Fval: uint16(46)}, {Fbits: uint8(9), Fval: uint16(188)}, {Fbits: uint8(8), Fval: uint16(14)}, {Fbits: uint8(8), Fval: uint16(142)}, 21440 {Fbits: uint8(8), Fval: uint16(78)}, {Fbits: uint8(9), Fval: uint16(252)}, {Fop: uint8(96), Fbits: uint8(7)}, {Fbits: uint8(8), Fval: uint16(81)}, {Fbits: uint8(8), Fval: uint16(17)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(131)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(31)}, 21441 {Fbits: uint8(8), Fval: uint16(113)}, {Fbits: uint8(8), Fval: uint16(49)}, {Fbits: uint8(9), Fval: uint16(194)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(10)}, {Fbits: uint8(8), Fval: uint16(97)}, {Fbits: uint8(8), Fval: uint16(33)}, {Fbits: uint8(9), Fval: uint16(162)}, 21442 {Fbits: uint8(8), Fval: uint16(1)}, {Fbits: uint8(8), Fval: uint16(129)}, {Fbits: uint8(8), Fval: uint16(65)}, {Fbits: uint8(9), Fval: uint16(226)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(6)}, {Fbits: uint8(8), Fval: uint16(89)}, {Fbits: uint8(8), Fval: uint16(25)}, 21443 {Fbits: uint8(9), Fval: uint16(146)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(59)}, {Fbits: uint8(8), Fval: uint16(121)}, {Fbits: uint8(8), Fval: uint16(57)}, {Fbits: uint8(9), Fval: uint16(210)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(17)}, {Fbits: uint8(8), Fval: uint16(105)}, 21444 {Fbits: uint8(8), Fval: uint16(41)}, {Fbits: uint8(9), Fval: uint16(178)}, {Fbits: uint8(8), Fval: uint16(9)}, {Fbits: uint8(8), Fval: uint16(137)}, {Fbits: uint8(8), Fval: uint16(73)}, {Fbits: uint8(9), Fval: uint16(242)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(4)}, 21445 {Fbits: uint8(8), Fval: uint16(85)}, {Fbits: uint8(8), Fval: uint16(21)}, {Fop: uint8(16), Fbits: uint8(8), Fval: uint16(258)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(43)}, {Fbits: uint8(8), Fval: uint16(117)}, {Fbits: uint8(8), Fval: uint16(53)}, {Fbits: uint8(9), Fval: uint16(202)}, 21446 {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(13)}, {Fbits: uint8(8), Fval: uint16(101)}, {Fbits: uint8(8), Fval: uint16(37)}, {Fbits: uint8(9), Fval: uint16(170)}, {Fbits: uint8(8), Fval: uint16(5)}, {Fbits: uint8(8), Fval: uint16(133)}, {Fbits: uint8(8), Fval: uint16(69)}, 21447 {Fbits: uint8(9), Fval: uint16(234)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(8)}, {Fbits: uint8(8), Fval: uint16(93)}, {Fbits: uint8(8), Fval: uint16(29)}, {Fbits: uint8(9), Fval: uint16(154)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(83)}, {Fbits: uint8(8), Fval: uint16(125)}, 21448 {Fbits: uint8(8), Fval: uint16(61)}, {Fbits: uint8(9), Fval: uint16(218)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(23)}, {Fbits: uint8(8), Fval: uint16(109)}, {Fbits: uint8(8), Fval: uint16(45)}, {Fbits: uint8(9), Fval: uint16(186)}, {Fbits: uint8(8), Fval: uint16(13)}, 21449 {Fbits: uint8(8), Fval: uint16(141)}, {Fbits: uint8(8), Fval: uint16(77)}, {Fbits: uint8(9), Fval: uint16(250)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(3)}, {Fbits: uint8(8), Fval: uint16(83)}, {Fbits: uint8(8), Fval: uint16(19)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(195)}, 21450 {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(35)}, {Fbits: uint8(8), Fval: uint16(115)}, {Fbits: uint8(8), Fval: uint16(51)}, {Fbits: uint8(9), Fval: uint16(198)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(11)}, {Fbits: uint8(8), Fval: uint16(99)}, {Fbits: uint8(8), Fval: uint16(35)}, 21451 {Fbits: uint8(9), Fval: uint16(166)}, {Fbits: uint8(8), Fval: uint16(3)}, {Fbits: uint8(8), Fval: uint16(131)}, {Fbits: uint8(8), Fval: uint16(67)}, {Fbits: uint8(9), Fval: uint16(230)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(7)}, {Fbits: uint8(8), Fval: uint16(91)}, 21452 {Fbits: uint8(8), Fval: uint16(27)}, {Fbits: uint8(9), Fval: uint16(150)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(67)}, {Fbits: uint8(8), Fval: uint16(123)}, {Fbits: uint8(8), Fval: uint16(59)}, {Fbits: uint8(9), Fval: uint16(214)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(19)}, 21453 {Fbits: uint8(8), Fval: uint16(107)}, {Fbits: uint8(8), Fval: uint16(43)}, {Fbits: uint8(9), Fval: uint16(182)}, {Fbits: uint8(8), Fval: uint16(11)}, {Fbits: uint8(8), Fval: uint16(139)}, {Fbits: uint8(8), Fval: uint16(75)}, {Fbits: uint8(9), Fval: uint16(246)}, 21454 {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(5)}, {Fbits: uint8(8), Fval: uint16(87)}, {Fbits: uint8(8), Fval: uint16(23)}, {Fop: uint8(64), Fbits: uint8(8)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(51)}, {Fbits: uint8(8), Fval: uint16(119)}, {Fbits: uint8(8), Fval: uint16(55)}, 21455 {Fbits: uint8(9), Fval: uint16(206)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(15)}, {Fbits: uint8(8), Fval: uint16(103)}, {Fbits: uint8(8), Fval: uint16(39)}, {Fbits: uint8(9), Fval: uint16(174)}, {Fbits: uint8(8), Fval: uint16(7)}, {Fbits: uint8(8), Fval: uint16(135)}, 21456 {Fbits: uint8(8), Fval: uint16(71)}, {Fbits: uint8(9), Fval: uint16(238)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(9)}, {Fbits: uint8(8), Fval: uint16(95)}, {Fbits: uint8(8), Fval: uint16(31)}, {Fbits: uint8(9), Fval: uint16(158)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(99)}, 21457 {Fbits: uint8(8), Fval: uint16(127)}, {Fbits: uint8(8), Fval: uint16(63)}, {Fbits: uint8(9), Fval: uint16(222)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(27)}, {Fbits: uint8(8), Fval: uint16(111)}, {Fbits: uint8(8), Fval: uint16(47)}, {Fbits: uint8(9), Fval: uint16(190)}, 21458 {Fbits: uint8(8), Fval: uint16(15)}, {Fbits: uint8(8), Fval: uint16(143)}, {Fbits: uint8(8), Fval: uint16(79)}, {Fbits: uint8(9), Fval: uint16(254)}, {Fop: uint8(96), Fbits: uint8(7)}, {Fbits: uint8(8), Fval: uint16(80)}, {Fbits: uint8(8), Fval: uint16(16)}, 21459 {Fop: uint8(20), Fbits: uint8(8), Fval: uint16(115)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(31)}, {Fbits: uint8(8), Fval: uint16(112)}, {Fbits: uint8(8), Fval: uint16(48)}, {Fbits: uint8(9), Fval: uint16(193)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(10)}, {Fbits: uint8(8), Fval: uint16(96)}, 21460 {Fbits: uint8(8), Fval: uint16(32)}, {Fbits: uint8(9), Fval: uint16(161)}, {Fbits: uint8(8)}, {Fbits: uint8(8), Fval: uint16(128)}, {Fbits: uint8(8), Fval: uint16(64)}, {Fbits: uint8(9), Fval: uint16(225)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(6)}, 21461 {Fbits: uint8(8), Fval: uint16(88)}, {Fbits: uint8(8), Fval: uint16(24)}, {Fbits: uint8(9), Fval: uint16(145)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(59)}, {Fbits: uint8(8), Fval: uint16(120)}, {Fbits: uint8(8), Fval: uint16(56)}, {Fbits: uint8(9), Fval: uint16(209)}, 21462 {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(17)}, {Fbits: uint8(8), Fval: uint16(104)}, {Fbits: uint8(8), Fval: uint16(40)}, {Fbits: uint8(9), Fval: uint16(177)}, {Fbits: uint8(8), Fval: uint16(8)}, {Fbits: uint8(8), Fval: uint16(136)}, {Fbits: uint8(8), Fval: uint16(72)}, 21463 {Fbits: uint8(9), Fval: uint16(241)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(4)}, {Fbits: uint8(8), Fval: uint16(84)}, {Fbits: uint8(8), Fval: uint16(20)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(227)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(43)}, {Fbits: uint8(8), Fval: uint16(116)}, 21464 {Fbits: uint8(8), Fval: uint16(52)}, {Fbits: uint8(9), Fval: uint16(201)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(13)}, {Fbits: uint8(8), Fval: uint16(100)}, {Fbits: uint8(8), Fval: uint16(36)}, {Fbits: uint8(9), Fval: uint16(169)}, {Fbits: uint8(8), Fval: uint16(4)}, 21465 {Fbits: uint8(8), Fval: uint16(132)}, {Fbits: uint8(8), Fval: uint16(68)}, {Fbits: uint8(9), Fval: uint16(233)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(8)}, {Fbits: uint8(8), Fval: uint16(92)}, {Fbits: uint8(8), Fval: uint16(28)}, {Fbits: uint8(9), Fval: uint16(153)}, 21466 {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(83)}, {Fbits: uint8(8), Fval: uint16(124)}, {Fbits: uint8(8), Fval: uint16(60)}, {Fbits: uint8(9), Fval: uint16(217)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(23)}, {Fbits: uint8(8), Fval: uint16(108)}, {Fbits: uint8(8), Fval: uint16(44)}, 21467 {Fbits: uint8(9), Fval: uint16(185)}, {Fbits: uint8(8), Fval: uint16(12)}, {Fbits: uint8(8), Fval: uint16(140)}, {Fbits: uint8(8), Fval: uint16(76)}, {Fbits: uint8(9), Fval: uint16(249)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(3)}, {Fbits: uint8(8), Fval: uint16(82)}, 21468 {Fbits: uint8(8), Fval: uint16(18)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(163)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(35)}, {Fbits: uint8(8), Fval: uint16(114)}, {Fbits: uint8(8), Fval: uint16(50)}, {Fbits: uint8(9), Fval: uint16(197)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(11)}, 21469 {Fbits: uint8(8), Fval: uint16(98)}, {Fbits: uint8(8), Fval: uint16(34)}, {Fbits: uint8(9), Fval: uint16(165)}, {Fbits: uint8(8), Fval: uint16(2)}, {Fbits: uint8(8), Fval: uint16(130)}, {Fbits: uint8(8), Fval: uint16(66)}, {Fbits: uint8(9), Fval: uint16(229)}, 21470 {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(7)}, {Fbits: uint8(8), Fval: uint16(90)}, {Fbits: uint8(8), Fval: uint16(26)}, {Fbits: uint8(9), Fval: uint16(149)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(67)}, {Fbits: uint8(8), Fval: uint16(122)}, {Fbits: uint8(8), Fval: uint16(58)}, 21471 {Fbits: uint8(9), Fval: uint16(213)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(19)}, {Fbits: uint8(8), Fval: uint16(106)}, {Fbits: uint8(8), Fval: uint16(42)}, {Fbits: uint8(9), Fval: uint16(181)}, {Fbits: uint8(8), Fval: uint16(10)}, {Fbits: uint8(8), Fval: uint16(138)}, 21472 {Fbits: uint8(8), Fval: uint16(74)}, {Fbits: uint8(9), Fval: uint16(245)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(5)}, {Fbits: uint8(8), Fval: uint16(86)}, {Fbits: uint8(8), Fval: uint16(22)}, {Fop: uint8(64), Fbits: uint8(8)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(51)}, 21473 {Fbits: uint8(8), Fval: uint16(118)}, {Fbits: uint8(8), Fval: uint16(54)}, {Fbits: uint8(9), Fval: uint16(205)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(15)}, {Fbits: uint8(8), Fval: uint16(102)}, {Fbits: uint8(8), Fval: uint16(38)}, {Fbits: uint8(9), Fval: uint16(173)}, 21474 {Fbits: uint8(8), Fval: uint16(6)}, {Fbits: uint8(8), Fval: uint16(134)}, {Fbits: uint8(8), Fval: uint16(70)}, {Fbits: uint8(9), Fval: uint16(237)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(9)}, {Fbits: uint8(8), Fval: uint16(94)}, {Fbits: uint8(8), Fval: uint16(30)}, 21475 {Fbits: uint8(9), Fval: uint16(157)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(99)}, {Fbits: uint8(8), Fval: uint16(126)}, {Fbits: uint8(8), Fval: uint16(62)}, {Fbits: uint8(9), Fval: uint16(221)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(27)}, {Fbits: uint8(8), Fval: uint16(110)}, 21476 {Fbits: uint8(8), Fval: uint16(46)}, {Fbits: uint8(9), Fval: uint16(189)}, {Fbits: uint8(8), Fval: uint16(14)}, {Fbits: uint8(8), Fval: uint16(142)}, {Fbits: uint8(8), Fval: uint16(78)}, {Fbits: uint8(9), Fval: uint16(253)}, {Fop: uint8(96), Fbits: uint8(7)}, 21477 {Fbits: uint8(8), Fval: uint16(81)}, {Fbits: uint8(8), Fval: uint16(17)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(131)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(31)}, {Fbits: uint8(8), Fval: uint16(113)}, {Fbits: uint8(8), Fval: uint16(49)}, {Fbits: uint8(9), Fval: uint16(195)}, 21478 {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(10)}, {Fbits: uint8(8), Fval: uint16(97)}, {Fbits: uint8(8), Fval: uint16(33)}, {Fbits: uint8(9), Fval: uint16(163)}, {Fbits: uint8(8), Fval: uint16(1)}, {Fbits: uint8(8), Fval: uint16(129)}, {Fbits: uint8(8), Fval: uint16(65)}, 21479 {Fbits: uint8(9), Fval: uint16(227)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(6)}, {Fbits: uint8(8), Fval: uint16(89)}, {Fbits: uint8(8), Fval: uint16(25)}, {Fbits: uint8(9), Fval: uint16(147)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(59)}, {Fbits: uint8(8), Fval: uint16(121)}, 21480 {Fbits: uint8(8), Fval: uint16(57)}, {Fbits: uint8(9), Fval: uint16(211)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(17)}, {Fbits: uint8(8), Fval: uint16(105)}, {Fbits: uint8(8), Fval: uint16(41)}, {Fbits: uint8(9), Fval: uint16(179)}, {Fbits: uint8(8), Fval: uint16(9)}, 21481 {Fbits: uint8(8), Fval: uint16(137)}, {Fbits: uint8(8), Fval: uint16(73)}, {Fbits: uint8(9), Fval: uint16(243)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(4)}, {Fbits: uint8(8), Fval: uint16(85)}, {Fbits: uint8(8), Fval: uint16(21)}, {Fop: uint8(16), Fbits: uint8(8), Fval: uint16(258)}, 21482 {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(43)}, {Fbits: uint8(8), Fval: uint16(117)}, {Fbits: uint8(8), Fval: uint16(53)}, {Fbits: uint8(9), Fval: uint16(203)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(13)}, {Fbits: uint8(8), Fval: uint16(101)}, {Fbits: uint8(8), Fval: uint16(37)}, 21483 {Fbits: uint8(9), Fval: uint16(171)}, {Fbits: uint8(8), Fval: uint16(5)}, {Fbits: uint8(8), Fval: uint16(133)}, {Fbits: uint8(8), Fval: uint16(69)}, {Fbits: uint8(9), Fval: uint16(235)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(8)}, {Fbits: uint8(8), Fval: uint16(93)}, 21484 {Fbits: uint8(8), Fval: uint16(29)}, {Fbits: uint8(9), Fval: uint16(155)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(83)}, {Fbits: uint8(8), Fval: uint16(125)}, {Fbits: uint8(8), Fval: uint16(61)}, {Fbits: uint8(9), Fval: uint16(219)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(23)}, 21485 {Fbits: uint8(8), Fval: uint16(109)}, {Fbits: uint8(8), Fval: uint16(45)}, {Fbits: uint8(9), Fval: uint16(187)}, {Fbits: uint8(8), Fval: uint16(13)}, {Fbits: uint8(8), Fval: uint16(141)}, {Fbits: uint8(8), Fval: uint16(77)}, {Fbits: uint8(9), Fval: uint16(251)}, 21486 {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(3)}, {Fbits: uint8(8), Fval: uint16(83)}, {Fbits: uint8(8), Fval: uint16(19)}, {Fop: uint8(21), Fbits: uint8(8), Fval: uint16(195)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(35)}, {Fbits: uint8(8), Fval: uint16(115)}, {Fbits: uint8(8), Fval: uint16(51)}, 21487 {Fbits: uint8(9), Fval: uint16(199)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(11)}, {Fbits: uint8(8), Fval: uint16(99)}, {Fbits: uint8(8), Fval: uint16(35)}, {Fbits: uint8(9), Fval: uint16(167)}, {Fbits: uint8(8), Fval: uint16(3)}, {Fbits: uint8(8), Fval: uint16(131)}, 21488 {Fbits: uint8(8), Fval: uint16(67)}, {Fbits: uint8(9), Fval: uint16(231)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(7)}, {Fbits: uint8(8), Fval: uint16(91)}, {Fbits: uint8(8), Fval: uint16(27)}, {Fbits: uint8(9), Fval: uint16(151)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(67)}, 21489 {Fbits: uint8(8), Fval: uint16(123)}, {Fbits: uint8(8), Fval: uint16(59)}, {Fbits: uint8(9), Fval: uint16(215)}, {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(19)}, {Fbits: uint8(8), Fval: uint16(107)}, {Fbits: uint8(8), Fval: uint16(43)}, {Fbits: uint8(9), Fval: uint16(183)}, 21490 {Fbits: uint8(8), Fval: uint16(11)}, {Fbits: uint8(8), Fval: uint16(139)}, {Fbits: uint8(8), Fval: uint16(75)}, {Fbits: uint8(9), Fval: uint16(247)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(5)}, {Fbits: uint8(8), Fval: uint16(87)}, {Fbits: uint8(8), Fval: uint16(23)}, 21491 {Fop: uint8(64), Fbits: uint8(8)}, {Fop: uint8(19), Fbits: uint8(7), Fval: uint16(51)}, {Fbits: uint8(8), Fval: uint16(119)}, {Fbits: uint8(8), Fval: uint16(55)}, {Fbits: uint8(9), Fval: uint16(207)}, {Fop: uint8(17), Fbits: uint8(7), Fval: uint16(15)}, {Fbits: uint8(8), Fval: uint16(103)}, 21492 {Fbits: uint8(8), Fval: uint16(39)}, {Fbits: uint8(9), Fval: uint16(175)}, {Fbits: uint8(8), Fval: uint16(7)}, {Fbits: uint8(8), Fval: uint16(135)}, {Fbits: uint8(8), Fval: uint16(71)}, {Fbits: uint8(9), Fval: uint16(239)}, {Fop: uint8(16), Fbits: uint8(7), Fval: uint16(9)}, 21493 {Fbits: uint8(8), Fval: uint16(95)}, {Fbits: uint8(8), Fval: uint16(31)}, {Fbits: uint8(9), Fval: uint16(159)}, {Fop: uint8(20), Fbits: uint8(7), Fval: uint16(99)}, {Fbits: uint8(8), Fval: uint16(127)}, {Fbits: uint8(8), Fval: uint16(63)}, {Fbits: uint8(9), Fval: uint16(223)}, 21494 {Fop: uint8(18), Fbits: uint8(7), Fval: uint16(27)}, {Fbits: uint8(8), Fval: uint16(111)}, {Fbits: uint8(8), Fval: uint16(47)}, {Fbits: uint8(9), Fval: uint16(191)}, {Fbits: uint8(8), Fval: uint16(15)}, {Fbits: uint8(8), Fval: uint16(143)}, {Fbits: uint8(8), Fval: uint16(79)}, 21495 {Fbits: uint8(9), Fval: uint16(255)}, 21496 } /* inffixed.h:10:23 */ 21497 var distfix1 = [32]Code{ 21498 {Fop: uint8(16), Fbits: uint8(5), Fval: uint16(1)}, {Fop: uint8(23), Fbits: uint8(5), Fval: uint16(257)}, {Fop: uint8(19), Fbits: uint8(5), Fval: uint16(17)}, {Fop: uint8(27), Fbits: uint8(5), Fval: uint16(4097)}, {Fop: uint8(17), Fbits: uint8(5), Fval: uint16(5)}, {Fop: uint8(25), Fbits: uint8(5), Fval: uint16(1025)}, 21499 {Fop: uint8(21), Fbits: uint8(5), Fval: uint16(65)}, {Fop: uint8(29), Fbits: uint8(5), Fval: uint16(16385)}, {Fop: uint8(16), Fbits: uint8(5), Fval: uint16(3)}, {Fop: uint8(24), Fbits: uint8(5), Fval: uint16(513)}, {Fop: uint8(20), Fbits: uint8(5), Fval: uint16(33)}, {Fop: uint8(28), Fbits: uint8(5), Fval: uint16(8193)}, 21500 {Fop: uint8(18), Fbits: uint8(5), Fval: uint16(9)}, {Fop: uint8(26), Fbits: uint8(5), Fval: uint16(2049)}, {Fop: uint8(22), Fbits: uint8(5), Fval: uint16(129)}, {Fop: uint8(64), Fbits: uint8(5)}, {Fop: uint8(16), Fbits: uint8(5), Fval: uint16(2)}, {Fop: uint8(23), Fbits: uint8(5), Fval: uint16(385)}, 21501 {Fop: uint8(19), Fbits: uint8(5), Fval: uint16(25)}, {Fop: uint8(27), Fbits: uint8(5), Fval: uint16(6145)}, {Fop: uint8(17), Fbits: uint8(5), Fval: uint16(7)}, {Fop: uint8(25), Fbits: uint8(5), Fval: uint16(1537)}, {Fop: uint8(21), Fbits: uint8(5), Fval: uint16(97)}, {Fop: uint8(29), Fbits: uint8(5), Fval: uint16(24577)}, 21502 {Fop: uint8(16), Fbits: uint8(5), Fval: uint16(4)}, {Fop: uint8(24), Fbits: uint8(5), Fval: uint16(769)}, {Fop: uint8(20), Fbits: uint8(5), Fval: uint16(49)}, {Fop: uint8(28), Fbits: uint8(5), Fval: uint16(12289)}, {Fop: uint8(18), Fbits: uint8(5), Fval: uint16(13)}, {Fop: uint8(26), Fbits: uint8(5), Fval: uint16(3073)}, 21503 {Fop: uint8(22), Fbits: uint8(5), Fval: uint16(193)}, {Fop: uint8(64), Fbits: uint8(5)}, 21504 } /* inffixed.h:87:23 */ 21505 21506 // 21507 // Update the window with the last wsize (normally 32K) bytes written before 21508 // returning. If window does not exist yet, create it. This is only called 21509 // when a window is already in use, or when output has been written during this 21510 // inflate call, but the end of the deflate stream has not been reached yet. 21511 // It is also called to create a window for dictionary data when a dictionary 21512 // is loaded. 21513 // 21514 // Providing output buffers larger than 32K to inflate() should provide a speed 21515 // advantage, since only the last 32K of output is copied to the sliding window 21516 // upon return from inflate(), and since all distances after the first 32K of 21517 // output will fall in the output data, making match copies simpler and faster. 21518 // The advantage may be dependent on the size of the processor's data caches. 21519 // 21520 func updatewindow(tls *libc.TLS, strm Z_streamp, end uintptr, copy uint32) int32 { /* inflate.c:396:11: */ 21521 var state uintptr 21522 var dist uint32 21523 21524 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 21525 21526 // if it hasn't been done already, allocate space for the window 21527 if (*Inflate_state)(unsafe.Pointer(state)).Fwindow == uintptr(Z_NULL) { 21528 (*Inflate_state)(unsafe.Pointer(state)).Fwindow = (*struct { 21529 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 21530 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (uint32(1) << (*Inflate_state)(unsafe.Pointer(state)).Fwbits), uint32(unsafe.Sizeof(uint8(0)))) 21531 if (*Inflate_state)(unsafe.Pointer(state)).Fwindow == uintptr(Z_NULL) { 21532 return 1 21533 } 21534 } 21535 21536 // if window not in use yet, initialize 21537 if (*Inflate_state)(unsafe.Pointer(state)).Fwsize == uint32(0) { 21538 (*Inflate_state)(unsafe.Pointer(state)).Fwsize = (uint32(1) << (*Inflate_state)(unsafe.Pointer(state)).Fwbits) 21539 (*Inflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0) 21540 (*Inflate_state)(unsafe.Pointer(state)).Fwhave = uint32(0) 21541 } 21542 21543 // copy state->wsize or less output bytes into the circular window 21544 if copy >= (*Inflate_state)(unsafe.Pointer(state)).Fwsize { 21545 libc.X__builtin___memcpy_chk(tls, (*Inflate_state)(unsafe.Pointer(state)).Fwindow, (end - uintptr((*Inflate_state)(unsafe.Pointer(state)).Fwsize)), uint64((*Inflate_state)(unsafe.Pointer(state)).Fwsize), libc.X__builtin_object_size(tls, (*Inflate_state)(unsafe.Pointer(state)).Fwindow, 0)) 21546 (*Inflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0) 21547 (*Inflate_state)(unsafe.Pointer(state)).Fwhave = (*Inflate_state)(unsafe.Pointer(state)).Fwsize 21548 } else { 21549 dist = ((*Inflate_state)(unsafe.Pointer(state)).Fwsize - (*Inflate_state)(unsafe.Pointer(state)).Fwnext) 21550 if dist > copy { 21551 dist = copy 21552 } 21553 libc.X__builtin___memcpy_chk(tls, ((*Inflate_state)(unsafe.Pointer(state)).Fwindow + uintptr((*Inflate_state)(unsafe.Pointer(state)).Fwnext)), (end - uintptr(copy)), uint64(dist), libc.X__builtin_object_size(tls, ((*Inflate_state)(unsafe.Pointer(state)).Fwindow+uintptr((*Inflate_state)(unsafe.Pointer(state)).Fwnext)), 0)) 21554 copy = copy - (dist) 21555 if copy != 0 { 21556 libc.X__builtin___memcpy_chk(tls, (*Inflate_state)(unsafe.Pointer(state)).Fwindow, (end - uintptr(copy)), uint64(copy), libc.X__builtin_object_size(tls, (*Inflate_state)(unsafe.Pointer(state)).Fwindow, 0)) 21557 (*Inflate_state)(unsafe.Pointer(state)).Fwnext = copy 21558 (*Inflate_state)(unsafe.Pointer(state)).Fwhave = (*Inflate_state)(unsafe.Pointer(state)).Fwsize 21559 } else { 21560 *(*uint32)(unsafe.Pointer(state + 68 /* &.wnext */)) += (dist) 21561 if (*Inflate_state)(unsafe.Pointer(state)).Fwnext == (*Inflate_state)(unsafe.Pointer(state)).Fwsize { 21562 (*Inflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0) 21563 } 21564 if (*Inflate_state)(unsafe.Pointer(state)).Fwhave < (*Inflate_state)(unsafe.Pointer(state)).Fwsize { 21565 *(*uint32)(unsafe.Pointer(state + 64 /* &.whave */)) += (dist) 21566 } 21567 } 21568 } 21569 return 0 21570 } 21571 21572 // Macros for inflate(): 21573 21574 // check function to use adler32() for zlib or crc32() for gzip 21575 21576 // check macros for header crc 21577 21578 // Load registers with state in inflate() for speed 21579 21580 // Restore state from registers in inflate() 21581 21582 // Clear the input bit accumulator 21583 21584 // Get a byte of input into the bit accumulator, or return from inflate() 21585 // if there is no input available. 21586 21587 // Assure that there are at least n bits in the bit accumulator. If there is 21588 // not enough available input to do that, then return from inflate(). 21589 21590 // Return the low n bits of the bit accumulator (n < 16) 21591 21592 // Remove n bits from the bit accumulator 21593 21594 // Remove zero to seven bits as needed to go to a byte boundary 21595 21596 // 21597 // inflate() uses a state machine to process as much input data and generate as 21598 // much output data as possible before returning. The state machine is 21599 // structured roughly as follows: 21600 // 21601 // for (;;) switch (state) { 21602 // ... 21603 // case STATEn: 21604 // if (not enough input data or output space to make progress) 21605 // return; 21606 // ... make progress ... 21607 // state = STATEm; 21608 // break; 21609 // ... 21610 // } 21611 // 21612 // so when inflate() is called again, the same case is attempted again, and 21613 // if the appropriate resources are provided, the machine proceeds to the 21614 // next state. The NEEDBITS() macro is usually the way the state evaluates 21615 // whether it can proceed or should return. NEEDBITS() does the return if 21616 // the requested bits are not available. The typical use of the BITS macros 21617 // is: 21618 // 21619 // NEEDBITS(n); 21620 // ... do something with BITS(n) ... 21621 // DROPBITS(n); 21622 // 21623 // where NEEDBITS(n) either returns from inflate() if there isn't enough 21624 // input left to load n bits into the accumulator, or it continues. BITS(n) 21625 // gives the low n bits in the accumulator. When done, DROPBITS(n) drops 21626 // the low n bits off the accumulator. INITBITS() clears the accumulator 21627 // and sets the number of available bits to zero. BYTEBITS() discards just 21628 // enough bits to put the accumulator on a byte boundary. After BYTEBITS() 21629 // and a NEEDBITS(8), then BITS(8) would return the next byte in the stream. 21630 // 21631 // NEEDBITS(n) uses PULLBYTE() to get an available byte of input, or to return 21632 // if there is no input available. The decoding of variable length codes uses 21633 // PULLBYTE() directly in order to pull just enough bytes to decode the next 21634 // code, and no more. 21635 // 21636 // Some states loop until they get enough input, making sure that enough 21637 // state information is maintained to continue the loop where it left off 21638 // if NEEDBITS() returns in the loop. For example, want, need, and keep 21639 // would all have to actually be part of the saved state in case NEEDBITS() 21640 // returns: 21641 // 21642 // case STATEw: 21643 // while (want < need) { 21644 // NEEDBITS(n); 21645 // keep[want++] = BITS(n); 21646 // DROPBITS(n); 21647 // } 21648 // state = STATEx; 21649 // case STATEx: 21650 // 21651 // As shown above, if the next state is also the next case, then the break 21652 // is omitted. 21653 // 21654 // A state may also return if there is not enough output space available to 21655 // complete that state. Those states are copying stored data, writing a 21656 // literal byte, and copying a matching string. 21657 // 21658 // When returning, a "goto inf_leave" is used to update the total counters, 21659 // update the check value, and determine whether any progress has been made 21660 // during that inflate() call in order to return the proper return code. 21661 // Progress is defined as a change in either strm->avail_in or strm->avail_out. 21662 // When there is a window, goto inf_leave will update the window with the last 21663 // output written. If a goto inf_leave occurs in the middle of decompression 21664 // and there is no window currently, goto inf_leave will create one and copy 21665 // output to the window for the next call of inflate(). 21666 // 21667 // In this implementation, the flush parameter of inflate() only affects the 21668 // return code (per zlib.h). inflate() always writes as much as possible to 21669 // strm->next_out, given the space available and the provided input--the effect 21670 // documented in zlib.h of Z_SYNC_FLUSH. Furthermore, inflate() always defers 21671 // the allocation of and copying into a sliding window until necessary, which 21672 // provides the effect documented in zlib.h for Z_FINISH when the entire input 21673 // stream available. So the only thing the flush parameter actually does is: 21674 // when flush is set to Z_FINISH, inflate() cannot return Z_OK. Instead it 21675 // will return Z_BUF_ERROR if it has not reached the end of the stream. 21676 // 21677 21678 func Xinflate(tls *libc.TLS, strm Z_streamp, flush int32) int32 { /* inflate.c:622:13: */ 21679 bp := tls.Alloc(4) 21680 defer tls.Free(4) 21681 21682 var state uintptr 21683 var next uintptr // next input 21684 var put uintptr // next output 21685 var have uint32 21686 var left uint32 // available input and output 21687 var hold uint64 // bit buffer 21688 var bits uint32 // bits in bit buffer 21689 var in uint32 21690 var out uint32 // save starting available input and output 21691 var copy uint32 // number of stored or match bytes to copy 21692 var from uintptr // where to copy match bytes from 21693 var here Code // current decoding table entry 21694 var last Code // parent table entry 21695 var len uint32 // length to copy for repeats, bits to drop 21696 var ret int32 // return code 21697 // var hbuf [4]uint8 at bp, 4 21698 21699 if !(((inflateStateCheck(tls, strm) != 0) || ((*Z_stream)(unsafe.Pointer(strm)).Fnext_out == uintptr(Z_NULL))) || (((*Z_stream)(unsafe.Pointer(strm)).Fnext_in == uintptr(Z_NULL)) && ((*Z_stream)(unsafe.Pointer(strm)).Favail_in != UInt(0)))) { 21700 goto __1 21701 } 21702 return -2 21703 __1: 21704 ; 21705 21706 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 21707 if !((*Inflate_state)(unsafe.Pointer(state)).Fmode == TYPE) { 21708 goto __2 21709 } 21710 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TYPEDO 21711 __2: 21712 ; // skip check 21713 __3: 21714 put = (*Z_stream)(unsafe.Pointer(strm)).Fnext_out 21715 left = (*Z_stream)(unsafe.Pointer(strm)).Favail_out 21716 next = (*Z_stream)(unsafe.Pointer(strm)).Fnext_in 21717 have = (*Z_stream)(unsafe.Pointer(strm)).Favail_in 21718 hold = (*Inflate_state)(unsafe.Pointer(state)).Fhold 21719 bits = (*Inflate_state)(unsafe.Pointer(state)).Fbits 21720 goto __4 21721 __4: 21722 if 0 != 0 { 21723 goto __3 21724 } 21725 goto __5 21726 __5: 21727 ; 21728 in = have 21729 out = left 21730 ret = Z_OK 21731 __6: 21732 switch (*Inflate_state)(unsafe.Pointer(state)).Fmode { 21733 case HEAD: 21734 goto __10 21735 case FLAGS: 21736 goto __11 21737 case TIME: 21738 goto __12 21739 case OS: 21740 goto __13 21741 case EXLEN: 21742 goto __14 21743 case EXTRA: 21744 goto __15 21745 case NAME: 21746 goto __16 21747 case COMMENT: 21748 goto __17 21749 case HCRC: 21750 goto __18 21751 case DICTID: 21752 goto __19 21753 case DICT: 21754 goto __20 21755 case TYPE: 21756 goto __21 21757 case TYPEDO: 21758 goto __22 21759 case STORED: 21760 goto __23 21761 case COPY_: 21762 goto __24 21763 case COPY: 21764 goto __25 21765 case TABLE: 21766 goto __26 21767 case LENLENS: 21768 goto __27 21769 case CODELENS: 21770 goto __28 21771 case LEN_: 21772 goto __29 21773 case LEN: 21774 goto __30 21775 case LENEXT: 21776 goto __31 21777 case DIST: 21778 goto __32 21779 case DISTEXT: 21780 goto __33 21781 case MATCH: 21782 goto __34 21783 case LIT: 21784 goto __35 21785 case CHECK: 21786 goto __36 21787 case LENGTH: 21788 goto __37 21789 case DONE: 21790 goto __38 21791 case BAD: 21792 goto __39 21793 case MEM: 21794 goto __40 21795 case SYNC: 21796 goto __41 21797 default: 21798 goto __42 21799 } 21800 goto __9 21801 __10: 21802 if !((*Inflate_state)(unsafe.Pointer(state)).Fwrap == 0) { 21803 goto __43 21804 } 21805 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TYPEDO 21806 goto __9 21807 __43: 21808 ; 21809 __44: 21810 __47: 21811 if !(bits < (uint32(16))) { 21812 goto __48 21813 } 21814 __49: 21815 if !(have == uint32(0)) { 21816 goto __52 21817 } 21818 goto inf_leave 21819 __52: 21820 ; 21821 have-- 21822 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 21823 bits = bits + (uint32(8)) 21824 goto __50 21825 __50: 21826 if 0 != 0 { 21827 goto __49 21828 } 21829 goto __51 21830 __51: 21831 ; 21832 goto __47 21833 __48: 21834 ; 21835 goto __45 21836 __45: 21837 if 0 != 0 { 21838 goto __44 21839 } 21840 goto __46 21841 __46: 21842 ; 21843 if !((((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 2) != 0) && (hold == uint64(0x8b1f))) { 21844 goto __53 21845 } // gzip header 21846 if !((*Inflate_state)(unsafe.Pointer(state)).Fwbits == uint32(0)) { 21847 goto __54 21848 } 21849 (*Inflate_state)(unsafe.Pointer(state)).Fwbits = uint32(15) 21850 __54: 21851 ; 21852 (*Inflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, uint64(0), uintptr(Z_NULL), uint32(0)) 21853 __55: 21854 *(*uint8)(unsafe.Pointer(bp /* &hbuf[0] */)) = uint8(hold) 21855 *(*uint8)(unsafe.Pointer(bp /* &hbuf[0] */ + 1)) = (uint8((hold) >> 8)) 21856 (*Inflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Inflate_state)(unsafe.Pointer(state)).Fcheck, bp /* &hbuf[0] */, uint32(2)) 21857 goto __56 21858 __56: 21859 if 0 != 0 { 21860 goto __55 21861 } 21862 goto __57 21863 __57: 21864 ; 21865 __58: 21866 hold = uint64(0) 21867 bits = uint32(0) 21868 goto __59 21869 __59: 21870 if 0 != 0 { 21871 goto __58 21872 } 21873 goto __60 21874 __60: 21875 ; 21876 (*Inflate_state)(unsafe.Pointer(state)).Fmode = FLAGS 21877 goto __9 21878 __53: 21879 ; 21880 (*Inflate_state)(unsafe.Pointer(state)).Fflags = 0 // expect zlib header 21881 if !((*Inflate_state)(unsafe.Pointer(state)).Fhead != uintptr(Z_NULL)) { 21882 goto __61 21883 } 21884 (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fdone = -1 21885 __61: 21886 ; 21887 if !(!(((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 1) != 0) || ((((uint64((uint32(hold) & ((uint32(1) << (8)) - uint32(1))) << 8)) + (hold >> 8)) % uint64(31)) != 0)) { 21888 goto __62 21889 } 21890 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 669 /* "incorrect header..." */ 21891 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 21892 goto __9 21893 __62: 21894 ; 21895 if !((uint32(hold) & ((uint32(1) << (4)) - uint32(1))) != uint32(Z_DEFLATED)) { 21896 goto __63 21897 } 21898 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 692 /* "unknown compress..." */ 21899 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 21900 goto __9 21901 __63: 21902 ; 21903 __64: 21904 hold >>= 4 21905 bits = bits - (uint32(4)) 21906 goto __65 21907 __65: 21908 if 0 != 0 { 21909 goto __64 21910 } 21911 goto __66 21912 __66: 21913 ; 21914 len = ((uint32(hold) & ((uint32(1) << (4)) - uint32(1))) + uint32(8)) 21915 if !((*Inflate_state)(unsafe.Pointer(state)).Fwbits == uint32(0)) { 21916 goto __67 21917 } 21918 (*Inflate_state)(unsafe.Pointer(state)).Fwbits = len 21919 __67: 21920 ; 21921 if !((len > uint32(15)) || (len > (*Inflate_state)(unsafe.Pointer(state)).Fwbits)) { 21922 goto __68 21923 } 21924 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 719 /* "invalid window s..." */ 21925 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 21926 goto __9 21927 __68: 21928 ; 21929 (*Inflate_state)(unsafe.Pointer(state)).Fdmax = (uint32(1) << len) 21930 21931 (*Z_stream)(unsafe.Pointer(strm)).Fadler = libc.AssignPtrUint64(state+32 /* &.check */, Xadler32(tls, uint64(0), uintptr(Z_NULL), uint32(0))) 21932 (*Inflate_state)(unsafe.Pointer(state)).Fmode = func() uint32 { 21933 if (hold & uint64(0x200)) != 0 { 21934 return DICTID 21935 } 21936 return TYPE 21937 }() 21938 __69: 21939 hold = uint64(0) 21940 bits = uint32(0) 21941 goto __70 21942 __70: 21943 if 0 != 0 { 21944 goto __69 21945 } 21946 goto __71 21947 __71: 21948 ; 21949 goto __9 21950 __11: 21951 __72: 21952 __75: 21953 if !(bits < (uint32(16))) { 21954 goto __76 21955 } 21956 __77: 21957 if !(have == uint32(0)) { 21958 goto __80 21959 } 21960 goto inf_leave 21961 __80: 21962 ; 21963 have-- 21964 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 21965 bits = bits + (uint32(8)) 21966 goto __78 21967 __78: 21968 if 0 != 0 { 21969 goto __77 21970 } 21971 goto __79 21972 __79: 21973 ; 21974 goto __75 21975 __76: 21976 ; 21977 goto __73 21978 __73: 21979 if 0 != 0 { 21980 goto __72 21981 } 21982 goto __74 21983 __74: 21984 ; 21985 (*Inflate_state)(unsafe.Pointer(state)).Fflags = int32(hold) 21986 if !(((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0xff) != Z_DEFLATED) { 21987 goto __81 21988 } 21989 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 692 /* "unknown compress..." */ 21990 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 21991 goto __9 21992 __81: 21993 ; 21994 if !(((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0xe000) != 0) { 21995 goto __82 21996 } 21997 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 739 /* "unknown header f..." */ 21998 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 21999 goto __9 22000 __82: 22001 ; 22002 if !((*Inflate_state)(unsafe.Pointer(state)).Fhead != uintptr(Z_NULL)) { 22003 goto __83 22004 } 22005 (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Ftext = (int32((hold >> 8) & uint64(1))) 22006 __83: 22007 ; 22008 if !((((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0x0200) != 0) && (((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 4) != 0)) { 22009 goto __84 22010 } 22011 __85: 22012 *(*uint8)(unsafe.Pointer(bp /* &hbuf[0] */)) = uint8(hold) 22013 *(*uint8)(unsafe.Pointer(bp /* &hbuf[0] */ + 1)) = (uint8((hold) >> 8)) 22014 (*Inflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Inflate_state)(unsafe.Pointer(state)).Fcheck, bp /* &hbuf[0] */, uint32(2)) 22015 goto __86 22016 __86: 22017 if 0 != 0 { 22018 goto __85 22019 } 22020 goto __87 22021 __87: 22022 ; 22023 __84: 22024 ; 22025 __88: 22026 hold = uint64(0) 22027 bits = uint32(0) 22028 goto __89 22029 __89: 22030 if 0 != 0 { 22031 goto __88 22032 } 22033 goto __90 22034 __90: 22035 ; 22036 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TIME 22037 __12: 22038 __91: 22039 __94: 22040 if !(bits < (uint32(32))) { 22041 goto __95 22042 } 22043 __96: 22044 if !(have == uint32(0)) { 22045 goto __99 22046 } 22047 goto inf_leave 22048 __99: 22049 ; 22050 have-- 22051 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 22052 bits = bits + (uint32(8)) 22053 goto __97 22054 __97: 22055 if 0 != 0 { 22056 goto __96 22057 } 22058 goto __98 22059 __98: 22060 ; 22061 goto __94 22062 __95: 22063 ; 22064 goto __92 22065 __92: 22066 if 0 != 0 { 22067 goto __91 22068 } 22069 goto __93 22070 __93: 22071 ; 22072 if !((*Inflate_state)(unsafe.Pointer(state)).Fhead != uintptr(Z_NULL)) { 22073 goto __100 22074 } 22075 (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Ftime = hold 22076 __100: 22077 ; 22078 if !((((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0x0200) != 0) && (((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 4) != 0)) { 22079 goto __101 22080 } 22081 __102: 22082 *(*uint8)(unsafe.Pointer(bp /* &hbuf[0] */)) = uint8(hold) 22083 *(*uint8)(unsafe.Pointer(bp /* &hbuf[0] */ + 1)) = (uint8((hold) >> 8)) 22084 *(*uint8)(unsafe.Pointer(bp /* &hbuf[0] */ + 2)) = (uint8((hold) >> 16)) 22085 *(*uint8)(unsafe.Pointer(bp /* &hbuf[0] */ + 3)) = (uint8((hold) >> 24)) 22086 (*Inflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Inflate_state)(unsafe.Pointer(state)).Fcheck, bp /* &hbuf[0] */, uint32(4)) 22087 goto __103 22088 __103: 22089 if 0 != 0 { 22090 goto __102 22091 } 22092 goto __104 22093 __104: 22094 ; 22095 __101: 22096 ; 22097 __105: 22098 hold = uint64(0) 22099 bits = uint32(0) 22100 goto __106 22101 __106: 22102 if 0 != 0 { 22103 goto __105 22104 } 22105 goto __107 22106 __107: 22107 ; 22108 (*Inflate_state)(unsafe.Pointer(state)).Fmode = OS 22109 __13: 22110 __108: 22111 __111: 22112 if !(bits < (uint32(16))) { 22113 goto __112 22114 } 22115 __113: 22116 if !(have == uint32(0)) { 22117 goto __116 22118 } 22119 goto inf_leave 22120 __116: 22121 ; 22122 have-- 22123 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 22124 bits = bits + (uint32(8)) 22125 goto __114 22126 __114: 22127 if 0 != 0 { 22128 goto __113 22129 } 22130 goto __115 22131 __115: 22132 ; 22133 goto __111 22134 __112: 22135 ; 22136 goto __109 22137 __109: 22138 if 0 != 0 { 22139 goto __108 22140 } 22141 goto __110 22142 __110: 22143 ; 22144 if !((*Inflate_state)(unsafe.Pointer(state)).Fhead != uintptr(Z_NULL)) { 22145 goto __117 22146 } 22147 (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fxflags = (int32(hold & uint64(0xff))) 22148 (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fos = (int32(hold >> 8)) 22149 __117: 22150 ; 22151 if !((((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0x0200) != 0) && (((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 4) != 0)) { 22152 goto __118 22153 } 22154 __119: 22155 *(*uint8)(unsafe.Pointer(bp /* &hbuf[0] */)) = uint8(hold) 22156 *(*uint8)(unsafe.Pointer(bp /* &hbuf[0] */ + 1)) = (uint8((hold) >> 8)) 22157 (*Inflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Inflate_state)(unsafe.Pointer(state)).Fcheck, bp /* &hbuf[0] */, uint32(2)) 22158 goto __120 22159 __120: 22160 if 0 != 0 { 22161 goto __119 22162 } 22163 goto __121 22164 __121: 22165 ; 22166 __118: 22167 ; 22168 __122: 22169 hold = uint64(0) 22170 bits = uint32(0) 22171 goto __123 22172 __123: 22173 if 0 != 0 { 22174 goto __122 22175 } 22176 goto __124 22177 __124: 22178 ; 22179 (*Inflate_state)(unsafe.Pointer(state)).Fmode = EXLEN 22180 __14: 22181 if !(((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0x0400) != 0) { 22182 goto __125 22183 } 22184 __127: 22185 __130: 22186 if !(bits < (uint32(16))) { 22187 goto __131 22188 } 22189 __132: 22190 if !(have == uint32(0)) { 22191 goto __135 22192 } 22193 goto inf_leave 22194 __135: 22195 ; 22196 have-- 22197 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 22198 bits = bits + (uint32(8)) 22199 goto __133 22200 __133: 22201 if 0 != 0 { 22202 goto __132 22203 } 22204 goto __134 22205 __134: 22206 ; 22207 goto __130 22208 __131: 22209 ; 22210 goto __128 22211 __128: 22212 if 0 != 0 { 22213 goto __127 22214 } 22215 goto __129 22216 __129: 22217 ; 22218 (*Inflate_state)(unsafe.Pointer(state)).Flength = uint32(hold) 22219 if !((*Inflate_state)(unsafe.Pointer(state)).Fhead != uintptr(Z_NULL)) { 22220 goto __136 22221 } 22222 (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_len = uint32(hold) 22223 __136: 22224 ; 22225 if !((((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0x0200) != 0) && (((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 4) != 0)) { 22226 goto __137 22227 } 22228 __138: 22229 *(*uint8)(unsafe.Pointer(bp /* &hbuf[0] */)) = uint8(hold) 22230 *(*uint8)(unsafe.Pointer(bp /* &hbuf[0] */ + 1)) = (uint8((hold) >> 8)) 22231 (*Inflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Inflate_state)(unsafe.Pointer(state)).Fcheck, bp /* &hbuf[0] */, uint32(2)) 22232 goto __139 22233 __139: 22234 if 0 != 0 { 22235 goto __138 22236 } 22237 goto __140 22238 __140: 22239 ; 22240 __137: 22241 ; 22242 __141: 22243 hold = uint64(0) 22244 bits = uint32(0) 22245 goto __142 22246 __142: 22247 if 0 != 0 { 22248 goto __141 22249 } 22250 goto __143 22251 __143: 22252 ; 22253 goto __126 22254 __125: 22255 if !((*Inflate_state)(unsafe.Pointer(state)).Fhead != uintptr(Z_NULL)) { 22256 goto __144 22257 } 22258 (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fextra = uintptr(Z_NULL) 22259 __144: 22260 ; 22261 __126: 22262 ; 22263 (*Inflate_state)(unsafe.Pointer(state)).Fmode = EXTRA 22264 __15: 22265 if !(((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0x0400) != 0) { 22266 goto __145 22267 } 22268 copy = (*Inflate_state)(unsafe.Pointer(state)).Flength 22269 if !(copy > have) { 22270 goto __146 22271 } 22272 copy = have 22273 __146: 22274 ; 22275 if !(copy != 0) { 22276 goto __147 22277 } 22278 if !(((*Inflate_state)(unsafe.Pointer(state)).Fhead != uintptr(Z_NULL)) && ((*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fextra != uintptr(Z_NULL))) { 22279 goto __148 22280 } 22281 len = ((*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_len - (*Inflate_state)(unsafe.Pointer(state)).Flength) 22282 libc.X__builtin___memcpy_chk(tls, ((*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fextra + uintptr(len)), next, func() uint64 { 22283 if (len + copy) > (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_max { 22284 return (uint64((*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_max - len)) 22285 } 22286 return uint64(copy) 22287 }(), libc.X__builtin_object_size(tls, ((*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fextra+uintptr(len)), 0)) 22288 __148: 22289 ; 22290 if !((((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0x0200) != 0) && (((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 4) != 0)) { 22291 goto __149 22292 } 22293 (*Inflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Inflate_state)(unsafe.Pointer(state)).Fcheck, next, copy) 22294 __149: 22295 ; 22296 have = have - (copy) 22297 next += uintptr(copy) 22298 *(*uint32)(unsafe.Pointer(state + 92 /* &.length */)) -= (copy) 22299 __147: 22300 ; 22301 if !((*Inflate_state)(unsafe.Pointer(state)).Flength != 0) { 22302 goto __150 22303 } 22304 goto inf_leave 22305 __150: 22306 ; 22307 __145: 22308 ; 22309 (*Inflate_state)(unsafe.Pointer(state)).Flength = uint32(0) 22310 (*Inflate_state)(unsafe.Pointer(state)).Fmode = NAME 22311 __16: 22312 if !(((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0x0800) != 0) { 22313 goto __151 22314 } 22315 if !(have == uint32(0)) { 22316 goto __153 22317 } 22318 goto inf_leave 22319 __153: 22320 ; 22321 copy = uint32(0) 22322 __154: 22323 len = uint32(*(*uint8)(unsafe.Pointer(next + uintptr(libc.PostIncUint32(©, 1))))) 22324 if !((((*Inflate_state)(unsafe.Pointer(state)).Fhead != uintptr(Z_NULL)) && ((*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fname != uintptr(Z_NULL))) && ((*Inflate_state)(unsafe.Pointer(state)).Flength < (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fname_max)) { 22325 goto __157 22326 } 22327 *(*Bytef)(unsafe.Pointer((*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fname + uintptr(libc.PostIncUint32(&(*Inflate_state)(unsafe.Pointer(state)).Flength, 1)))) = Bytef(len) 22328 __157: 22329 ; 22330 goto __155 22331 __155: 22332 if (len != 0) && (copy < have) { 22333 goto __154 22334 } 22335 goto __156 22336 __156: 22337 ; 22338 if !((((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0x0200) != 0) && (((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 4) != 0)) { 22339 goto __158 22340 } 22341 (*Inflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Inflate_state)(unsafe.Pointer(state)).Fcheck, next, copy) 22342 __158: 22343 ; 22344 have = have - (copy) 22345 next += uintptr(copy) 22346 if !(len != 0) { 22347 goto __159 22348 } 22349 goto inf_leave 22350 __159: 22351 ; 22352 goto __152 22353 __151: 22354 if !((*Inflate_state)(unsafe.Pointer(state)).Fhead != uintptr(Z_NULL)) { 22355 goto __160 22356 } 22357 (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fname = uintptr(Z_NULL) 22358 __160: 22359 ; 22360 __152: 22361 ; 22362 (*Inflate_state)(unsafe.Pointer(state)).Flength = uint32(0) 22363 (*Inflate_state)(unsafe.Pointer(state)).Fmode = COMMENT 22364 __17: 22365 if !(((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0x1000) != 0) { 22366 goto __161 22367 } 22368 if !(have == uint32(0)) { 22369 goto __163 22370 } 22371 goto inf_leave 22372 __163: 22373 ; 22374 copy = uint32(0) 22375 __164: 22376 len = uint32(*(*uint8)(unsafe.Pointer(next + uintptr(libc.PostIncUint32(©, 1))))) 22377 if !((((*Inflate_state)(unsafe.Pointer(state)).Fhead != uintptr(Z_NULL)) && ((*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fcomment != uintptr(Z_NULL))) && ((*Inflate_state)(unsafe.Pointer(state)).Flength < (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fcomm_max)) { 22378 goto __167 22379 } 22380 *(*Bytef)(unsafe.Pointer((*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fcomment + uintptr(libc.PostIncUint32(&(*Inflate_state)(unsafe.Pointer(state)).Flength, 1)))) = Bytef(len) 22381 __167: 22382 ; 22383 goto __165 22384 __165: 22385 if (len != 0) && (copy < have) { 22386 goto __164 22387 } 22388 goto __166 22389 __166: 22390 ; 22391 if !((((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0x0200) != 0) && (((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 4) != 0)) { 22392 goto __168 22393 } 22394 (*Inflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Inflate_state)(unsafe.Pointer(state)).Fcheck, next, copy) 22395 __168: 22396 ; 22397 have = have - (copy) 22398 next += uintptr(copy) 22399 if !(len != 0) { 22400 goto __169 22401 } 22402 goto inf_leave 22403 __169: 22404 ; 22405 goto __162 22406 __161: 22407 if !((*Inflate_state)(unsafe.Pointer(state)).Fhead != uintptr(Z_NULL)) { 22408 goto __170 22409 } 22410 (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fcomment = uintptr(Z_NULL) 22411 __170: 22412 ; 22413 __162: 22414 ; 22415 (*Inflate_state)(unsafe.Pointer(state)).Fmode = HCRC 22416 __18: 22417 if !(((*Inflate_state)(unsafe.Pointer(state)).Fflags & 0x0200) != 0) { 22418 goto __171 22419 } 22420 __172: 22421 __175: 22422 if !(bits < (uint32(16))) { 22423 goto __176 22424 } 22425 __177: 22426 if !(have == uint32(0)) { 22427 goto __180 22428 } 22429 goto inf_leave 22430 __180: 22431 ; 22432 have-- 22433 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 22434 bits = bits + (uint32(8)) 22435 goto __178 22436 __178: 22437 if 0 != 0 { 22438 goto __177 22439 } 22440 goto __179 22441 __179: 22442 ; 22443 goto __175 22444 __176: 22445 ; 22446 goto __173 22447 __173: 22448 if 0 != 0 { 22449 goto __172 22450 } 22451 goto __174 22452 __174: 22453 ; 22454 if !((((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 4) != 0) && (hold != ((*Inflate_state)(unsafe.Pointer(state)).Fcheck & uint64(0xffff)))) { 22455 goto __181 22456 } 22457 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 764 /* "header crc misma..." */ 22458 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 22459 goto __9 22460 __181: 22461 ; 22462 __182: 22463 hold = uint64(0) 22464 bits = uint32(0) 22465 goto __183 22466 __183: 22467 if 0 != 0 { 22468 goto __182 22469 } 22470 goto __184 22471 __184: 22472 ; 22473 __171: 22474 ; 22475 if !((*Inflate_state)(unsafe.Pointer(state)).Fhead != uintptr(Z_NULL)) { 22476 goto __185 22477 } 22478 (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fhcrc = (((*Inflate_state)(unsafe.Pointer(state)).Fflags >> 9) & 1) 22479 (*Gz_header)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fhead)).Fdone = 1 22480 __185: 22481 ; 22482 (*Z_stream)(unsafe.Pointer(strm)).Fadler = libc.AssignPtrUint64(state+32 /* &.check */, Xcrc32(tls, uint64(0), uintptr(Z_NULL), uint32(0))) 22483 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TYPE 22484 goto __9 22485 __19: 22486 __186: 22487 __189: 22488 if !(bits < (uint32(32))) { 22489 goto __190 22490 } 22491 __191: 22492 if !(have == uint32(0)) { 22493 goto __194 22494 } 22495 goto inf_leave 22496 __194: 22497 ; 22498 have-- 22499 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 22500 bits = bits + (uint32(8)) 22501 goto __192 22502 __192: 22503 if 0 != 0 { 22504 goto __191 22505 } 22506 goto __193 22507 __193: 22508 ; 22509 goto __189 22510 __190: 22511 ; 22512 goto __187 22513 __187: 22514 if 0 != 0 { 22515 goto __186 22516 } 22517 goto __188 22518 __188: 22519 ; 22520 (*Z_stream)(unsafe.Pointer(strm)).Fadler = libc.AssignPtrUint64(state+32 /* &.check */, ((((((hold) >> 24) & uint64(0xff)) + (((hold) >> 8) & uint64(0xff00))) + (((hold) & uint64(0xff00)) << 8)) + (((hold) & uint64(0xff)) << 24))) 22521 __195: 22522 hold = uint64(0) 22523 bits = uint32(0) 22524 goto __196 22525 __196: 22526 if 0 != 0 { 22527 goto __195 22528 } 22529 goto __197 22530 __197: 22531 ; 22532 (*Inflate_state)(unsafe.Pointer(state)).Fmode = DICT 22533 __20: 22534 if !((*Inflate_state)(unsafe.Pointer(state)).Fhavedict == 0) { 22535 goto __198 22536 } 22537 __199: 22538 (*Z_stream)(unsafe.Pointer(strm)).Fnext_out = put 22539 (*Z_stream)(unsafe.Pointer(strm)).Favail_out = left 22540 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = next 22541 (*Z_stream)(unsafe.Pointer(strm)).Favail_in = have 22542 (*Inflate_state)(unsafe.Pointer(state)).Fhold = hold 22543 (*Inflate_state)(unsafe.Pointer(state)).Fbits = bits 22544 goto __200 22545 __200: 22546 if 0 != 0 { 22547 goto __199 22548 } 22549 goto __201 22550 __201: 22551 ; 22552 return Z_NEED_DICT 22553 __198: 22554 ; 22555 (*Z_stream)(unsafe.Pointer(strm)).Fadler = libc.AssignPtrUint64(state+32 /* &.check */, Xadler32(tls, uint64(0), uintptr(Z_NULL), uint32(0))) 22556 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TYPE 22557 __21: 22558 if !((flush == Z_BLOCK) || (flush == Z_TREES)) { 22559 goto __202 22560 } 22561 goto inf_leave 22562 __202: 22563 ; 22564 __22: 22565 if !((*Inflate_state)(unsafe.Pointer(state)).Flast != 0) { 22566 goto __203 22567 } 22568 __204: 22569 hold >>= (bits & uint32(7)) 22570 bits = bits - (bits & uint32(7)) 22571 goto __205 22572 __205: 22573 if 0 != 0 { 22574 goto __204 22575 } 22576 goto __206 22577 __206: 22578 ; 22579 (*Inflate_state)(unsafe.Pointer(state)).Fmode = CHECK 22580 goto __9 22581 __203: 22582 ; 22583 __207: 22584 __210: 22585 if !(bits < (uint32(3))) { 22586 goto __211 22587 } 22588 __212: 22589 if !(have == uint32(0)) { 22590 goto __215 22591 } 22592 goto inf_leave 22593 __215: 22594 ; 22595 have-- 22596 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 22597 bits = bits + (uint32(8)) 22598 goto __213 22599 __213: 22600 if 0 != 0 { 22601 goto __212 22602 } 22603 goto __214 22604 __214: 22605 ; 22606 goto __210 22607 __211: 22608 ; 22609 goto __208 22610 __208: 22611 if 0 != 0 { 22612 goto __207 22613 } 22614 goto __209 22615 __209: 22616 ; 22617 (*Inflate_state)(unsafe.Pointer(state)).Flast = (int32(uint32(hold) & ((uint32(1) << (1)) - uint32(1)))) 22618 __216: 22619 hold >>= 1 22620 bits = bits - (uint32(1)) 22621 goto __217 22622 __217: 22623 if 0 != 0 { 22624 goto __216 22625 } 22626 goto __218 22627 __218: 22628 ; 22629 switch uint32(hold) & ((uint32(1) << (2)) - uint32(1)) { 22630 case uint32(0): 22631 goto __220 22632 case uint32(1): 22633 goto __221 22634 case uint32(2): 22635 goto __222 22636 case uint32(3): 22637 goto __223 22638 } 22639 goto __219 22640 __220: // stored block 22641 ; 22642 (*Inflate_state)(unsafe.Pointer(state)).Fmode = STORED 22643 goto __219 22644 __221: // fixed block 22645 fixedtables1(tls, state) 22646 22647 (*Inflate_state)(unsafe.Pointer(state)).Fmode = LEN_ // decode codes 22648 if !(flush == Z_TREES) { 22649 goto __224 22650 } 22651 __225: 22652 hold >>= 2 22653 bits = bits - (uint32(2)) 22654 goto __226 22655 __226: 22656 if 0 != 0 { 22657 goto __225 22658 } 22659 goto __227 22660 __227: 22661 ; 22662 goto inf_leave 22663 __224: 22664 ; 22665 goto __219 22666 __222: // dynamic block 22667 ; 22668 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TABLE 22669 goto __219 22670 __223: 22671 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 367 /* "invalid block ty..." */ 22672 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 22673 __219: 22674 ; 22675 __228: 22676 hold >>= 2 22677 bits = bits - (uint32(2)) 22678 goto __229 22679 __229: 22680 if 0 != 0 { 22681 goto __228 22682 } 22683 goto __230 22684 __230: 22685 ; 22686 goto __9 22687 __23: 22688 __231: 22689 hold >>= (bits & uint32(7)) 22690 bits = bits - (bits & uint32(7)) 22691 goto __232 22692 __232: 22693 if 0 != 0 { 22694 goto __231 22695 } 22696 goto __233 22697 __233: 22698 ; // go to byte boundary 22699 __234: 22700 __237: 22701 if !(bits < (uint32(32))) { 22702 goto __238 22703 } 22704 __239: 22705 if !(have == uint32(0)) { 22706 goto __242 22707 } 22708 goto inf_leave 22709 __242: 22710 ; 22711 have-- 22712 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 22713 bits = bits + (uint32(8)) 22714 goto __240 22715 __240: 22716 if 0 != 0 { 22717 goto __239 22718 } 22719 goto __241 22720 __241: 22721 ; 22722 goto __237 22723 __238: 22724 ; 22725 goto __235 22726 __235: 22727 if 0 != 0 { 22728 goto __234 22729 } 22730 goto __236 22731 __236: 22732 ; 22733 if !((hold & uint64(0xffff)) != ((hold >> 16) ^ uint64(0xffff))) { 22734 goto __243 22735 } 22736 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 386 /* "invalid stored b..." */ 22737 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 22738 goto __9 22739 __243: 22740 ; 22741 (*Inflate_state)(unsafe.Pointer(state)).Flength = (uint32(hold) & uint32(0xffff)) 22742 22743 __244: 22744 hold = uint64(0) 22745 bits = uint32(0) 22746 goto __245 22747 __245: 22748 if 0 != 0 { 22749 goto __244 22750 } 22751 goto __246 22752 __246: 22753 ; 22754 (*Inflate_state)(unsafe.Pointer(state)).Fmode = COPY_ 22755 if !(flush == Z_TREES) { 22756 goto __247 22757 } 22758 goto inf_leave 22759 __247: 22760 ; 22761 __24: 22762 (*Inflate_state)(unsafe.Pointer(state)).Fmode = COPY 22763 __25: 22764 copy = (*Inflate_state)(unsafe.Pointer(state)).Flength 22765 if !(copy != 0) { 22766 goto __248 22767 } 22768 if !(copy > have) { 22769 goto __249 22770 } 22771 copy = have 22772 __249: 22773 ; 22774 if !(copy > left) { 22775 goto __250 22776 } 22777 copy = left 22778 __250: 22779 ; 22780 if !(copy == uint32(0)) { 22781 goto __251 22782 } 22783 goto inf_leave 22784 __251: 22785 ; 22786 libc.X__builtin___memcpy_chk(tls, put, next, uint64(copy), libc.X__builtin_object_size(tls, put, 0)) 22787 have = have - (copy) 22788 next += uintptr(copy) 22789 left = left - (copy) 22790 put += uintptr(copy) 22791 *(*uint32)(unsafe.Pointer(state + 92 /* &.length */)) -= (copy) 22792 goto __9 22793 __248: 22794 ; 22795 22796 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TYPE 22797 goto __9 22798 __26: 22799 __252: 22800 __255: 22801 if !(bits < (uint32(14))) { 22802 goto __256 22803 } 22804 __257: 22805 if !(have == uint32(0)) { 22806 goto __260 22807 } 22808 goto inf_leave 22809 __260: 22810 ; 22811 have-- 22812 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 22813 bits = bits + (uint32(8)) 22814 goto __258 22815 __258: 22816 if 0 != 0 { 22817 goto __257 22818 } 22819 goto __259 22820 __259: 22821 ; 22822 goto __255 22823 __256: 22824 ; 22825 goto __253 22826 __253: 22827 if 0 != 0 { 22828 goto __252 22829 } 22830 goto __254 22831 __254: 22832 ; 22833 (*Inflate_state)(unsafe.Pointer(state)).Fnlen = ((uint32(hold) & ((uint32(1) << (5)) - uint32(1))) + uint32(257)) 22834 __261: 22835 hold >>= 5 22836 bits = bits - (uint32(5)) 22837 goto __262 22838 __262: 22839 if 0 != 0 { 22840 goto __261 22841 } 22842 goto __263 22843 __263: 22844 ; 22845 (*Inflate_state)(unsafe.Pointer(state)).Fndist = ((uint32(hold) & ((uint32(1) << (5)) - uint32(1))) + uint32(1)) 22846 __264: 22847 hold >>= 5 22848 bits = bits - (uint32(5)) 22849 goto __265 22850 __265: 22851 if 0 != 0 { 22852 goto __264 22853 } 22854 goto __266 22855 __266: 22856 ; 22857 (*Inflate_state)(unsafe.Pointer(state)).Fncode = ((uint32(hold) & ((uint32(1) << (4)) - uint32(1))) + uint32(4)) 22858 __267: 22859 hold >>= 4 22860 bits = bits - (uint32(4)) 22861 goto __268 22862 __268: 22863 if 0 != 0 { 22864 goto __267 22865 } 22866 goto __269 22867 __269: 22868 ; 22869 if !(((*Inflate_state)(unsafe.Pointer(state)).Fnlen > uint32(286)) || ((*Inflate_state)(unsafe.Pointer(state)).Fndist > uint32(30))) { 22870 goto __270 22871 } 22872 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 415 /* "too many length ..." */ 22873 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 22874 goto __9 22875 __270: 22876 ; 22877 22878 (*Inflate_state)(unsafe.Pointer(state)).Fhave = uint32(0) 22879 (*Inflate_state)(unsafe.Pointer(state)).Fmode = LENLENS 22880 __27: 22881 __271: 22882 if !((*Inflate_state)(unsafe.Pointer(state)).Fhave < (*Inflate_state)(unsafe.Pointer(state)).Fncode) { 22883 goto __272 22884 } 22885 __273: 22886 __276: 22887 if !(bits < (uint32(3))) { 22888 goto __277 22889 } 22890 __278: 22891 if !(have == uint32(0)) { 22892 goto __281 22893 } 22894 goto inf_leave 22895 __281: 22896 ; 22897 have-- 22898 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 22899 bits = bits + (uint32(8)) 22900 goto __279 22901 __279: 22902 if 0 != 0 { 22903 goto __278 22904 } 22905 goto __280 22906 __280: 22907 ; 22908 goto __276 22909 __277: 22910 ; 22911 goto __274 22912 __274: 22913 if 0 != 0 { 22914 goto __273 22915 } 22916 goto __275 22917 __275: 22918 ; 22919 *(*uint16)(unsafe.Pointer((state + 152 /* &.lens */) + uintptr(order1[libc.PostIncUint32(&(*Inflate_state)(unsafe.Pointer(state)).Fhave, 1)])*2)) = (uint16(uint32(hold) & ((uint32(1) << (3)) - uint32(1)))) 22920 __282: 22921 hold >>= 3 22922 bits = bits - (uint32(3)) 22923 goto __283 22924 __283: 22925 if 0 != 0 { 22926 goto __282 22927 } 22928 goto __284 22929 __284: 22930 ; 22931 goto __271 22932 __272: 22933 ; 22934 __285: 22935 if !((*Inflate_state)(unsafe.Pointer(state)).Fhave < uint32(19)) { 22936 goto __286 22937 } 22938 *(*uint16)(unsafe.Pointer((state + 152 /* &.lens */) + uintptr(order1[libc.PostIncUint32(&(*Inflate_state)(unsafe.Pointer(state)).Fhave, 1)])*2)) = uint16(0) 22939 goto __285 22940 __286: 22941 ; 22942 (*Inflate_state)(unsafe.Pointer(state)).Fnext = state + 1368 /* &.codes */ 22943 (*Inflate_state)(unsafe.Pointer(state)).Flencode = (*Inflate_state)(unsafe.Pointer(state)).Fnext 22944 (*Inflate_state)(unsafe.Pointer(state)).Flenbits = uint32(7) 22945 ret = Xinflate_table(tls, CODES, state+152 /* &.lens */, uint32(19), (state + 144 /* &.next */), 22946 (state + 120 /* &.lenbits */), state+792 /* &.work */) 22947 if !(ret != 0) { 22948 goto __287 22949 } 22950 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 451 /* "invalid code len..." */ 22951 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 22952 goto __9 22953 __287: 22954 ; 22955 22956 (*Inflate_state)(unsafe.Pointer(state)).Fhave = uint32(0) 22957 (*Inflate_state)(unsafe.Pointer(state)).Fmode = CODELENS 22958 __28: 22959 __288: 22960 if !((*Inflate_state)(unsafe.Pointer(state)).Fhave < ((*Inflate_state)(unsafe.Pointer(state)).Fnlen + (*Inflate_state)(unsafe.Pointer(state)).Fndist)) { 22961 goto __289 22962 } 22963 __290: 22964 here = *(*Code)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Flencode + uintptr((uint32(hold)&((uint32(1)<<((*Inflate_state)(unsafe.Pointer(state)).Flenbits))-uint32(1))))*4)) 22965 if !((uint32(here.Fbits)) <= bits) { 22966 goto __293 22967 } 22968 goto __292 22969 __293: 22970 ; 22971 __294: 22972 if !(have == uint32(0)) { 22973 goto __297 22974 } 22975 goto inf_leave 22976 __297: 22977 ; 22978 have-- 22979 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 22980 bits = bits + (uint32(8)) 22981 goto __295 22982 __295: 22983 if 0 != 0 { 22984 goto __294 22985 } 22986 goto __296 22987 __296: 22988 ; 22989 goto __291 22990 __291: 22991 goto __290 22992 goto __292 22993 __292: 22994 ; 22995 if !(int32(here.Fval) < 16) { 22996 goto __298 22997 } 22998 __300: 22999 hold >>= int32(here.Fbits) 23000 bits = bits - (uint32(here.Fbits)) 23001 goto __301 23002 __301: 23003 if 0 != 0 { 23004 goto __300 23005 } 23006 goto __302 23007 __302: 23008 ; 23009 *(*uint16)(unsafe.Pointer((state + 152 /* &.lens */) + uintptr(libc.PostIncUint32(&(*Inflate_state)(unsafe.Pointer(state)).Fhave, 1))*2)) = here.Fval 23010 goto __299 23011 __298: 23012 if !(int32(here.Fval) == 16) { 23013 goto __303 23014 } 23015 __305: 23016 __308: 23017 if !(bits < (uint32(int32(here.Fbits) + 2))) { 23018 goto __309 23019 } 23020 __310: 23021 if !(have == uint32(0)) { 23022 goto __313 23023 } 23024 goto inf_leave 23025 __313: 23026 ; 23027 have-- 23028 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 23029 bits = bits + (uint32(8)) 23030 goto __311 23031 __311: 23032 if 0 != 0 { 23033 goto __310 23034 } 23035 goto __312 23036 __312: 23037 ; 23038 goto __308 23039 __309: 23040 ; 23041 goto __306 23042 __306: 23043 if 0 != 0 { 23044 goto __305 23045 } 23046 goto __307 23047 __307: 23048 ; 23049 __314: 23050 hold >>= int32(here.Fbits) 23051 bits = bits - (uint32(here.Fbits)) 23052 goto __315 23053 __315: 23054 if 0 != 0 { 23055 goto __314 23056 } 23057 goto __316 23058 __316: 23059 ; 23060 if !((*Inflate_state)(unsafe.Pointer(state)).Fhave == uint32(0)) { 23061 goto __317 23062 } 23063 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 476 /* "invalid bit leng..." */ 23064 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 23065 goto __289 23066 __317: 23067 ; 23068 len = uint32(*(*uint16)(unsafe.Pointer((state + 152 /* &.lens */) + uintptr(((*Inflate_state)(unsafe.Pointer(state)).Fhave-uint32(1)))*2))) 23069 copy = (uint32(3) + (uint32(hold) & ((uint32(1) << (2)) - uint32(1)))) 23070 __318: 23071 hold >>= 2 23072 bits = bits - (uint32(2)) 23073 goto __319 23074 __319: 23075 if 0 != 0 { 23076 goto __318 23077 } 23078 goto __320 23079 __320: 23080 ; 23081 goto __304 23082 __303: 23083 if !(int32(here.Fval) == 17) { 23084 goto __321 23085 } 23086 __323: 23087 __326: 23088 if !(bits < (uint32(int32(here.Fbits) + 3))) { 23089 goto __327 23090 } 23091 __328: 23092 if !(have == uint32(0)) { 23093 goto __331 23094 } 23095 goto inf_leave 23096 __331: 23097 ; 23098 have-- 23099 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 23100 bits = bits + (uint32(8)) 23101 goto __329 23102 __329: 23103 if 0 != 0 { 23104 goto __328 23105 } 23106 goto __330 23107 __330: 23108 ; 23109 goto __326 23110 __327: 23111 ; 23112 goto __324 23113 __324: 23114 if 0 != 0 { 23115 goto __323 23116 } 23117 goto __325 23118 __325: 23119 ; 23120 __332: 23121 hold >>= int32(here.Fbits) 23122 bits = bits - (uint32(here.Fbits)) 23123 goto __333 23124 __333: 23125 if 0 != 0 { 23126 goto __332 23127 } 23128 goto __334 23129 __334: 23130 ; 23131 len = uint32(0) 23132 copy = (uint32(3) + (uint32(hold) & ((uint32(1) << (3)) - uint32(1)))) 23133 __335: 23134 hold >>= 3 23135 bits = bits - (uint32(3)) 23136 goto __336 23137 __336: 23138 if 0 != 0 { 23139 goto __335 23140 } 23141 goto __337 23142 __337: 23143 ; 23144 goto __322 23145 __321: 23146 __338: 23147 __341: 23148 if !(bits < (uint32(int32(here.Fbits) + 7))) { 23149 goto __342 23150 } 23151 __343: 23152 if !(have == uint32(0)) { 23153 goto __346 23154 } 23155 goto inf_leave 23156 __346: 23157 ; 23158 have-- 23159 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 23160 bits = bits + (uint32(8)) 23161 goto __344 23162 __344: 23163 if 0 != 0 { 23164 goto __343 23165 } 23166 goto __345 23167 __345: 23168 ; 23169 goto __341 23170 __342: 23171 ; 23172 goto __339 23173 __339: 23174 if 0 != 0 { 23175 goto __338 23176 } 23177 goto __340 23178 __340: 23179 ; 23180 __347: 23181 hold >>= int32(here.Fbits) 23182 bits = bits - (uint32(here.Fbits)) 23183 goto __348 23184 __348: 23185 if 0 != 0 { 23186 goto __347 23187 } 23188 goto __349 23189 __349: 23190 ; 23191 len = uint32(0) 23192 copy = (uint32(11) + (uint32(hold) & ((uint32(1) << (7)) - uint32(1)))) 23193 __350: 23194 hold >>= 7 23195 bits = bits - (uint32(7)) 23196 goto __351 23197 __351: 23198 if 0 != 0 { 23199 goto __350 23200 } 23201 goto __352 23202 __352: 23203 ; 23204 __322: 23205 ; 23206 __304: 23207 ; 23208 if !(((*Inflate_state)(unsafe.Pointer(state)).Fhave + copy) > ((*Inflate_state)(unsafe.Pointer(state)).Fnlen + (*Inflate_state)(unsafe.Pointer(state)).Fndist)) { 23209 goto __353 23210 } 23211 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 476 /* "invalid bit leng..." */ 23212 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 23213 goto __289 23214 __353: 23215 ; 23216 __354: 23217 if !(libc.PostDecUint32(©, 1) != 0) { 23218 goto __355 23219 } 23220 *(*uint16)(unsafe.Pointer((state + 152 /* &.lens */) + uintptr(libc.PostIncUint32(&(*Inflate_state)(unsafe.Pointer(state)).Fhave, 1))*2)) = uint16(len) 23221 goto __354 23222 __355: 23223 ; 23224 __299: 23225 ; 23226 goto __288 23227 __289: 23228 ; 23229 23230 // handle error breaks in while 23231 if !((*Inflate_state)(unsafe.Pointer(state)).Fmode == BAD) { 23232 goto __356 23233 } 23234 goto __9 23235 __356: 23236 ; 23237 23238 // check for end-of-block code (better have one) 23239 if !(int32(*(*uint16)(unsafe.Pointer((state + 152 /* &.lens */) + 256*2))) == 0) { 23240 goto __357 23241 } 23242 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 502 /* "invalid code -- ..." */ 23243 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 23244 goto __9 23245 __357: 23246 ; 23247 23248 // build code tables -- note: do not change the lenbits or distbits 23249 // values here (9 and 6) without reading the comments in inftrees.h 23250 // concerning the ENOUGH constants, which depend on those values 23251 (*Inflate_state)(unsafe.Pointer(state)).Fnext = state + 1368 /* &.codes */ 23252 (*Inflate_state)(unsafe.Pointer(state)).Flencode = (*Inflate_state)(unsafe.Pointer(state)).Fnext 23253 (*Inflate_state)(unsafe.Pointer(state)).Flenbits = uint32(9) 23254 ret = Xinflate_table(tls, LENS, state+152 /* &.lens */, (*Inflate_state)(unsafe.Pointer(state)).Fnlen, (state + 144 /* &.next */), 23255 (state + 120 /* &.lenbits */), state+792 /* &.work */) 23256 if !(ret != 0) { 23257 goto __358 23258 } 23259 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 539 /* "invalid literal/..." */ 23260 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 23261 goto __9 23262 __358: 23263 ; 23264 (*Inflate_state)(unsafe.Pointer(state)).Fdistcode = (*Inflate_state)(unsafe.Pointer(state)).Fnext 23265 (*Inflate_state)(unsafe.Pointer(state)).Fdistbits = uint32(6) 23266 ret = Xinflate_table(tls, DISTS, ((state + 152 /* &.lens */) + uintptr((*Inflate_state)(unsafe.Pointer(state)).Fnlen)*2), (*Inflate_state)(unsafe.Pointer(state)).Fndist, 23267 (state + 144 /* &.next */), (state + 124 /* &.distbits */), state+792 /* &.work */) 23268 if !(ret != 0) { 23269 goto __359 23270 } 23271 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 567 /* "invalid distance..." */ 23272 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 23273 goto __9 23274 __359: 23275 ; 23276 23277 (*Inflate_state)(unsafe.Pointer(state)).Fmode = LEN_ 23278 if !(flush == Z_TREES) { 23279 goto __360 23280 } 23281 goto inf_leave 23282 __360: 23283 ; 23284 __29: 23285 (*Inflate_state)(unsafe.Pointer(state)).Fmode = LEN 23286 __30: 23287 if !((have >= uint32(6)) && (left >= uint32(258))) { 23288 goto __361 23289 } 23290 __362: 23291 (*Z_stream)(unsafe.Pointer(strm)).Fnext_out = put 23292 (*Z_stream)(unsafe.Pointer(strm)).Favail_out = left 23293 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = next 23294 (*Z_stream)(unsafe.Pointer(strm)).Favail_in = have 23295 (*Inflate_state)(unsafe.Pointer(state)).Fhold = hold 23296 (*Inflate_state)(unsafe.Pointer(state)).Fbits = bits 23297 goto __363 23298 __363: 23299 if 0 != 0 { 23300 goto __362 23301 } 23302 goto __364 23303 __364: 23304 ; 23305 Xinflate_fast(tls, strm, out) 23306 __365: 23307 put = (*Z_stream)(unsafe.Pointer(strm)).Fnext_out 23308 left = (*Z_stream)(unsafe.Pointer(strm)).Favail_out 23309 next = (*Z_stream)(unsafe.Pointer(strm)).Fnext_in 23310 have = (*Z_stream)(unsafe.Pointer(strm)).Favail_in 23311 hold = (*Inflate_state)(unsafe.Pointer(state)).Fhold 23312 bits = (*Inflate_state)(unsafe.Pointer(state)).Fbits 23313 goto __366 23314 __366: 23315 if 0 != 0 { 23316 goto __365 23317 } 23318 goto __367 23319 __367: 23320 ; 23321 if !((*Inflate_state)(unsafe.Pointer(state)).Fmode == TYPE) { 23322 goto __368 23323 } 23324 (*Inflate_state)(unsafe.Pointer(state)).Fback = -1 23325 __368: 23326 ; 23327 goto __9 23328 __361: 23329 ; 23330 (*Inflate_state)(unsafe.Pointer(state)).Fback = 0 23331 __369: 23332 here = *(*Code)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Flencode + uintptr((uint32(hold)&((uint32(1)<<((*Inflate_state)(unsafe.Pointer(state)).Flenbits))-uint32(1))))*4)) 23333 if !((uint32(here.Fbits)) <= bits) { 23334 goto __372 23335 } 23336 goto __371 23337 __372: 23338 ; 23339 __373: 23340 if !(have == uint32(0)) { 23341 goto __376 23342 } 23343 goto inf_leave 23344 __376: 23345 ; 23346 have-- 23347 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 23348 bits = bits + (uint32(8)) 23349 goto __374 23350 __374: 23351 if 0 != 0 { 23352 goto __373 23353 } 23354 goto __375 23355 __375: 23356 ; 23357 goto __370 23358 __370: 23359 goto __369 23360 goto __371 23361 __371: 23362 ; 23363 if !((here.Fop != 0) && ((int32(here.Fop) & 0xf0) == 0)) { 23364 goto __377 23365 } 23366 last = here 23367 __378: 23368 here = *(*Code)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Flencode + uintptr((uint32(last.Fval)+((uint32(hold)&((uint32(1)<<(int32(last.Fbits)+int32(last.Fop)))-uint32(1)))>>int32(last.Fbits))))*4)) 23369 if !((uint32(int32(last.Fbits) + int32(here.Fbits))) <= bits) { 23370 goto __381 23371 } 23372 goto __380 23373 __381: 23374 ; 23375 __382: 23376 if !(have == uint32(0)) { 23377 goto __385 23378 } 23379 goto inf_leave 23380 __385: 23381 ; 23382 have-- 23383 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 23384 bits = bits + (uint32(8)) 23385 goto __383 23386 __383: 23387 if 0 != 0 { 23388 goto __382 23389 } 23390 goto __384 23391 __384: 23392 ; 23393 goto __379 23394 __379: 23395 goto __378 23396 goto __380 23397 __380: 23398 ; 23399 __386: 23400 hold >>= int32(last.Fbits) 23401 bits = bits - (uint32(last.Fbits)) 23402 goto __387 23403 __387: 23404 if 0 != 0 { 23405 goto __386 23406 } 23407 goto __388 23408 __388: 23409 ; 23410 *(*int32)(unsafe.Pointer(state + 7148 /* &.back */)) += (int32(last.Fbits)) 23411 __377: 23412 ; 23413 __389: 23414 hold >>= int32(here.Fbits) 23415 bits = bits - (uint32(here.Fbits)) 23416 goto __390 23417 __390: 23418 if 0 != 0 { 23419 goto __389 23420 } 23421 goto __391 23422 __391: 23423 ; 23424 *(*int32)(unsafe.Pointer(state + 7148 /* &.back */)) += (int32(here.Fbits)) 23425 (*Inflate_state)(unsafe.Pointer(state)).Flength = uint32(here.Fval) 23426 if !((int32(here.Fop)) == 0) { 23427 goto __392 23428 } 23429 23430 (*Inflate_state)(unsafe.Pointer(state)).Fmode = LIT 23431 goto __9 23432 __392: 23433 ; 23434 if !((int32(here.Fop) & 32) != 0) { 23435 goto __393 23436 } 23437 23438 (*Inflate_state)(unsafe.Pointer(state)).Fback = -1 23439 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TYPE 23440 goto __9 23441 __393: 23442 ; 23443 if !((int32(here.Fop) & 64) != 0) { 23444 goto __394 23445 } 23446 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 589 /* "invalid literal/..." */ 23447 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 23448 goto __9 23449 __394: 23450 ; 23451 (*Inflate_state)(unsafe.Pointer(state)).Fextra = ((uint32(here.Fop)) & uint32(15)) 23452 (*Inflate_state)(unsafe.Pointer(state)).Fmode = LENEXT 23453 __31: 23454 if !((*Inflate_state)(unsafe.Pointer(state)).Fextra != 0) { 23455 goto __395 23456 } 23457 __396: 23458 __399: 23459 if !(bits < ((*Inflate_state)(unsafe.Pointer(state)).Fextra)) { 23460 goto __400 23461 } 23462 __401: 23463 if !(have == uint32(0)) { 23464 goto __404 23465 } 23466 goto inf_leave 23467 __404: 23468 ; 23469 have-- 23470 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 23471 bits = bits + (uint32(8)) 23472 goto __402 23473 __402: 23474 if 0 != 0 { 23475 goto __401 23476 } 23477 goto __403 23478 __403: 23479 ; 23480 goto __399 23481 __400: 23482 ; 23483 goto __397 23484 __397: 23485 if 0 != 0 { 23486 goto __396 23487 } 23488 goto __398 23489 __398: 23490 ; 23491 *(*uint32)(unsafe.Pointer(state + 92 /* &.length */)) += (uint32(hold) & ((uint32(1) << ((*Inflate_state)(unsafe.Pointer(state)).Fextra)) - uint32(1))) 23492 __405: 23493 hold >>= (*Inflate_state)(unsafe.Pointer(state)).Fextra 23494 bits = bits - ((*Inflate_state)(unsafe.Pointer(state)).Fextra) 23495 goto __406 23496 __406: 23497 if 0 != 0 { 23498 goto __405 23499 } 23500 goto __407 23501 __407: 23502 ; 23503 *(*int32)(unsafe.Pointer(state + 7148 /* &.back */)) += int32(((*Inflate_state)(unsafe.Pointer(state)).Fextra)) 23504 __395: 23505 ; 23506 23507 (*Inflate_state)(unsafe.Pointer(state)).Fwas = (*Inflate_state)(unsafe.Pointer(state)).Flength 23508 (*Inflate_state)(unsafe.Pointer(state)).Fmode = DIST 23509 __32: 23510 __408: 23511 here = *(*Code)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fdistcode + uintptr((uint32(hold)&((uint32(1)<<((*Inflate_state)(unsafe.Pointer(state)).Fdistbits))-uint32(1))))*4)) 23512 if !((uint32(here.Fbits)) <= bits) { 23513 goto __411 23514 } 23515 goto __410 23516 __411: 23517 ; 23518 __412: 23519 if !(have == uint32(0)) { 23520 goto __415 23521 } 23522 goto inf_leave 23523 __415: 23524 ; 23525 have-- 23526 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 23527 bits = bits + (uint32(8)) 23528 goto __413 23529 __413: 23530 if 0 != 0 { 23531 goto __412 23532 } 23533 goto __414 23534 __414: 23535 ; 23536 goto __409 23537 __409: 23538 goto __408 23539 goto __410 23540 __410: 23541 ; 23542 if !((int32(here.Fop) & 0xf0) == 0) { 23543 goto __416 23544 } 23545 last = here 23546 __417: 23547 here = *(*Code)(unsafe.Pointer((*Inflate_state)(unsafe.Pointer(state)).Fdistcode + uintptr((uint32(last.Fval)+((uint32(hold)&((uint32(1)<<(int32(last.Fbits)+int32(last.Fop)))-uint32(1)))>>int32(last.Fbits))))*4)) 23548 if !((uint32(int32(last.Fbits) + int32(here.Fbits))) <= bits) { 23549 goto __420 23550 } 23551 goto __419 23552 __420: 23553 ; 23554 __421: 23555 if !(have == uint32(0)) { 23556 goto __424 23557 } 23558 goto inf_leave 23559 __424: 23560 ; 23561 have-- 23562 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 23563 bits = bits + (uint32(8)) 23564 goto __422 23565 __422: 23566 if 0 != 0 { 23567 goto __421 23568 } 23569 goto __423 23570 __423: 23571 ; 23572 goto __418 23573 __418: 23574 goto __417 23575 goto __419 23576 __419: 23577 ; 23578 __425: 23579 hold >>= int32(last.Fbits) 23580 bits = bits - (uint32(last.Fbits)) 23581 goto __426 23582 __426: 23583 if 0 != 0 { 23584 goto __425 23585 } 23586 goto __427 23587 __427: 23588 ; 23589 *(*int32)(unsafe.Pointer(state + 7148 /* &.back */)) += (int32(last.Fbits)) 23590 __416: 23591 ; 23592 __428: 23593 hold >>= int32(here.Fbits) 23594 bits = bits - (uint32(here.Fbits)) 23595 goto __429 23596 __429: 23597 if 0 != 0 { 23598 goto __428 23599 } 23600 goto __430 23601 __430: 23602 ; 23603 *(*int32)(unsafe.Pointer(state + 7148 /* &.back */)) += (int32(here.Fbits)) 23604 if !((int32(here.Fop) & 64) != 0) { 23605 goto __431 23606 } 23607 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 617 /* "invalid distance..." */ 23608 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 23609 goto __9 23610 __431: 23611 ; 23612 (*Inflate_state)(unsafe.Pointer(state)).Foffset = uint32(here.Fval) 23613 (*Inflate_state)(unsafe.Pointer(state)).Fextra = ((uint32(here.Fop)) & uint32(15)) 23614 (*Inflate_state)(unsafe.Pointer(state)).Fmode = DISTEXT 23615 __33: 23616 if !((*Inflate_state)(unsafe.Pointer(state)).Fextra != 0) { 23617 goto __432 23618 } 23619 __433: 23620 __436: 23621 if !(bits < ((*Inflate_state)(unsafe.Pointer(state)).Fextra)) { 23622 goto __437 23623 } 23624 __438: 23625 if !(have == uint32(0)) { 23626 goto __441 23627 } 23628 goto inf_leave 23629 __441: 23630 ; 23631 have-- 23632 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 23633 bits = bits + (uint32(8)) 23634 goto __439 23635 __439: 23636 if 0 != 0 { 23637 goto __438 23638 } 23639 goto __440 23640 __440: 23641 ; 23642 goto __436 23643 __437: 23644 ; 23645 goto __434 23646 __434: 23647 if 0 != 0 { 23648 goto __433 23649 } 23650 goto __435 23651 __435: 23652 ; 23653 *(*uint32)(unsafe.Pointer(state + 96 /* &.offset */)) += (uint32(hold) & ((uint32(1) << ((*Inflate_state)(unsafe.Pointer(state)).Fextra)) - uint32(1))) 23654 __442: 23655 hold >>= (*Inflate_state)(unsafe.Pointer(state)).Fextra 23656 bits = bits - ((*Inflate_state)(unsafe.Pointer(state)).Fextra) 23657 goto __443 23658 __443: 23659 if 0 != 0 { 23660 goto __442 23661 } 23662 goto __444 23663 __444: 23664 ; 23665 *(*int32)(unsafe.Pointer(state + 7148 /* &.back */)) += int32(((*Inflate_state)(unsafe.Pointer(state)).Fextra)) 23666 __432: 23667 ; 23668 23669 (*Inflate_state)(unsafe.Pointer(state)).Fmode = MATCH 23670 __34: 23671 if !(left == uint32(0)) { 23672 goto __445 23673 } 23674 goto inf_leave 23675 __445: 23676 ; 23677 copy = (out - left) 23678 if !((*Inflate_state)(unsafe.Pointer(state)).Foffset > copy) { 23679 goto __446 23680 } // copy from window 23681 copy = ((*Inflate_state)(unsafe.Pointer(state)).Foffset - copy) 23682 if !(copy > (*Inflate_state)(unsafe.Pointer(state)).Fwhave) { 23683 goto __448 23684 } 23685 if !((*Inflate_state)(unsafe.Pointer(state)).Fsane != 0) { 23686 goto __449 23687 } 23688 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 639 /* "invalid distance..." */ 23689 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 23690 goto __9 23691 __449: 23692 ; 23693 __448: 23694 ; 23695 if !(copy > (*Inflate_state)(unsafe.Pointer(state)).Fwnext) { 23696 goto __450 23697 } 23698 copy = copy - ((*Inflate_state)(unsafe.Pointer(state)).Fwnext) 23699 from = ((*Inflate_state)(unsafe.Pointer(state)).Fwindow + uintptr(((*Inflate_state)(unsafe.Pointer(state)).Fwsize - copy))) 23700 goto __451 23701 __450: 23702 from = ((*Inflate_state)(unsafe.Pointer(state)).Fwindow + uintptr(((*Inflate_state)(unsafe.Pointer(state)).Fwnext - copy))) 23703 __451: 23704 ; 23705 if !(copy > (*Inflate_state)(unsafe.Pointer(state)).Flength) { 23706 goto __452 23707 } 23708 copy = (*Inflate_state)(unsafe.Pointer(state)).Flength 23709 __452: 23710 ; 23711 goto __447 23712 __446: // copy from output 23713 from = (put - uintptr((*Inflate_state)(unsafe.Pointer(state)).Foffset)) 23714 copy = (*Inflate_state)(unsafe.Pointer(state)).Flength 23715 __447: 23716 ; 23717 if !(copy > left) { 23718 goto __453 23719 } 23720 copy = left 23721 __453: 23722 ; 23723 left = left - (copy) 23724 *(*uint32)(unsafe.Pointer(state + 92 /* &.length */)) -= (copy) 23725 __454: 23726 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&put, 1))) = *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&from, 1))) 23727 goto __455 23728 __455: 23729 if libc.PreDecUint32(©, 1) != 0 { 23730 goto __454 23731 } 23732 goto __456 23733 __456: 23734 ; 23735 if !((*Inflate_state)(unsafe.Pointer(state)).Flength == uint32(0)) { 23736 goto __457 23737 } 23738 (*Inflate_state)(unsafe.Pointer(state)).Fmode = LEN 23739 __457: 23740 ; 23741 goto __9 23742 __35: 23743 if !(left == uint32(0)) { 23744 goto __458 23745 } 23746 goto inf_leave 23747 __458: 23748 ; 23749 *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&put, 1))) = uint8((*Inflate_state)(unsafe.Pointer(state)).Flength) 23750 left-- 23751 (*Inflate_state)(unsafe.Pointer(state)).Fmode = LEN 23752 goto __9 23753 __36: 23754 if !((*Inflate_state)(unsafe.Pointer(state)).Fwrap != 0) { 23755 goto __459 23756 } 23757 __460: 23758 __463: 23759 if !(bits < (uint32(32))) { 23760 goto __464 23761 } 23762 __465: 23763 if !(have == uint32(0)) { 23764 goto __468 23765 } 23766 goto inf_leave 23767 __468: 23768 ; 23769 have-- 23770 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 23771 bits = bits + (uint32(8)) 23772 goto __466 23773 __466: 23774 if 0 != 0 { 23775 goto __465 23776 } 23777 goto __467 23778 __467: 23779 ; 23780 goto __463 23781 __464: 23782 ; 23783 goto __461 23784 __461: 23785 if 0 != 0 { 23786 goto __460 23787 } 23788 goto __462 23789 __462: 23790 ; 23791 out = out - (left) 23792 *(*ULong)(unsafe.Pointer(strm + 40 /* &.total_out */)) += (ULong(out)) 23793 *(*uint64)(unsafe.Pointer(state + 40 /* &.total */)) += (uint64(out)) 23794 if !((((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 4) != 0) && (out != 0)) { 23795 goto __469 23796 } 23797 (*Z_stream)(unsafe.Pointer(strm)).Fadler = libc.AssignPtrUint64(state+32 /* &.check */, func() uint64 { 23798 if (*Inflate_state)(unsafe.Pointer(state)).Fflags != 0 { 23799 return Xcrc32(tls, (*Inflate_state)(unsafe.Pointer(state)).Fcheck, (put - uintptr(out)), out) 23800 } 23801 return Xadler32(tls, (*Inflate_state)(unsafe.Pointer(state)).Fcheck, (put - uintptr(out)), out) 23802 }()) 23803 __469: 23804 ; 23805 out = left 23806 if !((((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 4) != 0) && ((func() uint64 { 23807 if (*Inflate_state)(unsafe.Pointer(state)).Fflags != 0 { 23808 return hold 23809 } 23810 return ((((((hold) >> 24) & uint64(0xff)) + (((hold) >> 8) & uint64(0xff00))) + (((hold) & uint64(0xff00)) << 8)) + (((hold) & uint64(0xff)) << 24)) 23811 }()) != (*Inflate_state)(unsafe.Pointer(state)).Fcheck)) { 23812 goto __470 23813 } 23814 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 784 /* "incorrect data c..." */ 23815 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 23816 goto __9 23817 __470: 23818 ; 23819 __471: 23820 hold = uint64(0) 23821 bits = uint32(0) 23822 goto __472 23823 __472: 23824 if 0 != 0 { 23825 goto __471 23826 } 23827 goto __473 23828 __473: 23829 ; 23830 23831 __459: 23832 ; 23833 (*Inflate_state)(unsafe.Pointer(state)).Fmode = LENGTH 23834 __37: 23835 if !(((*Inflate_state)(unsafe.Pointer(state)).Fwrap != 0) && ((*Inflate_state)(unsafe.Pointer(state)).Fflags != 0)) { 23836 goto __474 23837 } 23838 __475: 23839 __478: 23840 if !(bits < (uint32(32))) { 23841 goto __479 23842 } 23843 __480: 23844 if !(have == uint32(0)) { 23845 goto __483 23846 } 23847 goto inf_leave 23848 __483: 23849 ; 23850 have-- 23851 hold = hold + ((uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&next, 1))))) << bits) 23852 bits = bits + (uint32(8)) 23853 goto __481 23854 __481: 23855 if 0 != 0 { 23856 goto __480 23857 } 23858 goto __482 23859 __482: 23860 ; 23861 goto __478 23862 __479: 23863 ; 23864 goto __476 23865 __476: 23866 if 0 != 0 { 23867 goto __475 23868 } 23869 goto __477 23870 __477: 23871 ; 23872 if !(hold != ((*Inflate_state)(unsafe.Pointer(state)).Ftotal & 0xffffffff)) { 23873 goto __484 23874 } 23875 (*Z_stream)(unsafe.Pointer(strm)).Fmsg = ts + 805 /* "incorrect length..." */ 23876 (*Inflate_state)(unsafe.Pointer(state)).Fmode = BAD 23877 goto __9 23878 __484: 23879 ; 23880 __485: 23881 hold = uint64(0) 23882 bits = uint32(0) 23883 goto __486 23884 __486: 23885 if 0 != 0 { 23886 goto __485 23887 } 23888 goto __487 23889 __487: 23890 ; 23891 23892 __474: 23893 ; 23894 (*Inflate_state)(unsafe.Pointer(state)).Fmode = DONE 23895 __38: 23896 ret = Z_STREAM_END 23897 goto inf_leave 23898 __39: 23899 ret = -3 23900 goto inf_leave 23901 __40: 23902 return -4 23903 __41: 23904 __42: 23905 return -2 23906 __9: 23907 ; 23908 goto __7 23909 __7: 23910 goto __6 23911 goto __8 23912 __8: 23913 ; 23914 23915 // 23916 // Return from inflate(), updating the total counts and the check value. 23917 // If there was no progress during the inflate() call, return a buffer 23918 // error. Call updatewindow() to create and/or update the window state. 23919 // Note: a memory error from inflate() is non-recoverable. 23920 // 23921 inf_leave: 23922 __488: 23923 (*Z_stream)(unsafe.Pointer(strm)).Fnext_out = put 23924 (*Z_stream)(unsafe.Pointer(strm)).Favail_out = left 23925 (*Z_stream)(unsafe.Pointer(strm)).Fnext_in = next 23926 (*Z_stream)(unsafe.Pointer(strm)).Favail_in = have 23927 (*Inflate_state)(unsafe.Pointer(state)).Fhold = hold 23928 (*Inflate_state)(unsafe.Pointer(state)).Fbits = bits 23929 goto __489 23930 __489: 23931 if 0 != 0 { 23932 goto __488 23933 } 23934 goto __490 23935 __490: 23936 ; 23937 if !(((*Inflate_state)(unsafe.Pointer(state)).Fwsize != 0) || (((out != (*Z_stream)(unsafe.Pointer(strm)).Favail_out) && ((*Inflate_state)(unsafe.Pointer(state)).Fmode < BAD)) && (((*Inflate_state)(unsafe.Pointer(state)).Fmode < CHECK) || (flush != Z_FINISH)))) { 23938 goto __491 23939 } 23940 if !(updatewindow(tls, strm, (*Z_stream)(unsafe.Pointer(strm)).Fnext_out, (out-(*Z_stream)(unsafe.Pointer(strm)).Favail_out)) != 0) { 23941 goto __492 23942 } 23943 (*Inflate_state)(unsafe.Pointer(state)).Fmode = MEM 23944 return -4 23945 __492: 23946 ; 23947 __491: 23948 ; 23949 in = in - ((*Z_stream)(unsafe.Pointer(strm)).Favail_in) 23950 out = out - ((*Z_stream)(unsafe.Pointer(strm)).Favail_out) 23951 *(*ULong)(unsafe.Pointer(strm + 16 /* &.total_in */)) += (ULong(in)) 23952 *(*ULong)(unsafe.Pointer(strm + 40 /* &.total_out */)) += (ULong(out)) 23953 *(*uint64)(unsafe.Pointer(state + 40 /* &.total */)) += (uint64(out)) 23954 if !((((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 4) != 0) && (out != 0)) { 23955 goto __493 23956 } 23957 (*Z_stream)(unsafe.Pointer(strm)).Fadler = libc.AssignPtrUint64(state+32 /* &.check */, func() uint64 { 23958 if (*Inflate_state)(unsafe.Pointer(state)).Fflags != 0 { 23959 return Xcrc32(tls, (*Inflate_state)(unsafe.Pointer(state)).Fcheck, ((*Z_stream)(unsafe.Pointer(strm)).Fnext_out - uintptr(out)), out) 23960 } 23961 return Xadler32(tls, (*Inflate_state)(unsafe.Pointer(state)).Fcheck, ((*Z_stream)(unsafe.Pointer(strm)).Fnext_out - uintptr(out)), out) 23962 }()) 23963 __493: 23964 ; 23965 (*Z_stream)(unsafe.Pointer(strm)).Fdata_type = (((int32((*Inflate_state)(unsafe.Pointer(state)).Fbits) + (func() int32 { 23966 if (*Inflate_state)(unsafe.Pointer(state)).Flast != 0 { 23967 return 64 23968 } 23969 return 0 23970 }())) + (func() int32 { 23971 if (*Inflate_state)(unsafe.Pointer(state)).Fmode == TYPE { 23972 return 128 23973 } 23974 return 0 23975 }())) + (func() int32 { 23976 if ((*Inflate_state)(unsafe.Pointer(state)).Fmode == LEN_) || ((*Inflate_state)(unsafe.Pointer(state)).Fmode == COPY_) { 23977 return 256 23978 } 23979 return 0 23980 }())) 23981 if !((((in == uint32(0)) && (out == uint32(0))) || (flush == Z_FINISH)) && (ret == Z_OK)) { 23982 goto __494 23983 } 23984 ret = -5 23985 __494: 23986 ; 23987 return ret 23988 } 23989 23990 var order1 = // permutation of code lengths 23991 [19]uint16{uint16(16), uint16(17), uint16(18), uint16(0), uint16(8), uint16(7), uint16(9), uint16(6), uint16(10), uint16(5), uint16(11), uint16(4), uint16(12), uint16(3), uint16(13), uint16(2), uint16(14), uint16(1), uint16(15)} /* inflate.c:642:33 */ 23992 23993 func XinflateEnd(tls *libc.TLS, strm Z_streamp) int32 { /* inflate.c:1277:13: */ 23994 var state uintptr 23995 if inflateStateCheck(tls, strm) != 0 { 23996 return -2 23997 } 23998 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 23999 if (*Inflate_state)(unsafe.Pointer(state)).Fwindow != uintptr(Z_NULL) { 24000 (*struct { 24001 f func(*libc.TLS, Voidpf, Voidpf) 24002 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzfree})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (*Inflate_state)(unsafe.Pointer(state)).Fwindow) 24003 } 24004 (*struct { 24005 f func(*libc.TLS, Voidpf, Voidpf) 24006 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((strm))).Fzfree})).f(tls, (*Z_stream)(unsafe.Pointer(strm)).Fopaque, (*Z_stream)(unsafe.Pointer(strm)).Fstate) 24007 (*Z_stream)(unsafe.Pointer(strm)).Fstate = uintptr(Z_NULL) 24008 24009 return Z_OK 24010 } 24011 24012 func XinflateGetDictionary(tls *libc.TLS, strm Z_streamp, dictionary uintptr, dictLength uintptr) int32 { /* inflate.c:1291:13: */ 24013 var state uintptr 24014 24015 // check state 24016 if inflateStateCheck(tls, strm) != 0 { 24017 return -2 24018 } 24019 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 24020 24021 // copy dictionary 24022 if ((*Inflate_state)(unsafe.Pointer(state)).Fwhave != 0) && (dictionary != uintptr(Z_NULL)) { 24023 libc.X__builtin___memcpy_chk(tls, dictionary, ((*Inflate_state)(unsafe.Pointer(state)).Fwindow + uintptr((*Inflate_state)(unsafe.Pointer(state)).Fwnext)), (uint64((*Inflate_state)(unsafe.Pointer(state)).Fwhave - (*Inflate_state)(unsafe.Pointer(state)).Fwnext)), libc.X__builtin_object_size(tls, dictionary, 0)) 24024 libc.X__builtin___memcpy_chk(tls, ((dictionary + uintptr((*Inflate_state)(unsafe.Pointer(state)).Fwhave)) - uintptr((*Inflate_state)(unsafe.Pointer(state)).Fwnext)), (*Inflate_state)(unsafe.Pointer(state)).Fwindow, uint64((*Inflate_state)(unsafe.Pointer(state)).Fwnext), libc.X__builtin_object_size(tls, ((dictionary+uintptr((*Inflate_state)(unsafe.Pointer(state)).Fwhave))-uintptr((*Inflate_state)(unsafe.Pointer(state)).Fwnext)), 0)) 24025 } 24026 if dictLength != uintptr(Z_NULL) { 24027 *(*UInt)(unsafe.Pointer(dictLength)) = (*Inflate_state)(unsafe.Pointer(state)).Fwhave 24028 } 24029 return Z_OK 24030 } 24031 24032 func XinflateSetDictionary(tls *libc.TLS, strm Z_streamp, dictionary uintptr, dictLength UInt) int32 { /* inflate.c:1314:13: */ 24033 var state uintptr 24034 var dictid uint64 24035 var ret int32 24036 24037 // check state 24038 if inflateStateCheck(tls, strm) != 0 { 24039 return -2 24040 } 24041 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 24042 if ((*Inflate_state)(unsafe.Pointer(state)).Fwrap != 0) && ((*Inflate_state)(unsafe.Pointer(state)).Fmode != DICT) { 24043 return -2 24044 } 24045 24046 // check for correct dictionary identifier 24047 if (*Inflate_state)(unsafe.Pointer(state)).Fmode == DICT { 24048 dictid = Xadler32(tls, uint64(0), uintptr(Z_NULL), uint32(0)) 24049 dictid = Xadler32(tls, dictid, dictionary, dictLength) 24050 if dictid != (*Inflate_state)(unsafe.Pointer(state)).Fcheck { 24051 return -3 24052 } 24053 } 24054 24055 // copy dictionary to window using updatewindow(), which will amend the 24056 // existing dictionary if appropriate 24057 ret = updatewindow(tls, strm, (dictionary + uintptr(dictLength)), dictLength) 24058 if ret != 0 { 24059 (*Inflate_state)(unsafe.Pointer(state)).Fmode = MEM 24060 return -4 24061 } 24062 (*Inflate_state)(unsafe.Pointer(state)).Fhavedict = 1 24063 24064 return Z_OK 24065 } 24066 24067 func XinflateGetHeader(tls *libc.TLS, strm Z_streamp, head Gz_headerp) int32 { /* inflate.c:1349:13: */ 24068 var state uintptr 24069 24070 // check state 24071 if inflateStateCheck(tls, strm) != 0 { 24072 return -2 24073 } 24074 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 24075 if ((*Inflate_state)(unsafe.Pointer(state)).Fwrap & 2) == 0 { 24076 return -2 24077 } 24078 24079 // save header structure 24080 (*Inflate_state)(unsafe.Pointer(state)).Fhead = head 24081 (*Gz_header)(unsafe.Pointer(head)).Fdone = 0 24082 return Z_OK 24083 } 24084 24085 // 24086 // Search buf[0..len-1] for the pattern: 0, 0, 0xff, 0xff. Return when found 24087 // or when out of input. When called, *have is the number of pattern bytes 24088 // found in order so far, in 0..3. On return *have is updated to the new 24089 // state. If on return *have equals four, then the pattern was found and the 24090 // return value is how many bytes were read including the last byte of the 24091 // pattern. If *have is less than four, then the pattern has not been found 24092 // yet and the return value is len. In the latter case, syncsearch() can be 24093 // called again with more data and the *have state. *have is initialized to 24094 // zero for the first call. 24095 // 24096 func syncsearch(tls *libc.TLS, have uintptr, buf uintptr, len uint32) uint32 { /* inflate.c:1377:16: */ 24097 var got uint32 24098 var next uint32 24099 24100 got = *(*uint32)(unsafe.Pointer(have)) 24101 next = uint32(0) 24102 for (next < len) && (got < uint32(4)) { 24103 if (int32(*(*uint8)(unsafe.Pointer(buf + uintptr(next))))) == (func() int32 { 24104 if got < uint32(2) { 24105 return 0 24106 } 24107 return 0xff 24108 }()) { 24109 got++ 24110 } else if *(*uint8)(unsafe.Pointer(buf + uintptr(next))) != 0 { 24111 got = uint32(0) 24112 } else { 24113 got = (uint32(4) - got) 24114 } 24115 next++ 24116 } 24117 *(*uint32)(unsafe.Pointer(have)) = got 24118 return next 24119 } 24120 24121 func XinflateSync(tls *libc.TLS, strm Z_streamp) int32 { /* inflate.c:1400:13: */ 24122 bp := tls.Alloc(4) 24123 defer tls.Free(4) 24124 24125 var len uint32 // number of bytes to look at or looked at 24126 var in uint64 24127 var out uint64 // temporary to save total_in and total_out 24128 // var buf [4]uint8 at bp, 4 24129 // to restore bit buffer to byte string 24130 var state uintptr 24131 24132 // check parameters 24133 if inflateStateCheck(tls, strm) != 0 { 24134 return -2 24135 } 24136 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 24137 if ((*Z_stream)(unsafe.Pointer(strm)).Favail_in == UInt(0)) && ((*Inflate_state)(unsafe.Pointer(state)).Fbits < uint32(8)) { 24138 return -5 24139 } 24140 24141 // if first time, start search in bit buffer 24142 if (*Inflate_state)(unsafe.Pointer(state)).Fmode != SYNC { 24143 (*Inflate_state)(unsafe.Pointer(state)).Fmode = SYNC 24144 libc.AssignShlPtrUint64(state+80 /* &.hold */, int(((*Inflate_state)(unsafe.Pointer(state)).Fbits & uint32(7)))) 24145 *(*uint32)(unsafe.Pointer(state + 88 /* &.bits */)) -= ((*Inflate_state)(unsafe.Pointer(state)).Fbits & uint32(7)) 24146 len = uint32(0) 24147 for (*Inflate_state)(unsafe.Pointer(state)).Fbits >= uint32(8) { 24148 *(*uint8)(unsafe.Pointer(bp /* &buf[0] */ + uintptr(libc.PostIncUint32(&len, 1)))) = uint8((*Inflate_state)(unsafe.Pointer(state)).Fhold) 24149 libc.AssignShrPtrUint64(state+80 /* &.hold */, int(8)) 24150 *(*uint32)(unsafe.Pointer(state + 88 /* &.bits */)) -= (uint32(8)) 24151 } 24152 (*Inflate_state)(unsafe.Pointer(state)).Fhave = uint32(0) 24153 syncsearch(tls, (state + 140 /* &.have */), bp /* &buf[0] */, len) 24154 } 24155 24156 // search available input 24157 len = syncsearch(tls, (state + 140 /* &.have */), (*Z_stream)(unsafe.Pointer(strm)).Fnext_in, (*Z_stream)(unsafe.Pointer(strm)).Favail_in) 24158 *(*UInt)(unsafe.Pointer(strm + 8 /* &.avail_in */)) -= (len) 24159 *(*uintptr)(unsafe.Pointer(strm /* &.next_in */)) += (uintptr(len)) 24160 *(*ULong)(unsafe.Pointer(strm + 16 /* &.total_in */)) += (ULong(len)) 24161 24162 // return no joy or set up to restart inflate() on a new block 24163 if (*Inflate_state)(unsafe.Pointer(state)).Fhave != uint32(4) { 24164 return -3 24165 } 24166 in = (*Z_stream)(unsafe.Pointer(strm)).Ftotal_in 24167 out = (*Z_stream)(unsafe.Pointer(strm)).Ftotal_out 24168 XinflateReset(tls, strm) 24169 (*Z_stream)(unsafe.Pointer(strm)).Ftotal_in = in 24170 (*Z_stream)(unsafe.Pointer(strm)).Ftotal_out = out 24171 (*Inflate_state)(unsafe.Pointer(state)).Fmode = TYPE 24172 return Z_OK 24173 } 24174 24175 // 24176 // Returns true if inflate is currently at the end of a block generated by 24177 // Z_SYNC_FLUSH or Z_FULL_FLUSH. This function is used by one PPP 24178 // implementation to provide an additional safety check. PPP uses 24179 // Z_SYNC_FLUSH but removes the length bytes of the resulting empty stored 24180 // block. When decompressing, PPP checks that at the end of input packet, 24181 // inflate is waiting for these length bytes. 24182 // 24183 func XinflateSyncPoint(tls *libc.TLS, strm Z_streamp) int32 { /* inflate.c:1451:13: */ 24184 var state uintptr 24185 24186 if inflateStateCheck(tls, strm) != 0 { 24187 return -2 24188 } 24189 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 24190 return (libc.Bool32(((*Inflate_state)(unsafe.Pointer(state)).Fmode == STORED) && ((*Inflate_state)(unsafe.Pointer(state)).Fbits == uint32(0)))) 24191 } 24192 24193 func XinflateCopy(tls *libc.TLS, dest Z_streamp, source Z_streamp) int32 { /* inflate.c:1461:13: */ 24194 var state uintptr 24195 var copy uintptr 24196 var window uintptr 24197 var wsize uint32 24198 24199 // check input 24200 if (inflateStateCheck(tls, source) != 0) || (dest == uintptr(Z_NULL)) { 24201 return -2 24202 } 24203 state = (*Z_stream)(unsafe.Pointer(source)).Fstate 24204 24205 // allocate space 24206 copy = (*struct { 24207 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 24208 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((source))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(source)).Fopaque, uint32(1), uint32(unsafe.Sizeof(Inflate_state{}))) 24209 if copy == uintptr(Z_NULL) { 24210 return -4 24211 } 24212 window = uintptr(Z_NULL) 24213 if (*Inflate_state)(unsafe.Pointer(state)).Fwindow != uintptr(Z_NULL) { 24214 window = (*struct { 24215 f func(*libc.TLS, Voidpf, UInt, UInt) Voidpf 24216 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((source))).Fzalloc})).f(tls, (*Z_stream)(unsafe.Pointer(source)).Fopaque, (uint32(1) << (*Inflate_state)(unsafe.Pointer(state)).Fwbits), uint32(unsafe.Sizeof(uint8(0)))) 24217 if window == uintptr(Z_NULL) { 24218 (*struct { 24219 f func(*libc.TLS, Voidpf, Voidpf) 24220 })(unsafe.Pointer(&struct{ uintptr }{(*Z_stream)(unsafe.Pointer((source))).Fzfree})).f(tls, (*Z_stream)(unsafe.Pointer(source)).Fopaque, copy) 24221 return -4 24222 } 24223 } 24224 24225 // copy state 24226 libc.X__builtin___memcpy_chk(tls, dest, source, uint64(unsafe.Sizeof(Z_stream{})), libc.X__builtin_object_size(tls, dest, 0)) 24227 libc.X__builtin___memcpy_chk(tls, copy, state, uint64(unsafe.Sizeof(Inflate_state{})), libc.X__builtin_object_size(tls, copy, 0)) 24228 (*Inflate_state)(unsafe.Pointer(copy)).Fstrm = dest 24229 if ((*Inflate_state)(unsafe.Pointer(state)).Flencode >= state+1368 /* &.codes */) && ((*Inflate_state)(unsafe.Pointer(state)).Flencode <= (((state + 1368 /* &.codes */) + uintptr((ENOUGH_LENS+ENOUGH_DISTS))*4) - uintptr(1)*4)) { 24230 (*Inflate_state)(unsafe.Pointer(copy)).Flencode = ((copy + 1368 /* &.codes */) + uintptr((int64(((*Inflate_state)(unsafe.Pointer(state)).Flencode-(state+1368 /* &.codes */))/4)))*4) 24231 (*Inflate_state)(unsafe.Pointer(copy)).Fdistcode = ((copy + 1368 /* &.codes */) + uintptr((int64(((*Inflate_state)(unsafe.Pointer(state)).Fdistcode-(state+1368 /* &.codes */))/4)))*4) 24232 } 24233 (*Inflate_state)(unsafe.Pointer(copy)).Fnext = ((copy + 1368 /* &.codes */) + uintptr((int64(((*Inflate_state)(unsafe.Pointer(state)).Fnext-(state+1368 /* &.codes */))/4)))*4) 24234 if window != uintptr(Z_NULL) { 24235 wsize = (uint32(1) << (*Inflate_state)(unsafe.Pointer(state)).Fwbits) 24236 libc.X__builtin___memcpy_chk(tls, window, (*Inflate_state)(unsafe.Pointer(state)).Fwindow, uint64(wsize), libc.X__builtin_object_size(tls, window, 0)) 24237 } 24238 (*Inflate_state)(unsafe.Pointer(copy)).Fwindow = window 24239 (*Z_stream)(unsafe.Pointer(dest)).Fstate = copy 24240 return Z_OK 24241 } 24242 24243 func XinflateUndermine(tls *libc.TLS, strm Z_streamp, subvert int32) int32 { /* inflate.c:1508:13: */ 24244 var state uintptr 24245 24246 if inflateStateCheck(tls, strm) != 0 { 24247 return -2 24248 } 24249 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 24250 _ = subvert 24251 (*Inflate_state)(unsafe.Pointer(state)).Fsane = 1 24252 return -3 24253 } 24254 24255 func XinflateValidate(tls *libc.TLS, strm Z_streamp, check int32) int32 { /* inflate.c:1526:13: */ 24256 var state uintptr 24257 24258 if inflateStateCheck(tls, strm) != 0 { 24259 return -2 24260 } 24261 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 24262 if check != 0 { 24263 *(*int32)(unsafe.Pointer(state + 16 /* &.wrap */)) |= (4) 24264 } else { 24265 *(*int32)(unsafe.Pointer(state + 16 /* &.wrap */)) &= (libc.CplInt32(4)) 24266 } 24267 return Z_OK 24268 } 24269 24270 func XinflateMark(tls *libc.TLS, strm Z_streamp) int64 { /* inflate.c:1541:14: */ 24271 var state uintptr 24272 24273 if inflateStateCheck(tls, strm) != 0 { 24274 return -(int64(1) << 16) 24275 } 24276 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 24277 return ((int64((uint64(int64((*Inflate_state)(unsafe.Pointer(state)).Fback))) << 16)) + (func() int64 { 24278 if (*Inflate_state)(unsafe.Pointer(state)).Fmode == COPY { 24279 return int64((*Inflate_state)(unsafe.Pointer(state)).Flength) 24280 } 24281 return func() int64 { 24282 if (*Inflate_state)(unsafe.Pointer(state)).Fmode == MATCH { 24283 return (int64((*Inflate_state)(unsafe.Pointer(state)).Fwas - (*Inflate_state)(unsafe.Pointer(state)).Flength)) 24284 } 24285 return int64(0) 24286 }() 24287 }())) 24288 } 24289 24290 func XinflateCodesUsed(tls *libc.TLS, strm Z_streamp) uint64 { /* inflate.c:1554:23: */ 24291 var state uintptr 24292 if inflateStateCheck(tls, strm) != 0 { 24293 return libc.Uint64(libc.Uint64FromInt32(-1)) 24294 } 24295 state = (*Z_stream)(unsafe.Pointer(strm)).Fstate 24296 return (uint64(int64(((*Inflate_state)(unsafe.Pointer(state)).Fnext - (state + 1368 /* &.codes */)) / 4))) 24297 } 24298 24299 var Xinflate_copyright = *(*[48]int8)(unsafe.Pointer(ts + 828 /* " inflate 1.2.11 ..." */)) /* inftrees.c:11:12 */ 24300 24301 // 24302 // If you use the zlib library in a product, an acknowledgment is welcome 24303 // in the documentation of your product. If for some reason you cannot 24304 // include such an acknowledgment, I would appreciate that you keep this 24305 // copyright string in the executable of your product. 24306 // 24307 24308 // 24309 // Build a set of tables to decode the provided canonical Huffman code. 24310 // The code lengths are lens[0..codes-1]. The result starts at *table, 24311 // whose indices are 0..2^bits-1. work is a writable array of at least 24312 // lens shorts, which is used as a work area. type is the type of code 24313 // to be generated, CODES, LENS, or DISTS. On return, zero is success, 24314 // -1 is an invalid code, and +1 means that ENOUGH isn't enough. table 24315 // on return points to the next available entry's address. bits is the 24316 // requested root table index bits, and on return it is the actual root 24317 // table index bits. It will differ if the request is greater than the 24318 // longest code or if it is less than the shortest code. 24319 // 24320 func Xinflate_table(tls *libc.TLS, type1 Codetype, lens uintptr, codes uint32, table uintptr, bits uintptr, work uintptr) int32 { /* inftrees.c:32:19: */ 24321 bp := tls.Alloc(64) 24322 defer tls.Free(64) 24323 24324 var len uint32 // a code's length in bits 24325 var sym uint32 // index of code symbols 24326 var min uint32 24327 var max uint32 // minimum and maximum code lengths 24328 var root uint32 // number of index bits for root table 24329 var curr uint32 // number of index bits for current table 24330 var drop uint32 // code bits to drop for sub-table 24331 var left int32 // number of prefix codes available 24332 var used uint32 // code entries in table used 24333 var huff uint32 // Huffman code 24334 var incr uint32 // for incrementing code, index 24335 var fill uint32 // index for replicating entries 24336 var low uint32 // low bits for current root entry 24337 var mask uint32 // mask for low root bits 24338 var here Code // table entry for duplication 24339 var next uintptr // next available space in table 24340 var base uintptr // base value table to use 24341 var extra uintptr // extra bits table to use 24342 var match uint32 // use base and extra for symbol >= match 24343 // var count [16]uint16 at bp, 32 24344 // number of codes of each length 24345 // var offs [16]uint16 at bp+32, 32 24346 24347 // 24348 // Process a set of code lengths to create a canonical Huffman code. The 24349 // code lengths are lens[0..codes-1]. Each length corresponds to the 24350 // symbols 0..codes-1. The Huffman code is generated by first sorting the 24351 // symbols by length from short to long, and retaining the symbol order 24352 // for codes with equal lengths. Then the code starts with all zero bits 24353 // for the first code of the shortest length, and the codes are integer 24354 // increments for the same length, and zeros are appended as the length 24355 // increases. For the deflate format, these bits are stored backwards 24356 // from their more natural integer increment ordering, and so when the 24357 // decoding tables are built in the large loop below, the integer codes 24358 // are incremented backwards. 24359 // 24360 // This routine assumes, but does not check, that all of the entries in 24361 // lens[] are in the range 0..MAXBITS. The caller must assure this. 24362 // 1..MAXBITS is interpreted as that code length. zero means that that 24363 // symbol does not occur in this code. 24364 // 24365 // The codes are sorted by computing a count of codes for each length, 24366 // creating from that a table of starting indices for each length in the 24367 // sorted table, and then entering the symbols in order in the sorted 24368 // table. The sorted table is work[], with that space being provided by 24369 // the caller. 24370 // 24371 // The length counts are used for other purposes as well, i.e. finding 24372 // the minimum and maximum length codes, determining if there are any 24373 // codes at all, checking for a valid set of lengths, and looking ahead 24374 // at length counts to determine sub-table sizes when building the 24375 // decoding tables. 24376 // 24377 24378 // accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) 24379 for len = uint32(0); len <= uint32(MAXBITS); len++ { 24380 *(*uint16)(unsafe.Pointer(bp /* &count[0] */ + uintptr(len)*2)) = uint16(0) 24381 } 24382 for sym = uint32(0); sym < codes; sym++ { 24383 *(*uint16)(unsafe.Pointer(bp /* &count[0] */ + uintptr(*(*uint16)(unsafe.Pointer(lens + uintptr(sym)*2)))*2))++ 24384 } 24385 24386 // bound code lengths, force root to be within code lengths 24387 root = *(*uint32)(unsafe.Pointer(bits)) 24388 for max = uint32(MAXBITS); max >= uint32(1); max-- { 24389 if int32(*(*uint16)(unsafe.Pointer(bp /* &count[0] */ + uintptr(max)*2))) != 0 { 24390 break 24391 } 24392 } 24393 if root > max { 24394 root = max 24395 } 24396 if max == uint32(0) { // no symbols to code at all 24397 here.Fop = uint8(64) // invalid code marker 24398 here.Fbits = uint8(1) 24399 here.Fval = uint16(0) 24400 *(*Code)(unsafe.Pointer(libc.PostIncUintptr(&(*(*uintptr)(unsafe.Pointer(table))), 4))) = here // make a table to force an error 24401 *(*Code)(unsafe.Pointer(libc.PostIncUintptr(&(*(*uintptr)(unsafe.Pointer(table))), 4))) = here 24402 *(*uint32)(unsafe.Pointer(bits)) = uint32(1) 24403 return 0 // no symbols, but wait for decoding to report error 24404 } 24405 for min = uint32(1); min < max; min++ { 24406 if int32(*(*uint16)(unsafe.Pointer(bp /* &count[0] */ + uintptr(min)*2))) != 0 { 24407 break 24408 } 24409 } 24410 if root < min { 24411 root = min 24412 } 24413 24414 // check for an over-subscribed or incomplete set of lengths 24415 left = 1 24416 for len = uint32(1); len <= uint32(MAXBITS); len++ { 24417 left <<= 1 24418 left = left - (int32(*(*uint16)(unsafe.Pointer(bp /* &count[0] */ + uintptr(len)*2)))) 24419 if left < 0 { 24420 return -1 24421 } // over-subscribed 24422 } 24423 if (left > 0) && ((type1 == CODES) || (max != uint32(1))) { 24424 return -1 24425 } // incomplete set 24426 24427 // generate offsets into symbol table for each length for sorting 24428 *(*uint16)(unsafe.Pointer(bp + 32 /* &offs[0] */ + 1*2)) = uint16(0) 24429 for len = uint32(1); len < uint32(MAXBITS); len++ { 24430 *(*uint16)(unsafe.Pointer(bp + 32 /* &offs[0] */ + uintptr((len+uint32(1)))*2)) = (uint16(int32(*(*uint16)(unsafe.Pointer(bp + 32 /* &offs[0] */ + uintptr(len)*2))) + int32(*(*uint16)(unsafe.Pointer(bp /* &count[0] */ + uintptr(len)*2))))) 24431 } 24432 24433 // sort symbols by length, by symbol order within each length 24434 for sym = uint32(0); sym < codes; sym++ { 24435 if int32(*(*uint16)(unsafe.Pointer(lens + uintptr(sym)*2))) != 0 { 24436 *(*uint16)(unsafe.Pointer(work + uintptr(libc.PostIncUint16(&*(*uint16)(unsafe.Pointer(bp + 32 /* &offs[0] */ + uintptr(*(*uint16)(unsafe.Pointer(lens + uintptr(sym)*2)))*2)), 1))*2)) = uint16(sym) 24437 } 24438 } 24439 24440 // 24441 // Create and fill in decoding tables. In this loop, the table being 24442 // filled is at next and has curr index bits. The code being used is huff 24443 // with length len. That code is converted to an index by dropping drop 24444 // bits off of the bottom. For codes where len is less than drop + curr, 24445 // those top drop + curr - len bits are incremented through all values to 24446 // fill the table with replicated entries. 24447 // 24448 // root is the number of index bits for the root table. When len exceeds 24449 // root, sub-tables are created pointed to by the root entry with an index 24450 // of the low root bits of huff. This is saved in low to check for when a 24451 // new sub-table should be started. drop is zero when the root table is 24452 // being filled, and drop is root when sub-tables are being filled. 24453 // 24454 // When a new sub-table is needed, it is necessary to look ahead in the 24455 // code lengths to determine what size sub-table is needed. The length 24456 // counts are used for this, and so count[] is decremented as codes are 24457 // entered in the tables. 24458 // 24459 // used keeps track of how many table entries have been allocated from the 24460 // provided *table space. It is checked for LENS and DIST tables against 24461 // the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in 24462 // the initial root table size constants. See the comments in inftrees.h 24463 // for more information. 24464 // 24465 // sym increments through all symbols, and the loop terminates when 24466 // all codes of length max, i.e. all codes, have been processed. This 24467 // routine permits incomplete codes, so another loop after this one fills 24468 // in the rest of the decoding tables with invalid code markers. 24469 // 24470 24471 // set up for code type 24472 switch type1 { 24473 case CODES: 24474 base = libc.AssignUintptr(&extra, work) // dummy value--not used 24475 match = uint32(20) 24476 break 24477 case LENS: 24478 base = uintptr(unsafe.Pointer(&lbase)) 24479 extra = uintptr(unsafe.Pointer(&lext)) 24480 match = uint32(257) 24481 break 24482 default: // DISTS 24483 base = uintptr(unsafe.Pointer(&dbase)) 24484 extra = uintptr(unsafe.Pointer(&dext)) 24485 match = uint32(0) 24486 } 24487 24488 // initialize state for loop 24489 huff = uint32(0) // starting code 24490 sym = uint32(0) // starting code symbol 24491 len = min // starting code length 24492 next = *(*uintptr)(unsafe.Pointer(table)) // current table to fill in 24493 curr = root // current table index bits 24494 drop = uint32(0) // current bits to drop from code for index 24495 low = libc.Uint32(libc.Uint32FromInt32(-1)) // trigger new sub-table when len > root 24496 used = (uint32(1) << root) // use root table entries 24497 mask = (used - uint32(1)) // mask for comparing low 24498 24499 // check available table space 24500 if ((type1 == LENS) && (used > uint32(ENOUGH_LENS))) || ((type1 == DISTS) && (used > uint32(ENOUGH_DISTS))) { 24501 return 1 24502 } 24503 24504 // process all codes and make table entries 24505 for { 24506 // create table entry 24507 here.Fbits = (uint8(len - drop)) 24508 if (uint32(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2))) + 1) < match { 24509 here.Fop = uint8(0) 24510 here.Fval = *(*uint16)(unsafe.Pointer(work + uintptr(sym)*2)) 24511 } else if uint32(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2))) >= match { 24512 here.Fop = uint8(*(*uint16)(unsafe.Pointer(extra + uintptr((uint32(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2)))-match))*2))) 24513 here.Fval = *(*uint16)(unsafe.Pointer(base + uintptr((uint32(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2)))-match))*2)) 24514 } else { 24515 here.Fop = (uint8(32 + 64)) // end of block 24516 here.Fval = uint16(0) 24517 } 24518 24519 // replicate for those indices with low len bits equal to huff 24520 incr = (uint32(1) << (len - drop)) 24521 fill = (uint32(1) << curr) 24522 min = fill // save offset to next table 24523 for ok := true; ok; ok = (fill != uint32(0)) { 24524 fill = fill - (incr) 24525 *(*Code)(unsafe.Pointer(next + uintptr(((huff>>drop)+fill))*4)) = here 24526 } 24527 24528 // backwards increment the len-bit code huff 24529 incr = (uint32(1) << (len - uint32(1))) 24530 for (huff & incr) != 0 { 24531 incr >>= 1 24532 } 24533 if incr != uint32(0) { 24534 huff = huff & (incr - uint32(1)) 24535 huff = huff + (incr) 24536 } else { 24537 huff = uint32(0) 24538 } 24539 24540 // go to next symbol, update count, len 24541 sym++ 24542 if int32(libc.PreDecUint16(&(*(*uint16)(unsafe.Pointer(bp /* &count[0] */ + uintptr(len)*2))), 1)) == 0 { 24543 if len == max { 24544 break 24545 } 24546 len = uint32(*(*uint16)(unsafe.Pointer(lens + uintptr(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2)))*2))) 24547 } 24548 24549 // create new sub-table if needed 24550 if (len > root) && ((huff & mask) != low) { 24551 // if first time, transition to sub-tables 24552 if drop == uint32(0) { 24553 drop = root 24554 } 24555 24556 // increment past last table 24557 next += 4 * (uintptr(min)) // here min is 1 << curr 24558 24559 // determine length of next table 24560 curr = (len - drop) 24561 left = (int32(1) << curr) 24562 for (curr + drop) < max { 24563 left = left - (int32(*(*uint16)(unsafe.Pointer(bp /* &count[0] */ + uintptr((curr+drop))*2)))) 24564 if left <= 0 { 24565 break 24566 } 24567 curr++ 24568 left <<= 1 24569 } 24570 24571 // check for enough space 24572 used = used + (uint32(1) << curr) 24573 if ((type1 == LENS) && (used > uint32(ENOUGH_LENS))) || ((type1 == DISTS) && (used > uint32(ENOUGH_DISTS))) { 24574 return 1 24575 } 24576 24577 // point entry in root table to sub-table 24578 low = (huff & mask) 24579 (*Code)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(table))) + uintptr(low)*4)).Fop = uint8(curr) 24580 (*Code)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(table))) + uintptr(low)*4)).Fbits = uint8(root) 24581 (*Code)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(table))) + uintptr(low)*4)).Fval = (uint16((int64(next) - int64(*(*uintptr)(unsafe.Pointer(table)))) / 4)) 24582 } 24583 } 24584 24585 // fill in remaining table entry if code is incomplete (guaranteed to have 24586 // at most one remaining entry, since if the code is incomplete, the 24587 // maximum code length that was allowed to get this far is one bit) 24588 if huff != uint32(0) { 24589 here.Fop = uint8(64) // invalid code marker 24590 here.Fbits = (uint8(len - drop)) 24591 here.Fval = uint16(0) 24592 *(*Code)(unsafe.Pointer(next + uintptr(huff)*4)) = here 24593 } 24594 24595 // set return parameters 24596 *(*uintptr)(unsafe.Pointer(table)) += (uintptr(used)) * 4 24597 *(*uint32)(unsafe.Pointer(bits)) = root 24598 return 0 24599 } 24600 24601 var lbase = [31]uint16{ // Length codes 257..285 base 24602 uint16(3), uint16(4), uint16(5), uint16(6), uint16(7), uint16(8), uint16(9), uint16(10), uint16(11), uint16(13), uint16(15), uint16(17), uint16(19), uint16(23), uint16(27), uint16(31), 24603 uint16(35), uint16(43), uint16(51), uint16(59), uint16(67), uint16(83), uint16(99), uint16(115), uint16(131), uint16(163), uint16(195), uint16(227), uint16(258), uint16(0), uint16(0)} /* inftrees.c:60:33 */ 24604 var lext = [31]uint16{ // Length codes 257..285 extra 24605 uint16(16), uint16(16), uint16(16), uint16(16), uint16(16), uint16(16), uint16(16), uint16(16), uint16(17), uint16(17), uint16(17), uint16(17), uint16(18), uint16(18), uint16(18), uint16(18), 24606 uint16(19), uint16(19), uint16(19), uint16(19), uint16(20), uint16(20), uint16(20), uint16(20), uint16(21), uint16(21), uint16(21), uint16(21), uint16(16), uint16(77), uint16(202)} /* inftrees.c:63:33 */ 24607 var dbase = [32]uint16{ // Distance codes 0..29 base 24608 uint16(1), uint16(2), uint16(3), uint16(4), uint16(5), uint16(7), uint16(9), uint16(13), uint16(17), uint16(25), uint16(33), uint16(49), uint16(65), uint16(97), uint16(129), uint16(193), 24609 uint16(257), uint16(385), uint16(513), uint16(769), uint16(1025), uint16(1537), uint16(2049), uint16(3073), uint16(4097), uint16(6145), 24610 uint16(8193), uint16(12289), uint16(16385), uint16(24577), uint16(0), uint16(0)} /* inftrees.c:66:33 */ 24611 var dext = [32]uint16{ // Distance codes 0..29 extra 24612 uint16(16), uint16(16), uint16(16), uint16(16), uint16(17), uint16(17), uint16(18), uint16(18), uint16(19), uint16(19), uint16(20), uint16(20), uint16(21), uint16(21), uint16(22), uint16(22), 24613 uint16(23), uint16(23), uint16(24), uint16(24), uint16(25), uint16(25), uint16(26), uint16(26), uint16(27), uint16(27), 24614 uint16(28), uint16(28), uint16(29), uint16(29), uint16(64), uint16(64)} /* inftrees.c:70:33 */ 24615 24616 type Static_tree_desc = Static_tree_desc_s /* deflate.h:84:36 */ 24617 24618 // =========================================================================== 24619 // Constants 24620 24621 // Bit length codes must not exceed MAX_BL_BITS bits 24622 24623 // end of block literal code 24624 24625 // repeat previous bit length 3-6 times (2 bits of repeat count) 24626 24627 // repeat a zero length 3-10 times (3 bits of repeat count) 24628 24629 // repeat a zero length 11-138 times (7 bits of repeat count) 24630 24631 var extra_lbits = [29]int32{0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0} /* trees.c:62:17 */ 24632 24633 var extra_dbits = [30]int32{0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13} /* trees.c:65:17 */ 24634 24635 var extra_blbits = [19]int32{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7} /* trees.c:68:17 */ 24636 24637 var bl_order = [19]Uch{Uch(16), Uch(17), Uch(18), Uch(0), Uch(8), Uch(7), Uch(9), Uch(6), Uch(10), Uch(5), Uch(11), Uch(4), Uch(12), Uch(3), Uch(13), Uch(2), Uch(14), Uch(1), Uch(15)} /* trees.c:71:17 */ 24638 // The lengths of the bit length codes are sent in order of decreasing 24639 // probability, to avoid transmitting the lengths for unused bit length codes. 24640 24641 // =========================================================================== 24642 // Local data. These are initialized only once. 24643 24644 // header created automatically with -DGEN_TREES_H 24645 24646 var static_ltree = [288]Ct_data{{Ffc: func() (r struct{ Ffreq Ush }) { 24647 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(12) 24648 return r 24649 }(), Fdl: func() (r struct{ Fdad Ush }) { 24650 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24651 return r 24652 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24653 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(140) 24654 return r 24655 }(), Fdl: func() (r struct{ Fdad Ush }) { 24656 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24657 return r 24658 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24659 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(76) 24660 return r 24661 }(), Fdl: func() (r struct{ Fdad Ush }) { 24662 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24663 return r 24664 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24665 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(204) 24666 return r 24667 }(), Fdl: func() (r struct{ Fdad Ush }) { 24668 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24669 return r 24670 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24671 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(44) 24672 return r 24673 }(), Fdl: func() (r struct{ Fdad Ush }) { 24674 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24675 return r 24676 }()}, 24677 {Ffc: func() (r struct{ Ffreq Ush }) { 24678 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(172) 24679 return r 24680 }(), Fdl: func() (r struct{ Fdad Ush }) { 24681 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24682 return r 24683 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24684 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(108) 24685 return r 24686 }(), Fdl: func() (r struct{ Fdad Ush }) { 24687 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24688 return r 24689 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24690 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(236) 24691 return r 24692 }(), Fdl: func() (r struct{ Fdad Ush }) { 24693 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24694 return r 24695 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24696 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(28) 24697 return r 24698 }(), Fdl: func() (r struct{ Fdad Ush }) { 24699 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24700 return r 24701 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24702 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(156) 24703 return r 24704 }(), Fdl: func() (r struct{ Fdad Ush }) { 24705 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24706 return r 24707 }()}, 24708 {Ffc: func() (r struct{ Ffreq Ush }) { 24709 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(92) 24710 return r 24711 }(), Fdl: func() (r struct{ Fdad Ush }) { 24712 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24713 return r 24714 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24715 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(220) 24716 return r 24717 }(), Fdl: func() (r struct{ Fdad Ush }) { 24718 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24719 return r 24720 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24721 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(60) 24722 return r 24723 }(), Fdl: func() (r struct{ Fdad Ush }) { 24724 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24725 return r 24726 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24727 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(188) 24728 return r 24729 }(), Fdl: func() (r struct{ Fdad Ush }) { 24730 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24731 return r 24732 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24733 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(124) 24734 return r 24735 }(), Fdl: func() (r struct{ Fdad Ush }) { 24736 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24737 return r 24738 }()}, 24739 {Ffc: func() (r struct{ Ffreq Ush }) { 24740 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(252) 24741 return r 24742 }(), Fdl: func() (r struct{ Fdad Ush }) { 24743 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24744 return r 24745 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24746 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(2) 24747 return r 24748 }(), Fdl: func() (r struct{ Fdad Ush }) { 24749 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24750 return r 24751 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24752 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(130) 24753 return r 24754 }(), Fdl: func() (r struct{ Fdad Ush }) { 24755 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24756 return r 24757 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24758 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(66) 24759 return r 24760 }(), Fdl: func() (r struct{ Fdad Ush }) { 24761 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24762 return r 24763 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24764 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(194) 24765 return r 24766 }(), Fdl: func() (r struct{ Fdad Ush }) { 24767 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24768 return r 24769 }()}, 24770 {Ffc: func() (r struct{ Ffreq Ush }) { 24771 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(34) 24772 return r 24773 }(), Fdl: func() (r struct{ Fdad Ush }) { 24774 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24775 return r 24776 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24777 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(162) 24778 return r 24779 }(), Fdl: func() (r struct{ Fdad Ush }) { 24780 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24781 return r 24782 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24783 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(98) 24784 return r 24785 }(), Fdl: func() (r struct{ Fdad Ush }) { 24786 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24787 return r 24788 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24789 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(226) 24790 return r 24791 }(), Fdl: func() (r struct{ Fdad Ush }) { 24792 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24793 return r 24794 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24795 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(18) 24796 return r 24797 }(), Fdl: func() (r struct{ Fdad Ush }) { 24798 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24799 return r 24800 }()}, 24801 {Ffc: func() (r struct{ Ffreq Ush }) { 24802 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(146) 24803 return r 24804 }(), Fdl: func() (r struct{ Fdad Ush }) { 24805 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24806 return r 24807 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24808 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(82) 24809 return r 24810 }(), Fdl: func() (r struct{ Fdad Ush }) { 24811 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24812 return r 24813 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24814 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(210) 24815 return r 24816 }(), Fdl: func() (r struct{ Fdad Ush }) { 24817 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24818 return r 24819 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24820 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(50) 24821 return r 24822 }(), Fdl: func() (r struct{ Fdad Ush }) { 24823 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24824 return r 24825 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24826 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(178) 24827 return r 24828 }(), Fdl: func() (r struct{ Fdad Ush }) { 24829 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24830 return r 24831 }()}, 24832 {Ffc: func() (r struct{ Ffreq Ush }) { 24833 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(114) 24834 return r 24835 }(), Fdl: func() (r struct{ Fdad Ush }) { 24836 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24837 return r 24838 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24839 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(242) 24840 return r 24841 }(), Fdl: func() (r struct{ Fdad Ush }) { 24842 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24843 return r 24844 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24845 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(10) 24846 return r 24847 }(), Fdl: func() (r struct{ Fdad Ush }) { 24848 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24849 return r 24850 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24851 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(138) 24852 return r 24853 }(), Fdl: func() (r struct{ Fdad Ush }) { 24854 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24855 return r 24856 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24857 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(74) 24858 return r 24859 }(), Fdl: func() (r struct{ Fdad Ush }) { 24860 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24861 return r 24862 }()}, 24863 {Ffc: func() (r struct{ Ffreq Ush }) { 24864 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(202) 24865 return r 24866 }(), Fdl: func() (r struct{ Fdad Ush }) { 24867 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24868 return r 24869 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24870 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(42) 24871 return r 24872 }(), Fdl: func() (r struct{ Fdad Ush }) { 24873 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24874 return r 24875 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24876 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(170) 24877 return r 24878 }(), Fdl: func() (r struct{ Fdad Ush }) { 24879 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24880 return r 24881 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24882 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(106) 24883 return r 24884 }(), Fdl: func() (r struct{ Fdad Ush }) { 24885 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24886 return r 24887 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24888 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(234) 24889 return r 24890 }(), Fdl: func() (r struct{ Fdad Ush }) { 24891 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24892 return r 24893 }()}, 24894 {Ffc: func() (r struct{ Ffreq Ush }) { 24895 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(26) 24896 return r 24897 }(), Fdl: func() (r struct{ Fdad Ush }) { 24898 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24899 return r 24900 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24901 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(154) 24902 return r 24903 }(), Fdl: func() (r struct{ Fdad Ush }) { 24904 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24905 return r 24906 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24907 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(90) 24908 return r 24909 }(), Fdl: func() (r struct{ Fdad Ush }) { 24910 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24911 return r 24912 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24913 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(218) 24914 return r 24915 }(), Fdl: func() (r struct{ Fdad Ush }) { 24916 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24917 return r 24918 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24919 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(58) 24920 return r 24921 }(), Fdl: func() (r struct{ Fdad Ush }) { 24922 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24923 return r 24924 }()}, 24925 {Ffc: func() (r struct{ Ffreq Ush }) { 24926 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(186) 24927 return r 24928 }(), Fdl: func() (r struct{ Fdad Ush }) { 24929 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24930 return r 24931 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24932 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(122) 24933 return r 24934 }(), Fdl: func() (r struct{ Fdad Ush }) { 24935 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24936 return r 24937 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24938 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(250) 24939 return r 24940 }(), Fdl: func() (r struct{ Fdad Ush }) { 24941 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24942 return r 24943 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24944 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(6) 24945 return r 24946 }(), Fdl: func() (r struct{ Fdad Ush }) { 24947 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24948 return r 24949 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24950 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(134) 24951 return r 24952 }(), Fdl: func() (r struct{ Fdad Ush }) { 24953 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24954 return r 24955 }()}, 24956 {Ffc: func() (r struct{ Ffreq Ush }) { 24957 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(70) 24958 return r 24959 }(), Fdl: func() (r struct{ Fdad Ush }) { 24960 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24961 return r 24962 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24963 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(198) 24964 return r 24965 }(), Fdl: func() (r struct{ Fdad Ush }) { 24966 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24967 return r 24968 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24969 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(38) 24970 return r 24971 }(), Fdl: func() (r struct{ Fdad Ush }) { 24972 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24973 return r 24974 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24975 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(166) 24976 return r 24977 }(), Fdl: func() (r struct{ Fdad Ush }) { 24978 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24979 return r 24980 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24981 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(102) 24982 return r 24983 }(), Fdl: func() (r struct{ Fdad Ush }) { 24984 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24985 return r 24986 }()}, 24987 {Ffc: func() (r struct{ Ffreq Ush }) { 24988 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(230) 24989 return r 24990 }(), Fdl: func() (r struct{ Fdad Ush }) { 24991 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24992 return r 24993 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 24994 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(22) 24995 return r 24996 }(), Fdl: func() (r struct{ Fdad Ush }) { 24997 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 24998 return r 24999 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25000 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(150) 25001 return r 25002 }(), Fdl: func() (r struct{ Fdad Ush }) { 25003 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25004 return r 25005 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25006 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(86) 25007 return r 25008 }(), Fdl: func() (r struct{ Fdad Ush }) { 25009 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25010 return r 25011 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25012 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(214) 25013 return r 25014 }(), Fdl: func() (r struct{ Fdad Ush }) { 25015 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25016 return r 25017 }()}, 25018 {Ffc: func() (r struct{ Ffreq Ush }) { 25019 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(54) 25020 return r 25021 }(), Fdl: func() (r struct{ Fdad Ush }) { 25022 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25023 return r 25024 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25025 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(182) 25026 return r 25027 }(), Fdl: func() (r struct{ Fdad Ush }) { 25028 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25029 return r 25030 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25031 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(118) 25032 return r 25033 }(), Fdl: func() (r struct{ Fdad Ush }) { 25034 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25035 return r 25036 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25037 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(246) 25038 return r 25039 }(), Fdl: func() (r struct{ Fdad Ush }) { 25040 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25041 return r 25042 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25043 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(14) 25044 return r 25045 }(), Fdl: func() (r struct{ Fdad Ush }) { 25046 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25047 return r 25048 }()}, 25049 {Ffc: func() (r struct{ Ffreq Ush }) { 25050 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(142) 25051 return r 25052 }(), Fdl: func() (r struct{ Fdad Ush }) { 25053 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25054 return r 25055 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25056 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(78) 25057 return r 25058 }(), Fdl: func() (r struct{ Fdad Ush }) { 25059 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25060 return r 25061 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25062 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(206) 25063 return r 25064 }(), Fdl: func() (r struct{ Fdad Ush }) { 25065 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25066 return r 25067 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25068 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(46) 25069 return r 25070 }(), Fdl: func() (r struct{ Fdad Ush }) { 25071 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25072 return r 25073 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25074 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(174) 25075 return r 25076 }(), Fdl: func() (r struct{ Fdad Ush }) { 25077 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25078 return r 25079 }()}, 25080 {Ffc: func() (r struct{ Ffreq Ush }) { 25081 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(110) 25082 return r 25083 }(), Fdl: func() (r struct{ Fdad Ush }) { 25084 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25085 return r 25086 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25087 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(238) 25088 return r 25089 }(), Fdl: func() (r struct{ Fdad Ush }) { 25090 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25091 return r 25092 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25093 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(30) 25094 return r 25095 }(), Fdl: func() (r struct{ Fdad Ush }) { 25096 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25097 return r 25098 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25099 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(158) 25100 return r 25101 }(), Fdl: func() (r struct{ Fdad Ush }) { 25102 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25103 return r 25104 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25105 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(94) 25106 return r 25107 }(), Fdl: func() (r struct{ Fdad Ush }) { 25108 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25109 return r 25110 }()}, 25111 {Ffc: func() (r struct{ Ffreq Ush }) { 25112 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(222) 25113 return r 25114 }(), Fdl: func() (r struct{ Fdad Ush }) { 25115 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25116 return r 25117 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25118 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(62) 25119 return r 25120 }(), Fdl: func() (r struct{ Fdad Ush }) { 25121 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25122 return r 25123 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25124 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(190) 25125 return r 25126 }(), Fdl: func() (r struct{ Fdad Ush }) { 25127 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25128 return r 25129 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25130 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(126) 25131 return r 25132 }(), Fdl: func() (r struct{ Fdad Ush }) { 25133 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25134 return r 25135 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25136 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(254) 25137 return r 25138 }(), Fdl: func() (r struct{ Fdad Ush }) { 25139 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25140 return r 25141 }()}, 25142 {Ffc: func() (r struct{ Ffreq Ush }) { 25143 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(1) 25144 return r 25145 }(), Fdl: func() (r struct{ Fdad Ush }) { 25146 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25147 return r 25148 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25149 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(129) 25150 return r 25151 }(), Fdl: func() (r struct{ Fdad Ush }) { 25152 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25153 return r 25154 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25155 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(65) 25156 return r 25157 }(), Fdl: func() (r struct{ Fdad Ush }) { 25158 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25159 return r 25160 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25161 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(193) 25162 return r 25163 }(), Fdl: func() (r struct{ Fdad Ush }) { 25164 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25165 return r 25166 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25167 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(33) 25168 return r 25169 }(), Fdl: func() (r struct{ Fdad Ush }) { 25170 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25171 return r 25172 }()}, 25173 {Ffc: func() (r struct{ Ffreq Ush }) { 25174 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(161) 25175 return r 25176 }(), Fdl: func() (r struct{ Fdad Ush }) { 25177 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25178 return r 25179 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25180 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(97) 25181 return r 25182 }(), Fdl: func() (r struct{ Fdad Ush }) { 25183 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25184 return r 25185 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25186 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(225) 25187 return r 25188 }(), Fdl: func() (r struct{ Fdad Ush }) { 25189 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25190 return r 25191 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25192 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(17) 25193 return r 25194 }(), Fdl: func() (r struct{ Fdad Ush }) { 25195 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25196 return r 25197 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25198 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(145) 25199 return r 25200 }(), Fdl: func() (r struct{ Fdad Ush }) { 25201 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25202 return r 25203 }()}, 25204 {Ffc: func() (r struct{ Ffreq Ush }) { 25205 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(81) 25206 return r 25207 }(), Fdl: func() (r struct{ Fdad Ush }) { 25208 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25209 return r 25210 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25211 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(209) 25212 return r 25213 }(), Fdl: func() (r struct{ Fdad Ush }) { 25214 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25215 return r 25216 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25217 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(49) 25218 return r 25219 }(), Fdl: func() (r struct{ Fdad Ush }) { 25220 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25221 return r 25222 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25223 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(177) 25224 return r 25225 }(), Fdl: func() (r struct{ Fdad Ush }) { 25226 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25227 return r 25228 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25229 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(113) 25230 return r 25231 }(), Fdl: func() (r struct{ Fdad Ush }) { 25232 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25233 return r 25234 }()}, 25235 {Ffc: func() (r struct{ Ffreq Ush }) { 25236 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(241) 25237 return r 25238 }(), Fdl: func() (r struct{ Fdad Ush }) { 25239 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25240 return r 25241 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25242 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25243 return r 25244 }(), Fdl: func() (r struct{ Fdad Ush }) { 25245 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25246 return r 25247 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25248 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(137) 25249 return r 25250 }(), Fdl: func() (r struct{ Fdad Ush }) { 25251 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25252 return r 25253 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25254 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(73) 25255 return r 25256 }(), Fdl: func() (r struct{ Fdad Ush }) { 25257 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25258 return r 25259 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25260 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(201) 25261 return r 25262 }(), Fdl: func() (r struct{ Fdad Ush }) { 25263 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25264 return r 25265 }()}, 25266 {Ffc: func() (r struct{ Ffreq Ush }) { 25267 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(41) 25268 return r 25269 }(), Fdl: func() (r struct{ Fdad Ush }) { 25270 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25271 return r 25272 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25273 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(169) 25274 return r 25275 }(), Fdl: func() (r struct{ Fdad Ush }) { 25276 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25277 return r 25278 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25279 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(105) 25280 return r 25281 }(), Fdl: func() (r struct{ Fdad Ush }) { 25282 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25283 return r 25284 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25285 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(233) 25286 return r 25287 }(), Fdl: func() (r struct{ Fdad Ush }) { 25288 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25289 return r 25290 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25291 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(25) 25292 return r 25293 }(), Fdl: func() (r struct{ Fdad Ush }) { 25294 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25295 return r 25296 }()}, 25297 {Ffc: func() (r struct{ Ffreq Ush }) { 25298 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(153) 25299 return r 25300 }(), Fdl: func() (r struct{ Fdad Ush }) { 25301 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25302 return r 25303 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25304 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(89) 25305 return r 25306 }(), Fdl: func() (r struct{ Fdad Ush }) { 25307 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25308 return r 25309 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25310 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(217) 25311 return r 25312 }(), Fdl: func() (r struct{ Fdad Ush }) { 25313 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25314 return r 25315 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25316 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(57) 25317 return r 25318 }(), Fdl: func() (r struct{ Fdad Ush }) { 25319 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25320 return r 25321 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25322 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(185) 25323 return r 25324 }(), Fdl: func() (r struct{ Fdad Ush }) { 25325 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25326 return r 25327 }()}, 25328 {Ffc: func() (r struct{ Ffreq Ush }) { 25329 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(121) 25330 return r 25331 }(), Fdl: func() (r struct{ Fdad Ush }) { 25332 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25333 return r 25334 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25335 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(249) 25336 return r 25337 }(), Fdl: func() (r struct{ Fdad Ush }) { 25338 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25339 return r 25340 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25341 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 25342 return r 25343 }(), Fdl: func() (r struct{ Fdad Ush }) { 25344 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25345 return r 25346 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25347 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(133) 25348 return r 25349 }(), Fdl: func() (r struct{ Fdad Ush }) { 25350 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25351 return r 25352 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25353 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(69) 25354 return r 25355 }(), Fdl: func() (r struct{ Fdad Ush }) { 25356 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25357 return r 25358 }()}, 25359 {Ffc: func() (r struct{ Ffreq Ush }) { 25360 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(197) 25361 return r 25362 }(), Fdl: func() (r struct{ Fdad Ush }) { 25363 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25364 return r 25365 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25366 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(37) 25367 return r 25368 }(), Fdl: func() (r struct{ Fdad Ush }) { 25369 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25370 return r 25371 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25372 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(165) 25373 return r 25374 }(), Fdl: func() (r struct{ Fdad Ush }) { 25375 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25376 return r 25377 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25378 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(101) 25379 return r 25380 }(), Fdl: func() (r struct{ Fdad Ush }) { 25381 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25382 return r 25383 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25384 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(229) 25385 return r 25386 }(), Fdl: func() (r struct{ Fdad Ush }) { 25387 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25388 return r 25389 }()}, 25390 {Ffc: func() (r struct{ Ffreq Ush }) { 25391 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(21) 25392 return r 25393 }(), Fdl: func() (r struct{ Fdad Ush }) { 25394 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25395 return r 25396 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25397 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(149) 25398 return r 25399 }(), Fdl: func() (r struct{ Fdad Ush }) { 25400 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25401 return r 25402 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25403 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(85) 25404 return r 25405 }(), Fdl: func() (r struct{ Fdad Ush }) { 25406 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25407 return r 25408 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25409 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(213) 25410 return r 25411 }(), Fdl: func() (r struct{ Fdad Ush }) { 25412 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25413 return r 25414 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25415 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(53) 25416 return r 25417 }(), Fdl: func() (r struct{ Fdad Ush }) { 25418 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25419 return r 25420 }()}, 25421 {Ffc: func() (r struct{ Ffreq Ush }) { 25422 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(181) 25423 return r 25424 }(), Fdl: func() (r struct{ Fdad Ush }) { 25425 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25426 return r 25427 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25428 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(117) 25429 return r 25430 }(), Fdl: func() (r struct{ Fdad Ush }) { 25431 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25432 return r 25433 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25434 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(245) 25435 return r 25436 }(), Fdl: func() (r struct{ Fdad Ush }) { 25437 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25438 return r 25439 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25440 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(13) 25441 return r 25442 }(), Fdl: func() (r struct{ Fdad Ush }) { 25443 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25444 return r 25445 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25446 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(141) 25447 return r 25448 }(), Fdl: func() (r struct{ Fdad Ush }) { 25449 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25450 return r 25451 }()}, 25452 {Ffc: func() (r struct{ Ffreq Ush }) { 25453 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(77) 25454 return r 25455 }(), Fdl: func() (r struct{ Fdad Ush }) { 25456 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25457 return r 25458 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25459 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(205) 25460 return r 25461 }(), Fdl: func() (r struct{ Fdad Ush }) { 25462 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25463 return r 25464 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25465 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(45) 25466 return r 25467 }(), Fdl: func() (r struct{ Fdad Ush }) { 25468 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25469 return r 25470 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25471 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(173) 25472 return r 25473 }(), Fdl: func() (r struct{ Fdad Ush }) { 25474 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25475 return r 25476 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25477 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(109) 25478 return r 25479 }(), Fdl: func() (r struct{ Fdad Ush }) { 25480 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25481 return r 25482 }()}, 25483 {Ffc: func() (r struct{ Ffreq Ush }) { 25484 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(237) 25485 return r 25486 }(), Fdl: func() (r struct{ Fdad Ush }) { 25487 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25488 return r 25489 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25490 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(29) 25491 return r 25492 }(), Fdl: func() (r struct{ Fdad Ush }) { 25493 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25494 return r 25495 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25496 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(157) 25497 return r 25498 }(), Fdl: func() (r struct{ Fdad Ush }) { 25499 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25500 return r 25501 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25502 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(93) 25503 return r 25504 }(), Fdl: func() (r struct{ Fdad Ush }) { 25505 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25506 return r 25507 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25508 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(221) 25509 return r 25510 }(), Fdl: func() (r struct{ Fdad Ush }) { 25511 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25512 return r 25513 }()}, 25514 {Ffc: func() (r struct{ Ffreq Ush }) { 25515 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(61) 25516 return r 25517 }(), Fdl: func() (r struct{ Fdad Ush }) { 25518 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25519 return r 25520 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25521 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(189) 25522 return r 25523 }(), Fdl: func() (r struct{ Fdad Ush }) { 25524 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25525 return r 25526 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25527 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(125) 25528 return r 25529 }(), Fdl: func() (r struct{ Fdad Ush }) { 25530 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25531 return r 25532 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25533 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(253) 25534 return r 25535 }(), Fdl: func() (r struct{ Fdad Ush }) { 25536 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 25537 return r 25538 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25539 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(19) 25540 return r 25541 }(), Fdl: func() (r struct{ Fdad Ush }) { 25542 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25543 return r 25544 }()}, 25545 {Ffc: func() (r struct{ Ffreq Ush }) { 25546 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(275) 25547 return r 25548 }(), Fdl: func() (r struct{ Fdad Ush }) { 25549 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25550 return r 25551 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25552 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(147) 25553 return r 25554 }(), Fdl: func() (r struct{ Fdad Ush }) { 25555 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25556 return r 25557 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25558 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(403) 25559 return r 25560 }(), Fdl: func() (r struct{ Fdad Ush }) { 25561 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25562 return r 25563 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25564 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(83) 25565 return r 25566 }(), Fdl: func() (r struct{ Fdad Ush }) { 25567 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25568 return r 25569 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25570 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(339) 25571 return r 25572 }(), Fdl: func() (r struct{ Fdad Ush }) { 25573 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25574 return r 25575 }()}, 25576 {Ffc: func() (r struct{ Ffreq Ush }) { 25577 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(211) 25578 return r 25579 }(), Fdl: func() (r struct{ Fdad Ush }) { 25580 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25581 return r 25582 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25583 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(467) 25584 return r 25585 }(), Fdl: func() (r struct{ Fdad Ush }) { 25586 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25587 return r 25588 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25589 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(51) 25590 return r 25591 }(), Fdl: func() (r struct{ Fdad Ush }) { 25592 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25593 return r 25594 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25595 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(307) 25596 return r 25597 }(), Fdl: func() (r struct{ Fdad Ush }) { 25598 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25599 return r 25600 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25601 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(179) 25602 return r 25603 }(), Fdl: func() (r struct{ Fdad Ush }) { 25604 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25605 return r 25606 }()}, 25607 {Ffc: func() (r struct{ Ffreq Ush }) { 25608 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(435) 25609 return r 25610 }(), Fdl: func() (r struct{ Fdad Ush }) { 25611 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25612 return r 25613 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25614 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(115) 25615 return r 25616 }(), Fdl: func() (r struct{ Fdad Ush }) { 25617 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25618 return r 25619 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25620 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(371) 25621 return r 25622 }(), Fdl: func() (r struct{ Fdad Ush }) { 25623 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25624 return r 25625 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25626 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(243) 25627 return r 25628 }(), Fdl: func() (r struct{ Fdad Ush }) { 25629 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25630 return r 25631 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25632 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(499) 25633 return r 25634 }(), Fdl: func() (r struct{ Fdad Ush }) { 25635 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25636 return r 25637 }()}, 25638 {Ffc: func() (r struct{ Ffreq Ush }) { 25639 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(11) 25640 return r 25641 }(), Fdl: func() (r struct{ Fdad Ush }) { 25642 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25643 return r 25644 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25645 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(267) 25646 return r 25647 }(), Fdl: func() (r struct{ Fdad Ush }) { 25648 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25649 return r 25650 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25651 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(139) 25652 return r 25653 }(), Fdl: func() (r struct{ Fdad Ush }) { 25654 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25655 return r 25656 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25657 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(395) 25658 return r 25659 }(), Fdl: func() (r struct{ Fdad Ush }) { 25660 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25661 return r 25662 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25663 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(75) 25664 return r 25665 }(), Fdl: func() (r struct{ Fdad Ush }) { 25666 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25667 return r 25668 }()}, 25669 {Ffc: func() (r struct{ Ffreq Ush }) { 25670 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(331) 25671 return r 25672 }(), Fdl: func() (r struct{ Fdad Ush }) { 25673 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25674 return r 25675 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25676 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(203) 25677 return r 25678 }(), Fdl: func() (r struct{ Fdad Ush }) { 25679 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25680 return r 25681 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25682 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(459) 25683 return r 25684 }(), Fdl: func() (r struct{ Fdad Ush }) { 25685 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25686 return r 25687 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25688 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(43) 25689 return r 25690 }(), Fdl: func() (r struct{ Fdad Ush }) { 25691 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25692 return r 25693 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25694 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(299) 25695 return r 25696 }(), Fdl: func() (r struct{ Fdad Ush }) { 25697 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25698 return r 25699 }()}, 25700 {Ffc: func() (r struct{ Ffreq Ush }) { 25701 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(171) 25702 return r 25703 }(), Fdl: func() (r struct{ Fdad Ush }) { 25704 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25705 return r 25706 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25707 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(427) 25708 return r 25709 }(), Fdl: func() (r struct{ Fdad Ush }) { 25710 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25711 return r 25712 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25713 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(107) 25714 return r 25715 }(), Fdl: func() (r struct{ Fdad Ush }) { 25716 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25717 return r 25718 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25719 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(363) 25720 return r 25721 }(), Fdl: func() (r struct{ Fdad Ush }) { 25722 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25723 return r 25724 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25725 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(235) 25726 return r 25727 }(), Fdl: func() (r struct{ Fdad Ush }) { 25728 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25729 return r 25730 }()}, 25731 {Ffc: func() (r struct{ Ffreq Ush }) { 25732 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(491) 25733 return r 25734 }(), Fdl: func() (r struct{ Fdad Ush }) { 25735 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25736 return r 25737 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25738 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(27) 25739 return r 25740 }(), Fdl: func() (r struct{ Fdad Ush }) { 25741 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25742 return r 25743 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25744 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(283) 25745 return r 25746 }(), Fdl: func() (r struct{ Fdad Ush }) { 25747 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25748 return r 25749 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25750 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(155) 25751 return r 25752 }(), Fdl: func() (r struct{ Fdad Ush }) { 25753 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25754 return r 25755 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25756 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(411) 25757 return r 25758 }(), Fdl: func() (r struct{ Fdad Ush }) { 25759 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25760 return r 25761 }()}, 25762 {Ffc: func() (r struct{ Ffreq Ush }) { 25763 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(91) 25764 return r 25765 }(), Fdl: func() (r struct{ Fdad Ush }) { 25766 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25767 return r 25768 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25769 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(347) 25770 return r 25771 }(), Fdl: func() (r struct{ Fdad Ush }) { 25772 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25773 return r 25774 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25775 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(219) 25776 return r 25777 }(), Fdl: func() (r struct{ Fdad Ush }) { 25778 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25779 return r 25780 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25781 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(475) 25782 return r 25783 }(), Fdl: func() (r struct{ Fdad Ush }) { 25784 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25785 return r 25786 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25787 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(59) 25788 return r 25789 }(), Fdl: func() (r struct{ Fdad Ush }) { 25790 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25791 return r 25792 }()}, 25793 {Ffc: func() (r struct{ Ffreq Ush }) { 25794 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(315) 25795 return r 25796 }(), Fdl: func() (r struct{ Fdad Ush }) { 25797 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25798 return r 25799 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25800 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(187) 25801 return r 25802 }(), Fdl: func() (r struct{ Fdad Ush }) { 25803 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25804 return r 25805 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25806 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(443) 25807 return r 25808 }(), Fdl: func() (r struct{ Fdad Ush }) { 25809 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25810 return r 25811 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25812 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(123) 25813 return r 25814 }(), Fdl: func() (r struct{ Fdad Ush }) { 25815 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25816 return r 25817 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25818 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(379) 25819 return r 25820 }(), Fdl: func() (r struct{ Fdad Ush }) { 25821 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25822 return r 25823 }()}, 25824 {Ffc: func() (r struct{ Ffreq Ush }) { 25825 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(251) 25826 return r 25827 }(), Fdl: func() (r struct{ Fdad Ush }) { 25828 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25829 return r 25830 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25831 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(507) 25832 return r 25833 }(), Fdl: func() (r struct{ Fdad Ush }) { 25834 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25835 return r 25836 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25837 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 25838 return r 25839 }(), Fdl: func() (r struct{ Fdad Ush }) { 25840 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25841 return r 25842 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25843 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(263) 25844 return r 25845 }(), Fdl: func() (r struct{ Fdad Ush }) { 25846 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25847 return r 25848 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25849 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(135) 25850 return r 25851 }(), Fdl: func() (r struct{ Fdad Ush }) { 25852 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25853 return r 25854 }()}, 25855 {Ffc: func() (r struct{ Ffreq Ush }) { 25856 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(391) 25857 return r 25858 }(), Fdl: func() (r struct{ Fdad Ush }) { 25859 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25860 return r 25861 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25862 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(71) 25863 return r 25864 }(), Fdl: func() (r struct{ Fdad Ush }) { 25865 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25866 return r 25867 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25868 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(327) 25869 return r 25870 }(), Fdl: func() (r struct{ Fdad Ush }) { 25871 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25872 return r 25873 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25874 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(199) 25875 return r 25876 }(), Fdl: func() (r struct{ Fdad Ush }) { 25877 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25878 return r 25879 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25880 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(455) 25881 return r 25882 }(), Fdl: func() (r struct{ Fdad Ush }) { 25883 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25884 return r 25885 }()}, 25886 {Ffc: func() (r struct{ Ffreq Ush }) { 25887 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(39) 25888 return r 25889 }(), Fdl: func() (r struct{ Fdad Ush }) { 25890 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25891 return r 25892 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25893 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(295) 25894 return r 25895 }(), Fdl: func() (r struct{ Fdad Ush }) { 25896 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25897 return r 25898 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25899 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(167) 25900 return r 25901 }(), Fdl: func() (r struct{ Fdad Ush }) { 25902 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25903 return r 25904 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25905 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(423) 25906 return r 25907 }(), Fdl: func() (r struct{ Fdad Ush }) { 25908 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25909 return r 25910 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25911 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(103) 25912 return r 25913 }(), Fdl: func() (r struct{ Fdad Ush }) { 25914 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25915 return r 25916 }()}, 25917 {Ffc: func() (r struct{ Ffreq Ush }) { 25918 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(359) 25919 return r 25920 }(), Fdl: func() (r struct{ Fdad Ush }) { 25921 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25922 return r 25923 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25924 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(231) 25925 return r 25926 }(), Fdl: func() (r struct{ Fdad Ush }) { 25927 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25928 return r 25929 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25930 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(487) 25931 return r 25932 }(), Fdl: func() (r struct{ Fdad Ush }) { 25933 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25934 return r 25935 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25936 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(23) 25937 return r 25938 }(), Fdl: func() (r struct{ Fdad Ush }) { 25939 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25940 return r 25941 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25942 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(279) 25943 return r 25944 }(), Fdl: func() (r struct{ Fdad Ush }) { 25945 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25946 return r 25947 }()}, 25948 {Ffc: func() (r struct{ Ffreq Ush }) { 25949 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(151) 25950 return r 25951 }(), Fdl: func() (r struct{ Fdad Ush }) { 25952 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25953 return r 25954 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25955 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(407) 25956 return r 25957 }(), Fdl: func() (r struct{ Fdad Ush }) { 25958 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25959 return r 25960 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25961 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(87) 25962 return r 25963 }(), Fdl: func() (r struct{ Fdad Ush }) { 25964 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25965 return r 25966 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25967 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(343) 25968 return r 25969 }(), Fdl: func() (r struct{ Fdad Ush }) { 25970 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25971 return r 25972 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25973 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(215) 25974 return r 25975 }(), Fdl: func() (r struct{ Fdad Ush }) { 25976 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25977 return r 25978 }()}, 25979 {Ffc: func() (r struct{ Ffreq Ush }) { 25980 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(471) 25981 return r 25982 }(), Fdl: func() (r struct{ Fdad Ush }) { 25983 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25984 return r 25985 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25986 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(55) 25987 return r 25988 }(), Fdl: func() (r struct{ Fdad Ush }) { 25989 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25990 return r 25991 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25992 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(311) 25993 return r 25994 }(), Fdl: func() (r struct{ Fdad Ush }) { 25995 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 25996 return r 25997 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 25998 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(183) 25999 return r 26000 }(), Fdl: func() (r struct{ Fdad Ush }) { 26001 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26002 return r 26003 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26004 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(439) 26005 return r 26006 }(), Fdl: func() (r struct{ Fdad Ush }) { 26007 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26008 return r 26009 }()}, 26010 {Ffc: func() (r struct{ Ffreq Ush }) { 26011 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(119) 26012 return r 26013 }(), Fdl: func() (r struct{ Fdad Ush }) { 26014 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26015 return r 26016 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26017 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(375) 26018 return r 26019 }(), Fdl: func() (r struct{ Fdad Ush }) { 26020 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26021 return r 26022 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26023 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(247) 26024 return r 26025 }(), Fdl: func() (r struct{ Fdad Ush }) { 26026 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26027 return r 26028 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26029 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(503) 26030 return r 26031 }(), Fdl: func() (r struct{ Fdad Ush }) { 26032 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26033 return r 26034 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26035 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(15) 26036 return r 26037 }(), Fdl: func() (r struct{ Fdad Ush }) { 26038 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26039 return r 26040 }()}, 26041 {Ffc: func() (r struct{ Ffreq Ush }) { 26042 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(271) 26043 return r 26044 }(), Fdl: func() (r struct{ Fdad Ush }) { 26045 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26046 return r 26047 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26048 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(143) 26049 return r 26050 }(), Fdl: func() (r struct{ Fdad Ush }) { 26051 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26052 return r 26053 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26054 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(399) 26055 return r 26056 }(), Fdl: func() (r struct{ Fdad Ush }) { 26057 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26058 return r 26059 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26060 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(79) 26061 return r 26062 }(), Fdl: func() (r struct{ Fdad Ush }) { 26063 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26064 return r 26065 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26066 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(335) 26067 return r 26068 }(), Fdl: func() (r struct{ Fdad Ush }) { 26069 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26070 return r 26071 }()}, 26072 {Ffc: func() (r struct{ Ffreq Ush }) { 26073 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(207) 26074 return r 26075 }(), Fdl: func() (r struct{ Fdad Ush }) { 26076 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26077 return r 26078 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26079 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(463) 26080 return r 26081 }(), Fdl: func() (r struct{ Fdad Ush }) { 26082 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26083 return r 26084 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26085 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(47) 26086 return r 26087 }(), Fdl: func() (r struct{ Fdad Ush }) { 26088 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26089 return r 26090 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26091 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(303) 26092 return r 26093 }(), Fdl: func() (r struct{ Fdad Ush }) { 26094 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26095 return r 26096 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26097 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(175) 26098 return r 26099 }(), Fdl: func() (r struct{ Fdad Ush }) { 26100 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26101 return r 26102 }()}, 26103 {Ffc: func() (r struct{ Ffreq Ush }) { 26104 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(431) 26105 return r 26106 }(), Fdl: func() (r struct{ Fdad Ush }) { 26107 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26108 return r 26109 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26110 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(111) 26111 return r 26112 }(), Fdl: func() (r struct{ Fdad Ush }) { 26113 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26114 return r 26115 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26116 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(367) 26117 return r 26118 }(), Fdl: func() (r struct{ Fdad Ush }) { 26119 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26120 return r 26121 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26122 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(239) 26123 return r 26124 }(), Fdl: func() (r struct{ Fdad Ush }) { 26125 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26126 return r 26127 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26128 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(495) 26129 return r 26130 }(), Fdl: func() (r struct{ Fdad Ush }) { 26131 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26132 return r 26133 }()}, 26134 {Ffc: func() (r struct{ Ffreq Ush }) { 26135 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(31) 26136 return r 26137 }(), Fdl: func() (r struct{ Fdad Ush }) { 26138 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26139 return r 26140 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26141 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(287) 26142 return r 26143 }(), Fdl: func() (r struct{ Fdad Ush }) { 26144 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26145 return r 26146 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26147 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(159) 26148 return r 26149 }(), Fdl: func() (r struct{ Fdad Ush }) { 26150 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26151 return r 26152 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26153 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(415) 26154 return r 26155 }(), Fdl: func() (r struct{ Fdad Ush }) { 26156 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26157 return r 26158 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26159 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(95) 26160 return r 26161 }(), Fdl: func() (r struct{ Fdad Ush }) { 26162 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26163 return r 26164 }()}, 26165 {Ffc: func() (r struct{ Ffreq Ush }) { 26166 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(351) 26167 return r 26168 }(), Fdl: func() (r struct{ Fdad Ush }) { 26169 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26170 return r 26171 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26172 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(223) 26173 return r 26174 }(), Fdl: func() (r struct{ Fdad Ush }) { 26175 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26176 return r 26177 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26178 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(479) 26179 return r 26180 }(), Fdl: func() (r struct{ Fdad Ush }) { 26181 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26182 return r 26183 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26184 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(63) 26185 return r 26186 }(), Fdl: func() (r struct{ Fdad Ush }) { 26187 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26188 return r 26189 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26190 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(319) 26191 return r 26192 }(), Fdl: func() (r struct{ Fdad Ush }) { 26193 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26194 return r 26195 }()}, 26196 {Ffc: func() (r struct{ Ffreq Ush }) { 26197 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(191) 26198 return r 26199 }(), Fdl: func() (r struct{ Fdad Ush }) { 26200 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26201 return r 26202 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26203 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(447) 26204 return r 26205 }(), Fdl: func() (r struct{ Fdad Ush }) { 26206 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26207 return r 26208 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26209 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(127) 26210 return r 26211 }(), Fdl: func() (r struct{ Fdad Ush }) { 26212 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26213 return r 26214 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26215 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(383) 26216 return r 26217 }(), Fdl: func() (r struct{ Fdad Ush }) { 26218 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26219 return r 26220 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26221 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(255) 26222 return r 26223 }(), Fdl: func() (r struct{ Fdad Ush }) { 26224 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26225 return r 26226 }()}, 26227 {Ffc: func() (r struct{ Ffreq Ush }) { 26228 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(511) 26229 return r 26230 }(), Fdl: func() (r struct{ Fdad Ush }) { 26231 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26232 return r 26233 }()}, {Fdl: func() (r struct{ Fdad Ush }) { 26234 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26235 return r 26236 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26237 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(64) 26238 return r 26239 }(), Fdl: func() (r struct{ Fdad Ush }) { 26240 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26241 return r 26242 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26243 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(32) 26244 return r 26245 }(), Fdl: func() (r struct{ Fdad Ush }) { 26246 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26247 return r 26248 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26249 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(96) 26250 return r 26251 }(), Fdl: func() (r struct{ Fdad Ush }) { 26252 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26253 return r 26254 }()}, 26255 {Ffc: func() (r struct{ Ffreq Ush }) { 26256 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(16) 26257 return r 26258 }(), Fdl: func() (r struct{ Fdad Ush }) { 26259 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26260 return r 26261 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26262 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(80) 26263 return r 26264 }(), Fdl: func() (r struct{ Fdad Ush }) { 26265 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26266 return r 26267 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26268 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(48) 26269 return r 26270 }(), Fdl: func() (r struct{ Fdad Ush }) { 26271 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26272 return r 26273 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26274 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(112) 26275 return r 26276 }(), Fdl: func() (r struct{ Fdad Ush }) { 26277 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26278 return r 26279 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26280 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 26281 return r 26282 }(), Fdl: func() (r struct{ Fdad Ush }) { 26283 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26284 return r 26285 }()}, 26286 {Ffc: func() (r struct{ Ffreq Ush }) { 26287 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(72) 26288 return r 26289 }(), Fdl: func() (r struct{ Fdad Ush }) { 26290 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26291 return r 26292 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26293 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(40) 26294 return r 26295 }(), Fdl: func() (r struct{ Fdad Ush }) { 26296 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26297 return r 26298 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26299 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(104) 26300 return r 26301 }(), Fdl: func() (r struct{ Fdad Ush }) { 26302 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26303 return r 26304 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26305 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(24) 26306 return r 26307 }(), Fdl: func() (r struct{ Fdad Ush }) { 26308 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26309 return r 26310 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26311 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(88) 26312 return r 26313 }(), Fdl: func() (r struct{ Fdad Ush }) { 26314 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26315 return r 26316 }()}, 26317 {Ffc: func() (r struct{ Ffreq Ush }) { 26318 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(56) 26319 return r 26320 }(), Fdl: func() (r struct{ Fdad Ush }) { 26321 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26322 return r 26323 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26324 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(120) 26325 return r 26326 }(), Fdl: func() (r struct{ Fdad Ush }) { 26327 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26328 return r 26329 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26330 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(4) 26331 return r 26332 }(), Fdl: func() (r struct{ Fdad Ush }) { 26333 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26334 return r 26335 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26336 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(68) 26337 return r 26338 }(), Fdl: func() (r struct{ Fdad Ush }) { 26339 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26340 return r 26341 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26342 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(36) 26343 return r 26344 }(), Fdl: func() (r struct{ Fdad Ush }) { 26345 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26346 return r 26347 }()}, 26348 {Ffc: func() (r struct{ Ffreq Ush }) { 26349 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(100) 26350 return r 26351 }(), Fdl: func() (r struct{ Fdad Ush }) { 26352 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26353 return r 26354 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26355 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(20) 26356 return r 26357 }(), Fdl: func() (r struct{ Fdad Ush }) { 26358 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26359 return r 26360 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26361 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(84) 26362 return r 26363 }(), Fdl: func() (r struct{ Fdad Ush }) { 26364 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26365 return r 26366 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26367 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(52) 26368 return r 26369 }(), Fdl: func() (r struct{ Fdad Ush }) { 26370 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26371 return r 26372 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26373 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(116) 26374 return r 26375 }(), Fdl: func() (r struct{ Fdad Ush }) { 26376 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26377 return r 26378 }()}, 26379 {Ffc: func() (r struct{ Ffreq Ush }) { 26380 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(3) 26381 return r 26382 }(), Fdl: func() (r struct{ Fdad Ush }) { 26383 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 26384 return r 26385 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26386 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(131) 26387 return r 26388 }(), Fdl: func() (r struct{ Fdad Ush }) { 26389 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 26390 return r 26391 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26392 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(67) 26393 return r 26394 }(), Fdl: func() (r struct{ Fdad Ush }) { 26395 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 26396 return r 26397 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26398 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(195) 26399 return r 26400 }(), Fdl: func() (r struct{ Fdad Ush }) { 26401 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 26402 return r 26403 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26404 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(35) 26405 return r 26406 }(), Fdl: func() (r struct{ Fdad Ush }) { 26407 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 26408 return r 26409 }()}, 26410 {Ffc: func() (r struct{ Ffreq Ush }) { 26411 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(163) 26412 return r 26413 }(), Fdl: func() (r struct{ Fdad Ush }) { 26414 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 26415 return r 26416 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26417 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(99) 26418 return r 26419 }(), Fdl: func() (r struct{ Fdad Ush }) { 26420 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 26421 return r 26422 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26423 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(227) 26424 return r 26425 }(), Fdl: func() (r struct{ Fdad Ush }) { 26426 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 26427 return r 26428 }()}} /* trees.h:3:21 */ 26429 26430 var static_dtree = [30]Ct_data{{Fdl: func() (r struct{ Fdad Ush }) { 26431 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26432 return r 26433 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26434 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(16) 26435 return r 26436 }(), Fdl: func() (r struct{ Fdad Ush }) { 26437 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26438 return r 26439 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26440 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(8) 26441 return r 26442 }(), Fdl: func() (r struct{ Fdad Ush }) { 26443 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26444 return r 26445 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26446 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(24) 26447 return r 26448 }(), Fdl: func() (r struct{ Fdad Ush }) { 26449 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26450 return r 26451 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26452 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(4) 26453 return r 26454 }(), Fdl: func() (r struct{ Fdad Ush }) { 26455 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26456 return r 26457 }()}, 26458 {Ffc: func() (r struct{ Ffreq Ush }) { 26459 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(20) 26460 return r 26461 }(), Fdl: func() (r struct{ Fdad Ush }) { 26462 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26463 return r 26464 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26465 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(12) 26466 return r 26467 }(), Fdl: func() (r struct{ Fdad Ush }) { 26468 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26469 return r 26470 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26471 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(28) 26472 return r 26473 }(), Fdl: func() (r struct{ Fdad Ush }) { 26474 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26475 return r 26476 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26477 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(2) 26478 return r 26479 }(), Fdl: func() (r struct{ Fdad Ush }) { 26480 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26481 return r 26482 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26483 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(18) 26484 return r 26485 }(), Fdl: func() (r struct{ Fdad Ush }) { 26486 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26487 return r 26488 }()}, 26489 {Ffc: func() (r struct{ Ffreq Ush }) { 26490 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(10) 26491 return r 26492 }(), Fdl: func() (r struct{ Fdad Ush }) { 26493 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26494 return r 26495 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26496 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(26) 26497 return r 26498 }(), Fdl: func() (r struct{ Fdad Ush }) { 26499 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26500 return r 26501 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26502 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(6) 26503 return r 26504 }(), Fdl: func() (r struct{ Fdad Ush }) { 26505 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26506 return r 26507 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26508 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(22) 26509 return r 26510 }(), Fdl: func() (r struct{ Fdad Ush }) { 26511 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26512 return r 26513 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26514 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(14) 26515 return r 26516 }(), Fdl: func() (r struct{ Fdad Ush }) { 26517 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26518 return r 26519 }()}, 26520 {Ffc: func() (r struct{ Ffreq Ush }) { 26521 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(30) 26522 return r 26523 }(), Fdl: func() (r struct{ Fdad Ush }) { 26524 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26525 return r 26526 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26527 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(1) 26528 return r 26529 }(), Fdl: func() (r struct{ Fdad Ush }) { 26530 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26531 return r 26532 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26533 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(17) 26534 return r 26535 }(), Fdl: func() (r struct{ Fdad Ush }) { 26536 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26537 return r 26538 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26539 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(9) 26540 return r 26541 }(), Fdl: func() (r struct{ Fdad Ush }) { 26542 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26543 return r 26544 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26545 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(25) 26546 return r 26547 }(), Fdl: func() (r struct{ Fdad Ush }) { 26548 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26549 return r 26550 }()}, 26551 {Ffc: func() (r struct{ Ffreq Ush }) { 26552 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26553 return r 26554 }(), Fdl: func() (r struct{ Fdad Ush }) { 26555 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26556 return r 26557 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26558 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(21) 26559 return r 26560 }(), Fdl: func() (r struct{ Fdad Ush }) { 26561 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26562 return r 26563 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26564 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(13) 26565 return r 26566 }(), Fdl: func() (r struct{ Fdad Ush }) { 26567 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26568 return r 26569 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26570 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(29) 26571 return r 26572 }(), Fdl: func() (r struct{ Fdad Ush }) { 26573 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26574 return r 26575 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26576 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(3) 26577 return r 26578 }(), Fdl: func() (r struct{ Fdad Ush }) { 26579 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26580 return r 26581 }()}, 26582 {Ffc: func() (r struct{ Ffreq Ush }) { 26583 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(19) 26584 return r 26585 }(), Fdl: func() (r struct{ Fdad Ush }) { 26586 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26587 return r 26588 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26589 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(11) 26590 return r 26591 }(), Fdl: func() (r struct{ Fdad Ush }) { 26592 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26593 return r 26594 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26595 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(27) 26596 return r 26597 }(), Fdl: func() (r struct{ Fdad Ush }) { 26598 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26599 return r 26600 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26601 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(7) 26602 return r 26603 }(), Fdl: func() (r struct{ Fdad Ush }) { 26604 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26605 return r 26606 }()}, {Ffc: func() (r struct{ Ffreq Ush }) { 26607 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(23) 26608 return r 26609 }(), Fdl: func() (r struct{ Fdad Ush }) { 26610 *(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = Ush(5) 26611 return r 26612 }()}} /* trees.h:64:21 */ 26613 26614 var X_dist_code = [512]Uch{ 26615 Uch(0), Uch(1), Uch(2), Uch(3), Uch(4), Uch(4), Uch(5), Uch(5), Uch(6), Uch(6), Uch(6), Uch(6), Uch(7), Uch(7), Uch(7), Uch(7), Uch(8), Uch(8), Uch(8), Uch(8), 26616 Uch(8), Uch(8), Uch(8), Uch(8), Uch(9), Uch(9), Uch(9), Uch(9), Uch(9), Uch(9), Uch(9), Uch(9), Uch(10), Uch(10), Uch(10), Uch(10), Uch(10), Uch(10), Uch(10), Uch(10), 26617 Uch(10), Uch(10), Uch(10), Uch(10), Uch(10), Uch(10), Uch(10), Uch(10), Uch(11), Uch(11), Uch(11), Uch(11), Uch(11), Uch(11), Uch(11), Uch(11), Uch(11), Uch(11), Uch(11), Uch(11), 26618 Uch(11), Uch(11), Uch(11), Uch(11), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), 26619 Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(12), Uch(13), Uch(13), Uch(13), Uch(13), 26620 Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), 26621 Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(13), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), 26622 Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), 26623 Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), 26624 Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(14), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), 26625 Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), 26626 Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), 26627 Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(15), Uch(0), Uch(0), Uch(16), Uch(17), 26628 Uch(18), Uch(18), Uch(19), Uch(19), Uch(20), Uch(20), Uch(20), Uch(20), Uch(21), Uch(21), Uch(21), Uch(21), Uch(22), Uch(22), Uch(22), Uch(22), Uch(22), Uch(22), Uch(22), Uch(22), 26629 Uch(23), Uch(23), Uch(23), Uch(23), Uch(23), Uch(23), Uch(23), Uch(23), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), 26630 Uch(24), Uch(24), Uch(24), Uch(24), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), 26631 Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), 26632 Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), 26633 Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), 26634 Uch(27), Uch(27), Uch(27), Uch(27), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), 26635 Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), 26636 Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), 26637 Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(28), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), 26638 Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), 26639 Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), 26640 Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), Uch(29), 26641 } /* trees.h:73:25 */ 26642 26643 var X_length_code = [256]Uch{ 26644 Uch(0), Uch(1), Uch(2), Uch(3), Uch(4), Uch(5), Uch(6), Uch(7), Uch(8), Uch(8), Uch(9), Uch(9), Uch(10), Uch(10), Uch(11), Uch(11), Uch(12), Uch(12), Uch(12), Uch(12), 26645 Uch(13), Uch(13), Uch(13), Uch(13), Uch(14), Uch(14), Uch(14), Uch(14), Uch(15), Uch(15), Uch(15), Uch(15), Uch(16), Uch(16), Uch(16), Uch(16), Uch(16), Uch(16), Uch(16), Uch(16), 26646 Uch(17), Uch(17), Uch(17), Uch(17), Uch(17), Uch(17), Uch(17), Uch(17), Uch(18), Uch(18), Uch(18), Uch(18), Uch(18), Uch(18), Uch(18), Uch(18), Uch(19), Uch(19), Uch(19), Uch(19), 26647 Uch(19), Uch(19), Uch(19), Uch(19), Uch(20), Uch(20), Uch(20), Uch(20), Uch(20), Uch(20), Uch(20), Uch(20), Uch(20), Uch(20), Uch(20), Uch(20), Uch(20), Uch(20), Uch(20), Uch(20), 26648 Uch(21), Uch(21), Uch(21), Uch(21), Uch(21), Uch(21), Uch(21), Uch(21), Uch(21), Uch(21), Uch(21), Uch(21), Uch(21), Uch(21), Uch(21), Uch(21), Uch(22), Uch(22), Uch(22), Uch(22), 26649 Uch(22), Uch(22), Uch(22), Uch(22), Uch(22), Uch(22), Uch(22), Uch(22), Uch(22), Uch(22), Uch(22), Uch(22), Uch(23), Uch(23), Uch(23), Uch(23), Uch(23), Uch(23), Uch(23), Uch(23), 26650 Uch(23), Uch(23), Uch(23), Uch(23), Uch(23), Uch(23), Uch(23), Uch(23), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), 26651 Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), Uch(24), 26652 Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), 26653 Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(25), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), 26654 Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), Uch(26), 26655 Uch(26), Uch(26), Uch(26), Uch(26), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), 26656 Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(27), Uch(28), 26657 } /* trees.h:102:25 */ 26658 26659 var base_length = [29]int32{ 26660 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 24, 28, 32, 40, 48, 56, 26661 64, 80, 96, 112, 128, 160, 192, 224, 0, 26662 } /* trees.h:118:17 */ 26663 26664 var base_dist = [30]int32{ 26665 0, 1, 2, 3, 4, 6, 8, 12, 16, 24, 26666 32, 48, 64, 96, 128, 192, 256, 384, 512, 768, 26667 1024, 1536, 2048, 3072, 4096, 6144, 8192, 12288, 16384, 24576, 26668 } /* trees.h:123:17 */ 26669 26670 var static_l_desc = Static_tree_desc{Fstatic_tree: 0, Fextra_bits: 0, Fextra_base: (LITERALS + 1), Felems: ((LITERALS + 1) + LENGTH_CODES), Fmax_length: MAX_BITS} /* trees.c:125:31 */ 26671 26672 var static_d_desc = Static_tree_desc{Fstatic_tree: 0, Fextra_bits: 0, Felems: D_CODES, Fmax_length: MAX_BITS} /* trees.c:128:31 */ 26673 26674 var static_bl_desc = Static_tree_desc{Fextra_bits: 0, Felems: BL_CODES, Fmax_length: MAX_BL_BITS} /* trees.c:131:31 */ 26675 26676 // Send a code of the given tree. c and tree must not have side effects 26677 26678 // =========================================================================== 26679 // Output a short LSB first on the stream. 26680 // IN assertion: there is enough room in pendingBuf. 26681 26682 // =========================================================================== 26683 // Send a value on a given number of bits. 26684 // IN assertion: length <= 16 and value fits in length bits. 26685 26686 // the arguments must not have side effects 26687 26688 // =========================================================================== 26689 // Initialize the various 'constant' tables. 26690 func tr_static_init(tls *libc.TLS) { /* trees.c:232:12: */ 26691 } 26692 26693 // =========================================================================== 26694 // Genererate the file trees.h describing the static trees. 26695 26696 // =========================================================================== 26697 // Initialize the tree data structures for a new zlib stream. 26698 func X_tr_init(tls *libc.TLS, s uintptr) { /* trees.c:379:20: */ 26699 tr_static_init(tls) 26700 26701 (*Deflate_state)(unsafe.Pointer(s)).Fl_desc.Fdyn_tree = s + 212 /* &.dyn_ltree */ 26702 (*Deflate_state)(unsafe.Pointer(s)).Fl_desc.Fstat_desc = uintptr(unsafe.Pointer(&static_l_desc)) 26703 26704 (*Deflate_state)(unsafe.Pointer(s)).Fd_desc.Fdyn_tree = s + 2504 /* &.dyn_dtree */ 26705 (*Deflate_state)(unsafe.Pointer(s)).Fd_desc.Fstat_desc = uintptr(unsafe.Pointer(&static_d_desc)) 26706 26707 (*Deflate_state)(unsafe.Pointer(s)).Fbl_desc.Fdyn_tree = s + 2748 /* &.bl_tree */ 26708 (*Deflate_state)(unsafe.Pointer(s)).Fbl_desc.Fstat_desc = uintptr(unsafe.Pointer(&static_bl_desc)) 26709 26710 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = Ush(0) 26711 (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid = 0 26712 26713 // Initialize the first block of the first file: 26714 init_block(tls, s) 26715 } 26716 26717 // =========================================================================== 26718 // Initialize a new block. 26719 func init_block(tls *libc.TLS, s uintptr) { /* trees.c:407:12: */ 26720 var n int32 // iterates over tree elements 26721 26722 // Initialize the trees. 26723 for n = 0; n < ((LITERALS + 1) + LENGTH_CODES); n++ { 26724 *(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + uintptr(n)*4 /* &.fc */)) = Ush(0) 26725 } 26726 for n = 0; n < D_CODES; n++ { 26727 *(*Ush)(unsafe.Pointer((s + 2504 /* &.dyn_dtree */) + uintptr(n)*4 /* &.fc */)) = Ush(0) 26728 } 26729 for n = 0; n < BL_CODES; n++ { 26730 *(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + uintptr(n)*4 /* &.fc */)) = Ush(0) 26731 } 26732 26733 *(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + 256*4 /* &.fc */)) = Ush(1) 26734 (*Deflate_state)(unsafe.Pointer(s)).Fopt_len = libc.AssignPtrUint64(s+5920 /* &.static_len */, uint64(0)) 26735 (*Deflate_state)(unsafe.Pointer(s)).Flast_lit = libc.AssignPtrUint32(s+5928 /* &.matches */, UInt(0)) 26736 } 26737 26738 // Index within the heap array of least frequent node in the Huffman tree 26739 26740 // =========================================================================== 26741 // Remove the smallest element from the heap and recreate the heap with 26742 // one less element. Updates heap and heap_len. 26743 26744 // =========================================================================== 26745 // Compares to subtrees, using the tree depth as tie breaker when 26746 // the subtrees have equal frequency. This minimizes the worst case length. 26747 26748 // =========================================================================== 26749 // Restore the heap property by moving down the tree starting at node k, 26750 // exchanging a node with the smallest of its two sons if necessary, stopping 26751 // when the heap property is re-established (each father smaller than its 26752 // two sons). 26753 func pqdownheap(tls *libc.TLS, s uintptr, tree uintptr, k int32) { /* trees.c:451:12: */ 26754 var v int32 = *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(k)*4)) 26755 var j int32 = (k << 1) // left son of k 26756 for j <= (*Deflate_state)(unsafe.Pointer(s)).Fheap_len { 26757 // Set j to the smallest of the two sons: 26758 if (j < (*Deflate_state)(unsafe.Pointer(s)).Fheap_len) && ((int32(*(*Ush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr((j+1))*4)))*4 /* &.fc */))) < int32(*(*Ush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(j)*4)))*4 /* &.fc */)))) || ((int32(*(*Ush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr((j+1))*4)))*4 /* &.fc */))) == int32(*(*Ush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(j)*4)))*4 /* &.fc */)))) && (int32(*(*Uch)(unsafe.Pointer((s + 5308 /* &.depth */) + uintptr(*(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr((j+1))*4)))))) <= int32(*(*Uch)(unsafe.Pointer((s + 5308 /* &.depth */) + uintptr(*(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(j)*4))))))))) { 26759 j++ 26760 } 26761 // Exit if v is smaller than both sons 26762 if (int32(*(*Ush)(unsafe.Pointer(tree + uintptr(v)*4 /* &.fc */))) < int32(*(*Ush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(j)*4)))*4 /* &.fc */)))) || ((int32(*(*Ush)(unsafe.Pointer(tree + uintptr(v)*4 /* &.fc */))) == int32(*(*Ush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(j)*4)))*4 /* &.fc */)))) && (int32(*(*Uch)(unsafe.Pointer((s + 5308 /* &.depth */) + uintptr(v)))) <= int32(*(*Uch)(unsafe.Pointer((s + 5308 /* &.depth */) + uintptr(*(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(j)*4)))))))) { 26763 break 26764 } 26765 26766 // Exchange v with the smallest son 26767 *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(k)*4)) = *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(j)*4)) 26768 k = j 26769 26770 // And continue down the tree, setting j to the left son of k 26771 j <<= 1 26772 } 26773 *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(k)*4)) = v 26774 } 26775 26776 // =========================================================================== 26777 // Compute the optimal bit lengths for a tree and update the total bit length 26778 // for the current block. 26779 // IN assertion: the fields freq and dad are set, heap[heap_max] and 26780 // above are the tree nodes sorted by increasing frequency. 26781 // OUT assertions: the field len is set to the optimal bit length, the 26782 // array bl_count contains the frequencies for each bit length. 26783 // The length opt_len is updated; static_len is also updated if stree is 26784 // not null. 26785 func gen_bitlen(tls *libc.TLS, s uintptr, desc uintptr) { /* trees.c:486:12: */ 26786 var tree uintptr = (*Tree_desc)(unsafe.Pointer(desc)).Fdyn_tree 26787 var max_code int32 = (*Tree_desc)(unsafe.Pointer(desc)).Fmax_code 26788 var stree uintptr = (*Static_tree_desc)(unsafe.Pointer((*Tree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fstatic_tree 26789 var extra uintptr = (*Static_tree_desc)(unsafe.Pointer((*Tree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fextra_bits 26790 var base int32 = (*Static_tree_desc)(unsafe.Pointer((*Tree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fextra_base 26791 var max_length int32 = (*Static_tree_desc)(unsafe.Pointer((*Tree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fmax_length 26792 var h int32 // heap index 26793 var n int32 26794 var m int32 // iterate over the tree elements 26795 var bits int32 // bit length 26796 var xbits int32 // extra bits 26797 var f Ush // frequency 26798 var overflow int32 = 0 // number of elements with bit length too large 26799 26800 for bits = 0; bits <= MAX_BITS; bits++ { 26801 *(*Ush)(unsafe.Pointer((s + 2976 /* &.bl_count */) + uintptr(bits)*2)) = Ush(0) 26802 } 26803 26804 // In a first pass, compute the optimal bit lengths (which may 26805 // overflow in the case of the bit length tree). 26806 *(*Ush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fheap_max)*4)))*4 + 2 /* &.dl */)) = Ush(0) // root of the heap 26807 26808 for h = ((*Deflate_state)(unsafe.Pointer(s)).Fheap_max + 1); h < ((2 * ((LITERALS + 1) + LENGTH_CODES)) + 1); h++ { 26809 n = *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(h)*4)) 26810 bits = (int32(*(*Ush)(unsafe.Pointer(tree + uintptr(*(*Ush)(unsafe.Pointer(tree + uintptr(n)*4 + 2 /* &.dl */)))*4 + 2 /* &.dl */))) + 1) 26811 if bits > max_length { 26812 bits = max_length 26813 overflow++ 26814 } 26815 *(*Ush)(unsafe.Pointer(tree + uintptr(n)*4 + 2 /* &.dl */)) = Ush(bits) 26816 // We overwrite tree[n].Dad which is no longer needed 26817 26818 if n > max_code { 26819 continue 26820 } // not a leaf node 26821 26822 *(*Ush)(unsafe.Pointer((s + 2976 /* &.bl_count */) + uintptr(bits)*2))++ 26823 xbits = 0 26824 if n >= base { 26825 xbits = *(*Intf)(unsafe.Pointer(extra + uintptr((n-base))*4)) 26826 } 26827 f = *(*Ush)(unsafe.Pointer(tree + uintptr(n)*4 /* &.fc */)) 26828 *(*Ulg)(unsafe.Pointer(s + 5912 /* &.opt_len */)) += (Ulg(f) * Ulg((uint32(bits + xbits)))) 26829 if stree != 0 { 26830 *(*Ulg)(unsafe.Pointer(s + 5920 /* &.static_len */)) += (Ulg(f) * Ulg((uint32(int32(*(*Ush)(unsafe.Pointer(stree + uintptr(n)*4 + 2 /* &.dl */))) + xbits)))) 26831 } 26832 } 26833 if overflow == 0 { 26834 return 26835 } 26836 26837 // This happens for example on obj2 and pic of the Calgary corpus 26838 26839 // Find the first bit length which could increase: 26840 for ok := true; ok; ok = (overflow > 0) { 26841 bits = (max_length - 1) 26842 for int32(*(*Ush)(unsafe.Pointer((s + 2976 /* &.bl_count */) + uintptr(bits)*2))) == 0 { 26843 bits-- 26844 } 26845 *(*Ush)(unsafe.Pointer((s + 2976 /* &.bl_count */) + uintptr(bits)*2))-- // move one leaf down the tree 26846 *(*Ush)(unsafe.Pointer((s + 2976 /* &.bl_count */) + uintptr((bits+1))*2)) += Ush((2)) // move one overflow item as its brother 26847 *(*Ush)(unsafe.Pointer((s + 2976 /* &.bl_count */) + uintptr(max_length)*2))-- 26848 // The brother of the overflow item also moves one step up, 26849 // but this does not affect bl_count[max_length] 26850 overflow = overflow - (2) 26851 } 26852 26853 // Now recompute all bit lengths, scanning in increasing frequency. 26854 // h is still equal to HEAP_SIZE. (It is simpler to reconstruct all 26855 // lengths instead of fixing only the wrong ones. This idea is taken 26856 // from 'ar' written by Haruhiko Okumura.) 26857 for bits = max_length; bits != 0; bits-- { 26858 n = int32(*(*Ush)(unsafe.Pointer((s + 2976 /* &.bl_count */) + uintptr(bits)*2))) 26859 for n != 0 { 26860 m = *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(libc.PreDecInt32(&h, 1))*4)) 26861 if m > max_code { 26862 continue 26863 } 26864 if uint32(*(*Ush)(unsafe.Pointer(tree + uintptr(m)*4 + 2 /* &.dl */))) != uint32(bits) { 26865 26866 *(*Ulg)(unsafe.Pointer(s + 5912 /* &.opt_len */)) += ((Ulg(bits) - Ulg(*(*Ush)(unsafe.Pointer(tree + uintptr(m)*4 + 2 /* &.dl */)))) * Ulg(*(*Ush)(unsafe.Pointer(tree + uintptr(m)*4 /* &.fc */)))) 26867 *(*Ush)(unsafe.Pointer(tree + uintptr(m)*4 + 2 /* &.dl */)) = Ush(bits) 26868 } 26869 n-- 26870 } 26871 } 26872 } 26873 26874 // =========================================================================== 26875 // Generate the codes for a given tree and bit counts (which need not be 26876 // optimal). 26877 // IN assertion: the array bl_count contains the bit length statistics for 26878 // the given tree and the field len is set for all tree elements. 26879 // OUT assertion: the field code is set for all tree elements of non 26880 // zero code length. 26881 func gen_codes(tls *libc.TLS, tree uintptr, max_code int32, bl_count uintptr) { /* trees.c:572:12: */ 26882 bp := tls.Alloc(32) 26883 defer tls.Free(32) 26884 26885 // var next_code [16]Ush at bp, 32 26886 // next code value for each bit length 26887 var code uint32 = uint32(0) // running code value 26888 var bits int32 // bit index 26889 var n int32 // code index 26890 26891 // The distribution counts are first used to generate the code values 26892 // without bit reversal. 26893 for bits = 1; bits <= MAX_BITS; bits++ { 26894 code = ((code + uint32(*(*Ushf)(unsafe.Pointer(bl_count + uintptr((bits-1))*2)))) << 1) 26895 *(*Ush)(unsafe.Pointer(bp /* &next_code[0] */ + uintptr(bits)*2)) = Ush(code) 26896 } 26897 // Check that the bit counts in bl_count are consistent. The last code 26898 // must be all ones. 26899 26900 for n = 0; n <= max_code; n++ { 26901 var len int32 = int32(*(*Ush)(unsafe.Pointer(tree + uintptr(n)*4 + 2 /* &.dl */))) 26902 if len == 0 { 26903 continue 26904 } 26905 // Now reverse the bits 26906 *(*Ush)(unsafe.Pointer(tree + uintptr(n)*4 /* &.fc */)) = Ush(bi_reverse(tls, uint32(libc.PostIncUint16(&*(*Ush)(unsafe.Pointer(bp /* &next_code[0] */ + uintptr(len)*2)), 1)), len)) 26907 26908 } 26909 } 26910 26911 // =========================================================================== 26912 // Construct one Huffman tree and assigns the code bit strings and lengths. 26913 // Update the total bit length for the current block. 26914 // IN assertion: the field freq is set for all tree elements. 26915 // OUT assertions: the fields len and code are set to the optimal bit length 26916 // and corresponding code. The length opt_len is updated; static_len is 26917 // also updated if stree is not null. The field max_code is set. 26918 func build_tree(tls *libc.TLS, s uintptr, desc uintptr) { /* trees.c:615:12: */ 26919 var tree uintptr = (*Tree_desc)(unsafe.Pointer(desc)).Fdyn_tree 26920 var stree uintptr = (*Static_tree_desc)(unsafe.Pointer((*Tree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fstatic_tree 26921 var elems int32 = (*Static_tree_desc)(unsafe.Pointer((*Tree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Felems 26922 var n int32 26923 var m int32 // iterate over heap elements 26924 var max_code int32 = -1 // largest code with non zero frequency 26925 var node int32 // new node being created 26926 26927 // Construct the initial heap, with least frequent element in 26928 // heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1]. 26929 // heap[0] is not used. 26930 (*Deflate_state)(unsafe.Pointer(s)).Fheap_len = 0 26931 (*Deflate_state)(unsafe.Pointer(s)).Fheap_max = ((2 * ((LITERALS + 1) + LENGTH_CODES)) + 1) 26932 26933 for n = 0; n < elems; n++ { 26934 if int32(*(*Ush)(unsafe.Pointer(tree + uintptr(n)*4 /* &.fc */))) != 0 { 26935 *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(libc.PreIncInt32(&((*Deflate_state)(unsafe.Pointer(s)).Fheap_len), 1))*4)) = libc.AssignInt32(&max_code, n) 26936 *(*Uch)(unsafe.Pointer((s + 5308 /* &.depth */) + uintptr(n))) = Uch(0) 26937 } else { 26938 *(*Ush)(unsafe.Pointer(tree + uintptr(n)*4 + 2 /* &.dl */)) = Ush(0) 26939 } 26940 } 26941 26942 // The pkzip format requires that at least one distance code exists, 26943 // and that at least one bit should be sent even if there is only one 26944 // possible code. So to avoid special checks later on we force at least 26945 // two codes of non zero frequency. 26946 for (*Deflate_state)(unsafe.Pointer(s)).Fheap_len < 2 { 26947 node = libc.AssignPtrInt32((s+3008 /* &.heap */)+uintptr(libc.PreIncInt32(&((*Deflate_state)(unsafe.Pointer(s)).Fheap_len), 1))*4, func() int32 { 26948 if max_code < 2 { 26949 return libc.PreIncInt32(&max_code, 1) 26950 } 26951 return 0 26952 }()) 26953 *(*Ush)(unsafe.Pointer(tree + uintptr(node)*4 /* &.fc */)) = Ush(1) 26954 *(*Uch)(unsafe.Pointer((s + 5308 /* &.depth */) + uintptr(node))) = Uch(0) 26955 (*Deflate_state)(unsafe.Pointer(s)).Fopt_len-- 26956 if stree != 0 { 26957 *(*Ulg)(unsafe.Pointer(s + 5920 /* &.static_len */)) -= (Ulg(*(*Ush)(unsafe.Pointer(stree + uintptr(node)*4 + 2 /* &.dl */)))) 26958 } 26959 // node is 0 or 1 so it does not have extra bits 26960 } 26961 (*Tree_desc)(unsafe.Pointer(desc)).Fmax_code = max_code 26962 26963 // The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree, 26964 // establish sub-heaps of increasing lengths: 26965 for n = ((*Deflate_state)(unsafe.Pointer(s)).Fheap_len / 2); n >= 1; n-- { 26966 pqdownheap(tls, s, tree, n) 26967 } 26968 26969 // Construct the Huffman tree by repeatedly combining the least two 26970 // frequent nodes. 26971 node = elems // next internal node of the tree 26972 for ok := true; ok; ok = ((*Deflate_state)(unsafe.Pointer(s)).Fheap_len >= 2) { 26973 { 26974 n = *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + 1*4)) 26975 *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + 1*4)) = *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(libc.PostDecInt32(&(*Deflate_state)(unsafe.Pointer(s)).Fheap_len, 1))*4)) 26976 pqdownheap(tls, s, tree, SMALLEST) 26977 } 26978 // n = node of least frequency 26979 m = *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + 1*4)) // m = node of next least frequency 26980 26981 *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(libc.PreDecInt32(&((*Deflate_state)(unsafe.Pointer(s)).Fheap_max), 1))*4)) = n // keep the nodes sorted by frequency 26982 *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(libc.PreDecInt32(&((*Deflate_state)(unsafe.Pointer(s)).Fheap_max), 1))*4)) = m 26983 26984 // Create a new node father of n and m 26985 *(*Ush)(unsafe.Pointer(tree + uintptr(node)*4 /* &.fc */)) = (Ush(int32(*(*Ush)(unsafe.Pointer(tree + uintptr(n)*4 /* &.fc */))) + int32(*(*Ush)(unsafe.Pointer(tree + uintptr(m)*4 /* &.fc */))))) 26986 *(*Uch)(unsafe.Pointer((s + 5308 /* &.depth */) + uintptr(node))) = (Uch((func() int32 { 26987 if int32(*(*Uch)(unsafe.Pointer((s + 5308 /* &.depth */) + uintptr(n)))) >= int32(*(*Uch)(unsafe.Pointer((s + 5308 /* &.depth */) + uintptr(m)))) { 26988 return int32(*(*Uch)(unsafe.Pointer((s + 5308 /* &.depth */) + uintptr(n)))) 26989 } 26990 return int32(*(*Uch)(unsafe.Pointer((s + 5308 /* &.depth */) + uintptr(m)))) 26991 }()) + 1)) 26992 *(*Ush)(unsafe.Pointer(tree + uintptr(n)*4 + 2 /* &.dl */)) = libc.AssignPtrUint16(tree+uintptr(m)*4+2 /* &.dl */ /* &.dad */, Ush(node)) 26993 // and insert the new node in the heap 26994 *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + 1*4)) = libc.PostIncInt32(&node, 1) 26995 pqdownheap(tls, s, tree, SMALLEST) 26996 26997 } 26998 26999 *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + uintptr(libc.PreDecInt32(&((*Deflate_state)(unsafe.Pointer(s)).Fheap_max), 1))*4)) = *(*int32)(unsafe.Pointer((s + 3008 /* &.heap */) + 1*4)) 27000 27001 // At this point, the fields freq and dad are set. We can now 27002 // generate the bit lengths. 27003 gen_bitlen(tls, s, desc) 27004 27005 // The field len is now set, we can generate the bit codes 27006 gen_codes(tls, tree, max_code, s+2976 /* &.bl_count */) 27007 } 27008 27009 // =========================================================================== 27010 // Scan a literal or distance tree to determine the frequencies of the codes 27011 // in the bit length tree. 27012 func scan_tree(tls *libc.TLS, s uintptr, tree uintptr, max_code int32) { /* trees.c:703:12: */ 27013 var n int32 // iterates over all tree elements 27014 var prevlen int32 = -1 // last emitted length 27015 var curlen int32 // length of current code 27016 var nextlen int32 = int32(*(*Ush)(unsafe.Pointer(tree + 2 /* &.dl */))) // length of next code 27017 var count int32 = 0 // repeat count of the current code 27018 var max_count int32 = 7 // max repeat count 27019 var min_count int32 = 4 // min repeat count 27020 27021 if nextlen == 0 { 27022 max_count = 138 27023 min_count = 3 27024 } 27025 *(*Ush)(unsafe.Pointer(tree + uintptr((max_code+1))*4 + 2 /* &.dl */)) = Ush(0xffff) // guard 27026 27027 for n = 0; n <= max_code; n++ { 27028 curlen = nextlen 27029 nextlen = int32(*(*Ush)(unsafe.Pointer(tree + uintptr((n+1))*4 + 2 /* &.dl */))) 27030 if (libc.PreIncInt32(&count, 1) < max_count) && (curlen == nextlen) { 27031 continue 27032 } else if count < min_count { 27033 *(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + uintptr(curlen)*4 /* &.fc */ /* &.freq */)) += Ush((count)) 27034 } else if curlen != 0 { 27035 if curlen != prevlen { 27036 *(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + uintptr(curlen)*4 /* &.fc */))++ 27037 } 27038 *(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + 16*4 /* &.fc */))++ 27039 } else if count <= 10 { 27040 *(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + 17*4 /* &.fc */))++ 27041 } else { 27042 *(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + 18*4 /* &.fc */))++ 27043 } 27044 count = 0 27045 prevlen = curlen 27046 if nextlen == 0 { 27047 max_count = 138 27048 min_count = 3 27049 } else if curlen == nextlen { 27050 max_count = 6 27051 min_count = 3 27052 } else { 27053 max_count = 7 27054 min_count = 4 27055 } 27056 } 27057 } 27058 27059 // =========================================================================== 27060 // Send a literal or distance tree in compressed form, using the codes in 27061 // bl_tree. 27062 func send_tree(tls *libc.TLS, s uintptr, tree uintptr, max_code int32) { /* trees.c:748:12: */ 27063 var n int32 // iterates over all tree elements 27064 var prevlen int32 = -1 // last emitted length 27065 var curlen int32 // length of current code 27066 var nextlen int32 = int32(*(*Ush)(unsafe.Pointer(tree + 2 /* &.dl */))) // length of next code 27067 var count int32 = 0 // repeat count of the current code 27068 var max_count int32 = 7 // max repeat count 27069 var min_count int32 = 4 // min repeat count 27070 27071 /* tree[max_code+1].Len = -1; */ // guard already set 27072 if nextlen == 0 { 27073 max_count = 138 27074 min_count = 3 27075 } 27076 27077 for n = 0; n <= max_code; n++ { 27078 curlen = nextlen 27079 nextlen = int32(*(*Ush)(unsafe.Pointer(tree + uintptr((n+1))*4 + 2 /* &.dl */))) 27080 if (libc.PreIncInt32(&count, 1) < max_count) && (curlen == nextlen) { 27081 continue 27082 } else if count < min_count { 27083 for ok := true; ok; ok = (libc.PreDecInt32(&count, 1) != 0) { 27084 { 27085 var len int32 = int32(*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + uintptr(curlen)*4 + 2 /* &.dl */))) 27086 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27087 var val int32 = int32(*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + uintptr(curlen)*4 /* &.fc */))) 27088 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27089 { 27090 { 27091 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27092 } 27093 { 27094 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27095 } 27096 27097 } 27098 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27099 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27100 } else { 27101 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + uintptr(curlen)*4 /* &.fc */)))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27102 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27103 } 27104 } 27105 } 27106 27107 } else if curlen != 0 { 27108 if curlen != prevlen { 27109 { 27110 var len int32 = int32(*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + uintptr(curlen)*4 + 2 /* &.dl */))) 27111 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27112 var val int32 = int32(*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + uintptr(curlen)*4 /* &.fc */))) 27113 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27114 { 27115 { 27116 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27117 } 27118 { 27119 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27120 } 27121 27122 } 27123 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27124 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27125 } else { 27126 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + uintptr(curlen)*4 /* &.fc */)))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27127 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27128 } 27129 } 27130 count-- 27131 } 27132 27133 { 27134 var len int32 = int32(*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + 16*4 + 2 /* &.dl */))) 27135 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27136 var val int32 = int32(*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + 16*4 /* &.fc */))) 27137 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27138 { 27139 { 27140 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27141 } 27142 { 27143 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27144 } 27145 27146 } 27147 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27148 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27149 } else { 27150 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + 16*4 /* &.fc */)))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27151 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27152 } 27153 } 27154 { 27155 var len int32 = 2 27156 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27157 var val int32 = (count - 3) 27158 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27159 { 27160 { 27161 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27162 } 27163 { 27164 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27165 } 27166 27167 } 27168 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27169 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27170 } else { 27171 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((Ush(count - 3))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27172 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27173 } 27174 } 27175 27176 } else if count <= 10 { 27177 { 27178 var len int32 = int32(*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + 17*4 + 2 /* &.dl */))) 27179 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27180 var val int32 = int32(*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + 17*4 /* &.fc */))) 27181 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27182 { 27183 { 27184 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27185 } 27186 { 27187 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27188 } 27189 27190 } 27191 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27192 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27193 } else { 27194 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + 17*4 /* &.fc */)))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27195 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27196 } 27197 } 27198 { 27199 var len int32 = 3 27200 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27201 var val int32 = (count - 3) 27202 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27203 { 27204 { 27205 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27206 } 27207 { 27208 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27209 } 27210 27211 } 27212 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27213 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27214 } else { 27215 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((Ush(count - 3))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27216 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27217 } 27218 } 27219 27220 } else { 27221 { 27222 var len int32 = int32(*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + 18*4 + 2 /* &.dl */))) 27223 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27224 var val int32 = int32(*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + 18*4 /* &.fc */))) 27225 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27226 { 27227 { 27228 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27229 } 27230 { 27231 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27232 } 27233 27234 } 27235 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27236 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27237 } else { 27238 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + 18*4 /* &.fc */)))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27239 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27240 } 27241 } 27242 { 27243 var len int32 = 7 27244 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27245 var val int32 = (count - 11) 27246 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27247 { 27248 { 27249 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27250 } 27251 { 27252 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27253 } 27254 27255 } 27256 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27257 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27258 } else { 27259 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((Ush(count - 11))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27260 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27261 } 27262 } 27263 27264 } 27265 count = 0 27266 prevlen = curlen 27267 if nextlen == 0 { 27268 max_count = 138 27269 min_count = 3 27270 } else if curlen == nextlen { 27271 max_count = 6 27272 min_count = 3 27273 } else { 27274 max_count = 7 27275 min_count = 4 27276 } 27277 } 27278 } 27279 27280 // =========================================================================== 27281 // Construct the Huffman tree for the bit lengths and return the index in 27282 // bl_order of the last bit length code to send. 27283 func build_bl_tree(tls *libc.TLS, s uintptr) int32 { /* trees.c:799:11: */ 27284 var max_blindex int32 // index of last bit length code of non zero freq 27285 27286 // Determine the bit length frequencies for literal and distance trees 27287 scan_tree(tls, s, s+212 /* &.dyn_ltree */, (*Deflate_state)(unsafe.Pointer(s)).Fl_desc.Fmax_code) 27288 scan_tree(tls, s, s+2504 /* &.dyn_dtree */, (*Deflate_state)(unsafe.Pointer(s)).Fd_desc.Fmax_code) 27289 27290 // Build the bit length tree: 27291 build_tree(tls, s, (s + 2952 /* &.bl_desc */)) 27292 // opt_len now includes the length of the tree representations, except 27293 // the lengths of the bit lengths codes and the 5+5+4 bits for the counts. 27294 27295 // Determine the number of bit length codes to send. The pkzip format 27296 // requires that at least 4 bit length codes be sent. (appnote.txt says 27297 // 3 but the actual value used is 4.) 27298 for max_blindex = (BL_CODES - 1); max_blindex >= 3; max_blindex-- { 27299 if int32(*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + uintptr(bl_order[max_blindex])*4 + 2 /* &.dl */))) != 0 { 27300 break 27301 } 27302 } 27303 // Update opt_len to include the bit length tree and counts 27304 *(*Ulg)(unsafe.Pointer(s + 5912 /* &.opt_len */)) += ((((uint64(3) * (Ulg(max_blindex) + uint64(1))) + uint64(5)) + uint64(5)) + uint64(4)) 27305 27306 return max_blindex 27307 } 27308 27309 // =========================================================================== 27310 // Send the header for a block using dynamic Huffman trees: the counts, the 27311 // lengths of the bit length codes, the literal tree and the distance tree. 27312 // IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4. 27313 func send_all_trees(tls *libc.TLS, s uintptr, lcodes int32, dcodes int32, blcodes int32) { /* trees.c:834:12: */ 27314 var rank int32 // index in bl_order 27315 27316 { 27317 var len int32 = 5 27318 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27319 var val int32 = (lcodes - 257) 27320 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27321 { 27322 { 27323 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27324 } 27325 { 27326 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27327 } 27328 27329 } 27330 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27331 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27332 } else { 27333 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((Ush(lcodes - 257))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27334 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27335 } 27336 } 27337 /* not +255 as stated in appnote.txt */ 27338 { 27339 var len int32 = 5 27340 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27341 var val int32 = (dcodes - 1) 27342 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27343 { 27344 { 27345 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27346 } 27347 { 27348 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27349 } 27350 27351 } 27352 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27353 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27354 } else { 27355 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((Ush(dcodes - 1))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27356 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27357 } 27358 } 27359 27360 { 27361 var len int32 = 4 27362 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27363 var val int32 = (blcodes - 4) 27364 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27365 { 27366 { 27367 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27368 } 27369 { 27370 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27371 } 27372 27373 } 27374 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27375 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27376 } else { 27377 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((Ush(blcodes - 4))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27378 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27379 } 27380 } 27381 // not -3 as stated in appnote.txt 27382 for rank = 0; rank < blcodes; rank++ { 27383 27384 { 27385 var len int32 = 3 27386 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27387 var val int32 = int32(*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + uintptr(bl_order[rank])*4 + 2 /* &.dl */))) 27388 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27389 { 27390 { 27391 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27392 } 27393 { 27394 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27395 } 27396 27397 } 27398 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27399 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27400 } else { 27401 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((*(*Ush)(unsafe.Pointer((s + 2748 /* &.bl_tree */) + uintptr(bl_order[rank])*4 + 2 /* &.dl */)))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27402 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27403 } 27404 } 27405 27406 } 27407 27408 send_tree(tls, s, s+212 /* &.dyn_ltree */, (lcodes - 1)) // literal tree 27409 27410 send_tree(tls, s, s+2504 /* &.dyn_dtree */, (dcodes - 1)) // distance tree 27411 27412 } 27413 27414 // =========================================================================== 27415 // Send a stored block 27416 func X_tr_stored_block(tls *libc.TLS, s uintptr, buf uintptr, stored_len Ulg, last int32) { /* trees.c:863:20: */ 27417 { 27418 var len int32 = 3 27419 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27420 var val int32 = ((int32(STORED_BLOCK) << 1) + last) 27421 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27422 { 27423 { 27424 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27425 } 27426 { 27427 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27428 } 27429 27430 } 27431 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27432 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27433 } else { 27434 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((Ush((int32(STORED_BLOCK) << 1) + last))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27435 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27436 } 27437 } 27438 // send block type 27439 bi_windup(tls, s) /* align on byte boundary */ 27440 { 27441 { 27442 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32(Ush(stored_len))) & 0xff)) 27443 } 27444 { 27445 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32((Ush(stored_len))) >> 8)) 27446 } 27447 27448 } 27449 27450 { 27451 { 27452 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32(Ush(^stored_len))) & 0xff)) 27453 } 27454 { 27455 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32((Ush(^stored_len))) >> 8)) 27456 } 27457 27458 } 27459 27460 libc.X__builtin___memcpy_chk(tls, ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((*Deflate_state)(unsafe.Pointer(s)).Fpending)), buf, stored_len, libc.X__builtin_object_size(tls, ((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr((*Deflate_state)(unsafe.Pointer(s)).Fpending)), 0)) 27461 *(*Ulg)(unsafe.Pointer(s + 40 /* &.pending */)) += (stored_len) 27462 } 27463 27464 // =========================================================================== 27465 // Flush the bits in the bit buffer to pending output (leaves at most 7 bits) 27466 func X_tr_flush_bits(tls *libc.TLS, s uintptr) { /* trees.c:886:20: */ 27467 bi_flush(tls, s) 27468 } 27469 27470 // =========================================================================== 27471 // Send one empty static block to give enough lookahead for inflate. 27472 // This takes 10 bits, of which 7 may remain in the bit buffer. 27473 func X_tr_align(tls *libc.TLS, s uintptr) { /* trees.c:896:20: */ 27474 { 27475 var len int32 = 3 27476 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27477 var val int32 = (int32(STATIC_TREES) << 1) 27478 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27479 { 27480 { 27481 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27482 } 27483 { 27484 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27485 } 27486 27487 } 27488 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27489 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27490 } else { 27491 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(int32((Ush(int32(STATIC_TREES) << 1)))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27492 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27493 } 27494 } 27495 27496 { 27497 var len int32 = int32(*(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&static_ltree)) + 256*4 + 2 /* &.dl */))) 27498 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27499 var val int32 = int32(*(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&static_ltree)) + 256*4 /* &.fc */))) 27500 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27501 { 27502 { 27503 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27504 } 27505 { 27506 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27507 } 27508 27509 } 27510 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27511 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27512 } else { 27513 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((*(*Ush)(unsafe.Pointer(uintptr(unsafe.Pointer(&static_ltree)) + 256*4 /* &.fc */)))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27514 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27515 } 27516 } 27517 27518 bi_flush(tls, s) 27519 } 27520 27521 // =========================================================================== 27522 // Determine the best encoding for the current block: dynamic trees, static 27523 // trees or store, and write out the encoded block. 27524 func X_tr_flush_block(tls *libc.TLS, s uintptr, buf uintptr, stored_len Ulg, last int32) { /* trees.c:911:20: */ 27525 var opt_lenb Ulg 27526 var static_lenb Ulg // opt_len and static_len in bytes 27527 var max_blindex int32 = 0 // index of last bit length code of non zero freq 27528 27529 // Build the Huffman trees unless a stored block is forced 27530 if (*Deflate_state)(unsafe.Pointer(s)).Flevel > 0 { 27531 27532 // Check if the file is binary or text 27533 if (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Fdata_type == Z_UNKNOWN { 27534 (*Z_stream)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fstrm)).Fdata_type = detect_data_type(tls, s) 27535 } 27536 27537 // Construct the literal and distance trees 27538 build_tree(tls, s, (s + 2904 /* &.l_desc */)) 27539 27540 build_tree(tls, s, (s + 2928 /* &.d_desc */)) 27541 27542 // At this point, opt_len and static_len are the total bit lengths of 27543 // the compressed block data, excluding the tree representations. 27544 27545 // Build the bit length tree for the above two trees, and get the index 27546 // in bl_order of the last bit length code to send. 27547 max_blindex = build_bl_tree(tls, s) 27548 27549 // Determine the best encoding. Compute the block lengths in bytes. 27550 opt_lenb = ((((*Deflate_state)(unsafe.Pointer(s)).Fopt_len + uint64(3)) + uint64(7)) >> 3) 27551 static_lenb = ((((*Deflate_state)(unsafe.Pointer(s)).Fstatic_len + uint64(3)) + uint64(7)) >> 3) 27552 27553 if static_lenb <= opt_lenb { 27554 opt_lenb = static_lenb 27555 } 27556 27557 } else { 27558 27559 opt_lenb = libc.AssignUint64(&static_lenb, (stored_len + uint64(5))) // force a stored block 27560 } 27561 27562 if ((stored_len + uint64(4)) <= opt_lenb) && (buf != uintptr(0)) { 27563 // 4: two words for the lengths 27564 // The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE. 27565 // Otherwise we can't have processed more than WSIZE input bytes since 27566 // the last block flush, because compression would have been 27567 // successful. If LIT_BUFSIZE <= WSIZE, it is never too late to 27568 // transform a block into a stored block. 27569 X_tr_stored_block(tls, s, buf, stored_len, last) 27570 27571 } else if ((*Deflate_state)(unsafe.Pointer(s)).Fstrategy == Z_FIXED) || (static_lenb == opt_lenb) { 27572 { 27573 var len int32 = 3 27574 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27575 var val int32 = ((int32(STATIC_TREES) << 1) + last) 27576 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27577 { 27578 { 27579 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27580 } 27581 { 27582 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27583 } 27584 27585 } 27586 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27587 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27588 } else { 27589 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((Ush((int32(STATIC_TREES) << 1) + last))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27590 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27591 } 27592 } 27593 27594 compress_block(tls, s, uintptr(uintptr(unsafe.Pointer(&static_ltree))), 27595 uintptr(uintptr(unsafe.Pointer(&static_dtree)))) 27596 } else { 27597 { 27598 var len int32 = 3 27599 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27600 var val int32 = ((int32(DYN_TREES) << 1) + last) 27601 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27602 { 27603 { 27604 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27605 } 27606 { 27607 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27608 } 27609 27610 } 27611 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27612 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27613 } else { 27614 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((Ush((int32(DYN_TREES) << 1) + last))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27615 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27616 } 27617 } 27618 27619 send_all_trees(tls, s, ((*Deflate_state)(unsafe.Pointer(s)).Fl_desc.Fmax_code + 1), ((*Deflate_state)(unsafe.Pointer(s)).Fd_desc.Fmax_code + 1), 27620 (max_blindex + 1)) 27621 compress_block(tls, s, s+212, /* &.dyn_ltree */ 27622 s+2504 /* &.dyn_dtree */) 27623 } 27624 27625 // The above check is made mod 2^32, for files larger than 512 MB 27626 // and uLong implemented on 32 bits. 27627 init_block(tls, s) 27628 27629 if last != 0 { 27630 bi_windup(tls, s) 27631 } 27632 27633 } 27634 27635 // =========================================================================== 27636 // Save the match info and tally the frequency counts. Return true if 27637 // the current block must be flushed. 27638 func X_tr_tally(tls *libc.TLS, s uintptr, dist uint32, lc uint32) int32 { /* trees.c:1014:19: */ 27639 *(*Ushf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fd_buf + uintptr((*Deflate_state)(unsafe.Pointer(s)).Flast_lit)*2)) = Ush(dist) 27640 *(*Uchf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fl_buf + uintptr(libc.PostIncUint32(&(*Deflate_state)(unsafe.Pointer(s)).Flast_lit, 1)))) = Uch(lc) 27641 if dist == uint32(0) { 27642 // lc is the unmatched char 27643 *(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + uintptr(lc)*4 /* &.fc */))++ 27644 } else { 27645 (*Deflate_state)(unsafe.Pointer(s)).Fmatches++ 27646 // Here, lc is the match length - MIN_MATCH 27647 dist-- // dist = match distance - 1 27648 27649 *(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + uintptr(((int32(X_length_code[lc])+LITERALS)+1))*4 /* &.fc */))++ 27650 *(*Ush)(unsafe.Pointer((s + 2504 /* &.dyn_dtree */) + uintptr((func() int32 { 27651 if (dist) < uint32(256) { 27652 return int32(X_dist_code[dist]) 27653 } 27654 return int32(X_dist_code[(uint32(256) + ((dist) >> 7))]) 27655 }()))*4 /* &.fc */))++ 27656 } 27657 27658 return (libc.Bool32((*Deflate_state)(unsafe.Pointer(s)).Flast_lit == ((*Deflate_state)(unsafe.Pointer(s)).Flit_bufsize - UInt(1)))) 27659 // We avoid equality with lit_bufsize because of wraparound at 64K 27660 // on 16 bit machines and because stored blocks are restricted to 27661 // 64K-1 bytes. 27662 } 27663 27664 // =========================================================================== 27665 // Send the block data compressed using the given Huffman trees 27666 func compress_block(tls *libc.TLS, s uintptr, ltree uintptr, dtree uintptr) { /* trees.c:1064:12: */ 27667 var dist uint32 // distance of matched string 27668 var lc int32 // match length or unmatched char (if dist == 0) 27669 var lx uint32 = uint32(0) // running index in l_buf 27670 var code uint32 // the code to send 27671 var extra int32 // number of extra bits to send 27672 27673 if (*Deflate_state)(unsafe.Pointer(s)).Flast_lit != UInt(0) { 27674 for ok := true; ok; ok = (lx < (*Deflate_state)(unsafe.Pointer(s)).Flast_lit) { 27675 dist = uint32(*(*Ushf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fd_buf + uintptr(lx)*2))) 27676 lc = int32(*(*Uchf)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fl_buf + uintptr(libc.PostIncUint32(&lx, 1))))) 27677 if dist == uint32(0) { 27678 { 27679 var len int32 = int32(*(*Ush)(unsafe.Pointer(ltree + uintptr(lc)*4 + 2 /* &.dl */))) 27680 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27681 var val int32 = int32(*(*Ush)(unsafe.Pointer(ltree + uintptr(lc)*4 /* &.fc */))) 27682 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27683 { 27684 { 27685 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27686 } 27687 { 27688 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27689 } 27690 27691 } 27692 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27693 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27694 } else { 27695 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((*(*Ush)(unsafe.Pointer(ltree + uintptr(lc)*4 /* &.fc */)))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27696 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27697 } 27698 } 27699 // send a literal byte 27700 27701 } else { 27702 // Here, lc is the match length - MIN_MATCH 27703 code = uint32(X_length_code[lc]) 27704 { 27705 var len int32 = int32(*(*Ush)(unsafe.Pointer(ltree + uintptr(((code+uint32(LITERALS))+uint32(1)))*4 + 2 /* &.dl */))) 27706 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27707 var val int32 = int32(*(*Ush)(unsafe.Pointer(ltree + uintptr(((code+uint32(LITERALS))+uint32(1)))*4 /* &.fc */))) 27708 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27709 { 27710 { 27711 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27712 } 27713 { 27714 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27715 } 27716 27717 } 27718 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27719 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27720 } else { 27721 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((*(*Ush)(unsafe.Pointer(ltree + uintptr(((code+uint32(LITERALS))+uint32(1)))*4 /* &.fc */)))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27722 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27723 } 27724 } 27725 // send the length code 27726 extra = extra_lbits[code] 27727 if extra != 0 { 27728 lc = lc - (base_length[code]) 27729 { 27730 var len int32 = extra 27731 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27732 var val int32 = lc 27733 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27734 { 27735 { 27736 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27737 } 27738 { 27739 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27740 } 27741 27742 } 27743 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27744 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27745 } else { 27746 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((Ush(lc))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27747 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27748 } 27749 } 27750 // send the extra length bits 27751 } 27752 dist-- // dist is now the match distance - 1 27753 code = func() uint32 { 27754 if (dist) < uint32(256) { 27755 return uint32(X_dist_code[dist]) 27756 } 27757 return uint32(X_dist_code[(uint32(256) + ((dist) >> 7))]) 27758 }() 27759 27760 { 27761 var len int32 = int32(*(*Ush)(unsafe.Pointer(dtree + uintptr(code)*4 + 2 /* &.dl */))) 27762 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27763 var val int32 = int32(*(*Ush)(unsafe.Pointer(dtree + uintptr(code)*4 /* &.fc */))) 27764 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27765 { 27766 { 27767 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27768 } 27769 { 27770 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27771 } 27772 27773 } 27774 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27775 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27776 } else { 27777 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((*(*Ush)(unsafe.Pointer(dtree + uintptr(code)*4 /* &.fc */)))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27778 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27779 } 27780 } 27781 // send the distance code 27782 extra = extra_dbits[code] 27783 if extra != 0 { 27784 dist = dist - (uint32(base_dist[code])) 27785 { 27786 var len int32 = extra 27787 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27788 var val int32 = int32(dist) 27789 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27790 { 27791 { 27792 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27793 } 27794 { 27795 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27796 } 27797 27798 } 27799 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27800 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27801 } else { 27802 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((Ush(dist))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27803 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27804 } 27805 } 27806 // send the extra distance bits 27807 } 27808 } // literal or match pair ? 27809 27810 // Check that the overlay between pending_buf and d_buf+l_buf is ok: 27811 27812 } 27813 } 27814 27815 { 27816 var len int32 = int32(*(*Ush)(unsafe.Pointer(ltree + 256*4 + 2 /* &.dl */))) 27817 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > (Buf_size - len) { 27818 var val int32 = int32(*(*Ush)(unsafe.Pointer(ltree + 256*4 /* &.fc */))) 27819 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32(Ush(val)) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27820 { 27821 { 27822 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27823 } 27824 { 27825 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27826 } 27827 27828 } 27829 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = (Ush(int32(Ush(val)) >> (Buf_size - (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid))) 27830 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len - Buf_size) 27831 } else { 27832 *(*Ush)(unsafe.Pointer(s + 5936 /* &.bi_buf */)) |= Ush((int32((*(*Ush)(unsafe.Pointer(ltree + 256*4 /* &.fc */)))) << (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid)) 27833 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) += (len) 27834 } 27835 } 27836 27837 } 27838 27839 // =========================================================================== 27840 // Check if the data type is TEXT or BINARY, using the following algorithm: 27841 // - TEXT if the two conditions below are satisfied: 27842 // a) There are no non-portable control characters belonging to the 27843 // "black list" (0..6, 14..25, 28..31). 27844 // b) There is at least one printable character belonging to the 27845 // "white list" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255). 27846 // - BINARY otherwise. 27847 // - The following partially-portable control characters form a 27848 // "gray list" that is ignored in this detection algorithm: 27849 // (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}). 27850 // IN assertion: the fields Freq of dyn_ltree are set. 27851 func detect_data_type(tls *libc.TLS, s uintptr) int32 { /* trees.c:1124:11: */ 27852 // black_mask is the bit mask of black-listed bytes 27853 // set bits 0..6, 14..25, and 28..31 27854 // 0xf3ffc07f = binary 11110011111111111100000001111111 27855 var black_mask uint64 = 0xf3ffc07f 27856 var n int32 27857 27858 // Check for non-textual ("black-listed") bytes. 27859 n = 0 27860 __1: 27861 if !(n <= 31) { 27862 goto __3 27863 } 27864 if ((black_mask & uint64(1)) != 0) && (int32(*(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + uintptr(n)*4 /* &.fc */))) != 0) { 27865 return Z_BINARY 27866 } 27867 goto __2 27868 __2: 27869 n++ 27870 black_mask >>= 1 27871 goto __1 27872 goto __3 27873 __3: 27874 ; 27875 27876 // Check for textual ("white-listed") bytes. 27877 if ((int32(*(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + 9*4 /* &.fc */))) != 0) || (int32(*(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + 10*4 /* &.fc */))) != 0)) || 27878 (int32(*(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + 13*4 /* &.fc */))) != 0) { 27879 return Z_TEXT 27880 } 27881 for n = 32; n < LITERALS; n++ { 27882 if int32(*(*Ush)(unsafe.Pointer((s + 212 /* &.dyn_ltree */) + uintptr(n)*4 /* &.fc */))) != 0 { 27883 return Z_TEXT 27884 } 27885 } 27886 27887 // There are no "black-listed" or "white-listed" bytes: 27888 // this stream either is empty or has tolerated ("gray-listed") bytes only. 27889 return Z_BINARY 27890 } 27891 27892 // =========================================================================== 27893 // Reverse the first len bits of a code, using straightforward code (a faster 27894 // method would use a table) 27895 // IN assertion: 1 <= len <= 15 27896 func bi_reverse(tls *libc.TLS, code uint32, len int32) uint32 { /* trees.c:1158:16: */ 27897 var res uint32 = uint32(0) 27898 for ok := true; ok; ok = (libc.PreDecInt32(&len, 1) > 0) { 27899 res = res | (code & uint32(1)) 27900 code >>= 1 27901 res <<= 1 27902 } 27903 return (res >> 1) 27904 } 27905 27906 // =========================================================================== 27907 // Flush the bit buffer, keeping at most 7 bits in it. 27908 func bi_flush(tls *libc.TLS, s uintptr) { /* trees.c:1173:12: */ 27909 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid == 16 { 27910 { 27911 { 27912 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27913 } 27914 { 27915 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27916 } 27917 27918 } 27919 27920 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = Ush(0) 27921 (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid = 0 27922 } else if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid >= 8 { 27923 { 27924 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = Byte((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf) 27925 } 27926 27927 libc.AssignShrPtrUint16(s+5936 /* &.bi_buf */, int(8)) 27928 *(*int32)(unsafe.Pointer(s + 5940 /* &.bi_valid */)) -= (8) 27929 } 27930 } 27931 27932 // =========================================================================== 27933 // Flush the bit buffer and align the output on a byte boundary 27934 func bi_windup(tls *libc.TLS, s uintptr) { /* trees.c:1190:12: */ 27935 if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > 8 { 27936 { 27937 { 27938 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch((int32((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) & 0xff)) 27939 } 27940 { 27941 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = (Uch(int32(((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf)) >> 8)) 27942 } 27943 27944 } 27945 27946 } else if (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid > 0 { 27947 { 27948 *(*Bytef)(unsafe.Pointer((*Deflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(libc.PostIncUint64(&(*Deflate_state)(unsafe.Pointer(s)).Fpending, 1)))) = Byte((*Deflate_state)(unsafe.Pointer(s)).Fbi_buf) 27949 } 27950 27951 } 27952 (*Deflate_state)(unsafe.Pointer(s)).Fbi_buf = Ush(0) 27953 (*Deflate_state)(unsafe.Pointer(s)).Fbi_valid = 0 27954 } 27955 27956 // =========================================================================== 27957 // Decompresses the source buffer into the destination buffer. *sourceLen is 27958 // the byte length of the source buffer. Upon entry, *destLen is the total size 27959 // of the destination buffer, which must be large enough to hold the entire 27960 // uncompressed data. (The size of the uncompressed data must have been saved 27961 // previously by the compressor and transmitted to the decompressor by some 27962 // mechanism outside the scope of this compression library.) Upon exit, 27963 // *destLen is the size of the decompressed data and *sourceLen is the number 27964 // of source bytes consumed. Upon return, source + *sourceLen points to the 27965 // first unused input byte. 27966 // 27967 // uncompress returns Z_OK if success, Z_MEM_ERROR if there was not enough 27968 // memory, Z_BUF_ERROR if there was not enough room in the output buffer, or 27969 // Z_DATA_ERROR if the input data was corrupted, including if the input data is 27970 // an incomplete zlib stream. 27971 func Xuncompress2(tls *libc.TLS, dest uintptr, destLen uintptr, source uintptr, sourceLen uintptr) int32 { /* uncompr.c:27:13: */ 27972 bp := tls.Alloc(120) 27973 defer tls.Free(120) 27974 27975 // var stream Z_stream at bp+8, 112 27976 27977 var err int32 27978 var max UInt = libc.Uint32(libc.Uint32FromInt32(-1)) 27979 var len ULong 27980 var left ULong 27981 // var buf [1]Byte at bp, 1 27982 // for detection of incomplete stream when *destLen == 0 27983 27984 len = *(*ULong)(unsafe.Pointer(sourceLen)) 27985 if *(*ULongf)(unsafe.Pointer(destLen)) != 0 { 27986 left = *(*ULongf)(unsafe.Pointer(destLen)) 27987 *(*ULongf)(unsafe.Pointer(destLen)) = uint64(0) 27988 } else { 27989 left = uint64(1) 27990 dest = bp /* &buf[0] */ 27991 } 27992 27993 (*Z_stream)(unsafe.Pointer(bp + 8 /* &stream */)).Fnext_in = source 27994 (*Z_stream)(unsafe.Pointer(bp + 8 /* &stream */)).Favail_in = UInt(0) 27995 (*Z_stream)(unsafe.Pointer(bp + 8 /* &stream */)).Fzalloc = uintptr(0) 27996 (*Z_stream)(unsafe.Pointer(bp + 8 /* &stream */)).Fzfree = uintptr(0) 27997 (*Z_stream)(unsafe.Pointer(bp + 8 /* &stream */)).Fopaque = uintptr(0) 27998 27999 err = XinflateInit_(tls, bp+8 /* &stream */, ts /* "1.2.11" */, int32(unsafe.Sizeof(Z_stream{}))) 28000 if err != Z_OK { 28001 return err 28002 } 28003 28004 (*Z_stream)(unsafe.Pointer(bp + 8 /* &stream */)).Fnext_out = dest 28005 (*Z_stream)(unsafe.Pointer(bp + 8 /* &stream */)).Favail_out = UInt(0) 28006 28007 for ok := true; ok; ok = (err == Z_OK) { 28008 if (*Z_stream)(unsafe.Pointer(bp+8 /* &stream */)).Favail_out == UInt(0) { 28009 (*Z_stream)(unsafe.Pointer(bp + 8 /* &stream */)).Favail_out = func() uint32 { 28010 if left > ULong(max) { 28011 return max 28012 } 28013 return UInt(left) 28014 }() 28015 left = left - (ULong((*Z_stream)(unsafe.Pointer(bp + 8 /* &stream */)).Favail_out)) 28016 } 28017 if (*Z_stream)(unsafe.Pointer(bp+8 /* &stream */)).Favail_in == UInt(0) { 28018 (*Z_stream)(unsafe.Pointer(bp + 8 /* &stream */)).Favail_in = func() uint32 { 28019 if len > ULong(max) { 28020 return max 28021 } 28022 return UInt(len) 28023 }() 28024 len = len - (ULong((*Z_stream)(unsafe.Pointer(bp + 8 /* &stream */)).Favail_in)) 28025 } 28026 err = Xinflate(tls, bp+8 /* &stream */, Z_NO_FLUSH) 28027 } 28028 28029 *(*ULong)(unsafe.Pointer(sourceLen)) -= (len + ULong((*Z_stream)(unsafe.Pointer(bp+8 /* &stream */)).Favail_in)) 28030 if dest != bp /* buf */ { 28031 *(*ULongf)(unsafe.Pointer(destLen)) = (*Z_stream)(unsafe.Pointer(bp + 8 /* &stream */)).Ftotal_out 28032 } else if ((*Z_stream)(unsafe.Pointer(bp+8 /* &stream */)).Ftotal_out != 0) && (err == (-5)) { 28033 left = uint64(1) 28034 } 28035 28036 XinflateEnd(tls, bp+8 /* &stream */) 28037 if err == Z_STREAM_END { 28038 return Z_OK 28039 } 28040 if err == Z_NEED_DICT { 28041 return -3 28042 } 28043 if (err == (-5)) && ((left + ULong((*Z_stream)(unsafe.Pointer(bp+8 /* &stream */)).Favail_out)) != 0) { 28044 return -3 28045 } 28046 return err 28047 } 28048 28049 func Xuncompress(tls *libc.TLS, dest uintptr, destLen uintptr, source uintptr, sourceLen ULong) int32 { /* uncompr.c:86:13: */ 28050 bp := tls.Alloc(8) 28051 defer tls.Free(8) 28052 *(*ULong)(unsafe.Pointer(bp)) = sourceLen 28053 28054 return Xuncompress2(tls, dest, destLen, source, bp /* &sourceLen */) 28055 } 28056 28057 // GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t 28058 // value -- needed when comparing unsigned to z_off64_t, which is signed 28059 // (possible z_off64_t types off_t, off64_t, and long are all signed) 28060 28061 var Xz_errmsg = [10]uintptr{ 28062 uintptr(ts + 876 /* "need dictionary" */), // Z_NEED_DICT 2 28063 uintptr(ts + 892 /* "stream end" */), // Z_STREAM_END 1 28064 uintptr(ts + 101 /* "" */), // Z_OK 0 28065 uintptr(ts + 903 /* "file error" */), // Z_ERRNO (-1) 28066 uintptr(ts + 914 /* "stream error" */), // Z_STREAM_ERROR (-2) 28067 uintptr(ts + 927 /* "data error" */), // Z_DATA_ERROR (-3) 28068 uintptr(ts + 938 /* "insufficient mem..." */), // Z_MEM_ERROR (-4) 28069 uintptr(ts + 958 /* "buffer error" */), // Z_BUF_ERROR (-5) 28070 uintptr(ts + 971 /* "incompatible ver..." */), // Z_VERSION_ERROR (-6) 28071 uintptr(ts + 101 /* "" */), 28072 } /* zutil.c:13:14 */ 28073 28074 func XzlibVersion(tls *libc.TLS) uintptr { /* zutil.c:27:12: */ 28075 return ts /* "1.2.11" */ 28076 } 28077 28078 func XzlibCompileFlags(tls *libc.TLS) ULong { /* zutil.c:32:15: */ 28079 var flags ULong 28080 28081 flags = uint64(0) 28082 switch int32(unsafe.Sizeof(UInt(0))) { 28083 case 2: 28084 break 28085 case 4: 28086 flags = flags + (uint64(1)) 28087 break 28088 case 8: 28089 flags = flags + (uint64(2)) 28090 break 28091 default: 28092 flags = flags + (uint64(3)) 28093 } 28094 switch int32(unsafe.Sizeof(ULong(0))) { 28095 case 2: 28096 break 28097 case 4: 28098 flags = flags + (uint64(int32(1) << 2)) 28099 break 28100 case 8: 28101 flags = flags + (uint64(int32(2) << 2)) 28102 break 28103 default: 28104 flags = flags + (uint64(int32(3) << 2)) 28105 } 28106 switch int32(unsafe.Sizeof(Voidpf(0))) { 28107 case 2: 28108 break 28109 case 4: 28110 flags = flags + (uint64(int32(1) << 4)) 28111 break 28112 case 8: 28113 flags = flags + (uint64(int32(2) << 4)) 28114 break 28115 default: 28116 flags = flags + (uint64(int32(3) << 4)) 28117 } 28118 switch int32(unsafe.Sizeof(Off_t(0))) { 28119 case 2: 28120 break 28121 case 4: 28122 flags = flags + (uint64(int32(1) << 6)) 28123 break 28124 case 8: 28125 flags = flags + (uint64(int32(2) << 6)) 28126 break 28127 default: 28128 flags = flags + (uint64(int32(3) << 6)) 28129 } 28130 return flags 28131 } 28132 28133 // exported to allow conversion of error code to string for compress() and 28134 // uncompress() 28135 func XzError(tls *libc.TLS, err int32) uintptr { /* zutil.c:133:12: */ 28136 return Xz_errmsg[(Z_NEED_DICT - (err))] 28137 } 28138 28139 func Xzcalloc(tls *libc.TLS, opaque Voidpf, items uint32, size uint32) Voidpf { /* zutil.c:305:22: */ 28140 _ = opaque 28141 if uint64(unsafe.Sizeof(UInt(0))) > uint64(2) { 28142 return libc.Xmalloc(tls, (uint64(items * size))) 28143 } 28144 return libc.Xcalloc(tls, uint64(items), uint64(size)) 28145 } 28146 28147 func Xzcfree(tls *libc.TLS, opaque Voidpf, ptr Voidpf) { /* zutil.c:315:20: */ 28148 _ = opaque 28149 libc.Xfree(tls, ptr) 28150 } 28151 28152 func init() { 28153 *(*func(*libc.TLS, uintptr, int32) Block_state)(unsafe.Pointer(uintptr(unsafe.Pointer(&configuration_table)) + 8 /* .func */)) = deflate_stored // deflate.c:136:29: 28154 *(*func(*libc.TLS, uintptr, int32) Block_state)(unsafe.Pointer(uintptr(unsafe.Pointer(&configuration_table)) + 24 /* .func */)) = deflate_fast // deflate.c:137:29: 28155 *(*func(*libc.TLS, uintptr, int32) Block_state)(unsafe.Pointer(uintptr(unsafe.Pointer(&configuration_table)) + 40 /* .func */)) = deflate_fast // deflate.c:138:29: 28156 *(*func(*libc.TLS, uintptr, int32) Block_state)(unsafe.Pointer(uintptr(unsafe.Pointer(&configuration_table)) + 56 /* .func */)) = deflate_fast // deflate.c:139:29: 28157 *(*func(*libc.TLS, uintptr, int32) Block_state)(unsafe.Pointer(uintptr(unsafe.Pointer(&configuration_table)) + 72 /* .func */)) = deflate_slow // deflate.c:141:29: 28158 *(*func(*libc.TLS, uintptr, int32) Block_state)(unsafe.Pointer(uintptr(unsafe.Pointer(&configuration_table)) + 88 /* .func */)) = deflate_slow // deflate.c:142:29: 28159 *(*func(*libc.TLS, uintptr, int32) Block_state)(unsafe.Pointer(uintptr(unsafe.Pointer(&configuration_table)) + 104 /* .func */)) = deflate_slow // deflate.c:143:29: 28160 *(*func(*libc.TLS, uintptr, int32) Block_state)(unsafe.Pointer(uintptr(unsafe.Pointer(&configuration_table)) + 120 /* .func */)) = deflate_slow // deflate.c:144:29: 28161 *(*func(*libc.TLS, uintptr, int32) Block_state)(unsafe.Pointer(uintptr(unsafe.Pointer(&configuration_table)) + 136 /* .func */)) = deflate_slow // deflate.c:145:30: 28162 *(*func(*libc.TLS, uintptr, int32) Block_state)(unsafe.Pointer(uintptr(unsafe.Pointer(&configuration_table)) + 152 /* .func */)) = deflate_slow // deflate.c:146:30: 28163 *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&static_bl_desc)) + 8 /* .extra_bits */)) = uintptr(unsafe.Pointer(&extra_blbits)) // trees.c:132:22: 28164 *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&static_d_desc)) + 0 /* .static_tree */)) = uintptr(unsafe.Pointer(&static_dtree)) // trees.c:129:2: 28165 *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&static_d_desc)) + 8 /* .extra_bits */)) = uintptr(unsafe.Pointer(&extra_dbits)) // trees.c:129:16: 28166 *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&static_l_desc)) + 0 /* .static_tree */)) = uintptr(unsafe.Pointer(&static_ltree)) // trees.c:126:2: 28167 *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&static_l_desc)) + 8 /* .extra_bits */)) = uintptr(unsafe.Pointer(&extra_lbits)) // trees.c:126:16: 28168 } 28169 28170 var ts1 = "1.2.11\x00 deflate 1.2.11 Copyright 1995-2017 Jean-loup Gailly and Mark Adler \x00%s\x00<fd:%d>\x00out of memory\x00\x00%s%s%s\x00: \x00unexpected end of file\x00internal error: inflate stream corrupt\x00compressed data error\x00request does not fit in an int\x00request does not fit in a size_t\x00out of room to push characters\x00internal error: deflate stream corrupt\x00requested length does not fit in int\x00invalid block type\x00invalid stored block lengths\x00too many length or distance symbols\x00invalid code lengths set\x00invalid bit length repeat\x00invalid code -- missing end-of-block\x00invalid literal/lengths set\x00invalid distances set\x00invalid literal/length code\x00invalid distance code\x00invalid distance too far back\x00incorrect header check\x00unknown compression method\x00invalid window size\x00unknown header flags set\x00header crc mismatch\x00incorrect data check\x00incorrect length check\x00 inflate 1.2.11 Copyright 1995-2017 Mark Adler \x00need dictionary\x00stream end\x00file error\x00stream error\x00data error\x00insufficient memory\x00buffer error\x00incompatible version\x00" 28171 var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data