aboutsummaryrefslogtreecommitdiff
path: root/old/as400/zlib.inc
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-11 11:04:49 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-11 11:04:49 -0700
commit10daf0d4d7815447799d555d04d30325836e1d44 (patch)
tree75579fbe11e42dc3197acca53f5f887ac3808b57 /old/as400/zlib.inc
parent9712272c78b9d9c93746d9c8e156a3728c65ca72 (diff)
downloadzlib-10daf0d4d7815447799d555d04d30325836e1d44.tar.gz
zlib-10daf0d4d7815447799d555d04d30325836e1d44.tar.bz2
zlib-10daf0d4d7815447799d555d04d30325836e1d44.zip
zlib 1.2.5.1v1.2.5.1
Diffstat (limited to '')
-rw-r--r--as400/zlib.inc (renamed from old/as400/zlib.inc)102
1 files changed, 97 insertions, 5 deletions
diff --git a/old/as400/zlib.inc b/as400/zlib.inc
index a9a4f5c..d492ef3 100644
--- a/old/as400/zlib.inc
+++ b/as400/zlib.inc
@@ -1,7 +1,7 @@
1 * ZLIB.INC - Interface to the general purpose compression library 1 * ZLIB.INC - Interface to the general purpose compression library
2 * 2 *
3 * ILE RPG400 version by Patrick Monnerat, DATASPHERE. 3 * ILE RPG400 version by Patrick Monnerat, DATASPHERE.
4 * Version 1.2.3.9 4 * Version 1.2.5.1
5 * 5 *
6 * 6 *
7 * WARNING: 7 * WARNING:
@@ -22,16 +22,25 @@
22 * 22 *
23 * Versioning information. 23 * Versioning information.
24 * 24 *
25 D ZLIB_VERSION C '1.2.3.9' 25 D ZLIB_VERSION C '1.2.5.1'
26 D ZLIB_VERNUM C X'1239' 26 D ZLIB_VERNUM C X'1251'
27 D ZLIB_VER_MAJOR C 1
28 D ZLIB_VER_MINOR C 2
29 D ZLIB_VER_REVISION...
30 D C 5
31 D ZLIB_VER_SUBREVISION...
32 D C 0
27 * 33 *
28 * Other equates. 34 * Other equates.
29 * 35 *
30 D Z_NO_FLUSH C 0 36 D Z_NO_FLUSH C 0
37 D Z_PARTIAL_FLUSH...
38 D C 1
31 D Z_SYNC_FLUSH C 2 39 D Z_SYNC_FLUSH C 2
32 D Z_FULL_FLUSH C 3 40 D Z_FULL_FLUSH C 3
33 D Z_FINISH C 4 41 D Z_FINISH C 4
34 D Z_BLOCK C 5 42 D Z_BLOCK C 5
43 D Z_TREES C 6
35 * 44 *
36 D Z_OK C 0 45 D Z_OK C 0
37 D Z_STREAM_END C 1 46 D Z_STREAM_END C 1
@@ -72,6 +81,7 @@
72 D z_streamp S * Stream struct ptr 81 D z_streamp S * Stream struct ptr
73 D gzFile S * File pointer 82 D gzFile S * File pointer
74 D z_off_t S 10i 0 Stream offsets 83 D z_off_t S 10i 0 Stream offsets
84 D z_off64_t S 20i 0 Stream offsets
75 * 85 *
76 ************************************************************************** 86 **************************************************************************
77 * Structures 87 * Structures
@@ -122,20 +132,36 @@
122 D source 32767 const options(*varsize) Source buffer 132 D source 32767 const options(*varsize) Source buffer
123 D sourceLen 10U 0 value Source length 133 D sourceLen 10U 0 value Source length
124 * 134 *
135 /if not defined(LARGE_FILES)
125 D gzopen PR extproc('gzopen') 136 D gzopen PR extproc('gzopen')
126 D like(gzFile) 137 D like(gzFile)
127 D path * value options(*string) File pathname 138 D path * value options(*string) File pathname
128 D mode * value options(*string) Open mode 139 D mode * value options(*string) Open mode
140 /else
141 D gzopen PR extproc('gzopen64')
142 D like(gzFile)
143 D path * value options(*string) File pathname
144 D mode * value options(*string) Open mode
145 *
146 D gzopen64 PR extproc('gzopen64')
147 D like(gzFile)
148 D path * value options(*string) File pathname
149 D mode * value options(*string) Open mode
150 /endif
129 * 151 *
130 D gzdopen PR extproc('gzdopen') 152 D gzdopen PR extproc('gzdopen')
131 D like(gzFile) 153 D like(gzFile)
132 D fd 10i 0 value File descriptor 154 D fd 10I 0 value File descriptor
133 D mode * value options(*string) Open mode 155 D mode * value options(*string) Open mode
134 * 156 *
157 D gzbuffer PR 10I 0 extproc('gzbuffer')
158 D file value like(gzFile) File pointer
159 D size 10U 0 value
160 *
135 D gzsetparams PR 10I 0 extproc('gzsetparams') 161 D gzsetparams PR 10I 0 extproc('gzsetparams')
136 D file value like(gzFile) File pointer 162 D file value like(gzFile) File pointer
137 D level 10I 0 value 163 D level 10I 0 value
138 D strategy 10i 0 value 164 D strategy 10I 0 value
139 * 165 *
140 D gzread PR 10I 0 extproc('gzread') 166 D gzread PR 10I 0 extproc('gzread')
141 D file value like(gzFile) File pointer 167 D file value like(gzFile) File pointer
@@ -160,22 +186,66 @@
160 D file value like(gzFile) File pointer 186 D file value like(gzFile) File pointer
161 D flush 10I 0 value Type of flush 187 D flush 10I 0 value Type of flush
162 * 188 *
189 /if not defined(LARGE_FILES)
163 D gzseek PR extproc('gzseek') 190 D gzseek PR extproc('gzseek')
164 D like(z_off_t) 191 D like(z_off_t)
165 D file value like(gzFile) File pointer 192 D file value like(gzFile) File pointer
166 D offset value like(z_off_t) Offset 193 D offset value like(z_off_t) Offset
167 D whence 10i 0 value Origin 194 D whence 10i 0 value Origin
195 /else
196 D gzseek PR extproc('gzseek64')
197 D like(z_off_t)
198 D file value like(gzFile) File pointer
199 D offset value like(z_off_t) Offset
200 D whence 10i 0 value Origin
201 *
202 D gzseek64 PR extproc('gzseek64')
203 D like(z_off64_t)
204 D file value like(gzFile) File pointer
205 D offset value like(z_off64_t) Offset
206 D whence 10i 0 value Origin
207 /endif
168 * 208 *
169 D gzrewind PR 10i 0 extproc('gzrewind') 209 D gzrewind PR 10i 0 extproc('gzrewind')
170 D file value like(gzFile) File pointer 210 D file value like(gzFile) File pointer
171 * 211 *
212 /if not defined(LARGE_FILES)
172 D gztell PR extproc('gztell') 213 D gztell PR extproc('gztell')
173 D like(z_off_t) 214 D like(z_off_t)
174 D file value like(gzFile) File pointer 215 D file value like(gzFile) File pointer
216 /else
217 D gztell PR extproc('gztell64')
218 D like(z_off_t)
219 D file value like(gzFile) File pointer
220 *
221 D gztell64 PR extproc('gztell64')
222 D like(z_off64_t)
223 D file value like(gzFile) File pointer
224 /endif
225 *
226 /if not defined(LARGE_FILES)
227 D gzoffset PR extproc('gzoffset')
228 D like(z_off_t)
229 D file value like(gzFile) File pointer
230 /else
231 D gzoffset PR extproc('gzoffset64')
232 D like(z_off_t)
233 D file value like(gzFile) File pointer
234 *
235 D gzoffset64 PR extproc('gzoffset64')
236 D like(z_off64_t)
237 D file value like(gzFile) File pointer
238 /endif
175 * 239 *
176 D gzeof PR 10i 0 extproc('gzeof') 240 D gzeof PR 10i 0 extproc('gzeof')
177 D file value like(gzFile) File pointer 241 D file value like(gzFile) File pointer
178 * 242 *
243 D gzclose_r PR 10i 0 extproc('gzclose_r')
244 D file value like(gzFile) File pointer
245 *
246 D gzclose_w PR 10i 0 extproc('gzclose_w')
247 D file value like(gzFile) File pointer
248 *
179 D gzclose PR 10i 0 extproc('gzclose') 249 D gzclose PR 10i 0 extproc('gzclose')
180 D file value like(gzFile) File pointer 250 D file value like(gzFile) File pointer
181 * 251 *
@@ -253,6 +323,11 @@
253 D strm like(z_stream) Compression stream 323 D strm like(z_stream) Compression stream
254 D sourcelen 10U 0 value Compression level 324 D sourcelen 10U 0 value Compression level
255 * 325 *
326 D deflatePending PR 10I 0 extproc('deflatePending') Change level & strat
327 D strm like(z_stream) Compression stream
328 D pending 10U 0 Pending bytes
329 D bits 10I 0 Pending bits
330 *
256 D deflatePrime PR 10I 0 extproc('deflatePrime') Change level & strat 331 D deflatePrime PR 10I 0 extproc('deflatePrime') Change level & strat
257 D strm like(z_stream) Compression stream 332 D strm like(z_stream) Compression stream
258 D bits 10I 0 value Number of bits to insert 333 D bits 10I 0 value Number of bits to insert
@@ -280,6 +355,18 @@
280 D inflateReset PR 10I 0 extproc('inflateReset') End and init. stream 355 D inflateReset PR 10I 0 extproc('inflateReset') End and init. stream
281 D strm like(z_stream) Expansion stream 356 D strm like(z_stream) Expansion stream
282 * 357 *
358 D inflateReset2 PR 10I 0 extproc('inflateReset2') End and init. stream
359 D strm like(z_stream) Expansion stream
360 D windowBits 10I 0 value Log2(buffer size)
361 *
362 D inflatePrime PR 10I 0 extproc('inflatePrime') Insert bits
363 D strm like(z_stream) Expansion stream
364 D bits 10I 0 value Bit count
365 D value 10I 0 value Bits to insert
366 *
367 D inflateMark PR 10I 0 extproc('inflateMark') Get inflate info
368 D strm like(z_stream) Expansion stream
369 *
283 D inflateBackInit... 370 D inflateBackInit...
284 D PR 10I 0 extproc('inflateBackInit_') 371 D PR 10I 0 extproc('inflateBackInit_')
285 D strm like(z_stream) Expansion stream 372 D strm like(z_stream) Expansion stream
@@ -328,4 +415,9 @@
328 * 415 *
329 D get_crc_table PR * extproc('get_crc_table') Ptr to ulongs 416 D get_crc_table PR * extproc('get_crc_table') Ptr to ulongs
330 * 417 *
418 D inflateUndermine...
419 D PR 10I 0 extproc('inflateUndermine')
420 D strm like(z_stream) Expansion stream
421 D arg 10I 0 value Error code
422 *
331 /endif 423 /endif