home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2001 January / VPR0101A.BIN / OLS / TAR32053 / tar32053.exe / SRC / ARCHIO.H < prev    next >
C/C++ Source or Header  |  1999-05-23  |  2KB  |  50 lines

  1.  
  2. #ifndef __ARCHIO_H
  3. #define __ARCHIO_H
  4.  
  5. #ifndef __DEFCONF_H
  6. #include "defconf.h"
  7. #endif
  8.  
  9. typedef struct ARCH_FILE_
  10. {
  11.     int fd;
  12.     int writing;
  13.     int appending;
  14.     int level;
  15.     int method;
  16. }ARCH_FILE;
  17.  
  18. extern int Nblocks;
  19. extern char *Current_file_name;    /* Name of current file */;
  20. extern long Current_file_size;    /* Size of current file */;
  21. extern int Current_file_mode;    /* Size of current file */;
  22. extern time_t Current_file_mtime; /* Modified time of current file */;
  23. extern long Current_file_left;    /* Left bytes in current file */;
  24. extern void check_vol(char *name, struct stat *p);
  25. extern int fill_buff(ARCH_FILE *arch_fp);
  26. extern int read_arch(ARCH_FILE *arch_fp, long n, char **ptr);
  27. extern int start_write_arch(int n);
  28. extern int buff_arch(ARCH_FILE *arch_fp, int n, char **ptr);
  29. extern int write_arch(int n);
  30. extern /*int*/ ARCH_FILE * open_arch(char *fname, char *mode);
  31. extern int close_arch(ARCH_FILE *arch_fp/*char command*/);
  32. extern int open_dev(char *file, char mode);
  33.  
  34. extern int read_zZ(ARCH_FILE *arch_fp/*int Afd*/,char *Buff,int Buffsize);
  35. extern int write_z(ARCH_FILE *arch_fp/*int fh*/,char *buf,int bufsize);
  36.  
  37. #if P_up_V>=4
  38. extern void gzip_file(char *pack,char *unpack);
  39. extern int get_gunzip_fname(char *unpackfn,char *packfn);
  40. extern void gunzip_file(char *pack,char *unpack);
  41. #endif
  42. #ifdef DLL
  43. void arch_SetAfd(int fh);
  44. int arch_GetAfd(void);
  45. extern void arch_static_init(void);
  46. extern int get_access_method(void);
  47. #endif
  48.  
  49. #endif /* __ARCHIO_H */
  50.