Rizin
unix-like reverse engineering framework and cli tools
zlib.inc
Go to the documentation of this file.
1  * ZLIB.INC - Interface to the general purpose compression library
2  *
3  * ILE RPG400 version by Patrick Monnerat, DATASPHERE.
4  * Version 1.2.12
5  *
6  *
7  * WARNING:
8  * Procedures inflateInit(), inflateInit2(), deflateInit(),
9  * deflateInit2() and inflateBackInit() need to be called with
10  * two additional arguments:
11  * the package version string and the stream control structure.
12  * size. This is needed because RPG lacks some macro feature.
13  * Call these procedures as:
15  *
16  /if not defined(ZLIB_H_)
17  /define ZLIB_H_
18  *
19  **************************************************************************
20  * Constants
21  **************************************************************************
22  *
23  * Versioning information.
24  *
25  D ZLIB_VERSION C '1.2.12'
26  D ZLIB_VERNUM C X'12a0'
30  D C 12
32  D C 0
33  *
34  * Other equates.
35  *
36  D Z_NO_FLUSH C 0
38  D C 1
39  D Z_SYNC_FLUSH C 2
40  D Z_FULL_FLUSH C 3
41  D Z_FINISH C 4
42  D Z_BLOCK C 5
43  D Z_TREES C 6
44  *
45  D Z_OK C 0
46  D Z_STREAM_END C 1
47  D Z_NEED_DICT C 2
48  D Z_ERRNO C -1
49  D Z_STREAM_ERROR C -2
50  D Z_DATA_ERROR C -3
51  D Z_MEM_ERROR C -4
52  D Z_BUF_ERROR C -5
54  *
56  D C 0
57  D Z_BEST_SPEED C 1
59  D C 9
61  D C -1
62  *
63  D Z_FILTERED C 1
65  D Z_RLE C 3
67  D C 0
68  *
69  D Z_BINARY C 0
70  D Z_ASCII C 1
71  D Z_UNKNOWN C 2
72  *
73  D Z_DEFLATED C 8
74  *
75  D Z_NULL C 0
76  *
77  **************************************************************************
78  * Types
79  **************************************************************************
80  *
81  D z_streamp S * Stream struct ptr
82  D gzFile S * File pointer
83  D gz_headerp S *
84  D z_off_t S 10i 0 Stream offsets
85  D z_off64_t S 20i 0 Stream offsets
86  *
87  **************************************************************************
88  * Structures
89  **************************************************************************
90  *
91  * The GZIP encode/decode stream support structure.
92  *
93  D z_stream DS align based(z_streamp)
94  D zs_next_in * Next input byte
95  D zs_avail_in 10U 0 Byte cnt at next_in
96  D zs_total_in 10U 0 Total bytes read
97  D zs_next_out * Output buffer ptr
98  D zs_avail_out 10U 0 Room left @ next_out
99  D zs_total_out 10U 0 Total bytes written
100  D zs_msg * Last errmsg or null
101  D zs_state * Internal state
102  D zs_zalloc * procptr Int. state allocator
103  D zs_free * procptr Int. state dealloc.
104  D zs_opaque * Private alloc. data
105  D zs_data_type 10i 0 ASC/BIN best guess
106  D zs_adler 10u 0 Uncompr. adler32 val
107  D 10U 0 Reserved
108  D 10U 0 Ptr. alignment
109  *
110  **************************************************************************
111  * Utility function prototypes
112  **************************************************************************
113  *
114  D compress PR 10I 0 extproc('compress')
115  D dest 65535 options(*varsize) Destination buffer
116  D destLen 10U 0 Destination length
117  D source 65535 const options(*varsize) Source buffer
118  D sourceLen 10u 0 value Source length
119  *
120  D compress2 PR 10I 0 extproc('compress2')
121  D dest 65535 options(*varsize) Destination buffer
122  D destLen 10U 0 Destination length
123  D source 65535 const options(*varsize) Source buffer
124  D sourceLen 10U 0 value Source length
125  D level 10I 0 value Compression level
126  *
127  D compressBound PR 10U 0 extproc('compressBound')
128  D sourceLen 10U 0 value
129  *
130  D uncompress PR 10I 0 extproc('uncompress')
131  D dest 65535 options(*varsize) Destination buffer
132  D destLen 10U 0 Destination length
133  D source 65535 const options(*varsize) Source buffer
134  D sourceLen 10U 0 value Source length
135  *
136  D uncompress2 PR 10I 0 extproc('uncompress2')
137  D dest 65535 options(*varsize) Destination buffer
138  D destLen 10U 0 Destination length
139  D source 65535 const options(*varsize) Source buffer
140  D sourceLen 10U 0 Source length
141  *
142  /if not defined(LARGE_FILES)
143  D gzopen PR extproc('gzopen')
144  D like(gzFile)
145  D path * value options(*string) File pathname
146  D mode * value options(*string) Open mode
147  /else
148  D gzopen PR extproc('gzopen64')
149  D like(gzFile)
150  D path * value options(*string) File pathname
151  D mode * value options(*string) Open mode
152  *
153  D gzopen64 PR extproc('gzopen64')
154  D like(gzFile)
155  D path * value options(*string) File pathname
156  D mode * value options(*string) Open mode
157  /endif
158  *
159  D gzdopen PR extproc('gzdopen')
160  D like(gzFile)
161  D fd 10I 0 value File descriptor
162  D mode * value options(*string) Open mode
163  *
164  D gzbuffer PR 10I 0 extproc('gzbuffer')
165  D file value like(gzFile) File pointer
166  D size 10U 0 value
167  *
168  D gzsetparams PR 10I 0 extproc('gzsetparams')
169  D file value like(gzFile) File pointer
170  D level 10I 0 value
171  D strategy 10I 0 value
172  *
173  D gzread PR 10I 0 extproc('gzread')
174  D file value like(gzFile) File pointer
175  D buf 65535 options(*varsize) Buffer
176  D len 10u 0 value Buffer length
177  *
178  D gzfread PR 20I 0 extproc('gzfread')
179  D buf 65535 options(*varsize) Buffer
180  D size 20u 0 value Buffer length
181  D nitems 20u 0 value Buffer length
182  D file value like(gzFile) File pointer
183  *
184  D gzwrite PR 10I 0 extproc('gzwrite')
185  D file value like(gzFile) File pointer
186  D buf 65535 const options(*varsize) Buffer
187  D len 10u 0 value Buffer length
188  *
189  D gzfwrite PR 20I 0 extproc('gzfwrite')
190  D buf 65535 options(*varsize) Buffer
191  D size 20u 0 value Buffer length
192  D nitems 20u 0 value Buffer length
193  D file value like(gzFile) File pointer
194  *
195  D gzputs PR 10I 0 extproc('gzputs')
196  D file value like(gzFile) File pointer
197  D s * value options(*string) String to output
198  *
199  D gzgets PR * extproc('gzgets')
200  D file value like(gzFile) File pointer
201  D buf 65535 options(*varsize) Read buffer
202  D len 10i 0 value Buffer length
203  *
204  D gzputc PR 10i 0 extproc('gzputc')
205  D file value like(gzFile) File pointer
206  D c 10I 0 value Character to write
207  *
208  D gzgetc PR 10i 0 extproc('gzgetc')
209  D file value like(gzFile) File pointer
210  *
211  D gzgetc_ PR 10i 0 extproc('gzgetc_')
212  D file value like(gzFile) File pointer
213  *
214  D gzungetc PR 10i 0 extproc('gzungetc')
215  D c 10I 0 value Character to push
216  D file value like(gzFile) File pointer
217  *
218  D gzflush PR 10i 0 extproc('gzflush')
219  D file value like(gzFile) File pointer
220  D flush 10I 0 value Type of flush
221  *
222  /if not defined(LARGE_FILES)
223  D gzseek PR extproc('gzseek')
224  D like(z_off_t)
225  D file value like(gzFile) File pointer
226  D offset value like(z_off_t) Offset
227  D whence 10i 0 value Origin
228  /else
229  D gzseek PR extproc('gzseek64')
230  D like(z_off_t)
231  D file value like(gzFile) File pointer
232  D offset value like(z_off_t) Offset
233  D whence 10i 0 value Origin
234  *
235  D gzseek64 PR extproc('gzseek64')
236  D like(z_off64_t)
237  D file value like(gzFile) File pointer
239  D whence 10i 0 value Origin
240  /endif
241  *
242  D gzrewind PR 10i 0 extproc('gzrewind')
243  D file value like(gzFile) File pointer
244  *
245  /if not defined(LARGE_FILES)
246  D gztell PR extproc('gztell')
247  D like(z_off_t)
248  D file value like(gzFile) File pointer
249  /else
250  D gztell PR extproc('gztell64')
251  D like(z_off_t)
252  D file value like(gzFile) File pointer
253  *
254  D gztell64 PR extproc('gztell64')
255  D like(z_off64_t)
256  D file value like(gzFile) File pointer
257  /endif
258  *
259  /if not defined(LARGE_FILES)
260  D gzoffset PR extproc('gzoffset')
261  D like(z_off_t)
262  D file value like(gzFile) File pointer
263  /else
264  D gzoffset PR extproc('gzoffset64')
265  D like(z_off_t)
266  D file value like(gzFile) File pointer
267  *
268  D gzoffset64 PR extproc('gzoffset64')
269  D like(z_off64_t)
270  D file value like(gzFile) File pointer
271  /endif
272  *
273  D gzeof PR 10i 0 extproc('gzeof')
274  D file value like(gzFile) File pointer
275  *
276  D gzdirect PR 10i 0 extproc('gzdirect')
277  D file value like(gzFile) File pointer
278  *
279  D gzclose_r PR 10i 0 extproc('gzclose_r')
280  D file value like(gzFile) File pointer
281  *
282  D gzclose_w PR 10i 0 extproc('gzclose_w')
283  D file value like(gzFile) File pointer
284  *
285  D gzclose PR 10i 0 extproc('gzclose')
286  D file value like(gzFile) File pointer
287  *
288  D gzerror PR * extproc('gzerror') Error string
289  D file value like(gzFile) File pointer
290  D errnum 10I 0 Error code
291  *
292  D gzclearerr PR extproc('gzclearerr')
293  D file value like(gzFile) File pointer
294  *
295  **************************************************************************
296  * Basic function prototypes
297  **************************************************************************
298  *
299  D zlibVersion PR * extproc('zlibVersion') Version string
300  *
301  D deflateInit PR 10I 0 extproc('deflateInit_') Init. compression
302  D strm like(z_stream) Compression stream
303  D level 10I 0 value Compression level
304  D version * value options(*string) Version string
305  D stream_size 10i 0 value Stream struct. size
306  *
307  D deflate PR 10I 0 extproc('deflate') Compress data
308  D strm like(z_stream) Compression stream
309  D flush 10I 0 value Flush type required
310  *
311  D deflateEnd PR 10I 0 extproc('deflateEnd') Termin. compression
312  D strm like(z_stream) Compression stream
313  *
314  D inflateInit PR 10I 0 extproc('inflateInit_') Init. expansion
315  D strm like(z_stream) Expansion stream
316  D version * value options(*string) Version string
317  D stream_size 10i 0 value Stream struct. size
318  *
319  D inflate PR 10I 0 extproc('inflate') Expand data
320  D strm like(z_stream) Expansion stream
321  D flush 10I 0 value Flush type required
322  *
323  D inflateEnd PR 10I 0 extproc('inflateEnd') Termin. expansion
324  D strm like(z_stream) Expansion stream
325  *
326  **************************************************************************
327  * Advanced function prototypes
328  **************************************************************************
329  *
330  D deflateInit2 PR 10I 0 extproc('deflateInit2_') Init. compression
331  D strm like(z_stream) Compression stream
332  D level 10I 0 value Compression level
333  D method 10I 0 value Compression method
334  D windowBits 10I 0 value log2(window size)
335  D memLevel 10I 0 value Mem/cmpress tradeoff
336  D strategy 10I 0 value Compression strategy
337  D version * value options(*string) Version string
338  D stream_size 10i 0 value Stream struct. size
339  *
341  D PR 10I 0 extproc('deflateSetDictionary') Init. dictionary
342  D strm like(z_stream) Compression stream
343  D dictionary 65535 const options(*varsize) Dictionary bytes
344  D dictLength 10U 0 value Dictionary length
345  *
346  D deflateCopy PR 10I 0 extproc('deflateCopy') Compress strm 2 strm
347  D dest like(z_stream) Destination stream
348  D source like(z_stream) Source stream
349  *
350  D deflateReset PR 10I 0 extproc('deflateReset') End and init. stream
351  D strm like(z_stream) Compression stream
352  *
353  D deflateParams PR 10I 0 extproc('deflateParams') Change level & strat
354  D strm like(z_stream) Compression stream
355  D level 10I 0 value Compression level
356  D strategy 10I 0 value Compression strategy
357  *
358  D deflateTune PR 10I 0 extproc('deflateTune')
359  D strm like(z_stream) Compression stream
360  D good 10I 0 value
361  D lazy 10I 0 value
362  D nice 10I 0 value
363  D chain 10I 0 value
364  *
365  D deflateBound PR 10U 0 extproc('deflateBound') Change level & strat
366  D strm like(z_stream) Compression stream
367  D sourcelen 10U 0 value Compression level
368  *
369  D deflatePending PR 10I 0 extproc('deflatePending') Change level & strat
370  D strm like(z_stream) Compression stream
371  D pending 10U 0 Pending bytes
372  D bits 10I 0 Pending bits
373  *
374  D deflatePrime PR 10I 0 extproc('deflatePrime') Change level & strat
375  D strm like(z_stream) Compression stream
376  D bits 10I 0 value # of bits to insert
377  D value 10I 0 value Bits to insert
378  *
379  D inflateInit2 PR 10I 0 extproc('inflateInit2_') Init. expansion
380  D strm like(z_stream) Expansion stream
381  D windowBits 10I 0 value log2(window size)
382  D version * value options(*string) Version string
383  D stream_size 10i 0 value Stream struct. size
384  *
386  D PR 10I 0 extproc('inflateSetDictionary') Init. dictionary
387  D strm like(z_stream) Expansion stream
388  D dictionary 65535 const options(*varsize) Dictionary bytes
389  D dictLength 10U 0 value Dictionary length
390  *
392  D PR 10I 0 extproc('inflateGetDictionary') Get dictionary
393  D strm like(z_stream) Expansion stream
394  D dictionary 65535 options(*varsize) Dictionary bytes
395  D dictLength 10U 0 Dictionary length
396  *
398  D PR 10I 0 extproc('deflateGetDictionary') Get dictionary
399  D strm like(z_stream) Expansion stream
400  D dictionary 65535 options(*varsize) Dictionary bytes
401  D dictLength 10U 0 Dictionary length
402  *
403  D inflateSync PR 10I 0 extproc('inflateSync') Sync. expansion
404  D strm like(z_stream) Expansion stream
405  *
406  D inflateCopy PR 10I 0 extproc('inflateCopy')
407  D dest like(z_stream) Destination stream
408  D source like(z_stream) Source stream
409  *
410  D inflateReset PR 10I 0 extproc('inflateReset') End and init. stream
411  D strm like(z_stream) Expansion stream
412  *
413  D inflateReset2 PR 10I 0 extproc('inflateReset2') End and init. stream
414  D strm like(z_stream) Expansion stream
415  D windowBits 10I 0 value Log2(buffer size)
416  *
417  D inflatePrime PR 10I 0 extproc('inflatePrime') Insert bits
418  D strm like(z_stream) Expansion stream
419  D bits 10I 0 value Bit count
420  D value 10I 0 value Bits to insert
421  *
422  D inflateMark PR 10I 0 extproc('inflateMark') Get inflate info
423  D strm like(z_stream) Expansion stream
424  *
426  PR 20U 0 extproc('inflateCodesUsed')
427  D strm like(z_stream) Expansion stream
428  *
429  D inflateValidate...
430  PR 20U 0 extproc('inflateValidate')
431  D strm like(z_stream) Expansion stream
432  D check 10I 0 value
433  *
435  PR 10U 0 extproc('inflateGetHeader')
436  D strm like(z_stream) Expansion stream
437  D head like(gz_headerp)
438  *
440  PR 10U 0 extproc('deflateSetHeader')
441  D strm like(z_stream) Expansion stream
442  D head like(gz_headerp)
443  *
444  D inflateBackInit...
445  D PR 10I 0 extproc('inflateBackInit_')
446  D strm like(z_stream) Expansion stream
447  D windowBits 10I 0 value Log2(buffer size)
448  D window 65535 options(*varsize) Buffer
449  D version * value options(*string) Version string
450  D stream_size 10i 0 value Stream struct. size
451  *
452  D inflateBack PR 10I 0 extproc('inflateBack')
453  D strm like(z_stream) Expansion stream
454  D in * value procptr Input function
455  D in_desc * value Input descriptor
456  D out * value procptr Output function
457  D out_desc * value Output descriptor
458  *
459  D inflateBackEnd PR 10I 0 extproc('inflateBackEnd')
460  D strm like(z_stream) Expansion stream
461  *
463  D PR 10U 0 extproc('zlibCompileFlags')
464  *
465  **************************************************************************
466  * Checksum function prototypes
467  **************************************************************************
468  *
469  D adler32 PR 10U 0 extproc('adler32') New checksum
470  D adler 10U 0 value Old checksum
471  D buf 65535 const options(*varsize) Bytes to accumulate
472  D len 10U 0 value Buffer length
473  *
474  D adler32_combine...
475  PR 10U 0 extproc('adler32_combine') New checksum
476  D adler1 10U 0 value Old checksum
477  D adler2 10U 0 value Old checksum
478  D len2 20U 0 value Buffer length
479  *
480  D adler32_z PR 10U 0 extproc('adler32_z') New checksum
481  D adler 10U 0 value Old checksum
482  D buf 65535 const options(*varsize) Bytes to accumulate
483  D len 20U 0 value Buffer length
484  *
485  D crc32 PR 10U 0 extproc('crc32') New checksum
486  D crc 10U 0 value Old checksum
487  D buf 65535 const options(*varsize) Bytes to accumulate
488  D len 10U 0 value Buffer length
489  *
490  D crc32_combine...
491  PR 10U 0 extproc('crc32_combine') New checksum
492  D crc1 10U 0 value Old checksum
493  D crc2 10U 0 value Old checksum
494  D len2 20U 0 value Buffer length
495  *
496  D crc32_z PR 10U 0 extproc('crc32_z') New checksum
497  D crc 10U 0 value Old checksum
498  D buf 65535 const options(*varsize) Bytes to accumulate
499  D len 20U 0 value Buffer length
500  *
501  **************************************************************************
502  * Miscellaneous function prototypes
503  **************************************************************************
504  *
505  D zError PR * extproc('zError') Error string
506  D err 10I 0 value Error code
507  *
509  D PR 10I 0 extproc('inflateSyncPoint')
510  D strm like(z_stream) Expansion stream
511  *
512  D get_crc_table PR * extproc('get_crc_table') Ptr to ulongs
513  *
515  D PR 10I 0 extproc('inflateUndermine')
516  D strm like(z_stream) Expansion stream
517  D arg 10I 0 value Error code
518  *
520  D PR 10I 0 extproc('inflateResetKeep') End and init. stream
521  D strm like(z_stream) Expansion stream
522  *
524  D PR 10I 0 extproc('deflateResetKeep') End and init. stream
525  D strm like(z_stream) Expansion stream
526  *
527  /endif
size_t len
Definition: 6502dis.c:15
lzma_index ** i
Definition: index.h:629
#define X(x, b, m)
#define I(x)
Definition: arc.h:164
#define C(x)
Definition: arc.h:167
ut16 val
Definition: armass64_const.h:6
static bool err
Definition: armass.c:435
static ut8 bytes[32]
Definition: asm_arc.c:23
static ut32 Offset
Definition: asm_arc.c:20
RzBinInfo * info(RzBinFile *bf)
Definition: bin_ne.c:86
int bits(struct state *s, int need)
Definition: blast.c:72
#define D
Definition: block.c:38
const lzma_allocator * allocator
Definition: block.h:377
const lzma_allocator const uint8_t * in
Definition: block.h:527
const lzma_allocator const uint8_t size_t uint8_t * out
Definition: block.h:528
static int value
Definition: cmd_api.c:93
uLong ZEXPORT compressBound(uLong sourceLen)
Definition: compress.c:81
int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
Definition: compress.c:22
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
Definition: compress.c:68
lzma_check check
Definition: container.h:292
static static fork const void static count static fd const char const char static newpath const char static path const char path
Definition: sflib.h:35
static static fork write
Definition: sflib.h:33
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
Definition: sflib.h:98
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
Definition: sflib.h:133
int ZEXPORT deflateSetHeader(z_streamp strm, gz_headerp head)
Definition: deflate.c:557
int ZEXPORT deflateInit_(z_streamp strm, int level, const char *version, int stream_size)
Definition: deflate.c:231
int ZEXPORT deflatePending(z_streamp strm, unsigned *pending, int *bits)
Definition: deflate.c:568
int ZEXPORT deflateCopy(z_streamp dest, z_streamp source)
Definition: deflate.c:1145
int ZEXPORT deflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
Definition: deflate.c:416
int ZEXPORT deflateReset(z_streamp strm)
Definition: deflate.c:545
int ZEXPORT deflateParams(z_streamp strm, int level, int strategy)
Definition: deflate.c:609
uLong ZEXPORT deflateBound(z_streamp strm, uLong sourceLen)
Definition: deflate.c:693
int ZEXPORT deflateTune(z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain)
Definition: deflate.c:658
int ZEXPORT deflatePrime(z_streamp strm, int bits, int value)
Definition: deflate.c:582
int ZEXPORT deflateGetDictionary(z_streamp strm, Bytef *dictionary, uInt *dictLength)
Definition: deflate.c:485
int ZEXPORT deflateResetKeep(z_streamp strm)
Definition: deflate.c:507
int ZEXPORT deflateEnd(z_streamp strm)
Definition: deflate.c:1119
int ZEXPORT deflateInit2_(z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size)
Definition: deflate.c:243
int ZEXPORT deflate(z_streamp strm, int flush)
Definition: deflate.c:804
#define GZIP
Definition: deflate.h:23
int(* decode)(const ut8 *, ebc_command_t *cmd)
Definition: ebc_disas.c:88
static lzma_stream strm
Definition: full_flush.c:20
static void encode(size_t size, lzma_action action)
Definition: full_flush.c:25
int ZEXPORT gzclose(gzFile file)
Definition: gzclose.c:11
void ZEXPORT gzclearerr(gzFile file)
Definition: gzlib.c:555
z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
Definition: gzlib.c:368
int ZEXPORT gzrewind(gzFile file)
Definition: gzlib.c:345
z_off64_t ZEXPORT gztell64(gzFile file)
Definition: gzlib.c:457
gzFile ZEXPORT gzopen64(char *path, const char *mode) const
Definition: gzlib.c:280
z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence)
Definition: gzlib.c:445
gzFile ZEXPORT gzopen(char *path, const char *mode) const
Definition: gzlib.c:272
int ZEXPORT gzeof(gzFile file)
Definition: gzlib.c:517
gzFile ZEXPORT gzdopen(int fd, const char *mode)
Definition: gzlib.c:288
z_off64_t ZEXPORT gzoffset64(gzFile file)
Definition: gzlib.c:484
z_off_t ZEXPORT gzoffset(gzFile file)
Definition: gzlib.c:507
const char *ZEXPORT gzerror(gzFile file, int *errnum)
Definition: gzlib.c:534
z_off_t ZEXPORT gztell(gzFile file)
Definition: gzlib.c:474
int ZEXPORT gzbuffer(gzFile file, unsigned size)
Definition: gzlib.c:318
int ZEXPORT gzungetc(int c, gzFile file)
Definition: gzread.c:481
int ZEXPORT gzgetc(gzFile file)
Definition: gzread.c:447
int ZEXPORT gzdirect(gzFile file)
Definition: gzread.c:605
int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
Definition: gzread.c:375
int ZEXPORT gzgetc_(gzFile file)
Definition: gzread.c:474
char *ZEXPORT gzgets(gzFile file, char *buf, int len)
Definition: gzread.c:541
int ZEXPORT gzclose_r(gzFile file)
Definition: gzread.c:625
z_size_t ZEXPORT gzfread(voidp buf, z_size_t size, z_size_t nitems, gzFile file)
Definition: gzread.c:411
int ZEXPORT gzsetparams(gzFile file, int level, int strategy)
Definition: gzwrite.c:597
int ZEXPORT gzputc(gzFile file, int c)
Definition: gzwrite.c:313
int ZEXPORT gzputs(gzFile file, const char *s)
Definition: gzwrite.c:361
int ZEXPORT gzflush(gzFile file, int flush)
Definition: gzwrite.c:565
int ZEXPORT gzclose_w(gzFile file)
Definition: gzwrite.c:639
int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len)
Definition: gzwrite.c:255
z_size_t ZEXPORT gzfwrite(voidpc buf, z_size_t size, z_size_t nitems, gzFile file)
Definition: gzwrite.c:283
int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)
Definition: infback.c:28
int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
Definition: infback.c:250
int ZEXPORT inflateBackEnd(z_streamp strm)
Definition: infback.c:632
unsigned long ZEXPORT inflateCodesUsed(z_streamp strm)
Definition: inflate.c:1585
int ZEXPORT inflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
Definition: inflate.c:1338
long ZEXPORT inflateMark(z_streamp strm)
Definition: inflate.c:1572
int ZEXPORT inflateGetDictionary(z_streamp strm, Bytef *dictionary, uInt *dictLength)
Definition: inflate.c:1315
int ZEXPORT inflateSyncPoint(z_streamp strm)
Definition: inflate.c:1482
int ZEXPORT inflatePrime(z_streamp strm, int bits, int value)
Definition: inflate.c:248
int ZEXPORT inflateGetHeader(z_streamp strm, gz_headerp head)
Definition: inflate.c:1373
int ZEXPORT inflateUndermine(z_streamp strm, int subvert)
Definition: inflate.c:1539
int ZEXPORT inflateSync(z_streamp strm)
Definition: inflate.c:1424
int ZEXPORT inflateResetKeep(z_streamp strm)
Definition: inflate.c:119
int ZEXPORT inflate(z_streamp strm, int flush)
Definition: inflate.c:623
int ZEXPORT inflateReset(z_streamp strm)
Definition: inflate.c:145
int ZEXPORT inflateInit_(z_streamp strm, const char *version, int stream_size)
Definition: inflate.c:240
int ZEXPORT inflateEnd(z_streamp strm)
Definition: inflate.c:1301
int ZEXPORT inflateCopy(z_streamp dest, z_streamp source)
Definition: inflate.c:1492
int ZEXPORT inflateValidate(z_streamp strm, int check)
Definition: inflate.c:1557
int ZEXPORT inflateReset2(z_streamp strm, int windowBits)
Definition: inflate.c:158
a0
Definition: insn-good.s.cs:704
int Init(const char *driverPath)
voidpf void uLong size
Definition: ioapi.h:138
voidpf stream
Definition: ioapi.h:138
voidpf uLong offset
Definition: ioapi.h:144
const char int mode
Definition: ioapi.h:137
voidpf void * buf
Definition: ioapi.h:138
#define const
Definition: ansidecl.h:240
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf nice
Definition: sflib.h:61
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc static sig const char pathname
Definition: sflib.h:66
static const char struct stat static buf struct stat static buf static vhangup int options
Definition: sflib.h:145
const char * source
Definition: lz4.h:699
char * dest
Definition: lz4.h:697
#define Error(x)
Definition: mach0.c:439
int type
Definition: mipsasm.c:17
static void insert(char *dst, const char *src)
Definition: filter.c:39
static RzSocket * s
Definition: rtr.c:28
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr socklen_t static fromlen const void const struct sockaddr to
Definition: sfsocketcall.h:125
#define c(i)
Definition: sha256.c:43
Definition: spp.h:92
Definition: query.c:23
Definition: swift.c:7
Definition: buffer.h:15
Definition: inftree9.h:24
Definition: gzappend.c:170
Definition: z80asm.h:130
Definition: dis.h:43
bool init
Definition: core.c:77
uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf, z_size_t len)
Definition: adler32.c:63
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len)
Definition: adler32.c:134
uLong ZEXPORT adler32_combine(uLong adler1, uLong adler2, z_off_t len2)
Definition: adler32.c:172
control
@ Private
Definition: tpi.h:281
int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
Definition: uncompr.c:86
int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong *sourceLen)
Definition: uncompr.c:27
static int level
Definition: vmenus.c:2424
else
if(dbg->bits==RZ_SYS_BITS_64)
Definition: windows-arm64.h:4
static const z80_opcode fd[]
Definition: z80_tab.h:997
#define z_off_t
Definition: zconf.h:504
#define z_off64_t
Definition: zconf.h:513
unsigned char Byte
Definition: zconf.h:391
static bool input(void *ud, zip_uint8_t *data, zip_uint64_t length)
#define S
Definition: zip_err_str.c:9
diff_output_t output
Definition: zipcmp.c:237
unsigned long ZEXPORT crc32_z(unsigned long crc, const unsigned char FAR *buf, z_size_t len)
Definition: crc32.c:739
const z_crc_t FAR *ZEXPORT get_crc_table()
Definition: crc32.c:586
uLong ZEXPORT crc32_combine(uLong crc1, uLong crc2, z_off_t len2)
Definition: crc32.c:1084
unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, uInt len)
Definition: crc32.c:1063
#define Z_TREES
Definition: zlib.h:174
#define Z_HUFFMAN_ONLY
Definition: zlib.h:197
#define Z_DEFLATED
Definition: zlib.h:209
#define Z_BINARY
Definition: zlib.h:203
#define Z_NEED_DICT
Definition: zlib.h:179
#define Z_ERRNO
Definition: zlib.h:180
gz_header FAR * gz_headerp
Definition: zlib.h:131
#define Z_BUF_ERROR
Definition: zlib.h:184
#define Z_NO_COMPRESSION
Definition: zlib.h:190
#define Z_UNKNOWN
Definition: zlib.h:206
#define ZLIB_VERSION
Definition: zlib.h:40
#define ZLIB_VER_MAJOR
Definition: zlib.h:42
#define Z_DEFAULT_STRATEGY
Definition: zlib.h:200
#define deflateInit2(strm, level, method, windowBits, memLevel, strategy)
Definition: zlib.h:1814
#define inflateInit2(strm, windowBits)
Definition: zlib.h:1817
#define ZLIB_VERNUM
Definition: zlib.h:41
z_stream FAR * z_streamp
Definition: zlib.h:108
#define Z_BLOCK
Definition: zlib.h:173
#define Z_VERSION_ERROR
Definition: zlib.h:185
#define ZLIB_VER_SUBREVISION
Definition: zlib.h:45
#define Z_STREAM_END
Definition: zlib.h:178
#define ZLIB_VER_MINOR
Definition: zlib.h:43
#define Z_FINISH
Definition: zlib.h:172
#define Z_OK
Definition: zlib.h:177
#define Z_BEST_COMPRESSION
Definition: zlib.h:192
#define inflateBackInit(strm, windowBits, window)
Definition: zlib.h:1820
#define Z_ASCII
Definition: zlib.h:205
#define Z_DATA_ERROR
Definition: zlib.h:182
#define Z_SYNC_FLUSH
Definition: zlib.h:170
#define Z_STREAM_ERROR
Definition: zlib.h:181
#define Z_NO_FLUSH
Definition: zlib.h:168
#define Z_NULL
Definition: zlib.h:212
#define ZLIB_VER_REVISION
Definition: zlib.h:44
#define Z_BEST_SPEED
Definition: zlib.h:191
#define inflateInit(strm)
Definition: zlib.h:1812
#define Z_PARTIAL_FLUSH
Definition: zlib.h:169
#define Z_MEM_ERROR
Definition: zlib.h:183
#define deflateInit(strm, level)
Definition: zlib.h:1810
#define Z_FULL_FLUSH
Definition: zlib.h:171
#define Z_FILTERED
Definition: zlib.h:196
#define Z_RLE
Definition: zlib.h:198
#define Z_DEFAULT_COMPRESSION
Definition: zlib.h:193
int read(izstream &zs, T *x, Items items)
Definition: zstream.h:115
const char *ZEXPORT zError(int err)
Definition: zutil.c:133
const char *ZEXPORT zlibVersion()
Definition: zutil.c:27
uLong ZEXPORT zlibCompileFlags()
Definition: zutil.c:32