home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / DOSFILES.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  2KB  |  67 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  SNIPPETS header for functions to work with DOS files & directories
  5. */
  6.  
  7. #ifndef DOSFILES__H
  8. #define DOSFILES__H
  9.  
  10. #include <stdio.h>
  11. #include "dirport.h"
  12. #include "sniptype.h"
  13.  
  14.  
  15. Boolean_T   addpath(char *newdir);                    /* Addpath.C      */
  16. void        copy(char *fromDir, char *fname,
  17.                   char *toDir);                       /* Doscopy.C      */
  18. int         getdrv(void);                             /* Drvalid.C      */
  19. Boolean_T   chdrv(int drive);                         /* Drvalid.C      */
  20. Boolean_T   drvalid(int drive);                       /* Drvalid.C      */
  21. Boolean_T   drvrdy(int drive);                        /* Drvalid.C      */
  22. int         favail(void);                             /* Favail.C       */
  23. char      * getdcwd(unsigned int drive);              /* Getdcwd.C      */
  24. int         iscons(FILE *fp);                         /* Iscons.C       */
  25. int         isfopen(FILE *fp);                        /* Isfopen.C      */
  26. int         drive_type(int dr);                       /* Isnetdr.C      */
  27. Boolean_T   isRamDsk(unsigned char drive);            /* Isramdsk.C     */
  28. int         isWprot(int drive);                       /* Iswprot.C      */
  29. int         mkdirs(char *pathname);                   /* Mkdirs.C       */
  30. int         PushDir(char *newdir);                    /* Pushdir.C      */
  31. int         PopDir(void);                             /* Pushdir.C      */
  32. int         isdir(char *dir);                         /* Pushdir.C      */
  33. char FAR  * truename(char FAR *dst, char FAR *src);   /* Truename.C     */
  34. Boolean_T   isCDROMdrive(int drive);                  /* Iscdrom.C      */
  35. int         fdupdate(int fd);                         /* Fupdate.C      */
  36. int         fupdate(FILE *fp);                        /* Fupdate.C      */
  37.  
  38. /*
  39. **  File: ADDHNDLS.H
  40. */
  41.  
  42. #define TABLE_SIZE 255        /* NOTE: *Must* be <= FILES in CONFIG.SYS */
  43.  
  44. int relocate(void);
  45.  
  46.  
  47. /*
  48. **  File: FILES.C
  49. */
  50.  
  51. /*
  52. ** This is the format for a System File Table header.  SFT's are a linked
  53. ** list in which the header points to the next SFT, is followed by the
  54. ** number of FILES in this SFT, and ends with the FILES themselves, which
  55. ** are not important here.
  56. */
  57.  
  58. struct SFT_HEADER {
  59.       struct SFT_HEADER (FAR *next);
  60.       unsigned number;
  61. };
  62.  
  63. int files(void);
  64.  
  65.  
  66. #endif /* DOSFILES__H */
  67.