tanzip.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. Copyright (c) 1990-2002 Info-ZIP. All rights reserved.
  3. See the accompanying file LICENSE, version 2000-Apr-09 or later
  4. (the contents of which are also included in zip.h) for terms of use.
  5. If, for some reason, all these files are missing, the Info-ZIP license
  6. also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
  7. */
  8. #ifndef __tanzip_h /* prevent multiple inclusions */
  9. #define __tanzip_h
  10. # define fopen nskopen /* To allow us to set extent sizes */
  11. # define USE_CASE_MAP
  12. FILE *nskopen(const char *, const char *);
  13. int zopen (const char *, int);
  14. int zclose (int);
  15. unsigned zread (int, char *, unsigned);
  16. void nskformatopt(char *);
  17. #define getpid zgetpid
  18. unsigned zgetpid (void);
  19. #define CBSZ 0x10000 /* Was used for both fcopy and file_read. */
  20. /* Created separate define (SBSZ) for file_read */
  21. /* fcopy param is type size_t (unsigned long) */
  22. /* For Guardian we choose a multiple of 4K */
  23. #define ZBSZ 0x10000 /* This is used in call to setvbuf, 64K seems to work */
  24. /* in all memory models. Again it is an unsigned long */
  25. /* For Guardian we choose a multiple of 4K */
  26. #ifndef __INT32
  27. #define SBSZ 0x0e000 /* Maximum of size unsigned (int). Only used in STORE */
  28. /* method. We can use up to 56K bytes thanks to large */
  29. /* transfer mode. Note WSIZE is limited to 32K, which */
  30. /* limits the DEFLATE read size to same value. */
  31. #else
  32. #define SBSZ 0x10000 /* WIDE model so we can use 64K */
  33. #endif /* __INT32 */
  34. #endif /* !__tanzip_h */