summaryrefslogtreecommitdiffstats
path: root/meta/packages/zlib/files/visibility.patch
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2007-10-19 12:19:42 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2007-10-19 12:19:42 +0000
commitad9ae098612856bceb94a7713056f3b061db3848 (patch)
tree7f451a6716ce06e81076643c03513b217cbd54d3 /meta/packages/zlib/files/visibility.patch
parent286da62fb5c5e2e98443235c8a7c330077fe7519 (diff)
downloadpoky-ad9ae098612856bceb94a7713056f3b061db3848.tar.gz
zlib: cleanup and sync with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2924 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/zlib/files/visibility.patch')
-rw-r--r--meta/packages/zlib/files/visibility.patch236
1 files changed, 124 insertions, 112 deletions
diff --git a/meta/packages/zlib/files/visibility.patch b/meta/packages/zlib/files/visibility.patch
index ba1a2a6fef..a4e7ae907a 100644
--- a/meta/packages/zlib/files/visibility.patch
+++ b/meta/packages/zlib/files/visibility.patch
@@ -1,6 +1,11 @@
1--- tmp/work/arm-linux-uclibc/zlib-1.2.2-r5/zlib-1.2.2/adler32.c 2003-11-17 15:24:27.000000000 -0600 1
2+++ zlib-1.2.2/adler32.c 2005-02-28 19:04:09.000000000 -0600 2#
3@@ -44,7 +44,7 @@ 3# Patch managed by http://www.holgerschurig.de/patcher.html
4#
5
6--- zlib-1.2.3-orig/adler32.c~visibility
7+++ zlib-1.2.3-orig/adler32.c
8@@ -54,7 +54,7 @@
4 #endif 9 #endif
5 10
6 /* ========================================================================= */ 11 /* ========================================================================= */
@@ -9,8 +14,8 @@
9 uLong adler; 14 uLong adler;
10 const Bytef *buf; 15 const Bytef *buf;
11 uInt len; 16 uInt len;
12--- tmp/work/arm-linux-uclibc/zlib-1.2.2-r5/zlib-1.2.2/compress.c 2003-07-07 00:37:56.000000000 -0500 17--- zlib-1.2.3-orig/compress.c~visibility
13+++ zlib-1.2.2/compress.c 2005-02-28 19:04:09.000000000 -0600 18+++ zlib-1.2.3-orig/compress.c
14@@ -19,7 +19,7 @@ 19@@ -19,7 +19,7 @@
15 memory, Z_BUF_ERROR if there was not enough room in the output buffer, 20 memory, Z_BUF_ERROR if there was not enough room in the output buffer,
16 Z_STREAM_ERROR if the level parameter is invalid. 21 Z_STREAM_ERROR if the level parameter is invalid.
@@ -38,9 +43,9 @@
38 uLong sourceLen; 43 uLong sourceLen;
39 { 44 {
40 return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11; 45 return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11;
41--- tmp/work/arm-linux-uclibc/zlib-1.2.2-r5/zlib-1.2.2/crc32.c 2004-10-03 21:29:30.000000000 -0500 46--- zlib-1.2.3-orig/crc32.c~visibility
42+++ zlib-1.2.2/crc32.c 2005-02-28 19:04:09.000000000 -0600 47+++ zlib-1.2.3-orig/crc32.c
43@@ -198,7 +198,7 @@ 48@@ -202,7 +202,7 @@
44 /* ========================================================================= 49 /* =========================================================================
45 * This function can be used by asm versions of crc32() 50 * This function can be used by asm versions of crc32()
46 */ 51 */
@@ -49,7 +54,7 @@
49 { 54 {
50 #ifdef DYNAMIC_CRC_TABLE 55 #ifdef DYNAMIC_CRC_TABLE
51 if (crc_table_empty) 56 if (crc_table_empty)
52@@ -212,7 +212,7 @@ 57@@ -216,7 +216,7 @@
53 #define DO8 DO1; DO1; DO1; DO1; DO1; DO1; DO1; DO1 58 #define DO8 DO1; DO1; DO1; DO1; DO1; DO1; DO1; DO1
54 59
55 /* ========================================================================= */ 60 /* ========================================================================= */
@@ -58,8 +63,8 @@
58 unsigned long crc; 63 unsigned long crc;
59 const unsigned char FAR *buf; 64 const unsigned char FAR *buf;
60 unsigned len; 65 unsigned len;
61--- tmp/work/arm-linux-uclibc/zlib-1.2.2-r5/zlib-1.2.2/deflate.c 2004-09-15 09:28:14.000000000 -0500 66--- zlib-1.2.3-orig/deflate.c~visibility
62+++ zlib-1.2.2/deflate.c 2005-02-28 19:04:09.000000000 -0600 67+++ zlib-1.2.3-orig/deflate.c
63@@ -201,7 +201,7 @@ 68@@ -201,7 +201,7 @@
64 zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head)); 69 zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
65 70
@@ -78,7 +83,7 @@
78 version, stream_size) 83 version, stream_size)
79 z_streamp strm; 84 z_streamp strm;
80 int level; 85 int level;
81@@ -311,7 +311,7 @@ 86@@ -312,7 +312,7 @@
82 } 87 }
83 88
84 /* ========================================================================= */ 89 /* ========================================================================= */
@@ -87,7 +92,7 @@
87 z_streamp strm; 92 z_streamp strm;
88 const Bytef *dictionary; 93 const Bytef *dictionary;
89 uInt dictLength; 94 uInt dictLength;
90@@ -355,7 +355,7 @@ 95@@ -354,7 +354,7 @@
91 } 96 }
92 97
93 /* ========================================================================= */ 98 /* ========================================================================= */
@@ -96,7 +101,7 @@
96 z_streamp strm; 101 z_streamp strm;
97 { 102 {
98 deflate_state *s; 103 deflate_state *s;
99@@ -391,7 +391,7 @@ 104@@ -401,7 +401,7 @@
100 } 105 }
101 106
102 /* ========================================================================= */ 107 /* ========================================================================= */
@@ -105,7 +110,7 @@
105 z_streamp strm; 110 z_streamp strm;
106 int bits; 111 int bits;
107 int value; 112 int value;
108@@ -403,7 +403,7 @@ 113@@ -413,7 +413,7 @@
109 } 114 }
110 115
111 /* ========================================================================= */ 116 /* ========================================================================= */
@@ -114,7 +119,7 @@
114 z_streamp strm; 119 z_streamp strm;
115 int level; 120 int level;
116 int strategy; 121 int strategy;
117@@ -457,7 +457,7 @@ 122@@ -486,7 +486,7 @@
118 * But even the conservative upper bound of about 14% expansion does not 123 * But even the conservative upper bound of about 14% expansion does not
119 * seem onerous for output buffer allocation. 124 * seem onerous for output buffer allocation.
120 */ 125 */
@@ -123,7 +128,7 @@
123 z_streamp strm; 128 z_streamp strm;
124 uLong sourceLen; 129 uLong sourceLen;
125 { 130 {
126@@ -520,7 +520,7 @@ 131@@ -549,7 +549,7 @@
127 } 132 }
128 133
129 /* ========================================================================= */ 134 /* ========================================================================= */
@@ -132,7 +137,7 @@
132 z_streamp strm; 137 z_streamp strm;
133 int flush; 138 int flush;
134 { 139 {
135@@ -696,7 +696,7 @@ 140@@ -856,7 +856,7 @@
136 } 141 }
137 142
138 /* ========================================================================= */ 143 /* ========================================================================= */
@@ -141,7 +146,7 @@
141 z_streamp strm; 146 z_streamp strm;
142 { 147 {
143 int status; 148 int status;
144@@ -726,7 +726,7 @@ 149@@ -891,7 +891,7 @@
145 * To simplify the source, this is not supported for 16-bit MSDOS (which 150 * To simplify the source, this is not supported for 16-bit MSDOS (which
146 * doesn't have enough memory anyway to duplicate compression states). 151 * doesn't have enough memory anyway to duplicate compression states).
147 */ 152 */
@@ -150,8 +155,8 @@
150 z_streamp dest; 155 z_streamp dest;
151 z_streamp source; 156 z_streamp source;
152 { 157 {
153--- tmp/work/arm-linux-uclibc/zlib-1.2.2-r5/zlib-1.2.2/gzio.c 2004-10-03 21:30:37.000000000 -0500 158--- zlib-1.2.3-orig/gzio.c~visibility
154+++ zlib-1.2.2/gzio.c 2005-02-28 19:06:11.000000000 -0600 159+++ zlib-1.2.3-orig/gzio.c
155@@ -205,7 +205,7 @@ 160@@ -205,7 +205,7 @@
156 /* =========================================================================== 161 /* ===========================================================================
157 Opens a gzip (.gz) file for reading or writing. 162 Opens a gzip (.gz) file for reading or writing.
@@ -305,7 +310,7 @@
305 gzFile file; 310 gzFile file;
306 { 311 {
307 gz_stream *s = (gz_stream*)file; 312 gz_stream *s = (gz_stream*)file;
308@@ -938,7 +938,7 @@ 313@@ -950,7 +950,7 @@
309 Flushes all pending output if necessary, closes the compressed file 314 Flushes all pending output if necessary, closes the compressed file
310 and deallocates all the (de)compression state. 315 and deallocates all the (de)compression state.
311 */ 316 */
@@ -313,8 +318,8 @@
313+ZEXPORT int gzclose (file) 318+ZEXPORT int gzclose (file)
314 gzFile file; 319 gzFile file;
315 { 320 {
316 int err; 321 gz_stream *s = (gz_stream*)file;
317@@ -967,7 +967,7 @@ 322@@ -984,7 +984,7 @@
318 errnum is set to Z_ERRNO and the application may consult errno 323 errnum is set to Z_ERRNO and the application may consult errno
319 to get the exact error code. 324 to get the exact error code.
320 */ 325 */
@@ -323,7 +328,7 @@
323 gzFile file; 328 gzFile file;
324 int *errnum; 329 int *errnum;
325 { 330 {
326@@ -997,7 +997,7 @@ 331@@ -1014,7 +1014,7 @@
327 /* =========================================================================== 332 /* ===========================================================================
328 Clear the error and end-of-file flags, and do the same for the real file. 333 Clear the error and end-of-file flags, and do the same for the real file.
329 */ 334 */
@@ -332,37 +337,37 @@
332 gzFile file; 337 gzFile file;
333 { 338 {
334 gz_stream *s = (gz_stream*)file; 339 gz_stream *s = (gz_stream*)file;
335--- tmp/work/arm-linux-uclibc/zlib-1.2.2-r5/zlib-1.2.2/infback.c 2004-10-03 21:31:20.000000000 -0500 340--- zlib-1.2.3-orig/infback.c~visibility
336+++ zlib-1.2.2/infback.c 2005-02-28 19:04:09.000000000 -0600 341+++ zlib-1.2.3-orig/infback.c
337@@ -25,7 +25,7 @@ 342@@ -25,7 +25,7 @@
338 windowBits is in the range 8..15, and window is a user-supplied 343 windowBits is in the range 8..15, and window is a user-supplied
339 window and output buffer that is 2**windowBits bytes. 344 window and output buffer that is 2**windowBits bytes.
340 */ 345 */
341-int ZEXPORT inflateBackInit_(strm, windowBits, window, version, stream_size) 346-int ZEXPORT inflateBackInit_(strm, windowBits, window, version, stream_size)
342+ZEXPORT int inflateBackInit_(strm, windowBits, window, version, stream_size) 347+ZEXPORT int inflateBackInit_(strm, windowBits, window, version, stream_size)
343 z_stream FAR *strm; 348 z_streamp strm;
344 int windowBits; 349 int windowBits;
345 unsigned char FAR *window; 350 unsigned char FAR *window;
346@@ -237,7 +237,7 @@ 351@@ -238,7 +238,7 @@
347 inflateBack() can also return Z_STREAM_ERROR if the input parameters 352 inflateBack() can also return Z_STREAM_ERROR if the input parameters
348 are not correct, i.e. strm is Z_NULL or the state was not initialized. 353 are not correct, i.e. strm is Z_NULL or the state was not initialized.
349 */ 354 */
350-int ZEXPORT inflateBack(strm, in, in_desc, out, out_desc) 355-int ZEXPORT inflateBack(strm, in, in_desc, out, out_desc)
351+ZEXPORT int inflateBack(strm, in, in_desc, out, out_desc) 356+ZEXPORT int inflateBack(strm, in, in_desc, out, out_desc)
352 z_stream FAR *strm; 357 z_streamp strm;
353 in_func in; 358 in_func in;
354 void FAR *in_desc; 359 void FAR *in_desc;
355@@ -610,7 +610,7 @@ 360@@ -611,7 +611,7 @@
356 return ret; 361 return ret;
357 } 362 }
358 363
359-int ZEXPORT inflateBackEnd(strm) 364-int ZEXPORT inflateBackEnd(strm)
360+ZEXPORT int inflateBackEnd(strm) 365+ZEXPORT int inflateBackEnd(strm)
361 z_stream FAR *strm; 366 z_streamp strm;
362 { 367 {
363 if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0) 368 if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0)
364--- tmp/work/arm-linux-uclibc/zlib-1.2.2-r5/zlib-1.2.2/inflate.c 2004-10-03 21:33:51.000000000 -0500 369--- zlib-1.2.3-orig/inflate.c~visibility
365+++ zlib-1.2.2/inflate.c 2005-02-28 19:04:09.000000000 -0600 370+++ zlib-1.2.3-orig/inflate.c
366@@ -100,7 +100,7 @@ 371@@ -100,7 +100,7 @@
367 local unsigned syncsearch OF((unsigned FAR *have, unsigned char FAR *buf, 372 local unsigned syncsearch OF((unsigned FAR *have, unsigned char FAR *buf,
368 unsigned len)); 373 unsigned len));
@@ -372,7 +377,7 @@
372 z_streamp strm; 377 z_streamp strm;
373 { 378 {
374 struct inflate_state FAR *state; 379 struct inflate_state FAR *state;
375@@ -122,7 +122,7 @@ 380@@ -141,7 +141,7 @@
376 return Z_OK; 381 return Z_OK;
377 } 382 }
378 383
@@ -381,7 +386,7 @@
381 z_streamp strm; 386 z_streamp strm;
382 int windowBits; 387 int windowBits;
383 const char *version; 388 const char *version;
384@@ -165,7 +165,7 @@ 389@@ -184,7 +184,7 @@
385 return inflateReset(strm); 390 return inflateReset(strm);
386 } 391 }
387 392
@@ -390,7 +395,7 @@
390 z_streamp strm; 395 z_streamp strm;
391 const char *version; 396 const char *version;
392 int stream_size; 397 int stream_size;
393@@ -532,7 +532,7 @@ 398@@ -551,7 +551,7 @@
394 will return Z_BUF_ERROR if it has not reached the end of the stream. 399 will return Z_BUF_ERROR if it has not reached the end of the stream.
395 */ 400 */
396 401
@@ -399,7 +404,7 @@
399 z_streamp strm; 404 z_streamp strm;
400 int flush; 405 int flush;
401 { 406 {
402@@ -1085,7 +1085,7 @@ 407@@ -1152,7 +1152,7 @@
403 return ret; 408 return ret;
404 } 409 }
405 410
@@ -408,7 +413,7 @@
408 z_streamp strm; 413 z_streamp strm;
409 { 414 {
410 struct inflate_state FAR *state; 415 struct inflate_state FAR *state;
411@@ -1099,7 +1099,7 @@ 416@@ -1166,7 +1166,7 @@
412 return Z_OK; 417 return Z_OK;
413 } 418 }
414 419
@@ -417,7 +422,7 @@
417 z_streamp strm; 422 z_streamp strm;
418 const Bytef *dictionary; 423 const Bytef *dictionary;
419 uInt dictLength; 424 uInt dictLength;
420@@ -1171,7 +1171,7 @@ 425@@ -1259,7 +1259,7 @@
421 return next; 426 return next;
422 } 427 }
423 428
@@ -426,7 +431,7 @@
426 z_streamp strm; 431 z_streamp strm;
427 { 432 {
428 unsigned len; /* number of bytes to look at or looked at */ 433 unsigned len; /* number of bytes to look at or looked at */
429@@ -1222,7 +1222,7 @@ 434@@ -1310,7 +1310,7 @@
430 block. When decompressing, PPP checks that at the end of input packet, 435 block. When decompressing, PPP checks that at the end of input packet,
431 inflate is waiting for these length bytes. 436 inflate is waiting for these length bytes.
432 */ 437 */
@@ -435,7 +440,7 @@
435 z_streamp strm; 440 z_streamp strm;
436 { 441 {
437 struct inflate_state FAR *state; 442 struct inflate_state FAR *state;
438@@ -1232,7 +1232,7 @@ 443@@ -1320,7 +1320,7 @@
439 return state->mode == STORED && state->bits == 0; 444 return state->mode == STORED && state->bits == 0;
440 } 445 }
441 446
@@ -444,8 +449,8 @@
444 z_streamp dest; 449 z_streamp dest;
445 z_streamp source; 450 z_streamp source;
446 { 451 {
447--- tmp/work/arm-linux-uclibc/zlib-1.2.2-r5/zlib-1.2.2/uncompr.c 2003-07-07 00:36:56.000000000 -0500 452--- zlib-1.2.3-orig/uncompr.c~visibility
448+++ zlib-1.2.2/uncompr.c 2005-02-28 19:04:09.000000000 -0600 453+++ zlib-1.2.3-orig/uncompr.c
449@@ -23,7 +23,7 @@ 454@@ -23,7 +23,7 @@
450 enough memory, Z_BUF_ERROR if there was not enough room in the output 455 enough memory, Z_BUF_ERROR if there was not enough room in the output
451 buffer, or Z_DATA_ERROR if the input data was corrupted. 456 buffer, or Z_DATA_ERROR if the input data was corrupted.
@@ -455,9 +460,9 @@
455 Bytef *dest; 460 Bytef *dest;
456 uLongf *destLen; 461 uLongf *destLen;
457 const Bytef *source; 462 const Bytef *source;
458--- tmp/work/arm-linux-uclibc/zlib-1.2.2-r5/zlib-1.2.2/zconf.in.h 2004-05-30 15:38:00.000000000 -0500 463--- zlib-1.2.3-orig/zconf.in.h~visibility
459+++ zlib-1.2.2/zconf.in.h 2005-02-28 19:04:09.000000000 -0600 464+++ zlib-1.2.3-orig/zconf.in.h
460@@ -198,11 +198,9 @@ 465@@ -204,11 +204,9 @@
461 */ 466 */
462 # ifdef ZLIB_DLL 467 # ifdef ZLIB_DLL
463 # if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500)) 468 # if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
@@ -472,7 +477,7 @@
472 # endif 477 # endif
473 # endif /* ZLIB_DLL */ 478 # endif /* ZLIB_DLL */
474 /* If building or using zlib with the WINAPI/WINAPIV calling convention, 479 /* If building or using zlib with the WINAPI/WINAPIV calling convention,
475@@ -223,30 +221,45 @@ 480@@ -229,30 +227,45 @@
476 # define ZEXPORTVA FAR CDECL 481 # define ZEXPORTVA FAR CDECL
477 # endif 482 # endif
478 # endif 483 # endif
@@ -534,9 +539,9 @@
534 #ifndef FAR 539 #ifndef FAR
535 # define FAR 540 # define FAR
536 #endif 541 #endif
537--- tmp/work/arm-linux-uclibc/zlib-1.2.2-r5/zlib-1.2.2/zlib.h 2004-10-03 21:57:26.000000000 -0500 542--- zlib-1.2.3-orig/zlib.h~visibility
538+++ zlib-1.2.2/zlib.h 2005-02-28 19:04:09.000000000 -0600 543+++ zlib-1.2.3-orig/zlib.h
539@@ -184,7 +184,7 @@ 544@@ -209,7 +209,7 @@
540 545
541 /* basic functions */ 546 /* basic functions */
542 547
@@ -545,7 +550,7 @@
545 /* The application can compare zlibVersion and ZLIB_VERSION for consistency. 550 /* The application can compare zlibVersion and ZLIB_VERSION for consistency.
546 If the first character differs, the library code actually used is 551 If the first character differs, the library code actually used is
547 not compatible with the zlib.h header file used by the application. 552 not compatible with the zlib.h header file used by the application.
548@@ -192,7 +192,7 @@ 553@@ -217,7 +217,7 @@
549 */ 554 */
550 555
551 /* 556 /*
@@ -554,7 +559,7 @@
554 559
555 Initializes the internal stream state for compression. The fields 560 Initializes the internal stream state for compression. The fields
556 zalloc, zfree and opaque must be initialized before by the caller. 561 zalloc, zfree and opaque must be initialized before by the caller.
557@@ -214,7 +214,7 @@ 562@@ -239,7 +239,7 @@
558 */ 563 */
559 564
560 565
@@ -563,7 +568,7 @@
563 /* 568 /*
564 deflate compresses as much data as possible, and stops when the input 569 deflate compresses as much data as possible, and stops when the input
565 buffer becomes empty or the output buffer becomes full. It may introduce some 570 buffer becomes empty or the output buffer becomes full. It may introduce some
566@@ -296,7 +296,7 @@ 571@@ -325,7 +325,7 @@
567 */ 572 */
568 573
569 574
@@ -572,7 +577,7 @@
572 /* 577 /*
573 All dynamically allocated data structures for this stream are freed. 578 All dynamically allocated data structures for this stream are freed.
574 This function discards any unprocessed input and does not flush any 579 This function discards any unprocessed input and does not flush any
575@@ -311,7 +311,7 @@ 580@@ -340,7 +340,7 @@
576 581
577 582
578 /* 583 /*
@@ -581,7 +586,7 @@
581 586
582 Initializes the internal stream state for decompression. The fields 587 Initializes the internal stream state for decompression. The fields
583 next_in, avail_in, zalloc, zfree and opaque must be initialized before by 588 next_in, avail_in, zalloc, zfree and opaque must be initialized before by
584@@ -331,7 +331,7 @@ 589@@ -360,7 +360,7 @@
585 */ 590 */
586 591
587 592
@@ -590,7 +595,7 @@
590 /* 595 /*
591 inflate decompresses as much data as possible, and stops when the input 596 inflate decompresses as much data as possible, and stops when the input
592 buffer becomes empty or the output buffer becomes full. It may introduce 597 buffer becomes empty or the output buffer becomes full. It may introduce
593@@ -430,7 +430,7 @@ 598@@ -459,7 +459,7 @@
594 */ 599 */
595 600
596 601
@@ -599,7 +604,7 @@
599 /* 604 /*
600 All dynamically allocated data structures for this stream are freed. 605 All dynamically allocated data structures for this stream are freed.
601 This function discards any unprocessed input and does not flush any 606 This function discards any unprocessed input and does not flush any
602@@ -448,7 +448,7 @@ 607@@ -477,7 +477,7 @@
603 */ 608 */
604 609
605 /* 610 /*
@@ -608,7 +613,7 @@
608 int level, 613 int level,
609 int method, 614 int method,
610 int windowBits, 615 int windowBits,
611@@ -504,7 +504,7 @@ 616@@ -535,7 +535,7 @@
612 not perform any compression: this will be done by deflate(). 617 not perform any compression: this will be done by deflate().
613 */ 618 */
614 619
@@ -617,7 +622,7 @@
617 const Bytef *dictionary, 622 const Bytef *dictionary,
618 uInt dictLength)); 623 uInt dictLength));
619 /* 624 /*
620@@ -541,7 +541,7 @@ 625@@ -574,7 +574,7 @@
621 perform any compression: this will be done by deflate(). 626 perform any compression: this will be done by deflate().
622 */ 627 */
623 628
@@ -626,7 +631,7 @@
626 z_streamp source)); 631 z_streamp source));
627 /* 632 /*
628 Sets the destination stream as a complete copy of the source stream. 633 Sets the destination stream as a complete copy of the source stream.
629@@ -559,7 +559,7 @@ 634@@ -592,7 +592,7 @@
630 destination. 635 destination.
631 */ 636 */
632 637
@@ -635,7 +640,7 @@
635 /* 640 /*
636 This function is equivalent to deflateEnd followed by deflateInit, 641 This function is equivalent to deflateEnd followed by deflateInit,
637 but does not free and reallocate all the internal compression state. 642 but does not free and reallocate all the internal compression state.
638@@ -570,7 +570,7 @@ 643@@ -603,7 +603,7 @@
639 stream state was inconsistent (such as zalloc or state being NULL). 644 stream state was inconsistent (such as zalloc or state being NULL).
640 */ 645 */
641 646
@@ -644,16 +649,16 @@
644 int level, 649 int level,
645 int strategy)); 650 int strategy));
646 /* 651 /*
647@@ -591,7 +591,7 @@ 652@@ -641,7 +641,7 @@
648 if strm->avail_out was zero. 653 returns Z_OK on success, or Z_STREAM_ERROR for an invalid deflate stream.
649 */ 654 */
650 655
651-ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm, 656-ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm,
652+ZEXTERN ZEXPORT uLong deflateBound OF((z_streamp strm, 657+ZEXTERN ZEXPORT uLong deflateBound OF((z_streamp strm,
653 uLong sourceLen)); 658 uLong sourceLen));
654 /* 659 /*
655 deflateBound() returns an upper bound on the compressed size after 660 deflateBound() returns an upper bound on the compressed size after
656@@ -600,7 +600,7 @@ 661@@ -650,7 +650,7 @@
657 for deflation in a single pass, and so would be called before deflate(). 662 for deflation in a single pass, and so would be called before deflate().
658 */ 663 */
659 664
@@ -662,7 +667,7 @@
662 int bits, 667 int bits,
663 int value)); 668 int value));
664 /* 669 /*
665@@ -617,7 +617,7 @@ 670@@ -691,7 +691,7 @@
666 */ 671 */
667 672
668 /* 673 /*
@@ -671,8 +676,8 @@
671 int windowBits)); 676 int windowBits));
672 677
673 This is another version of inflateInit with an extra parameter. The 678 This is another version of inflateInit with an extra parameter. The
674@@ -659,7 +659,7 @@ 679@@ -733,7 +733,7 @@
675 modified, but next_out and avail_out are unchanged.) 680 and avail_out are unchanged.)
676 */ 681 */
677 682
678-ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, 683-ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm,
@@ -680,7 +685,7 @@
680 const Bytef *dictionary, 685 const Bytef *dictionary,
681 uInt dictLength)); 686 uInt dictLength));
682 /* 687 /*
683@@ -678,7 +678,7 @@ 688@@ -755,7 +755,7 @@
684 inflate(). 689 inflate().
685 */ 690 */
686 691
@@ -689,7 +694,7 @@
689 /* 694 /*
690 Skips invalid compressed data until a full flush point (see above the 695 Skips invalid compressed data until a full flush point (see above the
691 description of deflate with Z_FULL_FLUSH) can be found, or until all 696 description of deflate with Z_FULL_FLUSH) can be found, or until all
692@@ -693,7 +693,7 @@ 697@@ -770,7 +770,7 @@
693 until success or end of the input data. 698 until success or end of the input data.
694 */ 699 */
695 700
@@ -698,7 +703,7 @@
698 z_streamp source)); 703 z_streamp source));
699 /* 704 /*
700 Sets the destination stream as a complete copy of the source stream. 705 Sets the destination stream as a complete copy of the source stream.
701@@ -709,7 +709,7 @@ 706@@ -786,7 +786,7 @@
702 destination. 707 destination.
703 */ 708 */
704 709
@@ -707,34 +712,34 @@
707 /* 712 /*
708 This function is equivalent to inflateEnd followed by inflateInit, 713 This function is equivalent to inflateEnd followed by inflateInit,
709 but does not free and reallocate all the internal decompression state. 714 but does not free and reallocate all the internal decompression state.
710@@ -720,7 +720,7 @@ 715@@ -853,7 +853,7 @@
711 */ 716 */
712 717
713 /* 718 /*
714-ZEXTERN int ZEXPORT inflateBackInit OF((z_stream FAR *strm, int windowBits, 719-ZEXTERN int ZEXPORT inflateBackInit OF((z_streamp strm, int windowBits,
715+ZEXTERN ZEXPORT int inflateBackInit OF((z_stream FAR *strm, int windowBits, 720+ZEXTERN ZEXPORT int inflateBackInit OF((z_streamp strm, int windowBits,
716 unsigned char FAR *window)); 721 unsigned char FAR *window));
717 722
718 Initialize the internal stream state for decompression using inflateBack() 723 Initialize the internal stream state for decompression using inflateBack()
719@@ -744,7 +744,7 @@ 724@@ -877,7 +877,7 @@
720 typedef unsigned (*in_func) OF((void FAR *, unsigned char FAR * FAR *)); 725 typedef unsigned (*in_func) OF((void FAR *, unsigned char FAR * FAR *));
721 typedef int (*out_func) OF((void FAR *, unsigned char FAR *, unsigned)); 726 typedef int (*out_func) OF((void FAR *, unsigned char FAR *, unsigned));
722 727
723-ZEXTERN int ZEXPORT inflateBack OF((z_stream FAR *strm, 728-ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm,
724+ZEXTERN ZEXPORT int inflateBack OF((z_stream FAR *strm, 729+ZEXTERN ZEXPORT int inflateBack OF((z_streamp strm,
725 in_func in, void FAR *in_desc, 730 in_func in, void FAR *in_desc,
726 out_func out, void FAR *out_desc)); 731 out_func out, void FAR *out_desc));
727 /* 732 /*
728@@ -813,7 +813,7 @@ 733@@ -946,7 +946,7 @@
729 that inflateBack() cannot return Z_OK. 734 that inflateBack() cannot return Z_OK.
730 */ 735 */
731 736
732-ZEXTERN int ZEXPORT inflateBackEnd OF((z_stream FAR *strm)); 737-ZEXTERN int ZEXPORT inflateBackEnd OF((z_streamp strm));
733+ZEXTERN ZEXPORT int inflateBackEnd OF((z_stream FAR *strm)); 738+ZEXTERN ZEXPORT int inflateBackEnd OF((z_streamp strm));
734 /* 739 /*
735 All memory allocated by inflateBackInit() is freed. 740 All memory allocated by inflateBackInit() is freed.
736 741
737@@ -821,7 +821,7 @@ 742@@ -954,7 +954,7 @@
738 state was inconsistent. 743 state was inconsistent.
739 */ 744 */
740 745
@@ -743,7 +748,7 @@
743 /* Return flags indicating compile-time options. 748 /* Return flags indicating compile-time options.
744 749
745 Type sizes, two bits each, 00 = 16 bits, 01 = 32, 10 = 64, 11 = other: 750 Type sizes, two bits each, 00 = 16 bits, 01 = 32, 10 = 64, 11 = other:
746@@ -873,7 +873,7 @@ 751@@ -1006,7 +1006,7 @@
747 utility functions can easily be modified if you need special options. 752 utility functions can easily be modified if you need special options.
748 */ 753 */
749 754
@@ -752,7 +757,7 @@
752 const Bytef *source, uLong sourceLen)); 757 const Bytef *source, uLong sourceLen));
753 /* 758 /*
754 Compresses the source buffer into the destination buffer. sourceLen is 759 Compresses the source buffer into the destination buffer. sourceLen is
755@@ -888,7 +888,7 @@ 760@@ -1021,7 +1021,7 @@
756 buffer. 761 buffer.
757 */ 762 */
758 763
@@ -761,7 +766,7 @@
761 const Bytef *source, uLong sourceLen, 766 const Bytef *source, uLong sourceLen,
762 int level)); 767 int level));
763 /* 768 /*
764@@ -904,14 +904,14 @@ 769@@ -1037,14 +1037,14 @@
765 Z_STREAM_ERROR if the level parameter is invalid. 770 Z_STREAM_ERROR if the level parameter is invalid.
766 */ 771 */
767 772
@@ -778,7 +783,7 @@
778 const Bytef *source, uLong sourceLen)); 783 const Bytef *source, uLong sourceLen));
779 /* 784 /*
780 Decompresses the source buffer into the destination buffer. sourceLen is 785 Decompresses the source buffer into the destination buffer. sourceLen is
781@@ -932,7 +932,7 @@ 786@@ -1065,7 +1065,7 @@
782 787
783 typedef voidp gzFile; 788 typedef voidp gzFile;
784 789
@@ -787,7 +792,7 @@
787 /* 792 /*
788 Opens a gzip (.gz) file for reading or writing. The mode parameter 793 Opens a gzip (.gz) file for reading or writing. The mode parameter
789 is as in fopen ("rb" or "wb") but can also include a compression level 794 is as in fopen ("rb" or "wb") but can also include a compression level
790@@ -949,7 +949,7 @@ 795@@ -1082,7 +1082,7 @@
791 can be checked to distinguish the two cases (if errno is zero, the 796 can be checked to distinguish the two cases (if errno is zero, the
792 zlib error is Z_MEM_ERROR). */ 797 zlib error is Z_MEM_ERROR). */
793 798
@@ -796,7 +801,7 @@
796 /* 801 /*
797 gzdopen() associates a gzFile with the file descriptor fd. File 802 gzdopen() associates a gzFile with the file descriptor fd. File
798 descriptors are obtained from calls like open, dup, creat, pipe or 803 descriptors are obtained from calls like open, dup, creat, pipe or
799@@ -962,7 +962,7 @@ 804@@ -1095,7 +1095,7 @@
800 the (de)compression state. 805 the (de)compression state.
801 */ 806 */
802 807
@@ -805,7 +810,7 @@
805 /* 810 /*
806 Dynamically update the compression level or strategy. See the description 811 Dynamically update the compression level or strategy. See the description
807 of deflateInit2 for the meaning of these parameters. 812 of deflateInit2 for the meaning of these parameters.
808@@ -970,7 +970,7 @@ 813@@ -1103,7 +1103,7 @@
809 opened for writing. 814 opened for writing.
810 */ 815 */
811 816
@@ -814,7 +819,7 @@
814 /* 819 /*
815 Reads the given number of uncompressed bytes from the compressed file. 820 Reads the given number of uncompressed bytes from the compressed file.
816 If the input file was not in gzip format, gzread copies the given number 821 If the input file was not in gzip format, gzread copies the given number
817@@ -978,7 +978,7 @@ 822@@ -1111,7 +1111,7 @@
818 gzread returns the number of uncompressed bytes actually read (0 for 823 gzread returns the number of uncompressed bytes actually read (0 for
819 end of file, -1 for error). */ 824 end of file, -1 for error). */
820 825
@@ -823,7 +828,7 @@
823 voidpc buf, unsigned len)); 828 voidpc buf, unsigned len));
824 /* 829 /*
825 Writes the given number of uncompressed bytes into the compressed file. 830 Writes the given number of uncompressed bytes into the compressed file.
826@@ -986,7 +986,7 @@ 831@@ -1119,7 +1119,7 @@
827 (0 in case of error). 832 (0 in case of error).
828 */ 833 */
829 834
@@ -832,7 +837,7 @@
832 /* 837 /*
833 Converts, formats, and writes the args to the compressed file under 838 Converts, formats, and writes the args to the compressed file under
834 control of the format string, as in fprintf. gzprintf returns the number of 839 control of the format string, as in fprintf. gzprintf returns the number of
835@@ -999,14 +999,14 @@ 840@@ -1132,14 +1132,14 @@
836 because the secure snprintf() or vsnprintf() functions were not available. 841 because the secure snprintf() or vsnprintf() functions were not available.
837 */ 842 */
838 843
@@ -849,7 +854,7 @@
849 /* 854 /*
850 Reads bytes from the compressed file until len-1 characters are read, or 855 Reads bytes from the compressed file until len-1 characters are read, or
851 a newline character is read and transferred to buf, or an end-of-file 856 a newline character is read and transferred to buf, or an end-of-file
852@@ -1015,19 +1015,19 @@ 857@@ -1148,19 +1148,19 @@
853 gzgets returns buf, or Z_NULL in case of error. 858 gzgets returns buf, or Z_NULL in case of error.
854 */ 859 */
855 860
@@ -872,7 +877,7 @@
872 /* 877 /*
873 Push one character back onto the stream to be read again later. 878 Push one character back onto the stream to be read again later.
874 Only one character of push-back is allowed. gzungetc() returns the 879 Only one character of push-back is allowed. gzungetc() returns the
875@@ -1037,7 +1037,7 @@ 880@@ -1170,7 +1170,7 @@
876 or gzrewind(). 881 or gzrewind().
877 */ 882 */
878 883
@@ -881,7 +886,7 @@
881 /* 886 /*
882 Flushes all pending output into the compressed file. The parameter 887 Flushes all pending output into the compressed file. The parameter
883 flush is as in the deflate() function. The return value is the zlib 888 flush is as in the deflate() function. The return value is the zlib
884@@ -1047,7 +1047,7 @@ 889@@ -1180,7 +1180,7 @@
885 degrade compression. 890 degrade compression.
886 */ 891 */
887 892
@@ -890,7 +895,7 @@
890 z_off_t offset, int whence)); 895 z_off_t offset, int whence));
891 /* 896 /*
892 Sets the starting position for the next gzread or gzwrite on the 897 Sets the starting position for the next gzread or gzwrite on the
893@@ -1065,14 +1065,14 @@ 898@@ -1198,14 +1198,14 @@
894 would be before the current position. 899 would be before the current position.
895 */ 900 */
896 901
@@ -907,7 +912,7 @@
907 /* 912 /*
908 Returns the starting position for the next gzread or gzwrite on the 913 Returns the starting position for the next gzread or gzwrite on the
909 given compressed file. This position represents a number of bytes in the 914 given compressed file. This position represents a number of bytes in the
910@@ -1081,20 +1081,20 @@ 915@@ -1214,26 +1214,26 @@
911 gztell(file) is equivalent to gzseek(file, 0L, SEEK_CUR) 916 gztell(file) is equivalent to gzseek(file, 0L, SEEK_CUR)
912 */ 917 */
913 918
@@ -918,6 +923,13 @@
918 input stream, otherwise zero. 923 input stream, otherwise zero.
919 */ 924 */
920 925
926-ZEXTERN int ZEXPORT gzdirect OF((gzFile file));
927+ZEXTERN ZEXPORT int gzdirect OF((gzFile file));
928 /*
929 Returns 1 if file is being read directly without decompression, otherwise
930 zero.
931 */
932
921-ZEXTERN int ZEXPORT gzclose OF((gzFile file)); 933-ZEXTERN int ZEXPORT gzclose OF((gzFile file));
922+ZEXTERN ZEXPORT int gzclose OF((gzFile file)); 934+ZEXTERN ZEXPORT int gzclose OF((gzFile file));
923 /* 935 /*
@@ -931,7 +943,7 @@
931 /* 943 /*
932 Returns the error message for the last error which occurred on the 944 Returns the error message for the last error which occurred on the
933 given compressed file. errnum is set to zlib error number. If an 945 given compressed file. errnum is set to zlib error number. If an
934@@ -1103,7 +1103,7 @@ 946@@ -1242,7 +1242,7 @@
935 to get the exact error code. 947 to get the exact error code.
936 */ 948 */
937 949
@@ -940,25 +952,25 @@
940 /* 952 /*
941 Clears the error and end-of-file flags for file. This is analogous to the 953 Clears the error and end-of-file flags for file. This is analogous to the
942 clearerr() function in stdio. This is useful for continuing to read a gzip 954 clearerr() function in stdio. This is useful for continuing to read a gzip
943@@ -1118,7 +1118,7 @@ 955@@ -1257,7 +1257,7 @@
944 compression library. 956 compression library.
945 */ 957 */
946 958
947-ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len)); 959-ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
948+ZEXTERN ZEXPORT uLong adler32 OF((uLong adler, const Bytef *buf, uInt len)); 960+ZEXTERN ZEXPORT uLong adler32 OF((uLong adler, const Bytef *buf, uInt len));
949
950 /* 961 /*
951 Update a running Adler-32 checksum with the bytes buf[0..len-1] and 962 Update a running Adler-32 checksum with the bytes buf[0..len-1] and
952@@ -1135,7 +1135,7 @@ 963 return the updated checksum. If buf is NULL, this function returns
953 if (adler != original_adler) error(); 964@@ -1282,7 +1282,7 @@
965 seq1 and seq2 concatenated, requiring only adler1, adler2, and len2.
954 */ 966 */
955 967
956-ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len)); 968-ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
957+ZEXTERN ZEXPORT uLong crc32 OF((uLong crc, const Bytef *buf, uInt len)); 969+ZEXTERN ZEXPORT uLong crc32 OF((uLong crc, const Bytef *buf, uInt len));
958 /* 970 /*
959 Update a running crc with the bytes buf[0..len-1] and return the updated 971 Update a running CRC-32 with the bytes buf[0..len-1] and return the
960 crc. If buf is NULL, this function returns the required initial value 972 updated CRC-32. If buf is NULL, this function returns the required initial
961@@ -1157,17 +1157,17 @@ 973@@ -1314,17 +1314,17 @@
962 /* deflateInit and inflateInit are macros to allow checking the zlib version 974 /* deflateInit and inflateInit are macros to allow checking the zlib version
963 * and the compiler's view of z_stream: 975 * and the compiler's view of z_stream:
964 */ 976 */
@@ -976,12 +988,12 @@
976-ZEXTERN int ZEXPORT inflateInit2_ OF((z_streamp strm, int windowBits, 988-ZEXTERN int ZEXPORT inflateInit2_ OF((z_streamp strm, int windowBits,
977+ZEXTERN ZEXPORT int inflateInit2_ OF((z_streamp strm, int windowBits, 989+ZEXTERN ZEXPORT int inflateInit2_ OF((z_streamp strm, int windowBits,
978 const char *version, int stream_size)); 990 const char *version, int stream_size));
979-ZEXTERN int ZEXPORT inflateBackInit_ OF((z_stream FAR *strm, int windowBits, 991-ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits,
980+ZEXTERN ZEXPORT int inflateBackInit_ OF((z_stream FAR *strm, int windowBits, 992+ZEXTERN ZEXPORT int inflateBackInit_ OF((z_streamp strm, int windowBits,
981 unsigned char FAR *window, 993 unsigned char FAR *window,
982 const char *version, 994 const char *version,
983 int stream_size)); 995 int stream_size));
984@@ -1189,9 +1189,9 @@ 996@@ -1346,9 +1346,9 @@
985 struct internal_state {int dummy;}; /* hack for buggy compilers */ 997 struct internal_state {int dummy;}; /* hack for buggy compilers */
986 #endif 998 #endif
987 999
@@ -994,9 +1006,9 @@
994 1006
995 #ifdef __cplusplus 1007 #ifdef __cplusplus
996 } 1008 }
997--- tmp/work/arm-linux-uclibc/zlib-1.2.2-r5/zlib-1.2.2/zutil.c 2003-08-27 21:34:34.000000000 -0500 1009--- zlib-1.2.3-orig/zutil.c~visibility
998+++ zlib-1.2.2/zutil.c 2005-02-28 19:04:09.000000000 -0600 1010+++ zlib-1.2.3-orig/zutil.c
999@@ -28,12 +28,12 @@ 1011@@ -24,12 +24,12 @@
1000 ""}; 1012 ""};
1001 1013
1002 1014
@@ -1011,7 +1023,7 @@
1011 { 1023 {
1012 uLong flags; 1024 uLong flags;
1013 1025
1014@@ -134,7 +134,7 @@ 1026@@ -130,7 +130,7 @@
1015 /* exported to allow conversion of error code to string for compress() and 1027 /* exported to allow conversion of error code to string for compress() and
1016 * uncompress() 1028 * uncompress()
1017 */ 1029 */