home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / zip22.zip / cmsmvs / cmsmvs.h < prev    next >
C/C++ Source or Header  |  1997-08-17  |  2KB  |  78 lines

  1. /*
  2.  
  3.  Copyright (C) 1990-1996 Mark Adler, Richard B. Wales, Jean-loup Gailly,
  4.  Kai Uwe Rommel, Onno van der Linden, George Petrov and Igor Mandrichenko.
  5.  Permission is granted to any individual or institution to use, copy, or
  6.  redistribute this software so long as all of the original files are included,
  7.  that it is not sold for profit, and that this copyright notice is retained.
  8.  
  9. */
  10.  
  11. /* Include file for VM/CMS and MVS */
  12.  
  13.  
  14. #ifndef __cmsmvs_h   /* prevent multiple inclusions */
  15. #define __cmsmvs_h
  16.  
  17. #define CMS_MVS
  18. #define NO_UNISTD_H
  19. #define NO_FCNTL_H
  20.  
  21. /* If we're generating a stand-alone CMS module, patch in        */
  22. /* a new main() function before the real main() for arg parsing. */
  23. #ifdef CMS_STAND_ALONE
  24. #  define USE_ZIPMAIN
  25. #endif
  26.  
  27. #ifndef NULL
  28. #  define NULL 0
  29. #endif
  30.  
  31. #include <time.h>               /* the usual non-BSD time functions */
  32. #include "cstat.h"
  33.  
  34. #define PASSWD_FROM_STDIN
  35.                   /* Kludge until we know how to open a non-echo tty channel */
  36.  
  37. /* definition for ZIP */
  38. #define getch() getc(stdin)
  39. #define native(c)   ebcdic[(c)]
  40. #define MAXPATHLEN 128
  41. #define NO_RMDIR
  42. #define NO_MKTEMP
  43. #define USE_CASE_MAP
  44. #define fileno(x) (char *)(x)
  45. #define fdopen fopen
  46. #define unlink remove
  47. #define link rename
  48. #define utime(f,t)
  49. #define isatty(t) 1
  50. #ifdef ZCRYPT_INTERNAL
  51. #  define ZCR_SEED2     (unsigned)3141592654L   /* use PI as seed pattern */
  52. #endif
  53. /* end defines for ZIP */
  54.  
  55. #define EBCDIC
  56.  
  57. #ifdef UNZIP                    /* definitions for UNZIP */
  58.  
  59. #define INBUFSIZ 8192
  60.  
  61. #define USE_STRM_INPUT
  62. #define USE_FWRITE
  63.  
  64. #define REALLY_SHORT_SYMS
  65. #define PATH_MAX 128
  66.  
  67. #endif /* UNZIP */
  68.  
  69. #define FOPR "rb,recfm=fb"
  70. #define FOPM "r+"
  71. #define FOPW "wb,recfm=fb,lrecl=1"
  72. #define FOPWT "w"
  73.  
  74. #define CBSZ 0x40000
  75. #define ZBSZ 0x40000
  76.  
  77. #endif /* !__cmsmvs_h */
  78.