home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a009 / 5.ddi / INCLUDE.LIF / FILEIO.CH < prev    next >
Encoding:
Text File  |  1991-04-14  |  1.3 KB  |  44 lines

  1. /***
  2. *    fileio.ch
  3. *    Standard definitions for Clipper low level file functions.
  4. *    Copyright (c) 1990 Nantucket Corp.  All Rights Reserved.
  5. */
  6.  
  7.  
  8. // Error value (all functions)
  9. #define F_ERROR            (-1)
  10.  
  11.  
  12. // FSEEK() modes
  13.  
  14. #define FS_SET            0        // Seek from beginning of file
  15. #define FS_RELATIVE        1        // Seek from current file position
  16. #define FS_END            2        // Seek from end of file
  17.  
  18.  
  19. // FOPEN() access modes
  20.  
  21. #define FO_READ            0        // Open for reading (default)
  22. #define FO_WRITE        1        // Open for writing
  23. #define FO_READWRITE    2        // Open for reading or writing
  24.  
  25. // FOPEN() sharing modes (combine with open mode using +)
  26.  
  27. #define FO_COMPAT        0        // Compatibility mode (default)
  28. #define FO_EXCLUSIVE    16        // Exclusive
  29. #define FO_DENYWRITE    32        // Prevent other processes from writing
  30. #define FO_DENYREAD        48        // Prevent other processes from reading
  31. #define FO_DENYNONE        64        // (same as FO_SHARED)
  32. #define FO_SHARED        64        // Allow other processes to read or write
  33.  
  34.  
  35. // FCREATE() file attribute modes
  36.  
  37. #define FC_NORMAL        0        // Create normal read/write file (default)
  38. #define FC_READONLY        1        // Create read-only file
  39. #define FC_HIDDEN        2        // Create hidden file
  40. #define FC_SYSTEM        4        // Create system file
  41.  
  42. // NOTE:  FCREATE() always opens with (FO_READWRITE + FO_COMPAT)
  43.  
  44.