home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c070 / 1.ddi / TOOLS.1 / INCLUDE / BFILES.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-31  |  2.2 KB  |  69 lines

  1. /**
  2. *
  3. *  BFILES.H -- Header File for C TOOLS File and Directory Functions
  4. *
  5. *  Version 6.00  (C)Copyright Blaise Computing Inc.  1983, 1987, 1989
  6. *
  7. **/
  8.  
  9. #ifndef DEF_BFILES        /* Prevent redefinition.        */
  10.  
  11. #include <butil.h>
  12.  
  13.  
  14. #define FL_DOS_INT 0x21     /* General DOS gate interrupt.        */
  15.  
  16. #define AT_GENERAL  0        /* File attributes            */
  17. #define AT_RDONLY   1
  18. #define AT_HIDDEN   2
  19. #define AT_SYSTEM   4
  20. #define AT_VOLUME   8
  21. #define AT_DIR       16
  22. #define AT_ARCHIVE 32
  23.  
  24. #define FL_LOCK     0        /* Constants for FLDOLOCK and        */
  25. #define FL_UNLOCK   1        /* FLLOCK.                */
  26.  
  27. #define MAX_FLEN   67        /* Maximum length of filenames        */
  28.                 /* returned by FLNORM, etc.        */
  29.  
  30.  
  31. /* Function declarations.                        */
  32.  
  33. int cdecl fllock (int, int,        /* Lock or unlock a section of  */
  34.           unsigned long,    /* an open file.            */
  35.           unsigned long);   /*                    */
  36.                     /*                    */
  37. int cdecl flprompt (const char *,   /* Accept a text response from  */
  38.             char *,int);    /* standard input.            */
  39.                     /*                    */
  40. int cdecl fldolock (int,        /* Intelligently lock a section */
  41.             unsigned long,  /* of a file.            */
  42.             unsigned long,  /*                    */
  43.             int, int);        /*                    */
  44.                     /*                    */
  45. int cdecl flflush (int);        /* Flush buffer associated with */
  46.                     /* a handle.            */
  47.                     /*                    */
  48. int cdecl flnorm (const char *,     /* Normalize a path name (put   */
  49.           char *, int *);   /* into standard form)        */
  50.                     /*                    */
  51. void cdecl flputdta (void far *);   /* Set the Disk Transfer Area   */
  52.                     /*                    */
  53. void far *cdecl flgetdta (void);    /* Return the DTA location        */
  54.                     /*                    */
  55. int cdecl flretvol (int, char *,    /* Return volume label        */
  56.             unsigned *,     /*                    */
  57.             unsigned *);    /*                    */
  58.                     /*                    */
  59. int cdecl flsetvol(int,         /* Create or alter volume label */
  60.            const char *);   /*                    */
  61.                     /*                    */
  62. int cdecl flremvol (int);        /* Remove volume label        */
  63.                     /*                    */
  64.  
  65. #define DEF_BFILES   1            /* Prevent second reading of    */
  66.                     /* these definitions.        */
  67.  
  68. #endif                    /* Ends "#ifndef DEF_BFILES"    */
  69.