home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff314.lha / zc / zc.lzh / include / fcntl.h < prev    next >
C/C++ Source or Header  |  1989-05-11  |  588b  |  26 lines

  1. /*
  2.  *    FCNTL.H
  3.  */
  4.  
  5. #ifndef    FCNTL_H
  6. #define    FCNTL_H
  7.  
  8. #define    O_RDONLY    0x00        /* read only */
  9. #define    O_WRONLY    0x01        /* write only */
  10. #define    O_RDWR        0x02        /* read/write */
  11. #define    O_APPEND    0x10        /* position at EOF */
  12. #define    O_CREAT        0x20        /* create new file if needed */
  13. #define    O_TRUNC        0x40        /* make file 0 length */
  14. #define    O_EXCL        0x80        /* error if file exists */
  15.  
  16. /*
  17.  * AmigaDOS specific stuff
  18.  */
  19. #define O_STDIO        0x1000        /* stdin or stdout */
  20.  
  21. struct _device {
  22.     long mode;        /* The flags used to open device */
  23.     long fileHandle;    /* handle returned from AmigaDOS */
  24. };
  25. #endif FCNTL_H
  26.