home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / zip22.zip / vms / zipup.h < prev   
Text File  |  1997-04-01  |  960b  |  25 lines

  1. /*
  2.  
  3.  Copyright (C) 1990-1997 Mark Adler, Richard B. Wales, Jean-loup Gailly,
  4.  Kai Uwe Rommel, Christian Spieler, 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. #define fhow "r","mbc=60"
  12. #define fbad NULL
  13. typedef void *ftype;
  14. #define zopen(n,p)   (vms_native?vms_open(n)    :(ftype)fopen((n), p))
  15. #define zread(f,b,n) (vms_native?vms_read(f,b,n):fread((b),1,(n),(FILE*)(f)))
  16. #define zclose(f)    (vms_native?vms_close(f)   :fclose((FILE*)(f)))
  17. #define zerr(f)      (vms_native?vms_error(f)   :ferror((FILE*)(f)))
  18. #define zstdin stdin
  19.  
  20. ftype vms_open OF((char *));
  21. int vms_read OF((ftype, char *, int));
  22. int vms_close OF((ftype));
  23. int vms_error OF((ftype));
  24. void vms_get_attributes OF((ftype, struct zlist far *, iztimes *f_utim));
  25.