home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / zip21.zip / win32 / zipup.h < prev   
C/C++ Source or Header  |  1996-04-13  |  857b  |  30 lines

  1. /*
  2.  
  3.  Copyright (C) 1990-1996 Mark Adler, Richard B. Wales, Jean-loup Gailly,
  4.  Kai Uwe Rommel, Onno van der Linden 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 <share.h>
  12. #ifndef O_RDONLY
  13. #  define O_RDONLY   0
  14. #endif
  15. #ifndef O_BINARY
  16. #  define O_BINARY   0
  17. #endif
  18. #define fhow         (O_RDONLY|O_BINARY)
  19. #define fbad         (-1)
  20. typedef int          ftype;
  21. #if defined(__WATCOMC__) || defined (__BORLANDC__)
  22. #  define zopen(n,p) sopen(n,p,SH_DENYNO)
  23. #else
  24. #  define zopen(n,p) _sopen(n,p,_SH_DENYNO)
  25. #endif
  26. #define zread(f,b,n) read(f,b,n)
  27. #define zclose(f)    close(f)
  28. #define zerr(f)      (k == (extent)(-1L))
  29. #define zstdin       0
  30.