zipup.h 679 B

123456789101112131415161718192021222324
  1. /*
  2. unix/zipup.h - Zip 3
  3. Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
  4. See the accompanying file LICENSE, version 2005-Feb-10 or later
  5. (the contents of which are also included in zip.h) for terms of use.
  6. If, for some reason, both of these files are missing, the Info-ZIP license
  7. also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
  8. */
  9. #ifndef O_RDONLY
  10. # define O_RDONLY 0
  11. #endif
  12. #ifndef O_BINARY
  13. # define O_BINARY 0
  14. #endif
  15. #define fhow (O_RDONLY|O_BINARY)
  16. #define fbad (-1)
  17. typedef int ftype;
  18. #define zopen(n,p) open(n,p)
  19. #define zread(f,b,n) read(f,b,n)
  20. #define zclose(f) close(f)
  21. #define zerr(f) (k == (extent)(-1L))
  22. #define zstdin 0