rugged 1.3.1 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +34 -2
- data/ext/rugged/extconf.rb +6 -3
- data/ext/rugged/rugged.c +16 -0
- data/ext/rugged/rugged.h +4 -0
- data/ext/rugged/rugged_allocator.c +0 -54
- data/ext/rugged/rugged_blame.c +2 -0
- data/ext/rugged/rugged_blob.c +3 -0
- data/ext/rugged/rugged_commit.c +1 -0
- data/ext/rugged/rugged_config.c +9 -2
- data/ext/rugged/rugged_diff.c +1 -0
- data/ext/rugged/rugged_index.c +2 -0
- data/ext/rugged/rugged_patch.c +1 -0
- data/ext/rugged/rugged_rebase.c +1 -0
- data/ext/rugged/rugged_reference.c +1 -0
- data/ext/rugged/rugged_remote.c +28 -10
- data/ext/rugged/rugged_repo.c +7 -9
- data/ext/rugged/rugged_revwalk.c +5 -1
- data/ext/rugged/rugged_settings.c +5 -0
- data/ext/rugged/rugged_submodule.c +1 -0
- data/ext/rugged/rugged_tag.c +1 -0
- data/ext/rugged/rugged_tree.c +4 -0
- data/lib/rugged/index.rb +1 -1
- data/lib/rugged/tree.rb +5 -1
- data/lib/rugged/version.rb +1 -1
- data/vendor/libgit2/AUTHORS +1 -0
- data/vendor/libgit2/CMakeLists.txt +141 -289
- data/vendor/libgit2/COPYING +301 -20
- data/vendor/libgit2/cmake/AddCFlagIfSupported.cmake +21 -21
- data/vendor/libgit2/cmake/AddClarTest.cmake +7 -0
- data/vendor/libgit2/cmake/CheckPrototypeDefinitionSafe.cmake +16 -0
- data/vendor/libgit2/cmake/DefaultCFlags.cmake +154 -0
- data/vendor/libgit2/cmake/EnableWarnings.cmake +13 -13
- data/vendor/libgit2/cmake/ExperimentalFeatures.cmake +23 -0
- data/vendor/libgit2/cmake/FindCoreFoundation.cmake +13 -13
- data/vendor/libgit2/cmake/FindGSSAPI.cmake +171 -287
- data/vendor/libgit2/cmake/FindGSSFramework.cmake +13 -13
- data/vendor/libgit2/cmake/FindHTTP_Parser.cmake +17 -17
- data/vendor/libgit2/cmake/FindIntlIconv.cmake +51 -0
- data/vendor/libgit2/cmake/FindLLHTTP.cmake +39 -0
- data/vendor/libgit2/cmake/FindLibSSH2.cmake +5 -5
- data/vendor/libgit2/cmake/FindPCRE.cmake +12 -13
- data/vendor/libgit2/cmake/FindPCRE2.cmake +12 -12
- data/vendor/libgit2/cmake/FindPkgLibraries.cmake +19 -19
- data/vendor/libgit2/cmake/FindSecurity.cmake +14 -14
- data/vendor/libgit2/cmake/FindStatNsec.cmake +12 -18
- data/vendor/libgit2/cmake/Findfutimens.cmake +8 -8
- data/vendor/libgit2/cmake/FindmbedTLS.cmake +63 -70
- data/vendor/libgit2/cmake/IdeSplitSources.cmake +18 -18
- data/vendor/libgit2/cmake/PkgBuildConfig.cmake +60 -60
- data/vendor/libgit2/cmake/SanitizeBool.cmake +20 -20
- data/vendor/libgit2/cmake/SelectGSSAPI.cmake +37 -37
- data/vendor/libgit2/cmake/SelectHTTPParser.cmake +34 -0
- data/vendor/libgit2/cmake/SelectHTTPSBackend.cmake +129 -101
- data/vendor/libgit2/cmake/SelectHashes.cmake +113 -54
- data/vendor/libgit2/cmake/SelectRegex.cmake +56 -0
- data/vendor/libgit2/cmake/SelectSSH.cmake +46 -0
- data/vendor/libgit2/cmake/SelectXdiff.cmake +9 -0
- data/vendor/libgit2/cmake/SelectZlib.cmake +38 -0
- data/vendor/libgit2/deps/chromium-zlib/CMakeLists.txt +6 -6
- data/vendor/libgit2/deps/llhttp/CMakeLists.txt +8 -0
- data/vendor/libgit2/deps/llhttp/LICENSE-MIT +22 -0
- data/vendor/libgit2/deps/llhttp/api.c +510 -0
- data/vendor/libgit2/deps/llhttp/http.c +170 -0
- data/vendor/libgit2/deps/llhttp/llhttp.c +10168 -0
- data/vendor/libgit2/deps/llhttp/llhttp.h +897 -0
- data/vendor/libgit2/deps/ntlmclient/CMakeLists.txt +33 -31
- data/vendor/libgit2/deps/ntlmclient/crypt_builtin_md4.c +311 -0
- data/vendor/libgit2/deps/ntlmclient/crypt_commoncrypto.c +2 -1
- data/vendor/libgit2/deps/ntlmclient/crypt_mbedtls.c +0 -20
- data/vendor/libgit2/deps/ntlmclient/crypt_openssl.c +7 -5
- data/vendor/libgit2/deps/ntlmclient/ntlm.c +25 -25
- data/vendor/libgit2/deps/ntlmclient/ntlm.h +4 -4
- data/vendor/libgit2/deps/ntlmclient/ntlmclient.h +2 -2
- data/vendor/libgit2/deps/ntlmclient/unicode_builtin.c +5 -4
- data/vendor/libgit2/deps/ntlmclient/unicode_iconv.c +2 -1
- data/vendor/libgit2/deps/ntlmclient/utf8.h +1176 -721
- data/vendor/libgit2/deps/ntlmclient/util.h +11 -0
- data/vendor/libgit2/deps/pcre/CMakeLists.txt +89 -88
- data/vendor/libgit2/deps/pcre/LICENCE +5 -5
- data/vendor/libgit2/deps/pcre/pcre.h +2 -2
- data/vendor/libgit2/deps/pcre/pcre_compile.c +6 -3
- data/vendor/libgit2/deps/pcre/pcre_exec.c +2 -2
- data/vendor/libgit2/deps/winhttp/CMakeLists.txt +14 -16
- data/vendor/libgit2/deps/xdiff/CMakeLists.txt +28 -0
- data/vendor/libgit2/deps/xdiff/git-xdiff.h +56 -0
- data/vendor/libgit2/{src → deps}/xdiff/xdiff.h +15 -15
- data/vendor/libgit2/{src → deps}/xdiff/xdiffi.c +152 -125
- data/vendor/libgit2/{src → deps}/xdiff/xdiffi.h +2 -4
- data/vendor/libgit2/{src → deps}/xdiff/xemit.c +26 -10
- data/vendor/libgit2/{src → deps}/xdiff/xhistogram.c +92 -94
- data/vendor/libgit2/{src → deps}/xdiff/xinclude.h +1 -12
- data/vendor/libgit2/{src → deps}/xdiff/xmacros.h +18 -1
- data/vendor/libgit2/{src → deps}/xdiff/xmerge.c +126 -137
- data/vendor/libgit2/{src → deps}/xdiff/xpatience.c +26 -46
- data/vendor/libgit2/{src → deps}/xdiff/xprepare.c +24 -46
- data/vendor/libgit2/{src → deps}/xdiff/xutils.c +36 -8
- data/vendor/libgit2/{src → deps}/xdiff/xutils.h +2 -1
- data/vendor/libgit2/deps/zlib/CMakeLists.txt +6 -1
- data/vendor/libgit2/deps/zlib/LICENSE +22 -0
- data/vendor/libgit2/deps/zlib/adler32.c +7 -22
- data/vendor/libgit2/deps/zlib/crc32.c +931 -317
- data/vendor/libgit2/deps/zlib/crc32.h +9441 -436
- data/vendor/libgit2/deps/zlib/deflate.c +428 -453
- data/vendor/libgit2/deps/zlib/deflate.h +51 -23
- data/vendor/libgit2/deps/zlib/gzguts.h +15 -19
- data/vendor/libgit2/deps/zlib/infback.c +19 -31
- data/vendor/libgit2/deps/zlib/inffast.c +15 -18
- data/vendor/libgit2/deps/zlib/inffast.h +1 -1
- data/vendor/libgit2/deps/zlib/inflate.c +75 -110
- data/vendor/libgit2/deps/zlib/inflate.h +3 -2
- data/vendor/libgit2/deps/zlib/inftrees.c +6 -11
- data/vendor/libgit2/deps/zlib/inftrees.h +6 -6
- data/vendor/libgit2/deps/zlib/trees.c +294 -380
- data/vendor/libgit2/deps/zlib/zconf.h +23 -14
- data/vendor/libgit2/deps/zlib/zlib.h +310 -284
- data/vendor/libgit2/deps/zlib/zutil.c +20 -46
- data/vendor/libgit2/deps/zlib/zutil.h +24 -41
- data/vendor/libgit2/include/git2/annotated_commit.h +12 -5
- data/vendor/libgit2/include/git2/apply.h +43 -8
- data/vendor/libgit2/include/git2/attr.h +28 -6
- data/vendor/libgit2/include/git2/blame.h +137 -29
- data/vendor/libgit2/include/git2/blob.h +85 -29
- data/vendor/libgit2/include/git2/branch.h +25 -16
- data/vendor/libgit2/include/git2/buffer.h +24 -82
- data/vendor/libgit2/include/git2/cert.h +4 -3
- data/vendor/libgit2/include/git2/checkout.h +88 -34
- data/vendor/libgit2/include/git2/cherrypick.h +10 -3
- data/vendor/libgit2/include/git2/clone.h +28 -12
- data/vendor/libgit2/include/git2/commit.h +134 -3
- data/vendor/libgit2/include/git2/common.h +172 -59
- data/vendor/libgit2/include/git2/config.h +118 -32
- data/vendor/libgit2/include/git2/credential.h +32 -3
- data/vendor/libgit2/include/git2/credential_helpers.h +2 -0
- data/vendor/libgit2/include/git2/deprecated.h +141 -3
- data/vendor/libgit2/include/git2/describe.h +20 -3
- data/vendor/libgit2/include/git2/diff.h +95 -19
- data/vendor/libgit2/include/git2/email.h +10 -30
- data/vendor/libgit2/include/git2/errors.h +51 -61
- data/vendor/libgit2/include/git2/experimental.h +20 -0
- data/vendor/libgit2/include/git2/filter.h +21 -9
- data/vendor/libgit2/include/git2/global.h +8 -1
- data/vendor/libgit2/include/git2/graph.h +4 -2
- data/vendor/libgit2/include/git2/ignore.h +11 -1
- data/vendor/libgit2/include/git2/index.h +111 -11
- data/vendor/libgit2/include/git2/indexer.h +67 -2
- data/vendor/libgit2/include/git2/mailmap.h +7 -1
- data/vendor/libgit2/include/git2/merge.h +70 -5
- data/vendor/libgit2/include/git2/message.h +4 -2
- data/vendor/libgit2/include/git2/net.h +3 -1
- data/vendor/libgit2/include/git2/notes.h +9 -6
- data/vendor/libgit2/include/git2/object.h +57 -7
- data/vendor/libgit2/include/git2/odb.h +156 -33
- data/vendor/libgit2/include/git2/odb_backend.h +132 -16
- data/vendor/libgit2/include/git2/oid.h +116 -17
- data/vendor/libgit2/include/git2/oidarray.h +7 -1
- data/vendor/libgit2/include/git2/pack.h +37 -9
- data/vendor/libgit2/include/git2/patch.h +10 -3
- data/vendor/libgit2/include/git2/pathspec.h +10 -1
- data/vendor/libgit2/include/git2/proxy.h +11 -1
- data/vendor/libgit2/include/git2/rebase.h +18 -7
- data/vendor/libgit2/include/git2/refdb.h +5 -2
- data/vendor/libgit2/include/git2/reflog.h +4 -3
- data/vendor/libgit2/include/git2/refs.h +11 -8
- data/vendor/libgit2/include/git2/refspec.h +14 -4
- data/vendor/libgit2/include/git2/remote.h +295 -54
- data/vendor/libgit2/include/git2/repository.h +95 -25
- data/vendor/libgit2/include/git2/reset.h +18 -5
- data/vendor/libgit2/include/git2/revert.h +9 -4
- data/vendor/libgit2/include/git2/revparse.h +4 -4
- data/vendor/libgit2/include/git2/revwalk.h +7 -3
- data/vendor/libgit2/include/git2/signature.h +47 -2
- data/vendor/libgit2/include/git2/stash.h +78 -10
- data/vendor/libgit2/include/git2/status.h +24 -11
- data/vendor/libgit2/include/git2/stdint.h +87 -85
- data/vendor/libgit2/include/git2/strarray.h +2 -16
- data/vendor/libgit2/include/git2/submodule.h +27 -11
- data/vendor/libgit2/include/git2/sys/alloc.h +12 -34
- data/vendor/libgit2/include/git2/sys/commit.h +77 -3
- data/vendor/libgit2/include/git2/sys/commit_graph.h +110 -59
- data/vendor/libgit2/include/git2/sys/config.h +80 -4
- data/vendor/libgit2/include/git2/sys/credential.h +4 -3
- data/vendor/libgit2/include/git2/sys/diff.h +21 -1
- data/vendor/libgit2/include/git2/sys/email.h +7 -0
- data/vendor/libgit2/include/git2/sys/errors.h +76 -0
- data/vendor/libgit2/include/git2/sys/filter.h +66 -3
- data/vendor/libgit2/include/git2/sys/hashsig.h +11 -0
- data/vendor/libgit2/include/git2/sys/index.h +3 -2
- data/vendor/libgit2/include/git2/sys/mempack.h +32 -2
- data/vendor/libgit2/include/git2/sys/merge.h +55 -7
- data/vendor/libgit2/include/git2/sys/midx.h +47 -4
- data/vendor/libgit2/include/git2/sys/odb_backend.h +10 -9
- data/vendor/libgit2/include/git2/sys/openssl.h +8 -1
- data/vendor/libgit2/include/git2/sys/path.h +12 -1
- data/vendor/libgit2/include/git2/sys/refdb_backend.h +40 -36
- data/vendor/libgit2/include/git2/sys/refs.h +3 -2
- data/vendor/libgit2/include/git2/sys/remote.h +53 -0
- data/vendor/libgit2/include/git2/sys/repository.h +63 -3
- data/vendor/libgit2/include/git2/sys/stream.h +26 -3
- data/vendor/libgit2/include/git2/sys/transport.h +87 -41
- data/vendor/libgit2/include/git2/tag.h +4 -1
- data/vendor/libgit2/include/git2/trace.h +9 -3
- data/vendor/libgit2/include/git2/transaction.h +3 -2
- data/vendor/libgit2/include/git2/transport.h +11 -3
- data/vendor/libgit2/include/git2/tree.h +20 -8
- data/vendor/libgit2/include/git2/types.h +26 -10
- data/vendor/libgit2/include/git2/version.h +63 -6
- data/vendor/libgit2/include/git2/worktree.h +30 -8
- data/vendor/libgit2/include/git2.h +1 -0
- data/vendor/libgit2/src/CMakeLists.txt +203 -420
- data/vendor/libgit2/src/README.md +12 -0
- data/vendor/libgit2/src/cli/CMakeLists.txt +56 -0
- data/vendor/libgit2/src/cli/README.md +26 -0
- data/vendor/libgit2/src/{branch.h → cli/cmd.c} +10 -8
- data/vendor/libgit2/src/cli/cmd.h +37 -0
- data/vendor/libgit2/src/cli/cmd_blame.c +287 -0
- data/vendor/libgit2/src/cli/cmd_cat_file.c +202 -0
- data/vendor/libgit2/src/cli/cmd_clone.c +190 -0
- data/vendor/libgit2/src/cli/cmd_config.c +241 -0
- data/vendor/libgit2/src/cli/cmd_hash_object.c +152 -0
- data/vendor/libgit2/src/cli/cmd_help.c +85 -0
- data/vendor/libgit2/src/cli/cmd_index_pack.c +114 -0
- data/vendor/libgit2/src/cli/cmd_init.c +102 -0
- data/vendor/libgit2/src/cli/common.c +168 -0
- data/vendor/libgit2/src/cli/common.h +63 -0
- data/vendor/libgit2/src/cli/error.h +51 -0
- data/vendor/libgit2/src/cli/main.c +134 -0
- data/vendor/libgit2/src/cli/opt.c +695 -0
- data/vendor/libgit2/src/cli/opt.h +367 -0
- data/vendor/libgit2/src/cli/opt_usage.c +263 -0
- data/vendor/libgit2/src/cli/opt_usage.h +40 -0
- data/vendor/libgit2/src/cli/progress.c +395 -0
- data/vendor/libgit2/src/cli/progress.h +129 -0
- data/vendor/libgit2/src/cli/sighandler.h +20 -0
- data/vendor/libgit2/src/cli/unix/sighandler.c +37 -0
- data/vendor/libgit2/src/cli/win32/precompiled.h +3 -0
- data/vendor/libgit2/src/cli/win32/sighandler.c +37 -0
- data/vendor/libgit2/src/libgit2/CMakeLists.txt +140 -0
- data/vendor/libgit2/src/{annotated_commit.c → libgit2/annotated_commit.c} +2 -2
- data/vendor/libgit2/src/{annotated_commit.h → libgit2/annotated_commit.h} +2 -2
- data/vendor/libgit2/src/{apply.c → libgit2/apply.c} +32 -34
- data/vendor/libgit2/src/{apply.h → libgit2/apply.h} +2 -2
- data/vendor/libgit2/src/{attr.c → libgit2/attr.c} +48 -31
- data/vendor/libgit2/src/{attr_file.c → libgit2/attr_file.c} +25 -20
- data/vendor/libgit2/src/{attr_file.h → libgit2/attr_file.h} +6 -4
- data/vendor/libgit2/src/{attrcache.c → libgit2/attrcache.c} +87 -46
- data/vendor/libgit2/src/{attrcache.h → libgit2/attrcache.h} +5 -9
- data/vendor/libgit2/src/{blame.c → libgit2/blame.c} +152 -57
- data/vendor/libgit2/src/{blame.h → libgit2/blame.h} +1 -0
- data/vendor/libgit2/src/{blame_git.c → libgit2/blame_git.c} +1 -2
- data/vendor/libgit2/src/{blob.c → libgit2/blob.c} +38 -29
- data/vendor/libgit2/src/{blob.h → libgit2/blob.h} +3 -3
- data/vendor/libgit2/src/{branch.c → libgit2/branch.c} +164 -118
- data/vendor/libgit2/src/libgit2/branch.h +31 -0
- data/vendor/libgit2/src/libgit2/buf.c +126 -0
- data/vendor/libgit2/src/libgit2/buf.h +50 -0
- data/vendor/libgit2/src/{cache.c → libgit2/cache.c} +22 -17
- data/vendor/libgit2/src/{cache.h → libgit2/cache.h} +7 -9
- data/vendor/libgit2/src/{checkout.c → libgit2/checkout.c} +107 -91
- data/vendor/libgit2/src/{checkout.h → libgit2/checkout.h} +0 -2
- data/vendor/libgit2/src/{cherrypick.c → libgit2/cherrypick.c} +14 -15
- data/vendor/libgit2/src/{clone.c → libgit2/clone.c} +254 -203
- data/vendor/libgit2/src/{clone.h → libgit2/clone.h} +4 -1
- data/vendor/libgit2/src/{commit.c → libgit2/commit.c} +296 -77
- data/vendor/libgit2/src/libgit2/commit.h +87 -0
- data/vendor/libgit2/src/{commit_graph.c → libgit2/commit_graph.c} +246 -135
- data/vendor/libgit2/src/{commit_graph.h → libgit2/commit_graph.h} +33 -8
- data/vendor/libgit2/src/{commit_list.c → libgit2/commit_list.c} +17 -7
- data/vendor/libgit2/src/{commit_list.h → libgit2/commit_list.h} +1 -0
- data/vendor/libgit2/src/libgit2/common.h +55 -0
- data/vendor/libgit2/src/{config.c → libgit2/config.c} +490 -360
- data/vendor/libgit2/src/libgit2/config.cmake.in +3 -0
- data/vendor/libgit2/src/{config.h → libgit2/config.h} +24 -6
- data/vendor/libgit2/src/{config_backend.h → libgit2/config_backend.h} +8 -10
- data/vendor/libgit2/src/{config_cache.c → libgit2/config_cache.c} +4 -5
- data/vendor/libgit2/src/{config_file.c → libgit2/config_file.c} +212 -183
- data/vendor/libgit2/src/libgit2/config_list.c +285 -0
- data/vendor/libgit2/src/libgit2/config_list.h +32 -0
- data/vendor/libgit2/src/libgit2/config_mem.c +374 -0
- data/vendor/libgit2/src/{config_parse.c → libgit2/config_parse.c} +37 -32
- data/vendor/libgit2/src/{config_snapshot.c → libgit2/config_snapshot.c} +24 -31
- data/vendor/libgit2/src/{crlf.c → libgit2/crlf.c} +24 -21
- data/vendor/libgit2/src/{describe.c → libgit2/describe.c} +62 -51
- data/vendor/libgit2/src/{diff.c → libgit2/diff.c} +44 -14
- data/vendor/libgit2/src/{diff.h → libgit2/diff.h} +8 -10
- data/vendor/libgit2/src/{diff_driver.c → libgit2/diff_driver.c} +46 -55
- data/vendor/libgit2/src/{diff_driver.h → libgit2/diff_driver.h} +5 -5
- data/vendor/libgit2/src/{diff_file.c → libgit2/diff_file.c} +45 -27
- data/vendor/libgit2/src/{diff_generate.c → libgit2/diff_generate.c} +70 -20
- data/vendor/libgit2/src/{diff_generate.h → libgit2/diff_generate.h} +5 -3
- data/vendor/libgit2/src/{diff_parse.c → libgit2/diff_parse.c} +22 -6
- data/vendor/libgit2/src/{diff_print.c → libgit2/diff_print.c} +192 -105
- data/vendor/libgit2/src/{diff_stats.c → libgit2/diff_stats.c} +40 -29
- data/vendor/libgit2/src/libgit2/diff_stats.h +18 -0
- data/vendor/libgit2/src/{diff_tform.c → libgit2/diff_tform.c} +49 -16
- data/vendor/libgit2/src/{diff_xdiff.c → libgit2/diff_xdiff.c} +4 -8
- data/vendor/libgit2/src/{diff_xdiff.h → libgit2/diff_xdiff.h} +1 -1
- data/vendor/libgit2/src/{email.c → libgit2/email.c} +58 -40
- data/vendor/libgit2/src/{email.h → libgit2/email.h} +1 -1
- data/vendor/libgit2/src/{transports/ssh.h → libgit2/experimental.h.in} +3 -4
- data/vendor/libgit2/src/{fetch.c → libgit2/fetch.c} +105 -30
- data/vendor/libgit2/src/{fetch.h → libgit2/fetch.h} +1 -3
- data/vendor/libgit2/src/{fetchhead.c → libgit2/fetchhead.c} +30 -28
- data/vendor/libgit2/src/{filter.c → libgit2/filter.c} +132 -58
- data/vendor/libgit2/src/{filter.h → libgit2/filter.h} +26 -5
- data/vendor/libgit2/src/{win32 → libgit2}/git2.rc +3 -3
- data/vendor/libgit2/src/libgit2/grafts.c +270 -0
- data/vendor/libgit2/src/libgit2/grafts.h +35 -0
- data/vendor/libgit2/src/{graph.c → libgit2/graph.c} +1 -1
- data/vendor/libgit2/src/libgit2/hashmap_oid.h +30 -0
- data/vendor/libgit2/src/{ident.c → libgit2/ident.c} +20 -20
- data/vendor/libgit2/src/{ignore.c → libgit2/ignore.c} +44 -39
- data/vendor/libgit2/src/{ignore.h → libgit2/ignore.h} +2 -2
- data/vendor/libgit2/src/{index.c → libgit2/index.c} +460 -276
- data/vendor/libgit2/src/{index.h → libgit2/index.h} +21 -5
- data/vendor/libgit2/src/libgit2/index_map.c +95 -0
- data/vendor/libgit2/src/libgit2/index_map.h +28 -0
- data/vendor/libgit2/src/{indexer.c → libgit2/indexer.c} +208 -124
- data/vendor/libgit2/src/{iterator.c → libgit2/iterator.c} +102 -71
- data/vendor/libgit2/src/{iterator.h → libgit2/iterator.h} +8 -5
- data/vendor/libgit2/src/libgit2/libgit2.c +268 -0
- data/vendor/libgit2/src/{mailmap.c → libgit2/mailmap.c} +39 -37
- data/vendor/libgit2/src/{merge.c → libgit2/merge.c} +83 -73
- data/vendor/libgit2/src/{merge.h → libgit2/merge.h} +1 -14
- data/vendor/libgit2/src/{merge_driver.c → libgit2/merge_driver.c} +4 -4
- data/vendor/libgit2/src/{merge_file.c → libgit2/merge_file.c} +13 -5
- data/vendor/libgit2/src/{message.c → libgit2/message.c} +21 -10
- data/vendor/libgit2/src/{midx.c → libgit2/midx.c} +174 -112
- data/vendor/libgit2/src/{midx.h → libgit2/midx.h} +17 -6
- data/vendor/libgit2/src/{mwindow.c → libgit2/mwindow.c} +53 -57
- data/vendor/libgit2/src/{mwindow.h → libgit2/mwindow.h} +9 -2
- data/vendor/libgit2/src/{notes.c → libgit2/notes.c} +29 -37
- data/vendor/libgit2/src/{object.c → libgit2/object.c} +166 -35
- data/vendor/libgit2/src/{object.h → libgit2/object.h} +17 -2
- data/vendor/libgit2/src/{odb.c → libgit2/odb.c} +261 -88
- data/vendor/libgit2/src/{odb.h → libgit2/odb.h} +44 -5
- data/vendor/libgit2/src/{odb_loose.c → libgit2/odb_loose.c} +192 -134
- data/vendor/libgit2/src/{odb_mempack.c → libgit2/odb_mempack.c} +67 -22
- data/vendor/libgit2/src/{odb_pack.c → libgit2/odb_pack.c} +162 -89
- data/vendor/libgit2/src/{oid.c → libgit2/oid.c} +171 -92
- data/vendor/libgit2/src/libgit2/oid.h +284 -0
- data/vendor/libgit2/src/libgit2/oidarray.c +89 -0
- data/vendor/libgit2/src/{oidarray.h → libgit2/oidarray.h} +5 -1
- data/vendor/libgit2/src/{pack-objects.c → libgit2/pack-objects.c} +126 -66
- data/vendor/libgit2/src/{pack-objects.h → libgit2/pack-objects.h} +28 -12
- data/vendor/libgit2/src/{pack.c → libgit2/pack.c} +146 -111
- data/vendor/libgit2/src/{pack.h → libgit2/pack.h} +45 -25
- data/vendor/libgit2/src/{parse.c → libgit2/parse.c} +8 -4
- data/vendor/libgit2/src/{parse.h → libgit2/parse.h} +1 -1
- data/vendor/libgit2/src/{patch.c → libgit2/patch.c} +3 -3
- data/vendor/libgit2/src/{patch.h → libgit2/patch.h} +8 -1
- data/vendor/libgit2/src/{patch_generate.c → libgit2/patch_generate.c} +51 -16
- data/vendor/libgit2/src/{patch_generate.h → libgit2/patch_generate.h} +5 -5
- data/vendor/libgit2/src/{patch_parse.c → libgit2/patch_parse.c} +42 -34
- data/vendor/libgit2/src/libgit2/path.c +375 -0
- data/vendor/libgit2/src/libgit2/path.h +68 -0
- data/vendor/libgit2/src/{pathspec.c → libgit2/pathspec.c} +7 -7
- data/vendor/libgit2/src/{pathspec.h → libgit2/pathspec.h} +2 -2
- data/vendor/libgit2/src/{proxy.c → libgit2/proxy.c} +4 -1
- data/vendor/libgit2/src/{proxy.h → libgit2/proxy.h} +1 -1
- data/vendor/libgit2/src/{push.c → libgit2/push.c} +116 -60
- data/vendor/libgit2/src/{push.h → libgit2/push.h} +5 -16
- data/vendor/libgit2/src/{reader.c → libgit2/reader.c} +9 -9
- data/vendor/libgit2/src/{reader.h → libgit2/reader.h} +2 -2
- data/vendor/libgit2/src/{rebase.c → libgit2/rebase.c} +147 -147
- data/vendor/libgit2/src/{refdb_fs.c → libgit2/refdb_fs.c} +639 -254
- data/vendor/libgit2/src/{reflog.c → libgit2/reflog.c} +8 -7
- data/vendor/libgit2/src/{reflog.h → libgit2/reflog.h} +3 -2
- data/vendor/libgit2/src/{refs.c → libgit2/refs.c} +67 -39
- data/vendor/libgit2/src/{refs.h → libgit2/refs.h} +8 -3
- data/vendor/libgit2/src/{refspec.c → libgit2/refspec.c} +60 -38
- data/vendor/libgit2/src/{refspec.h → libgit2/refspec.h} +13 -2
- data/vendor/libgit2/src/{remote.c → libgit2/remote.c} +821 -454
- data/vendor/libgit2/src/libgit2/remote.h +101 -0
- data/vendor/libgit2/src/{repository.c → libgit2/repository.c} +1377 -594
- data/vendor/libgit2/src/{repository.h → libgit2/repository.h} +43 -12
- data/vendor/libgit2/src/{reset.c → libgit2/reset.c} +8 -5
- data/vendor/libgit2/src/{revert.c → libgit2/revert.c} +18 -22
- data/vendor/libgit2/src/{revparse.c → libgit2/revparse.c} +76 -44
- data/vendor/libgit2/src/{revwalk.c → libgit2/revwalk.c} +48 -19
- data/vendor/libgit2/src/{revwalk.h → libgit2/revwalk.h} +3 -3
- data/vendor/libgit2/src/{libgit2.c → libgit2/settings.c} +162 -95
- data/vendor/libgit2/src/{settings.h → libgit2/settings.h} +6 -2
- data/vendor/libgit2/src/{signature.c → libgit2/signature.c} +144 -21
- data/vendor/libgit2/src/{signature.h → libgit2/signature.h} +1 -2
- data/vendor/libgit2/src/{stash.c → libgit2/stash.c} +243 -68
- data/vendor/libgit2/src/{status.c → libgit2/status.c} +5 -2
- data/vendor/libgit2/src/{strarray.c → libgit2/strarray.c} +1 -0
- data/vendor/libgit2/src/libgit2/strarray.h +25 -0
- data/vendor/libgit2/src/{streams → libgit2/streams}/mbedtls.c +62 -67
- data/vendor/libgit2/src/{streams → libgit2/streams}/openssl.c +41 -24
- data/vendor/libgit2/src/{streams → libgit2/streams}/openssl.h +2 -0
- data/vendor/libgit2/src/{streams → libgit2/streams}/openssl_dynamic.c +11 -3
- data/vendor/libgit2/src/{streams → libgit2/streams}/openssl_dynamic.h +6 -3
- data/vendor/libgit2/src/libgit2/streams/schannel.c +715 -0
- data/vendor/libgit2/src/libgit2/streams/schannel.h +28 -0
- data/vendor/libgit2/src/libgit2/streams/socket.c +428 -0
- data/vendor/libgit2/src/{streams → libgit2/streams}/socket.h +3 -1
- data/vendor/libgit2/src/{streams → libgit2/streams}/stransport.c +79 -19
- data/vendor/libgit2/src/{streams → libgit2/streams}/tls.c +5 -0
- data/vendor/libgit2/src/{submodule.c → libgit2/submodule.c} +279 -220
- data/vendor/libgit2/src/{submodule.h → libgit2/submodule.h} +10 -11
- data/vendor/libgit2/src/libgit2/sysdir.c +650 -0
- data/vendor/libgit2/src/{sysdir.h → libgit2/sysdir.h} +55 -18
- data/vendor/libgit2/src/{tag.c → libgit2/tag.c} +74 -43
- data/vendor/libgit2/src/{tag.h → libgit2/tag.h} +2 -2
- data/vendor/libgit2/src/{trace.c → libgit2/trace.c} +1 -14
- data/vendor/libgit2/src/{trace.h → libgit2/trace.h} +5 -22
- data/vendor/libgit2/src/{trailer.c → libgit2/trailer.c} +7 -7
- data/vendor/libgit2/src/{transaction.c → libgit2/transaction.c} +27 -21
- data/vendor/libgit2/src/{transaction.h → libgit2/transaction.h} +4 -1
- data/vendor/libgit2/src/{transport.c → libgit2/transport.c} +14 -11
- data/vendor/libgit2/src/{transports → libgit2/transports}/auth.c +7 -9
- data/vendor/libgit2/src/{transports → libgit2/transports}/auth.h +3 -5
- data/vendor/libgit2/src/{transports/auth_negotiate.c → libgit2/transports/auth_gssapi.c} +44 -45
- data/vendor/libgit2/src/{transports → libgit2/transports}/auth_negotiate.h +1 -1
- data/vendor/libgit2/src/{transports → libgit2/transports}/auth_ntlm.h +1 -2
- data/vendor/libgit2/src/{transports/auth_ntlm.c → libgit2/transports/auth_ntlmclient.c} +22 -22
- data/vendor/libgit2/src/libgit2/transports/auth_sspi.c +341 -0
- data/vendor/libgit2/src/{transports → libgit2/transports}/credential.c +1 -1
- data/vendor/libgit2/src/{transports → libgit2/transports}/git.c +16 -19
- data/vendor/libgit2/src/{transports → libgit2/transports}/http.c +49 -24
- data/vendor/libgit2/src/{transports → libgit2/transports}/http.h +0 -11
- data/vendor/libgit2/src/{transports → libgit2/transports}/httpclient.c +188 -134
- data/vendor/libgit2/src/{transports → libgit2/transports}/httpclient.h +10 -0
- data/vendor/libgit2/src/libgit2/transports/httpparser.c +128 -0
- data/vendor/libgit2/src/libgit2/transports/httpparser.h +99 -0
- data/vendor/libgit2/src/{transports → libgit2/transports}/local.c +159 -127
- data/vendor/libgit2/src/{transports → libgit2/transports}/smart.c +142 -165
- data/vendor/libgit2/src/{transports → libgit2/transports}/smart.h +56 -36
- data/vendor/libgit2/src/{transports → libgit2/transports}/smart_pkt.c +307 -74
- data/vendor/libgit2/src/{transports → libgit2/transports}/smart_protocol.c +297 -97
- data/vendor/libgit2/src/libgit2/transports/ssh.c +85 -0
- data/vendor/libgit2/src/libgit2/transports/ssh_exec.c +347 -0
- data/vendor/libgit2/src/libgit2/transports/ssh_exec.h +26 -0
- data/vendor/libgit2/src/{transports/ssh.c → libgit2/transports/ssh_libssh2.c} +414 -268
- data/vendor/libgit2/src/libgit2/transports/ssh_libssh2.h +28 -0
- data/vendor/libgit2/src/{transports → libgit2/transports}/winhttp.c +101 -75
- data/vendor/libgit2/src/{tree-cache.c → libgit2/tree-cache.c} +30 -20
- data/vendor/libgit2/src/{tree-cache.h → libgit2/tree-cache.h} +7 -5
- data/vendor/libgit2/src/{tree.c → libgit2/tree.c} +128 -110
- data/vendor/libgit2/src/{tree.h → libgit2/tree.h} +7 -6
- data/vendor/libgit2/src/{worktree.c → libgit2/worktree.c} +160 -121
- data/vendor/libgit2/src/{worktree.h → libgit2/worktree.h} +1 -1
- data/vendor/libgit2/src/util/CMakeLists.txt +77 -0
- data/vendor/libgit2/src/{alloc.c → util/alloc.c} +69 -7
- data/vendor/libgit2/src/util/alloc.h +65 -0
- data/vendor/libgit2/src/util/allocators/debugalloc.c +73 -0
- data/vendor/libgit2/src/util/allocators/debugalloc.h +17 -0
- data/vendor/libgit2/src/util/allocators/failalloc.c +32 -0
- data/vendor/libgit2/src/util/allocators/failalloc.h +17 -0
- data/vendor/libgit2/src/util/allocators/stdalloc.c +37 -0
- data/vendor/libgit2/src/{allocators → util/allocators}/stdalloc.h +1 -1
- data/vendor/libgit2/src/util/allocators/win32_leakcheck.c +50 -0
- data/vendor/libgit2/src/{allocators → util/allocators}/win32_leakcheck.h +1 -1
- data/vendor/libgit2/src/{array.h → util/array.h} +25 -19
- data/vendor/libgit2/src/{assert_safe.h → util/assert_safe.h} +16 -0
- data/vendor/libgit2/src/{cc-compat.h → util/cc-compat.h} +5 -1
- data/vendor/libgit2/src/util/ctype_compat.h +70 -0
- data/vendor/libgit2/src/{date.c → util/date.c} +35 -33
- data/vendor/libgit2/src/util/date.h +45 -0
- data/vendor/libgit2/src/util/errors.c +401 -0
- data/vendor/libgit2/src/{errors.h → util/errors.h} +22 -19
- data/vendor/libgit2/src/{filebuf.c → util/filebuf.c} +35 -30
- data/vendor/libgit2/src/{filebuf.h → util/filebuf.h} +21 -8
- data/vendor/libgit2/src/{path.c → util/fs_path.c} +591 -615
- data/vendor/libgit2/src/{path.h → util/fs_path.h} +257 -181
- data/vendor/libgit2/src/{futils.c → util/futils.c} +144 -95
- data/vendor/libgit2/src/{futils.h → util/futils.h} +40 -18
- data/vendor/libgit2/src/{features.h.in → util/git2_features.h.in} +33 -2
- data/vendor/libgit2/src/{common.h → util/git2_util.h} +26 -59
- data/vendor/libgit2/src/util/hash/builtin.c +53 -0
- data/vendor/libgit2/src/{hash/sha1/openssl.h → util/hash/builtin.h} +6 -6
- data/vendor/libgit2/src/{hash/sha1 → util/hash}/collisiondetect.c +3 -3
- data/vendor/libgit2/src/{hash/sha1 → util/hash}/collisiondetect.h +3 -3
- data/vendor/libgit2/src/util/hash/common_crypto.c +112 -0
- data/vendor/libgit2/src/{hash/sha1 → util/hash}/common_crypto.h +11 -3
- data/vendor/libgit2/src/util/hash/mbedtls.c +92 -0
- data/vendor/libgit2/src/{hash/sha1 → util/hash}/mbedtls.h +14 -4
- data/vendor/libgit2/src/util/hash/openssl.c +347 -0
- data/vendor/libgit2/src/util/hash/openssl.h +61 -0
- data/vendor/libgit2/src/util/hash/rfc6234/sha.h +243 -0
- data/vendor/libgit2/src/util/hash/rfc6234/sha224-256.c +601 -0
- data/vendor/libgit2/src/util/hash/sha.h +73 -0
- data/vendor/libgit2/src/{hash/sha1 → util/hash}/sha1dc/sha1.c +1 -1
- data/vendor/libgit2/src/util/hash/win32.c +549 -0
- data/vendor/libgit2/src/util/hash/win32.h +60 -0
- data/vendor/libgit2/src/util/hash.c +158 -0
- data/vendor/libgit2/src/util/hash.h +61 -0
- data/vendor/libgit2/src/util/hashmap.h +424 -0
- data/vendor/libgit2/src/util/hashmap_str.h +43 -0
- data/vendor/libgit2/src/{integer.h → util/integer.h} +3 -1
- data/vendor/libgit2/src/{map.h → util/map.h} +1 -1
- data/vendor/libgit2/src/util/net.c +1160 -0
- data/vendor/libgit2/src/{net.h → util/net.h} +45 -4
- data/vendor/libgit2/src/{pool.c → util/pool.c} +1 -1
- data/vendor/libgit2/src/{pool.h → util/pool.h} +6 -1
- data/vendor/libgit2/src/{posix.c → util/posix.c} +57 -3
- data/vendor/libgit2/src/{posix.h → util/posix.h} +26 -1
- data/vendor/libgit2/src/{pqueue.h → util/pqueue.h} +3 -3
- data/vendor/libgit2/src/util/process.h +222 -0
- data/vendor/libgit2/src/util/rand.c +230 -0
- data/vendor/libgit2/src/util/rand.h +37 -0
- data/vendor/libgit2/src/{regexp.c → util/regexp.c} +5 -5
- data/vendor/libgit2/src/{regexp.h → util/regexp.h} +1 -1
- data/vendor/libgit2/src/{runtime.c → util/runtime.c} +1 -1
- data/vendor/libgit2/src/{runtime.h → util/runtime.h} +1 -1
- data/vendor/libgit2/src/{sortedcache.c → util/sortedcache.c} +15 -14
- data/vendor/libgit2/src/{sortedcache.h → util/sortedcache.h} +5 -5
- data/vendor/libgit2/src/util/staticstr.h +66 -0
- data/vendor/libgit2/src/{buffer.c → util/str.c} +159 -153
- data/vendor/libgit2/src/util/str.h +357 -0
- data/vendor/libgit2/src/util/strlist.c +108 -0
- data/vendor/libgit2/src/util/strlist.h +36 -0
- data/vendor/libgit2/src/{thread.c → util/thread.c} +1 -1
- data/vendor/libgit2/src/{thread.h → util/thread.h} +23 -22
- data/vendor/libgit2/src/{tsort.c → util/tsort.c} +1 -1
- data/vendor/libgit2/src/{unix → util/unix}/map.c +1 -3
- data/vendor/libgit2/src/{unix → util/unix}/posix.h +1 -6
- data/vendor/libgit2/src/util/unix/process.c +629 -0
- data/vendor/libgit2/src/{unix → util/unix}/realpath.c +24 -8
- data/vendor/libgit2/src/{utf8.c → util/utf8.c} +1 -1
- data/vendor/libgit2/src/{utf8.h → util/utf8.h} +1 -1
- data/vendor/libgit2/src/{util.c → util/util.c} +24 -19
- data/vendor/libgit2/src/{util.h → util/util.h} +30 -81
- data/vendor/libgit2/src/{varint.h → util/varint.h} +1 -1
- data/vendor/libgit2/src/{vector.c → util/vector.c} +3 -3
- data/vendor/libgit2/src/{vector.h → util/vector.h} +4 -4
- data/vendor/libgit2/src/{wildmatch.h → util/wildmatch.h} +1 -1
- data/vendor/libgit2/src/{win32 → util/win32}/dir.h +1 -1
- data/vendor/libgit2/src/{win32 → util/win32}/error.c +1 -1
- data/vendor/libgit2/src/{win32 → util/win32}/error.h +1 -1
- data/vendor/libgit2/src/{win32 → util/win32}/map.c +1 -1
- data/vendor/libgit2/src/{win32 → util/win32}/path_w32.c +148 -17
- data/vendor/libgit2/src/{win32 → util/win32}/path_w32.h +3 -1
- data/vendor/libgit2/src/{win32 → util/win32}/posix.h +1 -2
- data/vendor/libgit2/src/{win32 → util/win32}/posix_w32.c +42 -35
- data/vendor/libgit2/src/util/win32/precompiled.c +1 -0
- data/vendor/libgit2/src/{win32 → util/win32}/precompiled.h +1 -1
- data/vendor/libgit2/src/util/win32/process.c +506 -0
- data/vendor/libgit2/src/{win32 → util/win32}/thread.h +1 -1
- data/vendor/libgit2/src/util/win32/utf-conv.c +144 -0
- data/vendor/libgit2/src/util/win32/utf-conv.h +127 -0
- data/vendor/libgit2/src/{win32 → util/win32}/w32_buffer.c +2 -3
- data/vendor/libgit2/src/{win32 → util/win32}/w32_buffer.h +3 -4
- data/vendor/libgit2/src/{win32 → util/win32}/w32_leakcheck.c +1 -1
- data/vendor/libgit2/src/{win32 → util/win32}/w32_leakcheck.h +1 -1
- data/vendor/libgit2/src/{win32 → util/win32}/w32_util.c +1 -1
- data/vendor/libgit2/src/{win32 → util/win32}/w32_util.h +1 -1
- data/vendor/libgit2/src/{zstream.c → util/zstream.c} +5 -5
- data/vendor/libgit2/src/{zstream.h → util/zstream.h} +5 -5
- metadata +431 -362
- data/vendor/libgit2/cmake/FindIconv.cmake +0 -45
- data/vendor/libgit2/deps/http-parser/CMakeLists.txt +0 -6
- data/vendor/libgit2/deps/http-parser/COPYING +0 -23
- data/vendor/libgit2/deps/http-parser/http_parser.c +0 -2182
- data/vendor/libgit2/deps/http-parser/http_parser.h +0 -305
- data/vendor/libgit2/deps/zlib/COPYING +0 -27
- data/vendor/libgit2/include/git2/sys/reflog.h +0 -21
- data/vendor/libgit2/src/alloc.h +0 -40
- data/vendor/libgit2/src/allocators/failalloc.c +0 -92
- data/vendor/libgit2/src/allocators/failalloc.h +0 -23
- data/vendor/libgit2/src/allocators/stdalloc.c +0 -150
- data/vendor/libgit2/src/allocators/win32_leakcheck.c +0 -118
- data/vendor/libgit2/src/buffer.h +0 -374
- data/vendor/libgit2/src/commit.h +0 -46
- data/vendor/libgit2/src/config_entries.c +0 -237
- data/vendor/libgit2/src/config_entries.h +0 -24
- data/vendor/libgit2/src/config_mem.c +0 -220
- data/vendor/libgit2/src/errors.c +0 -238
- data/vendor/libgit2/src/hash/sha1/common_crypto.c +0 -57
- data/vendor/libgit2/src/hash/sha1/generic.c +0 -300
- data/vendor/libgit2/src/hash/sha1/generic.h +0 -19
- data/vendor/libgit2/src/hash/sha1/mbedtls.c +0 -46
- data/vendor/libgit2/src/hash/sha1/openssl.c +0 -59
- data/vendor/libgit2/src/hash/sha1/win32.c +0 -333
- data/vendor/libgit2/src/hash/sha1/win32.h +0 -128
- data/vendor/libgit2/src/hash/sha1.h +0 -38
- data/vendor/libgit2/src/hash.c +0 -110
- data/vendor/libgit2/src/hash.h +0 -46
- data/vendor/libgit2/src/idxmap.c +0 -157
- data/vendor/libgit2/src/idxmap.h +0 -177
- data/vendor/libgit2/src/khash.h +0 -615
- data/vendor/libgit2/src/libgit2.h +0 -15
- data/vendor/libgit2/src/message.h +0 -17
- data/vendor/libgit2/src/net.c +0 -540
- data/vendor/libgit2/src/netops.c +0 -125
- data/vendor/libgit2/src/netops.h +0 -68
- data/vendor/libgit2/src/offmap.c +0 -101
- data/vendor/libgit2/src/offmap.h +0 -133
- data/vendor/libgit2/src/oid.h +0 -51
- data/vendor/libgit2/src/oidarray.c +0 -43
- data/vendor/libgit2/src/oidmap.c +0 -107
- data/vendor/libgit2/src/oidmap.h +0 -128
- data/vendor/libgit2/src/remote.h +0 -55
- data/vendor/libgit2/src/streams/socket.c +0 -239
- data/vendor/libgit2/src/strmap.c +0 -100
- data/vendor/libgit2/src/strmap.h +0 -131
- data/vendor/libgit2/src/sysdir.c +0 -347
- data/vendor/libgit2/src/threadstate.c +0 -84
- data/vendor/libgit2/src/threadstate.h +0 -24
- data/vendor/libgit2/src/win32/findfile.c +0 -230
- data/vendor/libgit2/src/win32/findfile.h +0 -19
- data/vendor/libgit2/src/win32/utf-conv.c +0 -146
- data/vendor/libgit2/src/win32/utf-conv.h +0 -60
- /data/vendor/libgit2/{src → deps}/xdiff/xemit.h +0 -0
- /data/vendor/libgit2/{src → deps}/xdiff/xprepare.h +0 -0
- /data/vendor/libgit2/{src → deps}/xdiff/xtypes.h +0 -0
- /data/vendor/libgit2/src/{win32 → cli/win32}/precompiled.c +0 -0
- /data/vendor/libgit2/src/{attr.h → libgit2/attr.h} +0 -0
- /data/vendor/libgit2/src/{blame_git.h → libgit2/blame_git.h} +0 -0
- /data/vendor/libgit2/src/{config_parse.h → libgit2/config_parse.h} +0 -0
- /data/vendor/libgit2/src/{delta.c → libgit2/delta.c} +0 -0
- /data/vendor/libgit2/src/{delta.h → libgit2/delta.h} +0 -0
- /data/vendor/libgit2/src/{diff_file.h → libgit2/diff_file.h} +0 -0
- /data/vendor/libgit2/src/{diff_parse.h → libgit2/diff_parse.h} +0 -0
- /data/vendor/libgit2/src/{diff_tform.h → libgit2/diff_tform.h} +0 -0
- /data/vendor/libgit2/src/{fetchhead.h → libgit2/fetchhead.h} +0 -0
- /data/vendor/libgit2/src/{hashsig.c → libgit2/hashsig.c} +0 -0
- /data/vendor/libgit2/src/{indexer.h → libgit2/indexer.h} +0 -0
- /data/vendor/libgit2/src/{mailmap.h → libgit2/mailmap.h} +0 -0
- /data/vendor/libgit2/src/{merge_driver.h → libgit2/merge_driver.h} +0 -0
- /data/vendor/libgit2/src/{notes.h → libgit2/notes.h} +0 -0
- /data/vendor/libgit2/src/{object_api.c → libgit2/object_api.c} +0 -0
- /data/vendor/libgit2/src/{patch_parse.h → libgit2/patch_parse.h} +0 -0
- /data/vendor/libgit2/src/{refdb.c → libgit2/refdb.c} +0 -0
- /data/vendor/libgit2/src/{refdb.h → libgit2/refdb.h} +0 -0
- /data/vendor/libgit2/src/{repo_template.h → libgit2/repo_template.h} +0 -0
- /data/vendor/libgit2/src/{status.h → libgit2/status.h} +0 -0
- /data/vendor/libgit2/src/{stream.h → libgit2/stream.h} +0 -0
- /data/vendor/libgit2/src/{streams → libgit2/streams}/mbedtls.h +0 -0
- /data/vendor/libgit2/src/{streams → libgit2/streams}/openssl_legacy.c +0 -0
- /data/vendor/libgit2/src/{streams → libgit2/streams}/openssl_legacy.h +0 -0
- /data/vendor/libgit2/src/{streams → libgit2/streams}/registry.c +0 -0
- /data/vendor/libgit2/src/{streams → libgit2/streams}/registry.h +0 -0
- /data/vendor/libgit2/src/{streams → libgit2/streams}/stransport.h +0 -0
- /data/vendor/libgit2/src/{streams → libgit2/streams}/tls.h +0 -0
- /data/vendor/libgit2/src/{transports → libgit2/transports}/credential_helpers.c +0 -0
- /data/vendor/libgit2/src/{userdiff.h → libgit2/userdiff.h} +0 -0
- /data/vendor/libgit2/src/{bitvec.h → util/bitvec.h} +0 -0
- /data/vendor/libgit2/src/{hash/sha1 → util/hash}/sha1dc/sha1.h +0 -0
- /data/vendor/libgit2/src/{hash/sha1 → util/hash}/sha1dc/ubc_check.c +0 -0
- /data/vendor/libgit2/src/{hash/sha1 → util/hash}/sha1dc/ubc_check.h +0 -0
- /data/vendor/libgit2/src/{pqueue.c → util/pqueue.c} +0 -0
- /data/vendor/libgit2/src/{strnlen.h → util/strnlen.h} +0 -0
- /data/vendor/libgit2/src/{unix → util/unix}/pthread.h +0 -0
- /data/vendor/libgit2/src/{varint.c → util/varint.c} +0 -0
- /data/vendor/libgit2/src/{wildmatch.c → util/wildmatch.c} +0 -0
- /data/vendor/libgit2/src/{win32 → util/win32}/dir.c +0 -0
- /data/vendor/libgit2/src/{win32 → util/win32}/mingw-compat.h +0 -0
- /data/vendor/libgit2/src/{win32 → util/win32}/msvc-compat.h +0 -0
- /data/vendor/libgit2/src/{win32 → util/win32}/reparse.h +0 -0
- /data/vendor/libgit2/src/{win32 → util/win32}/thread.c +0 -0
- /data/vendor/libgit2/src/{win32 → util/win32}/version.h +0 -0
- /data/vendor/libgit2/src/{win32 → util/win32}/w32_common.h +0 -0
- /data/vendor/libgit2/src/{win32 → util/win32}/win32-compat.h +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
/* zlib.h -- interface of the 'zlib' general purpose compression library
|
2
|
-
version 1.
|
2
|
+
version 1.3.1, January 22nd, 2024
|
3
3
|
|
4
|
-
Copyright (C) 1995-
|
4
|
+
Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler
|
5
5
|
|
6
6
|
This software is provided 'as-is', without any express or implied
|
7
7
|
warranty. In no event will the authors be held liable for any damages
|
@@ -37,11 +37,11 @@
|
|
37
37
|
extern "C" {
|
38
38
|
#endif
|
39
39
|
|
40
|
-
#define ZLIB_VERSION "1.
|
41
|
-
#define ZLIB_VERNUM
|
40
|
+
#define ZLIB_VERSION "1.3.1"
|
41
|
+
#define ZLIB_VERNUM 0x1310
|
42
42
|
#define ZLIB_VER_MAJOR 1
|
43
|
-
#define ZLIB_VER_MINOR
|
44
|
-
#define ZLIB_VER_REVISION
|
43
|
+
#define ZLIB_VER_MINOR 3
|
44
|
+
#define ZLIB_VER_REVISION 1
|
45
45
|
#define ZLIB_VER_SUBREVISION 0
|
46
46
|
|
47
47
|
/*
|
@@ -78,8 +78,8 @@ extern "C" {
|
|
78
78
|
even in the case of corrupted input.
|
79
79
|
*/
|
80
80
|
|
81
|
-
typedef voidpf (*alloc_func)
|
82
|
-
typedef void (*free_func)
|
81
|
+
typedef voidpf (*alloc_func)(voidpf opaque, uInt items, uInt size);
|
82
|
+
typedef void (*free_func)(voidpf opaque, voidpf address);
|
83
83
|
|
84
84
|
struct internal_state;
|
85
85
|
|
@@ -217,7 +217,7 @@ typedef gz_header FAR *gz_headerp;
|
|
217
217
|
|
218
218
|
/* basic functions */
|
219
219
|
|
220
|
-
ZEXTERN const char * ZEXPORT zlibVersion
|
220
|
+
ZEXTERN const char * ZEXPORT zlibVersion(void);
|
221
221
|
/* The application can compare zlibVersion and ZLIB_VERSION for consistency.
|
222
222
|
If the first character differs, the library code actually used is not
|
223
223
|
compatible with the zlib.h header file used by the application. This check
|
@@ -225,12 +225,12 @@ ZEXTERN const char * ZEXPORT zlibVersion OF((void));
|
|
225
225
|
*/
|
226
226
|
|
227
227
|
/*
|
228
|
-
ZEXTERN int ZEXPORT deflateInit
|
228
|
+
ZEXTERN int ZEXPORT deflateInit(z_streamp strm, int level);
|
229
229
|
|
230
230
|
Initializes the internal stream state for compression. The fields
|
231
231
|
zalloc, zfree and opaque must be initialized before by the caller. If
|
232
232
|
zalloc and zfree are set to Z_NULL, deflateInit updates them to use default
|
233
|
-
allocation functions.
|
233
|
+
allocation functions. total_in, total_out, adler, and msg are initialized.
|
234
234
|
|
235
235
|
The compression level must be Z_DEFAULT_COMPRESSION, or between 0 and 9:
|
236
236
|
1 gives best speed, 9 gives best compression, 0 gives no compression at all
|
@@ -247,7 +247,7 @@ ZEXTERN int ZEXPORT deflateInit OF((z_streamp strm, int level));
|
|
247
247
|
*/
|
248
248
|
|
249
249
|
|
250
|
-
ZEXTERN int ZEXPORT deflate
|
250
|
+
ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush);
|
251
251
|
/*
|
252
252
|
deflate compresses as much data as possible, and stops when the input
|
253
253
|
buffer becomes empty or the output buffer becomes full. It may introduce
|
@@ -276,7 +276,7 @@ ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
|
|
276
276
|
== 0), or after each call of deflate(). If deflate returns Z_OK and with
|
277
277
|
zero avail_out, it must be called again after making room in the output
|
278
278
|
buffer because there might be more output pending. See deflatePending(),
|
279
|
-
which can be used if desired to determine whether or not there is more
|
279
|
+
which can be used if desired to determine whether or not there is more output
|
280
280
|
in that case.
|
281
281
|
|
282
282
|
Normally the parameter flush is set to Z_NO_FLUSH, which allows deflate to
|
@@ -320,8 +320,8 @@ ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
|
|
320
320
|
with the same value of the flush parameter and more output space (updated
|
321
321
|
avail_out), until the flush is complete (deflate returns with non-zero
|
322
322
|
avail_out). In the case of a Z_FULL_FLUSH or Z_SYNC_FLUSH, make sure that
|
323
|
-
avail_out is greater than six
|
324
|
-
avail_out == 0
|
323
|
+
avail_out is greater than six when the flush marker begins, in order to avoid
|
324
|
+
repeated flush markers upon calling deflate() again when avail_out == 0.
|
325
325
|
|
326
326
|
If the parameter flush is set to Z_FINISH, pending input is processed,
|
327
327
|
pending output is flushed and deflate returns with Z_STREAM_END if there was
|
@@ -360,7 +360,7 @@ ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
|
|
360
360
|
*/
|
361
361
|
|
362
362
|
|
363
|
-
ZEXTERN int ZEXPORT deflateEnd
|
363
|
+
ZEXTERN int ZEXPORT deflateEnd(z_streamp strm);
|
364
364
|
/*
|
365
365
|
All dynamically allocated data structures for this stream are freed.
|
366
366
|
This function discards any unprocessed input and does not flush any pending
|
@@ -375,7 +375,7 @@ ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm));
|
|
375
375
|
|
376
376
|
|
377
377
|
/*
|
378
|
-
ZEXTERN int ZEXPORT inflateInit
|
378
|
+
ZEXTERN int ZEXPORT inflateInit(z_streamp strm);
|
379
379
|
|
380
380
|
Initializes the internal stream state for decompression. The fields
|
381
381
|
next_in, avail_in, zalloc, zfree and opaque must be initialized before by
|
@@ -383,7 +383,8 @@ ZEXTERN int ZEXPORT inflateInit OF((z_streamp strm));
|
|
383
383
|
read or consumed. The allocation of a sliding window will be deferred to
|
384
384
|
the first call of inflate (if the decompression does not complete on the
|
385
385
|
first call). If zalloc and zfree are set to Z_NULL, inflateInit updates
|
386
|
-
them to use default allocation functions.
|
386
|
+
them to use default allocation functions. total_in, total_out, adler, and
|
387
|
+
msg are initialized.
|
387
388
|
|
388
389
|
inflateInit returns Z_OK if success, Z_MEM_ERROR if there was not enough
|
389
390
|
memory, Z_VERSION_ERROR if the zlib library version is incompatible with the
|
@@ -397,7 +398,7 @@ ZEXTERN int ZEXPORT inflateInit OF((z_streamp strm));
|
|
397
398
|
*/
|
398
399
|
|
399
400
|
|
400
|
-
ZEXTERN int ZEXPORT inflate
|
401
|
+
ZEXTERN int ZEXPORT inflate(z_streamp strm, int flush);
|
401
402
|
/*
|
402
403
|
inflate decompresses as much data as possible, and stops when the input
|
403
404
|
buffer becomes empty or the output buffer becomes full. It may introduce
|
@@ -517,7 +518,7 @@ ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush));
|
|
517
518
|
*/
|
518
519
|
|
519
520
|
|
520
|
-
ZEXTERN int ZEXPORT inflateEnd
|
521
|
+
ZEXTERN int ZEXPORT inflateEnd(z_streamp strm);
|
521
522
|
/*
|
522
523
|
All dynamically allocated data structures for this stream are freed.
|
523
524
|
This function discards any unprocessed input and does not flush any pending
|
@@ -535,16 +536,15 @@ ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm));
|
|
535
536
|
*/
|
536
537
|
|
537
538
|
/*
|
538
|
-
ZEXTERN int ZEXPORT deflateInit2
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
539
|
+
ZEXTERN int ZEXPORT deflateInit2(z_streamp strm,
|
540
|
+
int level,
|
541
|
+
int method,
|
542
|
+
int windowBits,
|
543
|
+
int memLevel,
|
544
|
+
int strategy);
|
544
545
|
|
545
546
|
This is another version of deflateInit with more compression options. The
|
546
|
-
fields
|
547
|
-
caller.
|
547
|
+
fields zalloc, zfree and opaque must be initialized before by the caller.
|
548
548
|
|
549
549
|
The method parameter is the compression method. It must be Z_DEFLATED in
|
550
550
|
this version of the library.
|
@@ -608,9 +608,9 @@ ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm,
|
|
608
608
|
compression: this will be done by deflate().
|
609
609
|
*/
|
610
610
|
|
611
|
-
ZEXTERN int ZEXPORT deflateSetDictionary
|
612
|
-
|
613
|
-
|
611
|
+
ZEXTERN int ZEXPORT deflateSetDictionary(z_streamp strm,
|
612
|
+
const Bytef *dictionary,
|
613
|
+
uInt dictLength);
|
614
614
|
/*
|
615
615
|
Initializes the compression dictionary from the given byte sequence
|
616
616
|
without producing any compressed output. When using the zlib format, this
|
@@ -652,16 +652,16 @@ ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm,
|
|
652
652
|
not perform any compression: this will be done by deflate().
|
653
653
|
*/
|
654
654
|
|
655
|
-
ZEXTERN int ZEXPORT deflateGetDictionary
|
656
|
-
|
657
|
-
|
655
|
+
ZEXTERN int ZEXPORT deflateGetDictionary(z_streamp strm,
|
656
|
+
Bytef *dictionary,
|
657
|
+
uInt *dictLength);
|
658
658
|
/*
|
659
659
|
Returns the sliding dictionary being maintained by deflate. dictLength is
|
660
660
|
set to the number of bytes in the dictionary, and that many bytes are copied
|
661
661
|
to dictionary. dictionary must have enough space, where 32768 bytes is
|
662
662
|
always enough. If deflateGetDictionary() is called with dictionary equal to
|
663
663
|
Z_NULL, then only the dictionary length is returned, and nothing is copied.
|
664
|
-
|
664
|
+
Similarly, if dictLength is Z_NULL, then it is not set.
|
665
665
|
|
666
666
|
deflateGetDictionary() may return a length less than the window size, even
|
667
667
|
when more than the window size in input has been provided. It may return up
|
@@ -674,8 +674,8 @@ ZEXTERN int ZEXPORT deflateGetDictionary OF((z_streamp strm,
|
|
674
674
|
stream state is inconsistent.
|
675
675
|
*/
|
676
676
|
|
677
|
-
ZEXTERN int ZEXPORT deflateCopy
|
678
|
-
|
677
|
+
ZEXTERN int ZEXPORT deflateCopy(z_streamp dest,
|
678
|
+
z_streamp source);
|
679
679
|
/*
|
680
680
|
Sets the destination stream as a complete copy of the source stream.
|
681
681
|
|
@@ -692,31 +692,32 @@ ZEXTERN int ZEXPORT deflateCopy OF((z_streamp dest,
|
|
692
692
|
destination.
|
693
693
|
*/
|
694
694
|
|
695
|
-
ZEXTERN int ZEXPORT deflateReset
|
695
|
+
ZEXTERN int ZEXPORT deflateReset(z_streamp strm);
|
696
696
|
/*
|
697
697
|
This function is equivalent to deflateEnd followed by deflateInit, but
|
698
698
|
does not free and reallocate the internal compression state. The stream
|
699
699
|
will leave the compression level and any other attributes that may have been
|
700
|
-
set unchanged.
|
700
|
+
set unchanged. total_in, total_out, adler, and msg are initialized.
|
701
701
|
|
702
702
|
deflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source
|
703
703
|
stream state was inconsistent (such as zalloc or state being Z_NULL).
|
704
704
|
*/
|
705
705
|
|
706
|
-
ZEXTERN int ZEXPORT deflateParams
|
707
|
-
|
708
|
-
|
706
|
+
ZEXTERN int ZEXPORT deflateParams(z_streamp strm,
|
707
|
+
int level,
|
708
|
+
int strategy);
|
709
709
|
/*
|
710
710
|
Dynamically update the compression level and compression strategy. The
|
711
711
|
interpretation of level and strategy is as in deflateInit2(). This can be
|
712
712
|
used to switch between compression and straight copy of the input data, or
|
713
713
|
to switch to a different kind of input data requiring a different strategy.
|
714
714
|
If the compression approach (which is a function of the level) or the
|
715
|
-
strategy is changed, and if
|
716
|
-
|
717
|
-
level and strategy using deflate(strm, Z_BLOCK).
|
718
|
-
for the compression levels 0, 1..3, and 4..9
|
719
|
-
and strategy will take effect at the next call
|
715
|
+
strategy is changed, and if there have been any deflate() calls since the
|
716
|
+
state was initialized or reset, then the input available so far is
|
717
|
+
compressed with the old level and strategy using deflate(strm, Z_BLOCK).
|
718
|
+
There are three approaches for the compression levels 0, 1..3, and 4..9
|
719
|
+
respectively. The new level and strategy will take effect at the next call
|
720
|
+
of deflate().
|
720
721
|
|
721
722
|
If a deflate(strm, Z_BLOCK) is performed by deflateParams(), and it does
|
722
723
|
not have enough output space to complete, then the parameter change will not
|
@@ -729,7 +730,7 @@ ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm,
|
|
729
730
|
Then no more input data should be provided before the deflateParams() call.
|
730
731
|
If this is done, the old level and strategy will be applied to the data
|
731
732
|
compressed before deflateParams(), and the new level and strategy will be
|
732
|
-
applied to the
|
733
|
+
applied to the data compressed after deflateParams().
|
733
734
|
|
734
735
|
deflateParams returns Z_OK on success, Z_STREAM_ERROR if the source stream
|
735
736
|
state was inconsistent or if a parameter was invalid, or Z_BUF_ERROR if
|
@@ -740,11 +741,11 @@ ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm,
|
|
740
741
|
retried with more output space.
|
741
742
|
*/
|
742
743
|
|
743
|
-
ZEXTERN int ZEXPORT deflateTune
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
744
|
+
ZEXTERN int ZEXPORT deflateTune(z_streamp strm,
|
745
|
+
int good_length,
|
746
|
+
int max_lazy,
|
747
|
+
int nice_length,
|
748
|
+
int max_chain);
|
748
749
|
/*
|
749
750
|
Fine tune deflate's internal compression parameters. This should only be
|
750
751
|
used by someone who understands the algorithm used by zlib's deflate for
|
@@ -757,8 +758,8 @@ ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm,
|
|
757
758
|
returns Z_OK on success, or Z_STREAM_ERROR for an invalid deflate stream.
|
758
759
|
*/
|
759
760
|
|
760
|
-
ZEXTERN uLong ZEXPORT deflateBound
|
761
|
-
|
761
|
+
ZEXTERN uLong ZEXPORT deflateBound(z_streamp strm,
|
762
|
+
uLong sourceLen);
|
762
763
|
/*
|
763
764
|
deflateBound() returns an upper bound on the compressed size after
|
764
765
|
deflation of sourceLen bytes. It must be called after deflateInit() or
|
@@ -772,9 +773,9 @@ ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm,
|
|
772
773
|
than Z_FINISH or Z_NO_FLUSH are used.
|
773
774
|
*/
|
774
775
|
|
775
|
-
ZEXTERN int ZEXPORT deflatePending
|
776
|
-
|
777
|
-
|
776
|
+
ZEXTERN int ZEXPORT deflatePending(z_streamp strm,
|
777
|
+
unsigned *pending,
|
778
|
+
int *bits);
|
778
779
|
/*
|
779
780
|
deflatePending() returns the number of bytes and bits of output that have
|
780
781
|
been generated, but not yet provided in the available output. The bytes not
|
@@ -787,9 +788,9 @@ ZEXTERN int ZEXPORT deflatePending OF((z_streamp strm,
|
|
787
788
|
stream state was inconsistent.
|
788
789
|
*/
|
789
790
|
|
790
|
-
ZEXTERN int ZEXPORT deflatePrime
|
791
|
-
|
792
|
-
|
791
|
+
ZEXTERN int ZEXPORT deflatePrime(z_streamp strm,
|
792
|
+
int bits,
|
793
|
+
int value);
|
793
794
|
/*
|
794
795
|
deflatePrime() inserts bits in the deflate output stream. The intent
|
795
796
|
is that this function is used to start off the deflate output with the bits
|
@@ -804,8 +805,8 @@ ZEXTERN int ZEXPORT deflatePrime OF((z_streamp strm,
|
|
804
805
|
source stream state was inconsistent.
|
805
806
|
*/
|
806
807
|
|
807
|
-
ZEXTERN int ZEXPORT deflateSetHeader
|
808
|
-
|
808
|
+
ZEXTERN int ZEXPORT deflateSetHeader(z_streamp strm,
|
809
|
+
gz_headerp head);
|
809
810
|
/*
|
810
811
|
deflateSetHeader() provides gzip header information for when a gzip
|
811
812
|
stream is requested by deflateInit2(). deflateSetHeader() may be called
|
@@ -821,16 +822,17 @@ ZEXTERN int ZEXPORT deflateSetHeader OF((z_streamp strm,
|
|
821
822
|
gzip file" and give up.
|
822
823
|
|
823
824
|
If deflateSetHeader is not used, the default gzip header has text false,
|
824
|
-
the time set to zero, and os set to
|
825
|
-
fields. The gzip header is returned to the default
|
825
|
+
the time set to zero, and os set to the current operating system, with no
|
826
|
+
extra, name, or comment fields. The gzip header is returned to the default
|
827
|
+
state by deflateReset().
|
826
828
|
|
827
829
|
deflateSetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source
|
828
830
|
stream state was inconsistent.
|
829
831
|
*/
|
830
832
|
|
831
833
|
/*
|
832
|
-
ZEXTERN int ZEXPORT inflateInit2
|
833
|
-
|
834
|
+
ZEXTERN int ZEXPORT inflateInit2(z_streamp strm,
|
835
|
+
int windowBits);
|
834
836
|
|
835
837
|
This is another version of inflateInit with an extra parameter. The
|
836
838
|
fields next_in, avail_in, zalloc, zfree and opaque must be initialized
|
@@ -865,9 +867,11 @@ ZEXTERN int ZEXPORT inflateInit2 OF((z_streamp strm,
|
|
865
867
|
detection, or add 16 to decode only the gzip format (the zlib format will
|
866
868
|
return a Z_DATA_ERROR). If a gzip stream is being decoded, strm->adler is a
|
867
869
|
CRC-32 instead of an Adler-32. Unlike the gunzip utility and gzread() (see
|
868
|
-
below), inflate() will not automatically decode concatenated gzip
|
869
|
-
inflate() will return Z_STREAM_END at the end of the gzip
|
870
|
-
would need to be reset to continue decoding a subsequent gzip
|
870
|
+
below), inflate() will *not* automatically decode concatenated gzip members.
|
871
|
+
inflate() will return Z_STREAM_END at the end of the gzip member. The state
|
872
|
+
would need to be reset to continue decoding a subsequent gzip member. This
|
873
|
+
*must* be done if there is more data after a gzip member, in order for the
|
874
|
+
decompression to be compliant with the gzip standard (RFC 1952).
|
871
875
|
|
872
876
|
inflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was not enough
|
873
877
|
memory, Z_VERSION_ERROR if the zlib library version is incompatible with the
|
@@ -881,9 +885,9 @@ ZEXTERN int ZEXPORT inflateInit2 OF((z_streamp strm,
|
|
881
885
|
deferred until inflate() is called.
|
882
886
|
*/
|
883
887
|
|
884
|
-
ZEXTERN int ZEXPORT inflateSetDictionary
|
885
|
-
|
886
|
-
|
888
|
+
ZEXTERN int ZEXPORT inflateSetDictionary(z_streamp strm,
|
889
|
+
const Bytef *dictionary,
|
890
|
+
uInt dictLength);
|
887
891
|
/*
|
888
892
|
Initializes the decompression dictionary from the given uncompressed byte
|
889
893
|
sequence. This function must be called immediately after a call of inflate,
|
@@ -904,22 +908,22 @@ ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm,
|
|
904
908
|
inflate().
|
905
909
|
*/
|
906
910
|
|
907
|
-
ZEXTERN int ZEXPORT inflateGetDictionary
|
908
|
-
|
909
|
-
|
911
|
+
ZEXTERN int ZEXPORT inflateGetDictionary(z_streamp strm,
|
912
|
+
Bytef *dictionary,
|
913
|
+
uInt *dictLength);
|
910
914
|
/*
|
911
915
|
Returns the sliding dictionary being maintained by inflate. dictLength is
|
912
916
|
set to the number of bytes in the dictionary, and that many bytes are copied
|
913
917
|
to dictionary. dictionary must have enough space, where 32768 bytes is
|
914
918
|
always enough. If inflateGetDictionary() is called with dictionary equal to
|
915
919
|
Z_NULL, then only the dictionary length is returned, and nothing is copied.
|
916
|
-
|
920
|
+
Similarly, if dictLength is Z_NULL, then it is not set.
|
917
921
|
|
918
922
|
inflateGetDictionary returns Z_OK on success, or Z_STREAM_ERROR if the
|
919
923
|
stream state is inconsistent.
|
920
924
|
*/
|
921
925
|
|
922
|
-
ZEXTERN int ZEXPORT inflateSync
|
926
|
+
ZEXTERN int ZEXPORT inflateSync(z_streamp strm);
|
923
927
|
/*
|
924
928
|
Skips invalid compressed data until a possible full flush point (see above
|
925
929
|
for the description of deflate with Z_FULL_FLUSH) can be found, or until all
|
@@ -932,14 +936,14 @@ ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm));
|
|
932
936
|
inflateSync returns Z_OK if a possible full flush point has been found,
|
933
937
|
Z_BUF_ERROR if no more input was provided, Z_DATA_ERROR if no flush point
|
934
938
|
has been found, or Z_STREAM_ERROR if the stream structure was inconsistent.
|
935
|
-
In the success case, the application may save the current
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
+
In the success case, the application may save the current value of total_in
|
940
|
+
which indicates where valid compressed data was found. In the error case,
|
941
|
+
the application may repeatedly call inflateSync, providing more input each
|
942
|
+
time, until success or end of the input data.
|
939
943
|
*/
|
940
944
|
|
941
|
-
ZEXTERN int ZEXPORT inflateCopy
|
942
|
-
|
945
|
+
ZEXTERN int ZEXPORT inflateCopy(z_streamp dest,
|
946
|
+
z_streamp source);
|
943
947
|
/*
|
944
948
|
Sets the destination stream as a complete copy of the source stream.
|
945
949
|
|
@@ -954,18 +958,19 @@ ZEXTERN int ZEXPORT inflateCopy OF((z_streamp dest,
|
|
954
958
|
destination.
|
955
959
|
*/
|
956
960
|
|
957
|
-
ZEXTERN int ZEXPORT inflateReset
|
961
|
+
ZEXTERN int ZEXPORT inflateReset(z_streamp strm);
|
958
962
|
/*
|
959
963
|
This function is equivalent to inflateEnd followed by inflateInit,
|
960
964
|
but does not free and reallocate the internal decompression state. The
|
961
965
|
stream will keep attributes that may have been set by inflateInit2.
|
966
|
+
total_in, total_out, adler, and msg are initialized.
|
962
967
|
|
963
968
|
inflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source
|
964
969
|
stream state was inconsistent (such as zalloc or state being Z_NULL).
|
965
970
|
*/
|
966
971
|
|
967
|
-
ZEXTERN int ZEXPORT inflateReset2
|
968
|
-
|
972
|
+
ZEXTERN int ZEXPORT inflateReset2(z_streamp strm,
|
973
|
+
int windowBits);
|
969
974
|
/*
|
970
975
|
This function is the same as inflateReset, but it also permits changing
|
971
976
|
the wrap and window size requests. The windowBits parameter is interpreted
|
@@ -978,9 +983,9 @@ ZEXTERN int ZEXPORT inflateReset2 OF((z_streamp strm,
|
|
978
983
|
the windowBits parameter is invalid.
|
979
984
|
*/
|
980
985
|
|
981
|
-
ZEXTERN int ZEXPORT inflatePrime
|
982
|
-
|
983
|
-
|
986
|
+
ZEXTERN int ZEXPORT inflatePrime(z_streamp strm,
|
987
|
+
int bits,
|
988
|
+
int value);
|
984
989
|
/*
|
985
990
|
This function inserts bits in the inflate input stream. The intent is
|
986
991
|
that this function is used to start inflating at a bit position in the
|
@@ -999,7 +1004,7 @@ ZEXTERN int ZEXPORT inflatePrime OF((z_streamp strm,
|
|
999
1004
|
stream state was inconsistent.
|
1000
1005
|
*/
|
1001
1006
|
|
1002
|
-
ZEXTERN long ZEXPORT inflateMark
|
1007
|
+
ZEXTERN long ZEXPORT inflateMark(z_streamp strm);
|
1003
1008
|
/*
|
1004
1009
|
This function returns two values, one in the lower 16 bits of the return
|
1005
1010
|
value, and the other in the remaining upper bits, obtained by shifting the
|
@@ -1027,8 +1032,8 @@ ZEXTERN long ZEXPORT inflateMark OF((z_streamp strm));
|
|
1027
1032
|
source stream state was inconsistent.
|
1028
1033
|
*/
|
1029
1034
|
|
1030
|
-
ZEXTERN int ZEXPORT inflateGetHeader
|
1031
|
-
|
1035
|
+
ZEXTERN int ZEXPORT inflateGetHeader(z_streamp strm,
|
1036
|
+
gz_headerp head);
|
1032
1037
|
/*
|
1033
1038
|
inflateGetHeader() requests that gzip header information be stored in the
|
1034
1039
|
provided gz_header structure. inflateGetHeader() may be called after
|
@@ -1068,8 +1073,8 @@ ZEXTERN int ZEXPORT inflateGetHeader OF((z_streamp strm,
|
|
1068
1073
|
*/
|
1069
1074
|
|
1070
1075
|
/*
|
1071
|
-
ZEXTERN int ZEXPORT inflateBackInit
|
1072
|
-
|
1076
|
+
ZEXTERN int ZEXPORT inflateBackInit(z_streamp strm, int windowBits,
|
1077
|
+
unsigned char FAR *window);
|
1073
1078
|
|
1074
1079
|
Initialize the internal stream state for decompression using inflateBack()
|
1075
1080
|
calls. The fields zalloc, zfree and opaque in strm must be initialized
|
@@ -1089,13 +1094,13 @@ ZEXTERN int ZEXPORT inflateBackInit OF((z_streamp strm, int windowBits,
|
|
1089
1094
|
the version of the header file.
|
1090
1095
|
*/
|
1091
1096
|
|
1092
|
-
typedef unsigned (*in_func)
|
1093
|
-
|
1094
|
-
typedef int (*out_func)
|
1097
|
+
typedef unsigned (*in_func)(void FAR *,
|
1098
|
+
z_const unsigned char FAR * FAR *);
|
1099
|
+
typedef int (*out_func)(void FAR *, unsigned char FAR *, unsigned);
|
1095
1100
|
|
1096
|
-
ZEXTERN int ZEXPORT inflateBack
|
1097
|
-
|
1098
|
-
|
1101
|
+
ZEXTERN int ZEXPORT inflateBack(z_streamp strm,
|
1102
|
+
in_func in, void FAR *in_desc,
|
1103
|
+
out_func out, void FAR *out_desc);
|
1099
1104
|
/*
|
1100
1105
|
inflateBack() does a raw inflate with a single call using a call-back
|
1101
1106
|
interface for input and output. This is potentially more efficient than
|
@@ -1163,7 +1168,7 @@ ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm,
|
|
1163
1168
|
cannot return Z_OK.
|
1164
1169
|
*/
|
1165
1170
|
|
1166
|
-
ZEXTERN int ZEXPORT inflateBackEnd
|
1171
|
+
ZEXTERN int ZEXPORT inflateBackEnd(z_streamp strm);
|
1167
1172
|
/*
|
1168
1173
|
All memory allocated by inflateBackInit() is freed.
|
1169
1174
|
|
@@ -1171,7 +1176,7 @@ ZEXTERN int ZEXPORT inflateBackEnd OF((z_streamp strm));
|
|
1171
1176
|
state was inconsistent.
|
1172
1177
|
*/
|
1173
1178
|
|
1174
|
-
ZEXTERN uLong ZEXPORT zlibCompileFlags
|
1179
|
+
ZEXTERN uLong ZEXPORT zlibCompileFlags(void);
|
1175
1180
|
/* Return flags indicating compile-time options.
|
1176
1181
|
|
1177
1182
|
Type sizes, two bits each, 00 = 16 bits, 01 = 32, 10 = 64, 11 = other:
|
@@ -1224,8 +1229,8 @@ ZEXTERN uLong ZEXPORT zlibCompileFlags OF((void));
|
|
1224
1229
|
you need special options.
|
1225
1230
|
*/
|
1226
1231
|
|
1227
|
-
ZEXTERN int ZEXPORT compress
|
1228
|
-
|
1232
|
+
ZEXTERN int ZEXPORT compress(Bytef *dest, uLongf *destLen,
|
1233
|
+
const Bytef *source, uLong sourceLen);
|
1229
1234
|
/*
|
1230
1235
|
Compresses the source buffer into the destination buffer. sourceLen is
|
1231
1236
|
the byte length of the source buffer. Upon entry, destLen is the total size
|
@@ -1239,9 +1244,9 @@ ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
|
|
1239
1244
|
buffer.
|
1240
1245
|
*/
|
1241
1246
|
|
1242
|
-
ZEXTERN int ZEXPORT compress2
|
1243
|
-
|
1244
|
-
|
1247
|
+
ZEXTERN int ZEXPORT compress2(Bytef *dest, uLongf *destLen,
|
1248
|
+
const Bytef *source, uLong sourceLen,
|
1249
|
+
int level);
|
1245
1250
|
/*
|
1246
1251
|
Compresses the source buffer into the destination buffer. The level
|
1247
1252
|
parameter has the same meaning as in deflateInit. sourceLen is the byte
|
@@ -1255,15 +1260,15 @@ ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
|
|
1255
1260
|
Z_STREAM_ERROR if the level parameter is invalid.
|
1256
1261
|
*/
|
1257
1262
|
|
1258
|
-
ZEXTERN uLong ZEXPORT compressBound
|
1263
|
+
ZEXTERN uLong ZEXPORT compressBound(uLong sourceLen);
|
1259
1264
|
/*
|
1260
1265
|
compressBound() returns an upper bound on the compressed size after
|
1261
1266
|
compress() or compress2() on sourceLen bytes. It would be used before a
|
1262
1267
|
compress() or compress2() call to allocate the destination buffer.
|
1263
1268
|
*/
|
1264
1269
|
|
1265
|
-
ZEXTERN int ZEXPORT uncompress
|
1266
|
-
|
1270
|
+
ZEXTERN int ZEXPORT uncompress(Bytef *dest, uLongf *destLen,
|
1271
|
+
const Bytef *source, uLong sourceLen);
|
1267
1272
|
/*
|
1268
1273
|
Decompresses the source buffer into the destination buffer. sourceLen is
|
1269
1274
|
the byte length of the source buffer. Upon entry, destLen is the total size
|
@@ -1280,8 +1285,8 @@ ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
|
|
1280
1285
|
buffer with the uncompressed data up to that point.
|
1281
1286
|
*/
|
1282
1287
|
|
1283
|
-
ZEXTERN int ZEXPORT uncompress2
|
1284
|
-
|
1288
|
+
ZEXTERN int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen,
|
1289
|
+
const Bytef *source, uLong *sourceLen);
|
1285
1290
|
/*
|
1286
1291
|
Same as uncompress, except that sourceLen is a pointer, where the
|
1287
1292
|
length of the source is *sourceLen. On return, *sourceLen is the number of
|
@@ -1300,16 +1305,16 @@ ZEXTERN int ZEXPORT uncompress2 OF((Bytef *dest, uLongf *destLen,
|
|
1300
1305
|
typedef struct gzFile_s *gzFile; /* semi-opaque gzip file descriptor */
|
1301
1306
|
|
1302
1307
|
/*
|
1303
|
-
ZEXTERN gzFile ZEXPORT gzopen
|
1308
|
+
ZEXTERN gzFile ZEXPORT gzopen(const char *path, const char *mode);
|
1304
1309
|
|
1305
|
-
|
1306
|
-
in fopen ("rb" or "wb")
|
1307
|
-
|
1308
|
-
|
1309
|
-
for
|
1310
|
-
|
1311
|
-
|
1312
|
-
the gzip format.
|
1310
|
+
Open the gzip (.gz) file at path for reading and decompressing, or
|
1311
|
+
compressing and writing. The mode parameter is as in fopen ("rb" or "wb")
|
1312
|
+
but can also include a compression level ("wb9") or a strategy: 'f' for
|
1313
|
+
filtered data as in "wb6f", 'h' for Huffman-only compression as in "wb1h",
|
1314
|
+
'R' for run-length encoding as in "wb1R", or 'F' for fixed code compression
|
1315
|
+
as in "wb9F". (See the description of deflateInit2 for more information
|
1316
|
+
about the strategy parameter.) 'T' will request transparent writing or
|
1317
|
+
appending with no compression and not using the gzip format.
|
1313
1318
|
|
1314
1319
|
"a" can be used instead of "w" to request that the gzip stream that will
|
1315
1320
|
be written be appended to the file. "+" will result in an error, since
|
@@ -1337,11 +1342,11 @@ ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode));
|
|
1337
1342
|
file could not be opened.
|
1338
1343
|
*/
|
1339
1344
|
|
1340
|
-
ZEXTERN gzFile ZEXPORT gzdopen
|
1345
|
+
ZEXTERN gzFile ZEXPORT gzdopen(int fd, const char *mode);
|
1341
1346
|
/*
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1347
|
+
Associate a gzFile with the file descriptor fd. File descriptors are
|
1348
|
+
obtained from calls like open, dup, creat, pipe or fileno (if the file has
|
1349
|
+
been previously opened with fopen). The mode parameter is as in gzopen.
|
1345
1350
|
|
1346
1351
|
The next call of gzclose on the returned gzFile will also close the file
|
1347
1352
|
descriptor fd, just like fclose(fdopen(fd, mode)) closes the file descriptor
|
@@ -1360,15 +1365,15 @@ ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode));
|
|
1360
1365
|
will not detect if fd is invalid (unless fd is -1).
|
1361
1366
|
*/
|
1362
1367
|
|
1363
|
-
ZEXTERN int ZEXPORT gzbuffer
|
1368
|
+
ZEXTERN int ZEXPORT gzbuffer(gzFile file, unsigned size);
|
1364
1369
|
/*
|
1365
|
-
Set the internal buffer size used by this library's functions
|
1366
|
-
default buffer size is 8192 bytes. This function must be called
|
1367
|
-
gzopen() or gzdopen(), and before any other calls that read or write
|
1368
|
-
file. The buffer memory allocation is always deferred to the first read
|
1369
|
-
write. Three times that size in buffer space is allocated. A larger
|
1370
|
-
size of, for example, 64K or 128K bytes will noticeably increase the
|
1371
|
-
of decompression (reading).
|
1370
|
+
Set the internal buffer size used by this library's functions for file to
|
1371
|
+
size. The default buffer size is 8192 bytes. This function must be called
|
1372
|
+
after gzopen() or gzdopen(), and before any other calls that read or write
|
1373
|
+
the file. The buffer memory allocation is always deferred to the first read
|
1374
|
+
or write. Three times that size in buffer space is allocated. A larger
|
1375
|
+
buffer size of, for example, 64K or 128K bytes will noticeably increase the
|
1376
|
+
speed of decompression (reading).
|
1372
1377
|
|
1373
1378
|
The new buffer size also affects the maximum length for gzprintf().
|
1374
1379
|
|
@@ -1376,20 +1381,20 @@ ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size));
|
|
1376
1381
|
too late.
|
1377
1382
|
*/
|
1378
1383
|
|
1379
|
-
ZEXTERN int ZEXPORT gzsetparams
|
1384
|
+
ZEXTERN int ZEXPORT gzsetparams(gzFile file, int level, int strategy);
|
1380
1385
|
/*
|
1381
|
-
Dynamically update the compression level
|
1382
|
-
of deflateInit2 for the meaning of these parameters.
|
1383
|
-
data is flushed before the parameter
|
1386
|
+
Dynamically update the compression level and strategy for file. See the
|
1387
|
+
description of deflateInit2 for the meaning of these parameters. Previously
|
1388
|
+
provided data is flushed before applying the parameter changes.
|
1384
1389
|
|
1385
1390
|
gzsetparams returns Z_OK if success, Z_STREAM_ERROR if the file was not
|
1386
1391
|
opened for writing, Z_ERRNO if there is an error writing the flushed data,
|
1387
1392
|
or Z_MEM_ERROR if there is a memory allocation error.
|
1388
1393
|
*/
|
1389
1394
|
|
1390
|
-
ZEXTERN int ZEXPORT gzread
|
1395
|
+
ZEXTERN int ZEXPORT gzread(gzFile file, voidp buf, unsigned len);
|
1391
1396
|
/*
|
1392
|
-
|
1397
|
+
Read and decompress up to len uncompressed bytes from file into buf. If
|
1393
1398
|
the input file is not in gzip format, gzread copies the given number of
|
1394
1399
|
bytes into the buffer directly from the file.
|
1395
1400
|
|
@@ -1417,14 +1422,14 @@ ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
|
|
1417
1422
|
Z_STREAM_ERROR.
|
1418
1423
|
*/
|
1419
1424
|
|
1420
|
-
ZEXTERN z_size_t ZEXPORT gzfread
|
1421
|
-
|
1425
|
+
ZEXTERN z_size_t ZEXPORT gzfread(voidp buf, z_size_t size, z_size_t nitems,
|
1426
|
+
gzFile file);
|
1422
1427
|
/*
|
1423
|
-
Read up to nitems items of size size from file
|
1424
|
-
as gzread() does. This duplicates the interface of
|
1425
|
-
size_t request and return types. If the library
|
1426
|
-
z_size_t is identical to size_t. If not, then z_size_t
|
1427
|
-
integer type that can contain a pointer.
|
1428
|
+
Read and decompress up to nitems items of size size from file into buf,
|
1429
|
+
otherwise operating as gzread() does. This duplicates the interface of
|
1430
|
+
stdio's fread(), with size_t request and return types. If the library
|
1431
|
+
defines size_t, then z_size_t is identical to size_t. If not, then z_size_t
|
1432
|
+
is an unsigned integer type that can contain a pointer.
|
1428
1433
|
|
1429
1434
|
gzfread() returns the number of full items read of size size, or zero if
|
1430
1435
|
the end of the file was reached and a full item could not be read, or if
|
@@ -1435,26 +1440,24 @@ ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems,
|
|
1435
1440
|
|
1436
1441
|
In the event that the end of file is reached and only a partial item is
|
1437
1442
|
available at the end, i.e. the remaining uncompressed data length is not a
|
1438
|
-
multiple of size, then the final partial item is
|
1443
|
+
multiple of size, then the final partial item is nevertheless read into buf
|
1439
1444
|
and the end-of-file flag is set. The length of the partial item read is not
|
1440
1445
|
provided, but could be inferred from the result of gztell(). This behavior
|
1441
1446
|
is the same as the behavior of fread() implementations in common libraries,
|
1442
1447
|
but it prevents the direct use of gzfread() to read a concurrently written
|
1443
|
-
file,
|
1448
|
+
file, resetting and retrying on end-of-file, when size is not 1.
|
1444
1449
|
*/
|
1445
1450
|
|
1446
|
-
ZEXTERN int ZEXPORT gzwrite
|
1447
|
-
voidpc buf, unsigned len));
|
1451
|
+
ZEXTERN int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len);
|
1448
1452
|
/*
|
1449
|
-
|
1450
|
-
|
1451
|
-
error.
|
1453
|
+
Compress and write the len uncompressed bytes at buf to file. gzwrite
|
1454
|
+
returns the number of uncompressed bytes written or 0 in case of error.
|
1452
1455
|
*/
|
1453
1456
|
|
1454
|
-
ZEXTERN z_size_t ZEXPORT gzfwrite
|
1455
|
-
|
1457
|
+
ZEXTERN z_size_t ZEXPORT gzfwrite(voidpc buf, z_size_t size,
|
1458
|
+
z_size_t nitems, gzFile file);
|
1456
1459
|
/*
|
1457
|
-
|
1460
|
+
Compress and write nitems items of size size from buf to file, duplicating
|
1458
1461
|
the interface of stdio's fwrite(), with size_t request and return types. If
|
1459
1462
|
the library defines size_t, then z_size_t is identical to size_t. If not,
|
1460
1463
|
then z_size_t is an unsigned integer type that can contain a pointer.
|
@@ -1465,61 +1468,62 @@ ZEXTERN z_size_t ZEXPORT gzfwrite OF((voidpc buf, z_size_t size,
|
|
1465
1468
|
is returned, and the error state is set to Z_STREAM_ERROR.
|
1466
1469
|
*/
|
1467
1470
|
|
1468
|
-
ZEXTERN int ZEXPORTVA gzprintf
|
1471
|
+
ZEXTERN int ZEXPORTVA gzprintf(gzFile file, const char *format, ...);
|
1469
1472
|
/*
|
1470
|
-
|
1471
|
-
control of the format
|
1473
|
+
Convert, format, compress, and write the arguments (...) to file under
|
1474
|
+
control of the string format, as in fprintf. gzprintf returns the number of
|
1472
1475
|
uncompressed bytes actually written, or a negative zlib error code in case
|
1473
1476
|
of error. The number of uncompressed bytes written is limited to 8191, or
|
1474
1477
|
one less than the buffer size given to gzbuffer(). The caller should assure
|
1475
1478
|
that this limit is not exceeded. If it is exceeded, then gzprintf() will
|
1476
1479
|
return an error (0) with nothing written. In this case, there may also be a
|
1477
1480
|
buffer overflow with unpredictable consequences, which is possible only if
|
1478
|
-
zlib was compiled with the insecure functions sprintf() or vsprintf()
|
1481
|
+
zlib was compiled with the insecure functions sprintf() or vsprintf(),
|
1479
1482
|
because the secure snprintf() or vsnprintf() functions were not available.
|
1480
1483
|
This can be determined using zlibCompileFlags().
|
1481
1484
|
*/
|
1482
1485
|
|
1483
|
-
ZEXTERN int ZEXPORT gzputs
|
1486
|
+
ZEXTERN int ZEXPORT gzputs(gzFile file, const char *s);
|
1484
1487
|
/*
|
1485
|
-
|
1488
|
+
Compress and write the given null-terminated string s to file, excluding
|
1486
1489
|
the terminating null character.
|
1487
1490
|
|
1488
1491
|
gzputs returns the number of characters written, or -1 in case of error.
|
1489
1492
|
*/
|
1490
1493
|
|
1491
|
-
ZEXTERN char * ZEXPORT gzgets
|
1494
|
+
ZEXTERN char * ZEXPORT gzgets(gzFile file, char *buf, int len);
|
1492
1495
|
/*
|
1493
|
-
|
1494
|
-
newline character is read and transferred to buf, or an
|
1495
|
-
condition is encountered. If any characters are read or if len
|
1496
|
-
string is terminated with a null character. If no characters
|
1497
|
-
to an end-of-file or len
|
1496
|
+
Read and decompress bytes from file into buf, until len-1 characters are
|
1497
|
+
read, or until a newline character is read and transferred to buf, or an
|
1498
|
+
end-of-file condition is encountered. If any characters are read or if len
|
1499
|
+
is one, the string is terminated with a null character. If no characters
|
1500
|
+
are read due to an end-of-file or len is less than one, then the buffer is
|
1501
|
+
left untouched.
|
1498
1502
|
|
1499
1503
|
gzgets returns buf which is a null-terminated string, or it returns NULL
|
1500
1504
|
for end-of-file or in case of error. If there was an error, the contents at
|
1501
1505
|
buf are indeterminate.
|
1502
1506
|
*/
|
1503
1507
|
|
1504
|
-
ZEXTERN int ZEXPORT gzputc
|
1508
|
+
ZEXTERN int ZEXPORT gzputc(gzFile file, int c);
|
1505
1509
|
/*
|
1506
|
-
|
1510
|
+
Compress and write c, converted to an unsigned char, into file. gzputc
|
1507
1511
|
returns the value that was written, or -1 in case of error.
|
1508
1512
|
*/
|
1509
1513
|
|
1510
|
-
ZEXTERN int ZEXPORT gzgetc
|
1514
|
+
ZEXTERN int ZEXPORT gzgetc(gzFile file);
|
1511
1515
|
/*
|
1512
|
-
|
1516
|
+
Read and decompress one byte from file. gzgetc returns this byte or -1
|
1513
1517
|
in case of end of file or error. This is implemented as a macro for speed.
|
1514
1518
|
As such, it does not do all of the checking the other functions do. I.e.
|
1515
1519
|
it does not check to see if file is NULL, nor whether the structure file
|
1516
1520
|
points to has been clobbered or not.
|
1517
1521
|
*/
|
1518
1522
|
|
1519
|
-
ZEXTERN int ZEXPORT gzungetc
|
1523
|
+
ZEXTERN int ZEXPORT gzungetc(int c, gzFile file);
|
1520
1524
|
/*
|
1521
|
-
Push
|
1522
|
-
|
1525
|
+
Push c back onto the stream for file to be read as the first character on
|
1526
|
+
the next read. At least one character of push-back is always allowed.
|
1523
1527
|
gzungetc() returns the character pushed, or -1 on failure. gzungetc() will
|
1524
1528
|
fail if c is -1, and may fail if a character has been pushed but not read
|
1525
1529
|
yet. If gzungetc is used immediately after gzopen or gzdopen, at least the
|
@@ -1528,11 +1532,11 @@ ZEXTERN int ZEXPORT gzungetc OF((int c, gzFile file));
|
|
1528
1532
|
gzseek() or gzrewind().
|
1529
1533
|
*/
|
1530
1534
|
|
1531
|
-
ZEXTERN int ZEXPORT gzflush
|
1535
|
+
ZEXTERN int ZEXPORT gzflush(gzFile file, int flush);
|
1532
1536
|
/*
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1537
|
+
Flush all pending output to file. The parameter flush is as in the
|
1538
|
+
deflate() function. The return value is the zlib error number (see function
|
1539
|
+
gzerror below). gzflush is only permitted when writing.
|
1536
1540
|
|
1537
1541
|
If the flush parameter is Z_FINISH, the remaining data is written and the
|
1538
1542
|
gzip stream is completed in the output. If gzwrite() is called again, a new
|
@@ -1544,11 +1548,11 @@ ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush));
|
|
1544
1548
|
*/
|
1545
1549
|
|
1546
1550
|
/*
|
1547
|
-
ZEXTERN z_off_t ZEXPORT gzseek
|
1548
|
-
|
1551
|
+
ZEXTERN z_off_t ZEXPORT gzseek(gzFile file,
|
1552
|
+
z_off_t offset, int whence);
|
1549
1553
|
|
1550
|
-
|
1551
|
-
|
1554
|
+
Set the starting position to offset relative to whence for the next gzread
|
1555
|
+
or gzwrite on file. The offset represents a number of bytes in the
|
1552
1556
|
uncompressed data stream. The whence parameter is defined as in lseek(2);
|
1553
1557
|
the value SEEK_END is not supported.
|
1554
1558
|
|
@@ -1563,52 +1567,52 @@ ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file,
|
|
1563
1567
|
would be before the current position.
|
1564
1568
|
*/
|
1565
1569
|
|
1566
|
-
ZEXTERN int ZEXPORT gzrewind
|
1570
|
+
ZEXTERN int ZEXPORT gzrewind(gzFile file);
|
1567
1571
|
/*
|
1568
|
-
|
1572
|
+
Rewind file. This function is supported only for reading.
|
1569
1573
|
|
1570
|
-
gzrewind(file) is equivalent to (int)gzseek(file, 0L, SEEK_SET)
|
1574
|
+
gzrewind(file) is equivalent to (int)gzseek(file, 0L, SEEK_SET).
|
1571
1575
|
*/
|
1572
1576
|
|
1573
1577
|
/*
|
1574
|
-
ZEXTERN z_off_t ZEXPORT gztell
|
1578
|
+
ZEXTERN z_off_t ZEXPORT gztell(gzFile file);
|
1575
1579
|
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
+
Return the starting position for the next gzread or gzwrite on file.
|
1581
|
+
This position represents a number of bytes in the uncompressed data stream,
|
1582
|
+
and is zero when starting, even if appending or reading a gzip stream from
|
1583
|
+
the middle of a file using gzdopen().
|
1580
1584
|
|
1581
1585
|
gztell(file) is equivalent to gzseek(file, 0L, SEEK_CUR)
|
1582
1586
|
*/
|
1583
1587
|
|
1584
1588
|
/*
|
1585
|
-
ZEXTERN z_off_t ZEXPORT gzoffset
|
1589
|
+
ZEXTERN z_off_t ZEXPORT gzoffset(gzFile file);
|
1586
1590
|
|
1587
|
-
|
1588
|
-
includes the count of bytes that precede the gzip stream, for example
|
1589
|
-
appending or when using gzdopen() for reading. When reading, the
|
1590
|
-
does not include as yet unused buffered input. This information can
|
1591
|
-
for a progress indicator. On error, gzoffset() returns -1.
|
1591
|
+
Return the current compressed (actual) read or write offset of file. This
|
1592
|
+
offset includes the count of bytes that precede the gzip stream, for example
|
1593
|
+
when appending or when using gzdopen() for reading. When reading, the
|
1594
|
+
offset does not include as yet unused buffered input. This information can
|
1595
|
+
be used for a progress indicator. On error, gzoffset() returns -1.
|
1592
1596
|
*/
|
1593
1597
|
|
1594
|
-
ZEXTERN int ZEXPORT gzeof
|
1598
|
+
ZEXTERN int ZEXPORT gzeof(gzFile file);
|
1595
1599
|
/*
|
1596
|
-
|
1597
|
-
false (0) otherwise. Note that the end-of-file indicator is set
|
1598
|
-
read tried to go past the end of the input, but came up short.
|
1599
|
-
just like feof(), gzeof() may return false even if there is no
|
1600
|
-
read, in the event that the last read request was for the exact
|
1601
|
-
bytes remaining in the input file. This will happen if the input
|
1602
|
-
is an exact multiple of the buffer size.
|
1600
|
+
Return true (1) if the end-of-file indicator for file has been set while
|
1601
|
+
reading, false (0) otherwise. Note that the end-of-file indicator is set
|
1602
|
+
only if the read tried to go past the end of the input, but came up short.
|
1603
|
+
Therefore, just like feof(), gzeof() may return false even if there is no
|
1604
|
+
more data to read, in the event that the last read request was for the exact
|
1605
|
+
number of bytes remaining in the input file. This will happen if the input
|
1606
|
+
file size is an exact multiple of the buffer size.
|
1603
1607
|
|
1604
1608
|
If gzeof() returns true, then the read functions will return no more data,
|
1605
1609
|
unless the end-of-file indicator is reset by gzclearerr() and the input file
|
1606
1610
|
has grown since the previous end of file was detected.
|
1607
1611
|
*/
|
1608
1612
|
|
1609
|
-
ZEXTERN int ZEXPORT gzdirect
|
1613
|
+
ZEXTERN int ZEXPORT gzdirect(gzFile file);
|
1610
1614
|
/*
|
1611
|
-
|
1615
|
+
Return true (1) if file is being copied directly while reading, or false
|
1612
1616
|
(0) if file is a gzip stream being decompressed.
|
1613
1617
|
|
1614
1618
|
If the input file is empty, gzdirect() will return true, since the input
|
@@ -1627,10 +1631,10 @@ ZEXTERN int ZEXPORT gzdirect OF((gzFile file));
|
|
1627
1631
|
gzip file reading and decompression, which may not be desired.)
|
1628
1632
|
*/
|
1629
1633
|
|
1630
|
-
ZEXTERN int ZEXPORT gzclose
|
1634
|
+
ZEXTERN int ZEXPORT gzclose(gzFile file);
|
1631
1635
|
/*
|
1632
|
-
|
1633
|
-
|
1636
|
+
Flush all pending output for file, if necessary, close file and
|
1637
|
+
deallocate the (de)compression state. Note that once file is closed, you
|
1634
1638
|
cannot call gzerror with file, since its structures have been deallocated.
|
1635
1639
|
gzclose must not be called more than once on the same file, just as free
|
1636
1640
|
must not be called more than once on the same allocation.
|
@@ -1640,8 +1644,8 @@ ZEXTERN int ZEXPORT gzclose OF((gzFile file));
|
|
1640
1644
|
last read ended in the middle of a gzip stream, or Z_OK on success.
|
1641
1645
|
*/
|
1642
1646
|
|
1643
|
-
ZEXTERN int ZEXPORT gzclose_r
|
1644
|
-
ZEXTERN int ZEXPORT gzclose_w
|
1647
|
+
ZEXTERN int ZEXPORT gzclose_r(gzFile file);
|
1648
|
+
ZEXTERN int ZEXPORT gzclose_w(gzFile file);
|
1645
1649
|
/*
|
1646
1650
|
Same as gzclose(), but gzclose_r() is only for use when reading, and
|
1647
1651
|
gzclose_w() is only for use when writing or appending. The advantage to
|
@@ -1652,12 +1656,12 @@ ZEXTERN int ZEXPORT gzclose_w OF((gzFile file));
|
|
1652
1656
|
zlib library.
|
1653
1657
|
*/
|
1654
1658
|
|
1655
|
-
ZEXTERN const char * ZEXPORT gzerror
|
1659
|
+
ZEXTERN const char * ZEXPORT gzerror(gzFile file, int *errnum);
|
1656
1660
|
/*
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
+
Return the error message for the last error which occurred on file.
|
1662
|
+
errnum is set to zlib error number. If an error occurred in the file system
|
1663
|
+
and not in the compression library, errnum is set to Z_ERRNO and the
|
1664
|
+
application may consult errno to get the exact error code.
|
1661
1665
|
|
1662
1666
|
The application must not modify the returned string. Future calls to
|
1663
1667
|
this function may invalidate the previously returned string. If file is
|
@@ -1668,9 +1672,9 @@ ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum));
|
|
1668
1672
|
functions above that do not distinguish those cases in their return values.
|
1669
1673
|
*/
|
1670
1674
|
|
1671
|
-
ZEXTERN void ZEXPORT gzclearerr
|
1675
|
+
ZEXTERN void ZEXPORT gzclearerr(gzFile file);
|
1672
1676
|
/*
|
1673
|
-
|
1677
|
+
Clear the error and end-of-file flags for file. This is analogous to the
|
1674
1678
|
clearerr() function in stdio. This is useful for continuing to read a gzip
|
1675
1679
|
file that is being written concurrently.
|
1676
1680
|
*/
|
@@ -1685,11 +1689,12 @@ ZEXTERN void ZEXPORT gzclearerr OF((gzFile file));
|
|
1685
1689
|
library.
|
1686
1690
|
*/
|
1687
1691
|
|
1688
|
-
ZEXTERN uLong ZEXPORT adler32
|
1692
|
+
ZEXTERN uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len);
|
1689
1693
|
/*
|
1690
1694
|
Update a running Adler-32 checksum with the bytes buf[0..len-1] and
|
1691
|
-
return the updated checksum.
|
1692
|
-
|
1695
|
+
return the updated checksum. An Adler-32 value is in the range of a 32-bit
|
1696
|
+
unsigned integer. If buf is Z_NULL, this function returns the required
|
1697
|
+
initial value for the checksum.
|
1693
1698
|
|
1694
1699
|
An Adler-32 checksum is almost as reliable as a CRC-32 but can be computed
|
1695
1700
|
much faster.
|
@@ -1704,15 +1709,15 @@ ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
|
|
1704
1709
|
if (adler != original_adler) error();
|
1705
1710
|
*/
|
1706
1711
|
|
1707
|
-
ZEXTERN uLong ZEXPORT adler32_z
|
1708
|
-
|
1712
|
+
ZEXTERN uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf,
|
1713
|
+
z_size_t len);
|
1709
1714
|
/*
|
1710
1715
|
Same as adler32(), but with a size_t length.
|
1711
1716
|
*/
|
1712
1717
|
|
1713
1718
|
/*
|
1714
|
-
ZEXTERN uLong ZEXPORT adler32_combine
|
1715
|
-
|
1719
|
+
ZEXTERN uLong ZEXPORT adler32_combine(uLong adler1, uLong adler2,
|
1720
|
+
z_off_t len2);
|
1716
1721
|
|
1717
1722
|
Combine two Adler-32 checksums into one. For two sequences of bytes, seq1
|
1718
1723
|
and seq2 with lengths len1 and len2, Adler-32 checksums were calculated for
|
@@ -1722,12 +1727,13 @@ ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2,
|
|
1722
1727
|
negative, the result has no meaning or utility.
|
1723
1728
|
*/
|
1724
1729
|
|
1725
|
-
ZEXTERN uLong ZEXPORT crc32
|
1730
|
+
ZEXTERN uLong ZEXPORT crc32(uLong crc, const Bytef *buf, uInt len);
|
1726
1731
|
/*
|
1727
1732
|
Update a running CRC-32 with the bytes buf[0..len-1] and return the
|
1728
|
-
updated CRC-32.
|
1729
|
-
|
1730
|
-
|
1733
|
+
updated CRC-32. A CRC-32 value is in the range of a 32-bit unsigned integer.
|
1734
|
+
If buf is Z_NULL, this function returns the required initial value for the
|
1735
|
+
crc. Pre- and post-conditioning (one's complement) is performed within this
|
1736
|
+
function so it shouldn't be done by the application.
|
1731
1737
|
|
1732
1738
|
Usage example:
|
1733
1739
|
|
@@ -1739,20 +1745,34 @@ ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
|
|
1739
1745
|
if (crc != original_crc) error();
|
1740
1746
|
*/
|
1741
1747
|
|
1742
|
-
ZEXTERN uLong ZEXPORT crc32_z
|
1743
|
-
|
1748
|
+
ZEXTERN uLong ZEXPORT crc32_z(uLong crc, const Bytef *buf,
|
1749
|
+
z_size_t len);
|
1744
1750
|
/*
|
1745
1751
|
Same as crc32(), but with a size_t length.
|
1746
1752
|
*/
|
1747
1753
|
|
1748
1754
|
/*
|
1749
|
-
ZEXTERN uLong ZEXPORT crc32_combine
|
1755
|
+
ZEXTERN uLong ZEXPORT crc32_combine(uLong crc1, uLong crc2, z_off_t len2);
|
1750
1756
|
|
1751
1757
|
Combine two CRC-32 check values into one. For two sequences of bytes,
|
1752
1758
|
seq1 and seq2 with lengths len1 and len2, CRC-32 check values were
|
1753
1759
|
calculated for each, crc1 and crc2. crc32_combine() returns the CRC-32
|
1754
1760
|
check value of seq1 and seq2 concatenated, requiring only crc1, crc2, and
|
1755
|
-
len2.
|
1761
|
+
len2. len2 must be non-negative.
|
1762
|
+
*/
|
1763
|
+
|
1764
|
+
/*
|
1765
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t len2);
|
1766
|
+
|
1767
|
+
Return the operator corresponding to length len2, to be used with
|
1768
|
+
crc32_combine_op(). len2 must be non-negative.
|
1769
|
+
*/
|
1770
|
+
|
1771
|
+
ZEXTERN uLong ZEXPORT crc32_combine_op(uLong crc1, uLong crc2, uLong op);
|
1772
|
+
/*
|
1773
|
+
Give the same result as crc32_combine(), using op in place of len2. op is
|
1774
|
+
is generated from len2 by crc32_combine_gen(). This will be faster than
|
1775
|
+
crc32_combine() if the generated op is used more than once.
|
1756
1776
|
*/
|
1757
1777
|
|
1758
1778
|
|
@@ -1761,20 +1781,20 @@ ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2));
|
|
1761
1781
|
/* deflateInit and inflateInit are macros to allow checking the zlib version
|
1762
1782
|
* and the compiler's view of z_stream:
|
1763
1783
|
*/
|
1764
|
-
ZEXTERN int ZEXPORT deflateInit_
|
1765
|
-
|
1766
|
-
ZEXTERN int ZEXPORT inflateInit_
|
1767
|
-
|
1768
|
-
ZEXTERN int ZEXPORT deflateInit2_
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
ZEXTERN int ZEXPORT inflateInit2_
|
1773
|
-
|
1774
|
-
ZEXTERN int ZEXPORT inflateBackInit_
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1784
|
+
ZEXTERN int ZEXPORT deflateInit_(z_streamp strm, int level,
|
1785
|
+
const char *version, int stream_size);
|
1786
|
+
ZEXTERN int ZEXPORT inflateInit_(z_streamp strm,
|
1787
|
+
const char *version, int stream_size);
|
1788
|
+
ZEXTERN int ZEXPORT deflateInit2_(z_streamp strm, int level, int method,
|
1789
|
+
int windowBits, int memLevel,
|
1790
|
+
int strategy, const char *version,
|
1791
|
+
int stream_size);
|
1792
|
+
ZEXTERN int ZEXPORT inflateInit2_(z_streamp strm, int windowBits,
|
1793
|
+
const char *version, int stream_size);
|
1794
|
+
ZEXTERN int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits,
|
1795
|
+
unsigned char FAR *window,
|
1796
|
+
const char *version,
|
1797
|
+
int stream_size);
|
1778
1798
|
#ifdef Z_PREFIX_SET
|
1779
1799
|
# define z_deflateInit(strm, level) \
|
1780
1800
|
deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream))
|
@@ -1819,7 +1839,7 @@ struct gzFile_s {
|
|
1819
1839
|
unsigned char *next;
|
1820
1840
|
z_off64_t pos;
|
1821
1841
|
};
|
1822
|
-
ZEXTERN int ZEXPORT gzgetc_
|
1842
|
+
ZEXTERN int ZEXPORT gzgetc_(gzFile file); /* backward compatibility */
|
1823
1843
|
#ifdef Z_PREFIX_SET
|
1824
1844
|
# undef z_gzgetc
|
1825
1845
|
# define z_gzgetc(g) \
|
@@ -1836,12 +1856,13 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
|
|
1836
1856
|
* without large file support, _LFS64_LARGEFILE must also be true
|
1837
1857
|
*/
|
1838
1858
|
#ifdef Z_LARGE64
|
1839
|
-
ZEXTERN gzFile ZEXPORT gzopen64
|
1840
|
-
ZEXTERN z_off64_t ZEXPORT gzseek64
|
1841
|
-
ZEXTERN z_off64_t ZEXPORT gztell64
|
1842
|
-
ZEXTERN z_off64_t ZEXPORT gzoffset64
|
1843
|
-
ZEXTERN uLong ZEXPORT adler32_combine64
|
1844
|
-
ZEXTERN uLong ZEXPORT crc32_combine64
|
1859
|
+
ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *);
|
1860
|
+
ZEXTERN z_off64_t ZEXPORT gzseek64(gzFile, z_off64_t, int);
|
1861
|
+
ZEXTERN z_off64_t ZEXPORT gztell64(gzFile);
|
1862
|
+
ZEXTERN z_off64_t ZEXPORT gzoffset64(gzFile);
|
1863
|
+
ZEXTERN uLong ZEXPORT adler32_combine64(uLong, uLong, z_off64_t);
|
1864
|
+
ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off64_t);
|
1865
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen64(z_off64_t);
|
1845
1866
|
#endif
|
1846
1867
|
|
1847
1868
|
#if !defined(ZLIB_INTERNAL) && defined(Z_WANT64)
|
@@ -1852,6 +1873,7 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
|
|
1852
1873
|
# define z_gzoffset z_gzoffset64
|
1853
1874
|
# define z_adler32_combine z_adler32_combine64
|
1854
1875
|
# define z_crc32_combine z_crc32_combine64
|
1876
|
+
# define z_crc32_combine_gen z_crc32_combine_gen64
|
1855
1877
|
# else
|
1856
1878
|
# define gzopen gzopen64
|
1857
1879
|
# define gzseek gzseek64
|
@@ -1859,49 +1881,53 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
|
|
1859
1881
|
# define gzoffset gzoffset64
|
1860
1882
|
# define adler32_combine adler32_combine64
|
1861
1883
|
# define crc32_combine crc32_combine64
|
1884
|
+
# define crc32_combine_gen crc32_combine_gen64
|
1862
1885
|
# endif
|
1863
1886
|
# ifndef Z_LARGE64
|
1864
|
-
ZEXTERN gzFile ZEXPORT gzopen64
|
1865
|
-
ZEXTERN z_off_t ZEXPORT gzseek64
|
1866
|
-
ZEXTERN z_off_t ZEXPORT gztell64
|
1867
|
-
ZEXTERN z_off_t ZEXPORT gzoffset64
|
1868
|
-
ZEXTERN uLong ZEXPORT adler32_combine64
|
1869
|
-
ZEXTERN uLong ZEXPORT crc32_combine64
|
1887
|
+
ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *);
|
1888
|
+
ZEXTERN z_off_t ZEXPORT gzseek64(gzFile, z_off_t, int);
|
1889
|
+
ZEXTERN z_off_t ZEXPORT gztell64(gzFile);
|
1890
|
+
ZEXTERN z_off_t ZEXPORT gzoffset64(gzFile);
|
1891
|
+
ZEXTERN uLong ZEXPORT adler32_combine64(uLong, uLong, z_off_t);
|
1892
|
+
ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off_t);
|
1893
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen64(z_off_t);
|
1870
1894
|
# endif
|
1871
1895
|
#else
|
1872
|
-
ZEXTERN gzFile ZEXPORT gzopen
|
1873
|
-
ZEXTERN z_off_t ZEXPORT gzseek
|
1874
|
-
ZEXTERN z_off_t ZEXPORT gztell
|
1875
|
-
ZEXTERN z_off_t ZEXPORT gzoffset
|
1876
|
-
ZEXTERN uLong ZEXPORT adler32_combine
|
1877
|
-
ZEXTERN uLong ZEXPORT crc32_combine
|
1896
|
+
ZEXTERN gzFile ZEXPORT gzopen(const char *, const char *);
|
1897
|
+
ZEXTERN z_off_t ZEXPORT gzseek(gzFile, z_off_t, int);
|
1898
|
+
ZEXTERN z_off_t ZEXPORT gztell(gzFile);
|
1899
|
+
ZEXTERN z_off_t ZEXPORT gzoffset(gzFile);
|
1900
|
+
ZEXTERN uLong ZEXPORT adler32_combine(uLong, uLong, z_off_t);
|
1901
|
+
ZEXTERN uLong ZEXPORT crc32_combine(uLong, uLong, z_off_t);
|
1902
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t);
|
1878
1903
|
#endif
|
1879
1904
|
|
1880
1905
|
#else /* Z_SOLO */
|
1881
1906
|
|
1882
|
-
ZEXTERN uLong ZEXPORT adler32_combine
|
1883
|
-
ZEXTERN uLong ZEXPORT crc32_combine
|
1907
|
+
ZEXTERN uLong ZEXPORT adler32_combine(uLong, uLong, z_off_t);
|
1908
|
+
ZEXTERN uLong ZEXPORT crc32_combine(uLong, uLong, z_off_t);
|
1909
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t);
|
1884
1910
|
|
1885
1911
|
#endif /* !Z_SOLO */
|
1886
1912
|
|
1887
1913
|
/* undocumented functions */
|
1888
|
-
ZEXTERN const char * ZEXPORT zError
|
1889
|
-
ZEXTERN int ZEXPORT inflateSyncPoint
|
1890
|
-
ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table
|
1891
|
-
ZEXTERN int ZEXPORT inflateUndermine
|
1892
|
-
ZEXTERN int ZEXPORT inflateValidate
|
1893
|
-
ZEXTERN unsigned long ZEXPORT inflateCodesUsed
|
1894
|
-
ZEXTERN int ZEXPORT inflateResetKeep
|
1895
|
-
ZEXTERN int ZEXPORT deflateResetKeep
|
1896
|
-
#if
|
1897
|
-
ZEXTERN gzFile ZEXPORT gzopen_w
|
1898
|
-
|
1914
|
+
ZEXTERN const char * ZEXPORT zError(int);
|
1915
|
+
ZEXTERN int ZEXPORT inflateSyncPoint(z_streamp);
|
1916
|
+
ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table(void);
|
1917
|
+
ZEXTERN int ZEXPORT inflateUndermine(z_streamp, int);
|
1918
|
+
ZEXTERN int ZEXPORT inflateValidate(z_streamp, int);
|
1919
|
+
ZEXTERN unsigned long ZEXPORT inflateCodesUsed(z_streamp);
|
1920
|
+
ZEXTERN int ZEXPORT inflateResetKeep(z_streamp);
|
1921
|
+
ZEXTERN int ZEXPORT deflateResetKeep(z_streamp);
|
1922
|
+
#if defined(_WIN32) && !defined(Z_SOLO)
|
1923
|
+
ZEXTERN gzFile ZEXPORT gzopen_w(const wchar_t *path,
|
1924
|
+
const char *mode);
|
1899
1925
|
#endif
|
1900
1926
|
#if defined(STDC) || defined(Z_HAVE_STDARG_H)
|
1901
1927
|
# ifndef Z_SOLO
|
1902
|
-
ZEXTERN int ZEXPORTVA gzvprintf
|
1903
|
-
|
1904
|
-
|
1928
|
+
ZEXTERN int ZEXPORTVA gzvprintf(gzFile file,
|
1929
|
+
const char *format,
|
1930
|
+
va_list va);
|
1905
1931
|
# endif
|
1906
1932
|
#endif
|
1907
1933
|
|