home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / zip21.zip / cmsmvs / cmsmvs.h < prev    next >
C/C++ Source or Header  |  1996-04-05  |  1KB  |  69 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. #ifndef __cmsmvs_h   /* prevent multiple inclusions */
  12. #define __cmsmvs_h
  13.  
  14. #define CMS_MVS
  15. #define NO_UNISTD_H
  16. #define NO_FCNTL_H
  17.  
  18.  
  19. /* Include file for VM/CMS and MVS */
  20.  
  21. #ifndef NULL
  22. #  define NULL 0
  23. #endif
  24.  
  25. #include <time.h>               /* the usual non-BSD time functions */
  26. #include "stat.h"
  27.  
  28. #define PASSWD_FROM_STDIN
  29.                   /* Kludge until we know how to open a non-echo tty channel */
  30.  
  31. /* definition for ZIP */
  32. #define getpid() (int)time(NULL)
  33. #define getch() getc(stdin)
  34. #define native(c)   ebcdic[(c)]
  35. #define MAXPATHLEN 128
  36. #define NO_RMDIR
  37. #define NO_MKTEMP
  38. #define fileno(x) (char *)(x)
  39. #define fdopen fopen
  40. #define unlink remove
  41. #define link rename
  42. #define utime(f,t)
  43. #define isatty(t) 1
  44. /* end defines for ZIP */
  45.  
  46. #define EBCDIC
  47.  
  48. #ifdef UNZIP                    /* definitions for UNZIP */
  49.  
  50. #define INBUFSIZ 8192
  51.  
  52. #define USE_STRM_INPUT
  53. #define USE_FWRITE
  54.  
  55. #define REALLY_SHORT_SYMS
  56. #define PATH_MAX 128
  57.  
  58. #endif /* UNZIP */
  59.  
  60. #define FOPR "rb,recfm=fb"
  61. #define FOPM "r+"
  62. #define FOPW "wb,recfm=fb"
  63. #define FOPWT "w"
  64.  
  65. #define CBSZ 0x40000
  66. #define ZBSZ 0x40000
  67.  
  68. #endif /* !__cmsmvs_h */
  69.