zipup.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
  3. See the accompanying file LICENSE, version 2005-Feb-10 or later
  4. (the contents of which are also included in zip.h) for terms of use.
  5. If, for some reason, all these files are missing, the Info-ZIP license
  6. also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
  7. */
  8. #ifndef __zipup_h
  9. #define __zipup_h 1
  10. #ifndef NO_ZIPUP_H
  11. #define fbad NULL
  12. typedef void *ftype;
  13. #define zopen(n,p) (vms_native?vms_open(n) :(ftype)fopen((n), p))
  14. #define zread(f,b,n) (vms_native?vms_read(f,b,n):fread((b),1,(n),(FILE*)(f)))
  15. #define zclose(f) (vms_native?vms_close(f) :fclose((FILE*)(f)))
  16. #define zerr(f) (vms_native?vms_error(f) :ferror((FILE*)(f)))
  17. #define zstdin stdin
  18. ftype vms_open OF((char *));
  19. unsigned int vms_read OF((ftype, char *, unsigned int));
  20. int vms_close OF((ftype));
  21. int vms_error OF((ftype));
  22. #ifdef VMS_PK_EXTRA
  23. int vms_get_attributes OF((ftype, struct zlist far *, iztimes *));
  24. #endif
  25. #endif /* !NO_ZIPUP_H */
  26. #endif /* !__zipup_h */
  27. #ifndef __zipup_cb_h
  28. #define __zipup_cb_h 1
  29. #ifdef __DECC
  30. /* File open callback ID values. (See also OSDEP.H.) */
  31. # define FHOW_ID 4
  32. /* File open callback ID storage. */
  33. extern int fhow_id;
  34. #define fhow "r", "acc", acc_cb, &fhow_id
  35. #else /* def __DECC */ /* (So, GNU C, VAX C, ...)*/
  36. #define fhow "r", "mbc=60"
  37. #endif /* def __DECC */
  38. #endif /* ndef __zipup_cb_h */