home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / prog / c / pdc.lzh / File1 < prev    next >
Text File  |  1991-08-04  |  592b  |  24 lines

  1. /*
  2.  * PDC I/O Library Copyright (C) 1987 by J.A. Lydiatt.
  3.  * Freely Distributable for non-commercial use.
  4.  */
  5. #define O_RDONLY    0
  6. #define O_WRONLY    1
  7. #define O_RDWR        2
  8. #define O_CREAT        0x0100
  9. #define O_TRUNC        0x0200
  10. #define O_EXCL        0x0400
  11. #define O_APPEND    0x0800
  12.  
  13. #define    O_CONRAW    0x4000
  14. #define    O_STDIO        0x8000
  15.  
  16. struct _device {            /* An unbuffered I/O device entry. */
  17.     long    _fileHandle;    /* AmigaDos File Handle. */
  18.     short    _mode;            /* How it was opened. */
  19. };
  20.  
  21. extern struct _device  *_devtab; /* ^ device table allocated in _main */
  22. extern short _numdev;        /* Number of devices available. */
  23.  
  24.