node-linux-arm64 18.17.1 → 18.18.1
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.
- package/CHANGELOG.md +212 -0
- package/LICENSE +515 -520
- package/README.md +11 -2
- package/bin/node +0 -0
- package/include/node/common.gypi +48 -20
- package/include/node/js_native_api.h +18 -0
- package/include/node/node_version.h +1 -1
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/crypto/bn_conf.h +29 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/crypto/dso_conf.h +19 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/asn1.h +1128 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/asn1t.h +946 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/bio.h +887 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/cms.h +493 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/conf.h +211 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/configuration.h +137 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/crmf.h +227 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/crypto.h +558 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/ct.h +573 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/err.h +504 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/ess.h +128 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/fipskey.h +36 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/lhash.h +288 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/ocsp.h +483 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/pkcs12.h +350 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/pkcs7.h +427 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/safestack.h +297 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/srp.h +285 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/ssl.h +2668 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/ui.h +407 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/x509.h +1276 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/x509_vfy.h +894 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/x509v3.h +1450 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/progs.h +123 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/providers/common/include/prov/der_digests.h +160 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/providers/common/include/prov/der_dsa.h +94 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/providers/common/include/prov/der_ec.h +286 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/providers/common/include/prov/der_ecx.h +50 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/providers/common/include/prov/der_rsa.h +187 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/providers/common/include/prov/der_sm2.h +37 -0
- package/include/node/openssl/archs/linux64-loongarch64/no-asm/providers/common/include/prov/der_wrap.h +46 -0
- package/include/node/openssl/asn1_no-asm.h +2 -0
- package/include/node/openssl/asn1t_no-asm.h +2 -0
- package/include/node/openssl/bio_no-asm.h +2 -0
- package/include/node/openssl/bn_conf_no-asm.h +2 -0
- package/include/node/openssl/cmp_no-asm.h +2 -0
- package/include/node/openssl/cms_no-asm.h +2 -0
- package/include/node/openssl/conf_no-asm.h +2 -0
- package/include/node/openssl/configuration_no-asm.h +2 -0
- package/include/node/openssl/crmf_no-asm.h +2 -0
- package/include/node/openssl/crypto_no-asm.h +2 -0
- package/include/node/openssl/ct_no-asm.h +2 -0
- package/include/node/openssl/dso_conf_no-asm.h +2 -0
- package/include/node/openssl/err_no-asm.h +2 -0
- package/include/node/openssl/ess_no-asm.h +2 -0
- package/include/node/openssl/fipskey_no-asm.h +2 -0
- package/include/node/openssl/lhash_no-asm.h +2 -0
- package/include/node/openssl/ocsp_no-asm.h +2 -0
- package/include/node/openssl/opensslv_no-asm.h +2 -0
- package/include/node/openssl/pkcs12_no-asm.h +2 -0
- package/include/node/openssl/pkcs7_no-asm.h +2 -0
- package/include/node/openssl/safestack_no-asm.h +2 -0
- package/include/node/openssl/srp_no-asm.h +2 -0
- package/include/node/openssl/ssl_no-asm.h +2 -0
- package/include/node/openssl/ui_no-asm.h +2 -0
- package/include/node/openssl/x509_no-asm.h +2 -0
- package/include/node/openssl/x509_vfy_no-asm.h +2 -0
- package/include/node/openssl/x509v3_no-asm.h +2 -0
- package/include/node/zconf.h +1 -1
- package/include/node/zlib.h +175 -175
- package/package.json +1 -1
package/include/node/zlib.h
CHANGED
|
@@ -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,7 +225,7 @@ 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
|
|
@@ -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
|
|
@@ -359,7 +359,7 @@ ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
|
|
|
359
359
|
continue compressing.
|
|
360
360
|
*/
|
|
361
361
|
|
|
362
|
-
ZEXTERN int ZEXPORT deflateEnd
|
|
362
|
+
ZEXTERN int ZEXPORT deflateEnd(z_streamp strm);
|
|
363
363
|
/*
|
|
364
364
|
All dynamically allocated data structures for this stream are freed.
|
|
365
365
|
This function discards any unprocessed input and does not flush any pending
|
|
@@ -374,7 +374,7 @@ ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm));
|
|
|
374
374
|
|
|
375
375
|
|
|
376
376
|
/*
|
|
377
|
-
ZEXTERN int ZEXPORT inflateInit
|
|
377
|
+
ZEXTERN int ZEXPORT inflateInit(z_streamp strm);
|
|
378
378
|
|
|
379
379
|
Initializes the internal stream state for decompression. The fields
|
|
380
380
|
next_in, avail_in, zalloc, zfree and opaque must be initialized before by
|
|
@@ -396,7 +396,7 @@ ZEXTERN int ZEXPORT inflateInit OF((z_streamp strm));
|
|
|
396
396
|
*/
|
|
397
397
|
|
|
398
398
|
|
|
399
|
-
ZEXTERN int ZEXPORT inflate
|
|
399
|
+
ZEXTERN int ZEXPORT inflate(z_streamp strm, int flush);
|
|
400
400
|
/*
|
|
401
401
|
inflate decompresses as much data as possible, and stops when the input
|
|
402
402
|
buffer becomes empty or the output buffer becomes full. It may introduce
|
|
@@ -516,7 +516,7 @@ ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush));
|
|
|
516
516
|
*/
|
|
517
517
|
|
|
518
518
|
|
|
519
|
-
ZEXTERN int ZEXPORT inflateEnd
|
|
519
|
+
ZEXTERN int ZEXPORT inflateEnd(z_streamp strm);
|
|
520
520
|
/*
|
|
521
521
|
All dynamically allocated data structures for this stream are freed.
|
|
522
522
|
This function discards any unprocessed input and does not flush any pending
|
|
@@ -534,12 +534,12 @@ ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm));
|
|
|
534
534
|
*/
|
|
535
535
|
|
|
536
536
|
/*
|
|
537
|
-
ZEXTERN int ZEXPORT deflateInit2
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
537
|
+
ZEXTERN int ZEXPORT deflateInit2(z_streamp strm,
|
|
538
|
+
int level,
|
|
539
|
+
int method,
|
|
540
|
+
int windowBits,
|
|
541
|
+
int memLevel,
|
|
542
|
+
int strategy);
|
|
543
543
|
|
|
544
544
|
This is another version of deflateInit with more compression options. The
|
|
545
545
|
fields zalloc, zfree and opaque must be initialized before by the caller.
|
|
@@ -606,9 +606,9 @@ ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm,
|
|
|
606
606
|
compression: this will be done by deflate().
|
|
607
607
|
*/
|
|
608
608
|
|
|
609
|
-
ZEXTERN int ZEXPORT deflateSetDictionary
|
|
610
|
-
|
|
611
|
-
|
|
609
|
+
ZEXTERN int ZEXPORT deflateSetDictionary(z_streamp strm,
|
|
610
|
+
const Bytef *dictionary,
|
|
611
|
+
uInt dictLength);
|
|
612
612
|
/*
|
|
613
613
|
Initializes the compression dictionary from the given byte sequence
|
|
614
614
|
without producing any compressed output. When using the zlib format, this
|
|
@@ -650,9 +650,9 @@ ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm,
|
|
|
650
650
|
not perform any compression: this will be done by deflate().
|
|
651
651
|
*/
|
|
652
652
|
|
|
653
|
-
ZEXTERN int ZEXPORT deflateGetDictionary
|
|
654
|
-
|
|
655
|
-
|
|
653
|
+
ZEXTERN int ZEXPORT deflateGetDictionary(z_streamp strm,
|
|
654
|
+
Bytef *dictionary,
|
|
655
|
+
uInt *dictLength);
|
|
656
656
|
/*
|
|
657
657
|
Returns the sliding dictionary being maintained by deflate. dictLength is
|
|
658
658
|
set to the number of bytes in the dictionary, and that many bytes are copied
|
|
@@ -672,8 +672,8 @@ ZEXTERN int ZEXPORT deflateGetDictionary OF((z_streamp strm,
|
|
|
672
672
|
stream state is inconsistent.
|
|
673
673
|
*/
|
|
674
674
|
|
|
675
|
-
ZEXTERN int ZEXPORT deflateCopy
|
|
676
|
-
|
|
675
|
+
ZEXTERN int ZEXPORT deflateCopy(z_streamp dest,
|
|
676
|
+
z_streamp source);
|
|
677
677
|
/*
|
|
678
678
|
Sets the destination stream as a complete copy of the source stream.
|
|
679
679
|
|
|
@@ -690,7 +690,7 @@ ZEXTERN int ZEXPORT deflateCopy OF((z_streamp dest,
|
|
|
690
690
|
destination.
|
|
691
691
|
*/
|
|
692
692
|
|
|
693
|
-
ZEXTERN int ZEXPORT deflateReset
|
|
693
|
+
ZEXTERN int ZEXPORT deflateReset(z_streamp strm);
|
|
694
694
|
/*
|
|
695
695
|
This function is equivalent to deflateEnd followed by deflateInit, but
|
|
696
696
|
does not free and reallocate the internal compression state. The stream
|
|
@@ -701,9 +701,9 @@ ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm));
|
|
|
701
701
|
stream state was inconsistent (such as zalloc or state being Z_NULL).
|
|
702
702
|
*/
|
|
703
703
|
|
|
704
|
-
ZEXTERN int ZEXPORT deflateParams
|
|
705
|
-
|
|
706
|
-
|
|
704
|
+
ZEXTERN int ZEXPORT deflateParams(z_streamp strm,
|
|
705
|
+
int level,
|
|
706
|
+
int strategy);
|
|
707
707
|
/*
|
|
708
708
|
Dynamically update the compression level and compression strategy. The
|
|
709
709
|
interpretation of level and strategy is as in deflateInit2(). This can be
|
|
@@ -728,7 +728,7 @@ ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm,
|
|
|
728
728
|
Then no more input data should be provided before the deflateParams() call.
|
|
729
729
|
If this is done, the old level and strategy will be applied to the data
|
|
730
730
|
compressed before deflateParams(), and the new level and strategy will be
|
|
731
|
-
applied to the
|
|
731
|
+
applied to the data compressed after deflateParams().
|
|
732
732
|
|
|
733
733
|
deflateParams returns Z_OK on success, Z_STREAM_ERROR if the source stream
|
|
734
734
|
state was inconsistent or if a parameter was invalid, or Z_BUF_ERROR if
|
|
@@ -739,11 +739,11 @@ ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm,
|
|
|
739
739
|
retried with more output space.
|
|
740
740
|
*/
|
|
741
741
|
|
|
742
|
-
ZEXTERN int ZEXPORT deflateTune
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
742
|
+
ZEXTERN int ZEXPORT deflateTune(z_streamp strm,
|
|
743
|
+
int good_length,
|
|
744
|
+
int max_lazy,
|
|
745
|
+
int nice_length,
|
|
746
|
+
int max_chain);
|
|
747
747
|
/*
|
|
748
748
|
Fine tune deflate's internal compression parameters. This should only be
|
|
749
749
|
used by someone who understands the algorithm used by zlib's deflate for
|
|
@@ -756,8 +756,8 @@ ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm,
|
|
|
756
756
|
returns Z_OK on success, or Z_STREAM_ERROR for an invalid deflate stream.
|
|
757
757
|
*/
|
|
758
758
|
|
|
759
|
-
ZEXTERN uLong ZEXPORT deflateBound
|
|
760
|
-
|
|
759
|
+
ZEXTERN uLong ZEXPORT deflateBound(z_streamp strm,
|
|
760
|
+
uLong sourceLen);
|
|
761
761
|
/*
|
|
762
762
|
deflateBound() returns an upper bound on the compressed size after
|
|
763
763
|
deflation of sourceLen bytes. It must be called after deflateInit() or
|
|
@@ -771,9 +771,9 @@ ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm,
|
|
|
771
771
|
than Z_FINISH or Z_NO_FLUSH are used.
|
|
772
772
|
*/
|
|
773
773
|
|
|
774
|
-
ZEXTERN int ZEXPORT deflatePending
|
|
775
|
-
|
|
776
|
-
|
|
774
|
+
ZEXTERN int ZEXPORT deflatePending(z_streamp strm,
|
|
775
|
+
unsigned *pending,
|
|
776
|
+
int *bits);
|
|
777
777
|
/*
|
|
778
778
|
deflatePending() returns the number of bytes and bits of output that have
|
|
779
779
|
been generated, but not yet provided in the available output. The bytes not
|
|
@@ -786,9 +786,9 @@ ZEXTERN int ZEXPORT deflatePending OF((z_streamp strm,
|
|
|
786
786
|
stream state was inconsistent.
|
|
787
787
|
*/
|
|
788
788
|
|
|
789
|
-
ZEXTERN int ZEXPORT deflatePrime
|
|
790
|
-
|
|
791
|
-
|
|
789
|
+
ZEXTERN int ZEXPORT deflatePrime(z_streamp strm,
|
|
790
|
+
int bits,
|
|
791
|
+
int value);
|
|
792
792
|
/*
|
|
793
793
|
deflatePrime() inserts bits in the deflate output stream. The intent
|
|
794
794
|
is that this function is used to start off the deflate output with the bits
|
|
@@ -803,8 +803,8 @@ ZEXTERN int ZEXPORT deflatePrime OF((z_streamp strm,
|
|
|
803
803
|
source stream state was inconsistent.
|
|
804
804
|
*/
|
|
805
805
|
|
|
806
|
-
ZEXTERN int ZEXPORT deflateSetHeader
|
|
807
|
-
|
|
806
|
+
ZEXTERN int ZEXPORT deflateSetHeader(z_streamp strm,
|
|
807
|
+
gz_headerp head);
|
|
808
808
|
/*
|
|
809
809
|
deflateSetHeader() provides gzip header information for when a gzip
|
|
810
810
|
stream is requested by deflateInit2(). deflateSetHeader() may be called
|
|
@@ -828,8 +828,8 @@ ZEXTERN int ZEXPORT deflateSetHeader OF((z_streamp strm,
|
|
|
828
828
|
*/
|
|
829
829
|
|
|
830
830
|
/*
|
|
831
|
-
ZEXTERN int ZEXPORT inflateInit2
|
|
832
|
-
|
|
831
|
+
ZEXTERN int ZEXPORT inflateInit2(z_streamp strm,
|
|
832
|
+
int windowBits);
|
|
833
833
|
|
|
834
834
|
This is another version of inflateInit with an extra parameter. The
|
|
835
835
|
fields next_in, avail_in, zalloc, zfree and opaque must be initialized
|
|
@@ -882,9 +882,9 @@ ZEXTERN int ZEXPORT inflateInit2 OF((z_streamp strm,
|
|
|
882
882
|
deferred until inflate() is called.
|
|
883
883
|
*/
|
|
884
884
|
|
|
885
|
-
ZEXTERN int ZEXPORT inflateSetDictionary
|
|
886
|
-
|
|
887
|
-
|
|
885
|
+
ZEXTERN int ZEXPORT inflateSetDictionary(z_streamp strm,
|
|
886
|
+
const Bytef *dictionary,
|
|
887
|
+
uInt dictLength);
|
|
888
888
|
/*
|
|
889
889
|
Initializes the decompression dictionary from the given uncompressed byte
|
|
890
890
|
sequence. This function must be called immediately after a call of inflate,
|
|
@@ -905,9 +905,9 @@ ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm,
|
|
|
905
905
|
inflate().
|
|
906
906
|
*/
|
|
907
907
|
|
|
908
|
-
ZEXTERN int ZEXPORT inflateGetDictionary
|
|
909
|
-
|
|
910
|
-
|
|
908
|
+
ZEXTERN int ZEXPORT inflateGetDictionary(z_streamp strm,
|
|
909
|
+
Bytef *dictionary,
|
|
910
|
+
uInt *dictLength);
|
|
911
911
|
/*
|
|
912
912
|
Returns the sliding dictionary being maintained by inflate. dictLength is
|
|
913
913
|
set to the number of bytes in the dictionary, and that many bytes are copied
|
|
@@ -920,7 +920,7 @@ ZEXTERN int ZEXPORT inflateGetDictionary OF((z_streamp strm,
|
|
|
920
920
|
stream state is inconsistent.
|
|
921
921
|
*/
|
|
922
922
|
|
|
923
|
-
ZEXTERN int ZEXPORT inflateSync
|
|
923
|
+
ZEXTERN int ZEXPORT inflateSync(z_streamp strm);
|
|
924
924
|
/*
|
|
925
925
|
Skips invalid compressed data until a possible full flush point (see above
|
|
926
926
|
for the description of deflate with Z_FULL_FLUSH) can be found, or until all
|
|
@@ -939,8 +939,8 @@ ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm));
|
|
|
939
939
|
input each time, until success or end of the input data.
|
|
940
940
|
*/
|
|
941
941
|
|
|
942
|
-
ZEXTERN int ZEXPORT inflateCopy
|
|
943
|
-
|
|
942
|
+
ZEXTERN int ZEXPORT inflateCopy(z_streamp dest,
|
|
943
|
+
z_streamp source);
|
|
944
944
|
/*
|
|
945
945
|
Sets the destination stream as a complete copy of the source stream.
|
|
946
946
|
|
|
@@ -955,7 +955,7 @@ ZEXTERN int ZEXPORT inflateCopy OF((z_streamp dest,
|
|
|
955
955
|
destination.
|
|
956
956
|
*/
|
|
957
957
|
|
|
958
|
-
ZEXTERN int ZEXPORT inflateReset
|
|
958
|
+
ZEXTERN int ZEXPORT inflateReset(z_streamp strm);
|
|
959
959
|
/*
|
|
960
960
|
This function is equivalent to inflateEnd followed by inflateInit,
|
|
961
961
|
but does not free and reallocate the internal decompression state. The
|
|
@@ -965,8 +965,8 @@ ZEXTERN int ZEXPORT inflateReset OF((z_streamp strm));
|
|
|
965
965
|
stream state was inconsistent (such as zalloc or state being Z_NULL).
|
|
966
966
|
*/
|
|
967
967
|
|
|
968
|
-
ZEXTERN int ZEXPORT inflateReset2
|
|
969
|
-
|
|
968
|
+
ZEXTERN int ZEXPORT inflateReset2(z_streamp strm,
|
|
969
|
+
int windowBits);
|
|
970
970
|
/*
|
|
971
971
|
This function is the same as inflateReset, but it also permits changing
|
|
972
972
|
the wrap and window size requests. The windowBits parameter is interpreted
|
|
@@ -979,9 +979,9 @@ ZEXTERN int ZEXPORT inflateReset2 OF((z_streamp strm,
|
|
|
979
979
|
the windowBits parameter is invalid.
|
|
980
980
|
*/
|
|
981
981
|
|
|
982
|
-
ZEXTERN int ZEXPORT inflatePrime
|
|
983
|
-
|
|
984
|
-
|
|
982
|
+
ZEXTERN int ZEXPORT inflatePrime(z_streamp strm,
|
|
983
|
+
int bits,
|
|
984
|
+
int value);
|
|
985
985
|
/*
|
|
986
986
|
This function inserts bits in the inflate input stream. The intent is
|
|
987
987
|
that this function is used to start inflating at a bit position in the
|
|
@@ -1000,7 +1000,7 @@ ZEXTERN int ZEXPORT inflatePrime OF((z_streamp strm,
|
|
|
1000
1000
|
stream state was inconsistent.
|
|
1001
1001
|
*/
|
|
1002
1002
|
|
|
1003
|
-
ZEXTERN long ZEXPORT inflateMark
|
|
1003
|
+
ZEXTERN long ZEXPORT inflateMark(z_streamp strm);
|
|
1004
1004
|
/*
|
|
1005
1005
|
This function returns two values, one in the lower 16 bits of the return
|
|
1006
1006
|
value, and the other in the remaining upper bits, obtained by shifting the
|
|
@@ -1028,8 +1028,8 @@ ZEXTERN long ZEXPORT inflateMark OF((z_streamp strm));
|
|
|
1028
1028
|
source stream state was inconsistent.
|
|
1029
1029
|
*/
|
|
1030
1030
|
|
|
1031
|
-
ZEXTERN int ZEXPORT inflateGetHeader
|
|
1032
|
-
|
|
1031
|
+
ZEXTERN int ZEXPORT inflateGetHeader(z_streamp strm,
|
|
1032
|
+
gz_headerp head);
|
|
1033
1033
|
/*
|
|
1034
1034
|
inflateGetHeader() requests that gzip header information be stored in the
|
|
1035
1035
|
provided gz_header structure. inflateGetHeader() may be called after
|
|
@@ -1069,8 +1069,8 @@ ZEXTERN int ZEXPORT inflateGetHeader OF((z_streamp strm,
|
|
|
1069
1069
|
*/
|
|
1070
1070
|
|
|
1071
1071
|
/*
|
|
1072
|
-
ZEXTERN int ZEXPORT inflateBackInit
|
|
1073
|
-
|
|
1072
|
+
ZEXTERN int ZEXPORT inflateBackInit(z_streamp strm, int windowBits,
|
|
1073
|
+
unsigned char FAR *window);
|
|
1074
1074
|
|
|
1075
1075
|
Initialize the internal stream state for decompression using inflateBack()
|
|
1076
1076
|
calls. The fields zalloc, zfree and opaque in strm must be initialized
|
|
@@ -1090,13 +1090,13 @@ ZEXTERN int ZEXPORT inflateBackInit OF((z_streamp strm, int windowBits,
|
|
|
1090
1090
|
the version of the header file.
|
|
1091
1091
|
*/
|
|
1092
1092
|
|
|
1093
|
-
typedef unsigned (*in_func)
|
|
1094
|
-
|
|
1095
|
-
typedef int (*out_func)
|
|
1093
|
+
typedef unsigned (*in_func)(void FAR *,
|
|
1094
|
+
z_const unsigned char FAR * FAR *);
|
|
1095
|
+
typedef int (*out_func)(void FAR *, unsigned char FAR *, unsigned);
|
|
1096
1096
|
|
|
1097
|
-
ZEXTERN int ZEXPORT inflateBack
|
|
1098
|
-
|
|
1099
|
-
|
|
1097
|
+
ZEXTERN int ZEXPORT inflateBack(z_streamp strm,
|
|
1098
|
+
in_func in, void FAR *in_desc,
|
|
1099
|
+
out_func out, void FAR *out_desc);
|
|
1100
1100
|
/*
|
|
1101
1101
|
inflateBack() does a raw inflate with a single call using a call-back
|
|
1102
1102
|
interface for input and output. This is potentially more efficient than
|
|
@@ -1164,7 +1164,7 @@ ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm,
|
|
|
1164
1164
|
cannot return Z_OK.
|
|
1165
1165
|
*/
|
|
1166
1166
|
|
|
1167
|
-
ZEXTERN int ZEXPORT inflateBackEnd
|
|
1167
|
+
ZEXTERN int ZEXPORT inflateBackEnd(z_streamp strm);
|
|
1168
1168
|
/*
|
|
1169
1169
|
All memory allocated by inflateBackInit() is freed.
|
|
1170
1170
|
|
|
@@ -1172,7 +1172,7 @@ ZEXTERN int ZEXPORT inflateBackEnd OF((z_streamp strm));
|
|
|
1172
1172
|
state was inconsistent.
|
|
1173
1173
|
*/
|
|
1174
1174
|
|
|
1175
|
-
ZEXTERN uLong ZEXPORT zlibCompileFlags
|
|
1175
|
+
ZEXTERN uLong ZEXPORT zlibCompileFlags(void);
|
|
1176
1176
|
/* Return flags indicating compile-time options.
|
|
1177
1177
|
|
|
1178
1178
|
Type sizes, two bits each, 00 = 16 bits, 01 = 32, 10 = 64, 11 = other:
|
|
@@ -1225,8 +1225,8 @@ ZEXTERN uLong ZEXPORT zlibCompileFlags OF((void));
|
|
|
1225
1225
|
you need special options.
|
|
1226
1226
|
*/
|
|
1227
1227
|
|
|
1228
|
-
ZEXTERN int ZEXPORT compress
|
|
1229
|
-
|
|
1228
|
+
ZEXTERN int ZEXPORT compress(Bytef *dest, uLongf *destLen,
|
|
1229
|
+
const Bytef *source, uLong sourceLen);
|
|
1230
1230
|
/*
|
|
1231
1231
|
Compresses the source buffer into the destination buffer. sourceLen is
|
|
1232
1232
|
the byte length of the source buffer. Upon entry, destLen is the total size
|
|
@@ -1240,9 +1240,9 @@ ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
|
|
|
1240
1240
|
buffer.
|
|
1241
1241
|
*/
|
|
1242
1242
|
|
|
1243
|
-
ZEXTERN int ZEXPORT compress2
|
|
1244
|
-
|
|
1245
|
-
|
|
1243
|
+
ZEXTERN int ZEXPORT compress2(Bytef *dest, uLongf *destLen,
|
|
1244
|
+
const Bytef *source, uLong sourceLen,
|
|
1245
|
+
int level);
|
|
1246
1246
|
/*
|
|
1247
1247
|
Compresses the source buffer into the destination buffer. The level
|
|
1248
1248
|
parameter has the same meaning as in deflateInit. sourceLen is the byte
|
|
@@ -1256,15 +1256,15 @@ ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
|
|
|
1256
1256
|
Z_STREAM_ERROR if the level parameter is invalid.
|
|
1257
1257
|
*/
|
|
1258
1258
|
|
|
1259
|
-
ZEXTERN uLong ZEXPORT compressBound
|
|
1259
|
+
ZEXTERN uLong ZEXPORT compressBound(uLong sourceLen);
|
|
1260
1260
|
/*
|
|
1261
1261
|
compressBound() returns an upper bound on the compressed size after
|
|
1262
1262
|
compress() or compress2() on sourceLen bytes. It would be used before a
|
|
1263
1263
|
compress() or compress2() call to allocate the destination buffer.
|
|
1264
1264
|
*/
|
|
1265
1265
|
|
|
1266
|
-
ZEXTERN int ZEXPORT uncompress
|
|
1267
|
-
|
|
1266
|
+
ZEXTERN int ZEXPORT uncompress(Bytef *dest, uLongf *destLen,
|
|
1267
|
+
const Bytef *source, uLong sourceLen);
|
|
1268
1268
|
/*
|
|
1269
1269
|
Decompresses the source buffer into the destination buffer. sourceLen is
|
|
1270
1270
|
the byte length of the source buffer. Upon entry, destLen is the total size
|
|
@@ -1281,8 +1281,8 @@ ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
|
|
|
1281
1281
|
buffer with the uncompressed data up to that point.
|
|
1282
1282
|
*/
|
|
1283
1283
|
|
|
1284
|
-
ZEXTERN int ZEXPORT uncompress2
|
|
1285
|
-
|
|
1284
|
+
ZEXTERN int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen,
|
|
1285
|
+
const Bytef *source, uLong *sourceLen);
|
|
1286
1286
|
/*
|
|
1287
1287
|
Same as uncompress, except that sourceLen is a pointer, where the
|
|
1288
1288
|
length of the source is *sourceLen. On return, *sourceLen is the number of
|
|
@@ -1301,7 +1301,7 @@ ZEXTERN int ZEXPORT uncompress2 OF((Bytef *dest, uLongf *destLen,
|
|
|
1301
1301
|
typedef struct gzFile_s *gzFile; /* semi-opaque gzip file descriptor */
|
|
1302
1302
|
|
|
1303
1303
|
/*
|
|
1304
|
-
ZEXTERN gzFile ZEXPORT gzopen
|
|
1304
|
+
ZEXTERN gzFile ZEXPORT gzopen(const char *path, const char *mode);
|
|
1305
1305
|
|
|
1306
1306
|
Open the gzip (.gz) file at path for reading and decompressing, or
|
|
1307
1307
|
compressing and writing. The mode parameter is as in fopen ("rb" or "wb")
|
|
@@ -1338,7 +1338,7 @@ ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode));
|
|
|
1338
1338
|
file could not be opened.
|
|
1339
1339
|
*/
|
|
1340
1340
|
|
|
1341
|
-
ZEXTERN gzFile ZEXPORT gzdopen
|
|
1341
|
+
ZEXTERN gzFile ZEXPORT gzdopen(int fd, const char *mode);
|
|
1342
1342
|
/*
|
|
1343
1343
|
Associate a gzFile with the file descriptor fd. File descriptors are
|
|
1344
1344
|
obtained from calls like open, dup, creat, pipe or fileno (if the file has
|
|
@@ -1361,7 +1361,7 @@ ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode));
|
|
|
1361
1361
|
will not detect if fd is invalid (unless fd is -1).
|
|
1362
1362
|
*/
|
|
1363
1363
|
|
|
1364
|
-
ZEXTERN int ZEXPORT gzbuffer
|
|
1364
|
+
ZEXTERN int ZEXPORT gzbuffer(gzFile file, unsigned size);
|
|
1365
1365
|
/*
|
|
1366
1366
|
Set the internal buffer size used by this library's functions for file to
|
|
1367
1367
|
size. The default buffer size is 8192 bytes. This function must be called
|
|
@@ -1377,7 +1377,7 @@ ZEXTERN int ZEXPORT gzbuffer OF((gzFile file, unsigned size));
|
|
|
1377
1377
|
too late.
|
|
1378
1378
|
*/
|
|
1379
1379
|
|
|
1380
|
-
ZEXTERN int ZEXPORT gzsetparams
|
|
1380
|
+
ZEXTERN int ZEXPORT gzsetparams(gzFile file, int level, int strategy);
|
|
1381
1381
|
/*
|
|
1382
1382
|
Dynamically update the compression level and strategy for file. See the
|
|
1383
1383
|
description of deflateInit2 for the meaning of these parameters. Previously
|
|
@@ -1388,7 +1388,7 @@ ZEXTERN int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy));
|
|
|
1388
1388
|
or Z_MEM_ERROR if there is a memory allocation error.
|
|
1389
1389
|
*/
|
|
1390
1390
|
|
|
1391
|
-
ZEXTERN int ZEXPORT gzread
|
|
1391
|
+
ZEXTERN int ZEXPORT gzread(gzFile file, voidp buf, unsigned len);
|
|
1392
1392
|
/*
|
|
1393
1393
|
Read and decompress up to len uncompressed bytes from file into buf. If
|
|
1394
1394
|
the input file is not in gzip format, gzread copies the given number of
|
|
@@ -1418,8 +1418,8 @@ ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
|
|
|
1418
1418
|
Z_STREAM_ERROR.
|
|
1419
1419
|
*/
|
|
1420
1420
|
|
|
1421
|
-
ZEXTERN z_size_t ZEXPORT gzfread
|
|
1422
|
-
|
|
1421
|
+
ZEXTERN z_size_t ZEXPORT gzfread(voidp buf, z_size_t size, z_size_t nitems,
|
|
1422
|
+
gzFile file);
|
|
1423
1423
|
/*
|
|
1424
1424
|
Read and decompress up to nitems items of size size from file into buf,
|
|
1425
1425
|
otherwise operating as gzread() does. This duplicates the interface of
|
|
@@ -1444,14 +1444,14 @@ ZEXTERN z_size_t ZEXPORT gzfread OF((voidp buf, z_size_t size, z_size_t nitems,
|
|
|
1444
1444
|
file, resetting and retrying on end-of-file, when size is not 1.
|
|
1445
1445
|
*/
|
|
1446
1446
|
|
|
1447
|
-
ZEXTERN int ZEXPORT gzwrite
|
|
1447
|
+
ZEXTERN int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len);
|
|
1448
1448
|
/*
|
|
1449
1449
|
Compress and write the len uncompressed bytes at buf to file. gzwrite
|
|
1450
1450
|
returns the number of uncompressed bytes written or 0 in case of error.
|
|
1451
1451
|
*/
|
|
1452
1452
|
|
|
1453
|
-
ZEXTERN z_size_t ZEXPORT gzfwrite
|
|
1454
|
-
|
|
1453
|
+
ZEXTERN z_size_t ZEXPORT gzfwrite(voidpc buf, z_size_t size,
|
|
1454
|
+
z_size_t nitems, gzFile file);
|
|
1455
1455
|
/*
|
|
1456
1456
|
Compress and write nitems items of size size from buf to file, duplicating
|
|
1457
1457
|
the interface of stdio's fwrite(), with size_t request and return types. If
|
|
@@ -1464,7 +1464,7 @@ ZEXTERN z_size_t ZEXPORT gzfwrite OF((voidpc buf, z_size_t size,
|
|
|
1464
1464
|
is returned, and the error state is set to Z_STREAM_ERROR.
|
|
1465
1465
|
*/
|
|
1466
1466
|
|
|
1467
|
-
ZEXTERN int ZEXPORTVA gzprintf
|
|
1467
|
+
ZEXTERN int ZEXPORTVA gzprintf(gzFile file, const char *format, ...);
|
|
1468
1468
|
/*
|
|
1469
1469
|
Convert, format, compress, and write the arguments (...) to file under
|
|
1470
1470
|
control of the string format, as in fprintf. gzprintf returns the number of
|
|
@@ -1479,7 +1479,7 @@ ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));
|
|
|
1479
1479
|
This can be determined using zlibCompileFlags().
|
|
1480
1480
|
*/
|
|
1481
1481
|
|
|
1482
|
-
ZEXTERN int ZEXPORT gzputs
|
|
1482
|
+
ZEXTERN int ZEXPORT gzputs(gzFile file, const char *s);
|
|
1483
1483
|
/*
|
|
1484
1484
|
Compress and write the given null-terminated string s to file, excluding
|
|
1485
1485
|
the terminating null character.
|
|
@@ -1487,7 +1487,7 @@ ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s));
|
|
|
1487
1487
|
gzputs returns the number of characters written, or -1 in case of error.
|
|
1488
1488
|
*/
|
|
1489
1489
|
|
|
1490
|
-
ZEXTERN char * ZEXPORT gzgets
|
|
1490
|
+
ZEXTERN char * ZEXPORT gzgets(gzFile file, char *buf, int len);
|
|
1491
1491
|
/*
|
|
1492
1492
|
Read and decompress bytes from file into buf, until len-1 characters are
|
|
1493
1493
|
read, or until a newline character is read and transferred to buf, or an
|
|
@@ -1501,13 +1501,13 @@ ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len));
|
|
|
1501
1501
|
buf are indeterminate.
|
|
1502
1502
|
*/
|
|
1503
1503
|
|
|
1504
|
-
ZEXTERN int ZEXPORT gzputc
|
|
1504
|
+
ZEXTERN int ZEXPORT gzputc(gzFile file, int c);
|
|
1505
1505
|
/*
|
|
1506
1506
|
Compress and write c, converted to an unsigned char, into file. gzputc
|
|
1507
1507
|
returns the value that was written, or -1 in case of error.
|
|
1508
1508
|
*/
|
|
1509
1509
|
|
|
1510
|
-
ZEXTERN int ZEXPORT gzgetc
|
|
1510
|
+
ZEXTERN int ZEXPORT gzgetc(gzFile file);
|
|
1511
1511
|
/*
|
|
1512
1512
|
Read and decompress one byte from file. gzgetc returns this byte or -1
|
|
1513
1513
|
in case of end of file or error. This is implemented as a macro for speed.
|
|
@@ -1516,7 +1516,7 @@ ZEXTERN int ZEXPORT gzgetc OF((gzFile file));
|
|
|
1516
1516
|
points to has been clobbered or not.
|
|
1517
1517
|
*/
|
|
1518
1518
|
|
|
1519
|
-
ZEXTERN int ZEXPORT gzungetc
|
|
1519
|
+
ZEXTERN int ZEXPORT gzungetc(int c, gzFile file);
|
|
1520
1520
|
/*
|
|
1521
1521
|
Push c back onto the stream for file to be read as the first character on
|
|
1522
1522
|
the next read. At least one character of push-back is always allowed.
|
|
@@ -1528,7 +1528,7 @@ ZEXTERN int ZEXPORT gzungetc OF((int c, gzFile file));
|
|
|
1528
1528
|
gzseek() or gzrewind().
|
|
1529
1529
|
*/
|
|
1530
1530
|
|
|
1531
|
-
ZEXTERN int ZEXPORT gzflush
|
|
1531
|
+
ZEXTERN int ZEXPORT gzflush(gzFile file, int flush);
|
|
1532
1532
|
/*
|
|
1533
1533
|
Flush all pending output to file. The parameter flush is as in the
|
|
1534
1534
|
deflate() function. The return value is the zlib error number (see function
|
|
@@ -1544,8 +1544,8 @@ ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush));
|
|
|
1544
1544
|
*/
|
|
1545
1545
|
|
|
1546
1546
|
/*
|
|
1547
|
-
ZEXTERN z_off_t ZEXPORT gzseek
|
|
1548
|
-
|
|
1547
|
+
ZEXTERN z_off_t ZEXPORT gzseek(gzFile file,
|
|
1548
|
+
z_off_t offset, int whence);
|
|
1549
1549
|
|
|
1550
1550
|
Set the starting position to offset relative to whence for the next gzread
|
|
1551
1551
|
or gzwrite on file. The offset represents a number of bytes in the
|
|
@@ -1563,7 +1563,7 @@ ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file,
|
|
|
1563
1563
|
would be before the current position.
|
|
1564
1564
|
*/
|
|
1565
1565
|
|
|
1566
|
-
ZEXTERN int ZEXPORT gzrewind
|
|
1566
|
+
ZEXTERN int ZEXPORT gzrewind(gzFile file);
|
|
1567
1567
|
/*
|
|
1568
1568
|
Rewind file. This function is supported only for reading.
|
|
1569
1569
|
|
|
@@ -1571,7 +1571,7 @@ ZEXTERN int ZEXPORT gzrewind OF((gzFile file));
|
|
|
1571
1571
|
*/
|
|
1572
1572
|
|
|
1573
1573
|
/*
|
|
1574
|
-
ZEXTERN z_off_t ZEXPORT gztell
|
|
1574
|
+
ZEXTERN z_off_t ZEXPORT gztell(gzFile file);
|
|
1575
1575
|
|
|
1576
1576
|
Return the starting position for the next gzread or gzwrite on file.
|
|
1577
1577
|
This position represents a number of bytes in the uncompressed data stream,
|
|
@@ -1582,7 +1582,7 @@ ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file));
|
|
|
1582
1582
|
*/
|
|
1583
1583
|
|
|
1584
1584
|
/*
|
|
1585
|
-
ZEXTERN z_off_t ZEXPORT gzoffset
|
|
1585
|
+
ZEXTERN z_off_t ZEXPORT gzoffset(gzFile file);
|
|
1586
1586
|
|
|
1587
1587
|
Return the current compressed (actual) read or write offset of file. This
|
|
1588
1588
|
offset includes the count of bytes that precede the gzip stream, for example
|
|
@@ -1591,7 +1591,7 @@ ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile file));
|
|
|
1591
1591
|
be used for a progress indicator. On error, gzoffset() returns -1.
|
|
1592
1592
|
*/
|
|
1593
1593
|
|
|
1594
|
-
ZEXTERN int ZEXPORT gzeof
|
|
1594
|
+
ZEXTERN int ZEXPORT gzeof(gzFile file);
|
|
1595
1595
|
/*
|
|
1596
1596
|
Return true (1) if the end-of-file indicator for file has been set while
|
|
1597
1597
|
reading, false (0) otherwise. Note that the end-of-file indicator is set
|
|
@@ -1606,7 +1606,7 @@ ZEXTERN int ZEXPORT gzeof OF((gzFile file));
|
|
|
1606
1606
|
has grown since the previous end of file was detected.
|
|
1607
1607
|
*/
|
|
1608
1608
|
|
|
1609
|
-
ZEXTERN int ZEXPORT gzdirect
|
|
1609
|
+
ZEXTERN int ZEXPORT gzdirect(gzFile file);
|
|
1610
1610
|
/*
|
|
1611
1611
|
Return true (1) if file is being copied directly while reading, or false
|
|
1612
1612
|
(0) if file is a gzip stream being decompressed.
|
|
@@ -1627,7 +1627,7 @@ ZEXTERN int ZEXPORT gzdirect OF((gzFile file));
|
|
|
1627
1627
|
gzip file reading and decompression, which may not be desired.)
|
|
1628
1628
|
*/
|
|
1629
1629
|
|
|
1630
|
-
ZEXTERN int ZEXPORT gzclose
|
|
1630
|
+
ZEXTERN int ZEXPORT gzclose(gzFile file);
|
|
1631
1631
|
/*
|
|
1632
1632
|
Flush all pending output for file, if necessary, close file and
|
|
1633
1633
|
deallocate the (de)compression state. Note that once file is closed, you
|
|
@@ -1640,8 +1640,8 @@ ZEXTERN int ZEXPORT gzclose OF((gzFile file));
|
|
|
1640
1640
|
last read ended in the middle of a gzip stream, or Z_OK on success.
|
|
1641
1641
|
*/
|
|
1642
1642
|
|
|
1643
|
-
ZEXTERN int ZEXPORT gzclose_r
|
|
1644
|
-
ZEXTERN int ZEXPORT gzclose_w
|
|
1643
|
+
ZEXTERN int ZEXPORT gzclose_r(gzFile file);
|
|
1644
|
+
ZEXTERN int ZEXPORT gzclose_w(gzFile file);
|
|
1645
1645
|
/*
|
|
1646
1646
|
Same as gzclose(), but gzclose_r() is only for use when reading, and
|
|
1647
1647
|
gzclose_w() is only for use when writing or appending. The advantage to
|
|
@@ -1652,7 +1652,7 @@ ZEXTERN int ZEXPORT gzclose_w OF((gzFile file));
|
|
|
1652
1652
|
zlib library.
|
|
1653
1653
|
*/
|
|
1654
1654
|
|
|
1655
|
-
ZEXTERN const char * ZEXPORT gzerror
|
|
1655
|
+
ZEXTERN const char * ZEXPORT gzerror(gzFile file, int *errnum);
|
|
1656
1656
|
/*
|
|
1657
1657
|
Return the error message for the last error which occurred on file.
|
|
1658
1658
|
errnum is set to zlib error number. If an error occurred in the file system
|
|
@@ -1668,7 +1668,7 @@ ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum));
|
|
|
1668
1668
|
functions above that do not distinguish those cases in their return values.
|
|
1669
1669
|
*/
|
|
1670
1670
|
|
|
1671
|
-
ZEXTERN void ZEXPORT gzclearerr
|
|
1671
|
+
ZEXTERN void ZEXPORT gzclearerr(gzFile file);
|
|
1672
1672
|
/*
|
|
1673
1673
|
Clear the error and end-of-file flags for file. This is analogous to the
|
|
1674
1674
|
clearerr() function in stdio. This is useful for continuing to read a gzip
|
|
@@ -1685,7 +1685,7 @@ ZEXTERN void ZEXPORT gzclearerr OF((gzFile file));
|
|
|
1685
1685
|
library.
|
|
1686
1686
|
*/
|
|
1687
1687
|
|
|
1688
|
-
ZEXTERN uLong ZEXPORT adler32
|
|
1688
|
+
ZEXTERN uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len);
|
|
1689
1689
|
/*
|
|
1690
1690
|
Update a running Adler-32 checksum with the bytes buf[0..len-1] and
|
|
1691
1691
|
return the updated checksum. An Adler-32 value is in the range of a 32-bit
|
|
@@ -1705,15 +1705,15 @@ ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
|
|
|
1705
1705
|
if (adler != original_adler) error();
|
|
1706
1706
|
*/
|
|
1707
1707
|
|
|
1708
|
-
ZEXTERN uLong ZEXPORT adler32_z
|
|
1709
|
-
|
|
1708
|
+
ZEXTERN uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf,
|
|
1709
|
+
z_size_t len);
|
|
1710
1710
|
/*
|
|
1711
1711
|
Same as adler32(), but with a size_t length.
|
|
1712
1712
|
*/
|
|
1713
1713
|
|
|
1714
1714
|
/*
|
|
1715
|
-
ZEXTERN uLong ZEXPORT adler32_combine
|
|
1716
|
-
|
|
1715
|
+
ZEXTERN uLong ZEXPORT adler32_combine(uLong adler1, uLong adler2,
|
|
1716
|
+
z_off_t len2);
|
|
1717
1717
|
|
|
1718
1718
|
Combine two Adler-32 checksums into one. For two sequences of bytes, seq1
|
|
1719
1719
|
and seq2 with lengths len1 and len2, Adler-32 checksums were calculated for
|
|
@@ -1723,7 +1723,7 @@ ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2,
|
|
|
1723
1723
|
negative, the result has no meaning or utility.
|
|
1724
1724
|
*/
|
|
1725
1725
|
|
|
1726
|
-
ZEXTERN uLong ZEXPORT crc32
|
|
1726
|
+
ZEXTERN uLong ZEXPORT crc32(uLong crc, const Bytef *buf, uInt len);
|
|
1727
1727
|
/*
|
|
1728
1728
|
Update a running CRC-32 with the bytes buf[0..len-1] and return the
|
|
1729
1729
|
updated CRC-32. A CRC-32 value is in the range of a 32-bit unsigned integer.
|
|
@@ -1741,14 +1741,14 @@ ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
|
|
|
1741
1741
|
if (crc != original_crc) error();
|
|
1742
1742
|
*/
|
|
1743
1743
|
|
|
1744
|
-
ZEXTERN uLong ZEXPORT crc32_z
|
|
1745
|
-
|
|
1744
|
+
ZEXTERN uLong ZEXPORT crc32_z(uLong crc, const Bytef *buf,
|
|
1745
|
+
z_size_t len);
|
|
1746
1746
|
/*
|
|
1747
1747
|
Same as crc32(), but with a size_t length.
|
|
1748
1748
|
*/
|
|
1749
1749
|
|
|
1750
1750
|
/*
|
|
1751
|
-
ZEXTERN uLong ZEXPORT crc32_combine
|
|
1751
|
+
ZEXTERN uLong ZEXPORT crc32_combine(uLong crc1, uLong crc2, z_off_t len2);
|
|
1752
1752
|
|
|
1753
1753
|
Combine two CRC-32 check values into one. For two sequences of bytes,
|
|
1754
1754
|
seq1 and seq2 with lengths len1 and len2, CRC-32 check values were
|
|
@@ -1758,13 +1758,13 @@ ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2));
|
|
|
1758
1758
|
*/
|
|
1759
1759
|
|
|
1760
1760
|
/*
|
|
1761
|
-
ZEXTERN uLong ZEXPORT crc32_combine_gen
|
|
1761
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t len2);
|
|
1762
1762
|
|
|
1763
1763
|
Return the operator corresponding to length len2, to be used with
|
|
1764
1764
|
crc32_combine_op().
|
|
1765
1765
|
*/
|
|
1766
1766
|
|
|
1767
|
-
ZEXTERN uLong ZEXPORT crc32_combine_op
|
|
1767
|
+
ZEXTERN uLong ZEXPORT crc32_combine_op(uLong crc1, uLong crc2, uLong op);
|
|
1768
1768
|
/*
|
|
1769
1769
|
Give the same result as crc32_combine(), using op in place of len2. op is
|
|
1770
1770
|
is generated from len2 by crc32_combine_gen(). This will be faster than
|
|
@@ -1777,20 +1777,20 @@ ZEXTERN uLong ZEXPORT crc32_combine_op OF((uLong crc1, uLong crc2, uLong op));
|
|
|
1777
1777
|
/* deflateInit and inflateInit are macros to allow checking the zlib version
|
|
1778
1778
|
* and the compiler's view of z_stream:
|
|
1779
1779
|
*/
|
|
1780
|
-
ZEXTERN int ZEXPORT deflateInit_
|
|
1781
|
-
|
|
1782
|
-
ZEXTERN int ZEXPORT inflateInit_
|
|
1783
|
-
|
|
1784
|
-
ZEXTERN int ZEXPORT deflateInit2_
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
ZEXTERN int ZEXPORT inflateInit2_
|
|
1789
|
-
|
|
1790
|
-
ZEXTERN int ZEXPORT inflateBackInit_
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1780
|
+
ZEXTERN int ZEXPORT deflateInit_(z_streamp strm, int level,
|
|
1781
|
+
const char *version, int stream_size);
|
|
1782
|
+
ZEXTERN int ZEXPORT inflateInit_(z_streamp strm,
|
|
1783
|
+
const char *version, int stream_size);
|
|
1784
|
+
ZEXTERN int ZEXPORT deflateInit2_(z_streamp strm, int level, int method,
|
|
1785
|
+
int windowBits, int memLevel,
|
|
1786
|
+
int strategy, const char *version,
|
|
1787
|
+
int stream_size);
|
|
1788
|
+
ZEXTERN int ZEXPORT inflateInit2_(z_streamp strm, int windowBits,
|
|
1789
|
+
const char *version, int stream_size);
|
|
1790
|
+
ZEXTERN int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits,
|
|
1791
|
+
unsigned char FAR *window,
|
|
1792
|
+
const char *version,
|
|
1793
|
+
int stream_size);
|
|
1794
1794
|
#ifdef Z_PREFIX_SET
|
|
1795
1795
|
# define z_deflateInit(strm, level) \
|
|
1796
1796
|
deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream))
|
|
@@ -1835,7 +1835,7 @@ struct gzFile_s {
|
|
|
1835
1835
|
unsigned char *next;
|
|
1836
1836
|
z_off64_t pos;
|
|
1837
1837
|
};
|
|
1838
|
-
ZEXTERN int ZEXPORT gzgetc_
|
|
1838
|
+
ZEXTERN int ZEXPORT gzgetc_(gzFile file); /* backward compatibility */
|
|
1839
1839
|
#ifdef Z_PREFIX_SET
|
|
1840
1840
|
# undef z_gzgetc
|
|
1841
1841
|
# define z_gzgetc(g) \
|
|
@@ -1857,13 +1857,13 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
|
|
|
1857
1857
|
* without large file support, _LFS64_LARGEFILE must also be true
|
|
1858
1858
|
*/
|
|
1859
1859
|
#ifdef Z_LARGE64
|
|
1860
|
-
ZEXTERN gzFile ZEXPORT gzopen64
|
|
1861
|
-
ZEXTERN z_off64_t ZEXPORT gzseek64
|
|
1862
|
-
ZEXTERN z_off64_t ZEXPORT gztell64
|
|
1863
|
-
ZEXTERN z_off64_t ZEXPORT gzoffset64
|
|
1864
|
-
ZEXTERN uLong ZEXPORT adler32_combine64
|
|
1865
|
-
ZEXTERN uLong ZEXPORT crc32_combine64
|
|
1866
|
-
ZEXTERN uLong ZEXPORT crc32_combine_gen64
|
|
1860
|
+
ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *);
|
|
1861
|
+
ZEXTERN z_off64_t ZEXPORT gzseek64(gzFile, z_off64_t, int);
|
|
1862
|
+
ZEXTERN z_off64_t ZEXPORT gztell64(gzFile);
|
|
1863
|
+
ZEXTERN z_off64_t ZEXPORT gzoffset64(gzFile);
|
|
1864
|
+
ZEXTERN uLong ZEXPORT adler32_combine64(uLong, uLong, z_off64_t);
|
|
1865
|
+
ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off64_t);
|
|
1866
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen64(z_off64_t);
|
|
1867
1867
|
#endif
|
|
1868
1868
|
|
|
1869
1869
|
#if !defined(ZLIB_INTERNAL) && defined(Z_WANT64)
|
|
@@ -1910,50 +1910,50 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
|
|
|
1910
1910
|
# endif
|
|
1911
1911
|
# endif
|
|
1912
1912
|
# ifndef Z_LARGE64
|
|
1913
|
-
ZEXTERN gzFile ZEXPORT gzopen64
|
|
1914
|
-
ZEXTERN z_off_t ZEXPORT gzseek64
|
|
1915
|
-
ZEXTERN z_off_t ZEXPORT gztell64
|
|
1916
|
-
ZEXTERN z_off_t ZEXPORT gzoffset64
|
|
1917
|
-
ZEXTERN uLong ZEXPORT adler32_combine64
|
|
1918
|
-
ZEXTERN uLong ZEXPORT crc32_combine64
|
|
1919
|
-
ZEXTERN uLong ZEXPORT crc32_combine_gen64
|
|
1913
|
+
ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *);
|
|
1914
|
+
ZEXTERN z_off_t ZEXPORT gzseek64(gzFile, z_off_t, int);
|
|
1915
|
+
ZEXTERN z_off_t ZEXPORT gztell64(gzFile);
|
|
1916
|
+
ZEXTERN z_off_t ZEXPORT gzoffset64(gzFile);
|
|
1917
|
+
ZEXTERN uLong ZEXPORT adler32_combine64(uLong, uLong, z_off_t);
|
|
1918
|
+
ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off_t);
|
|
1919
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen64(z_off_t);
|
|
1920
1920
|
# endif
|
|
1921
1921
|
#else
|
|
1922
|
-
ZEXTERN gzFile ZEXPORT gzopen
|
|
1923
|
-
ZEXTERN z_off_t ZEXPORT gzseek
|
|
1924
|
-
ZEXTERN z_off_t ZEXPORT gztell
|
|
1925
|
-
ZEXTERN z_off_t ZEXPORT gzoffset
|
|
1926
|
-
ZEXTERN uLong ZEXPORT adler32_combine
|
|
1927
|
-
ZEXTERN uLong ZEXPORT crc32_combine
|
|
1928
|
-
ZEXTERN uLong ZEXPORT crc32_combine_gen
|
|
1922
|
+
ZEXTERN gzFile ZEXPORT gzopen(const char *, const char *);
|
|
1923
|
+
ZEXTERN z_off_t ZEXPORT gzseek(gzFile, z_off_t, int);
|
|
1924
|
+
ZEXTERN z_off_t ZEXPORT gztell(gzFile);
|
|
1925
|
+
ZEXTERN z_off_t ZEXPORT gzoffset(gzFile);
|
|
1926
|
+
ZEXTERN uLong ZEXPORT adler32_combine(uLong, uLong, z_off_t);
|
|
1927
|
+
ZEXTERN uLong ZEXPORT crc32_combine(uLong, uLong, z_off_t);
|
|
1928
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t);
|
|
1929
1929
|
#endif
|
|
1930
1930
|
|
|
1931
1931
|
#else /* Z_SOLO */
|
|
1932
1932
|
|
|
1933
|
-
ZEXTERN uLong ZEXPORT adler32_combine
|
|
1934
|
-
ZEXTERN uLong ZEXPORT crc32_combine
|
|
1935
|
-
ZEXTERN uLong ZEXPORT crc32_combine_gen
|
|
1933
|
+
ZEXTERN uLong ZEXPORT adler32_combine(uLong, uLong, z_off_t);
|
|
1934
|
+
ZEXTERN uLong ZEXPORT crc32_combine(uLong, uLong, z_off_t);
|
|
1935
|
+
ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t);
|
|
1936
1936
|
|
|
1937
1937
|
#endif /* !Z_SOLO */
|
|
1938
1938
|
|
|
1939
1939
|
/* undocumented functions */
|
|
1940
|
-
ZEXTERN const char * ZEXPORT zError
|
|
1941
|
-
ZEXTERN int ZEXPORT inflateSyncPoint
|
|
1942
|
-
ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table
|
|
1943
|
-
ZEXTERN int ZEXPORT inflateUndermine
|
|
1944
|
-
ZEXTERN int ZEXPORT inflateValidate
|
|
1945
|
-
ZEXTERN unsigned long ZEXPORT inflateCodesUsed
|
|
1946
|
-
ZEXTERN int ZEXPORT inflateResetKeep
|
|
1947
|
-
ZEXTERN int ZEXPORT deflateResetKeep
|
|
1940
|
+
ZEXTERN const char * ZEXPORT zError(int);
|
|
1941
|
+
ZEXTERN int ZEXPORT inflateSyncPoint(z_streamp);
|
|
1942
|
+
ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table(void);
|
|
1943
|
+
ZEXTERN int ZEXPORT inflateUndermine(z_streamp, int);
|
|
1944
|
+
ZEXTERN int ZEXPORT inflateValidate(z_streamp, int);
|
|
1945
|
+
ZEXTERN unsigned long ZEXPORT inflateCodesUsed(z_streamp);
|
|
1946
|
+
ZEXTERN int ZEXPORT inflateResetKeep(z_streamp);
|
|
1947
|
+
ZEXTERN int ZEXPORT deflateResetKeep(z_streamp);
|
|
1948
1948
|
#if defined(_WIN32) && !defined(Z_SOLO)
|
|
1949
|
-
ZEXTERN gzFile ZEXPORT gzopen_w
|
|
1950
|
-
|
|
1949
|
+
ZEXTERN gzFile ZEXPORT gzopen_w(const wchar_t *path,
|
|
1950
|
+
const char *mode);
|
|
1951
1951
|
#endif
|
|
1952
1952
|
#if defined(STDC) || defined(Z_HAVE_STDARG_H)
|
|
1953
1953
|
# ifndef Z_SOLO
|
|
1954
|
-
ZEXTERN int ZEXPORTVA gzvprintf
|
|
1955
|
-
|
|
1956
|
-
|
|
1954
|
+
ZEXTERN int ZEXPORTVA gzvprintf(gzFile file,
|
|
1955
|
+
const char *format,
|
|
1956
|
+
va_list va);
|
|
1957
1957
|
# endif
|
|
1958
1958
|
#endif
|
|
1959
1959
|
|