zipup.h 661 B

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