home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l217 / 2.ddi / INCLUDE / IODECL.PRE < prev   
Encoding:
Text File  |  1990-03-26  |  1.1 KB  |  35 lines

  1. CONSTANTS
  2. /* File Attributes */
  3. fa_rdonly = $01    /* Read only file       */
  4. fa_hidden = $02    /* Hidden file          */
  5. fa_system = $04    /* System file          */
  6. fa_subdir = $10    /* Subdirectory         */
  7. fa_arch   = $20    /* Archive file         */
  8. fa_normal = $40    /* Normal file - No read/write restrictions */
  9.  
  10.  
  11. /* File usage Modes */
  12. fm_access_wo = $0001  /* write only           */
  13. fm_access_rw = $0002  /* read/write           */
  14. fm_access_ro = $0004  /* read only            */
  15. fm_sh_denyrw = $0010  /* deny read/write mode */
  16. fm_sh_denywr = $0020  /* deny write mode      */
  17. fm_sh_denyrd = $0030  /* deny read mode       */
  18. fm_sh_denyno = $0040  /* deny none mode       */
  19.  
  20. /* Exclusively for OS2 and DOS >= 4.0 */
  21. fm_returnerr = $2000  /* return error rather than call crit hand. */
  22. fm_writethru = $4000  /* write through        */
  23.  
  24.  
  25. /* Creation Flags */
  26.  
  27. /* Actions if file exists (low nibble) :    */
  28. cr_ex_fail    = $00
  29. cr_ex_open    = $01
  30. cr_ex_replace    = $02
  31.  
  32. /* Actions if file doesn't exist (high nibble):    */
  33. cr_noex_fail    = $00
  34. cr_noex_create    = $10
  35.