home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 September / PCO_0998.ISO / filesbbs / dos / sbbs230b.exe / EXEC.LZH / FILE_IO.INC < prev    next >
Encoding:
Text File  |  1995-08-31  |  1.1 KB  |  36 lines

  1. # FILE_IO.INC
  2.  
  3. # Copyright 1995 Digital Dynamics, All rights reserved.
  4.  
  5. # Baja include file defining various File I/O related constants
  6.  
  7. # You man include use this file in your source (!include file_io.inc),
  8. # but you may not distribute modified versions of this file. It is not
  9. # suggested that you modify this file AT ALL, but rather create your own
  10. # include file(s) for your own constant definitions.
  11.  
  12. !define O_RDONLY     1    # Read only
  13. !define O_WRONLY     2    # Write only
  14. !define O_RDWR         4    # Read/write
  15.  
  16. # Flag values for open only
  17.  
  18. !define O_CREAT     0x0100    # create and open file
  19. !define O_TRUNC     0x0200    # open with truncation
  20. !define O_EXCL        0x0400    # exclusive open
  21. !define O_APPEND    0x0800    # to end of file
  22.  
  23. !define O_NOINHERIT 0x80
  24. !define O_DENYALL   0x10
  25. !define O_DENYWRITE 0x20
  26. !define O_DENYREAD  0x30
  27. !define O_DENYNONE  0x40
  28.  
  29. # Seek (FSET_POS) constants for 'whence'
  30.  
  31. !define SEEK_SET    0        # Seek from beginning of file
  32. !define SEEK_CUR    1        # Seek from current position
  33. !define SEEK_END    2        # Seek from end of file
  34.  
  35. # End of FILE_IO.INC
  36.