home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / sys / file.h < prev    next >
Encoding:
C/C++ Source or Header  |  1975-05-13  |  407 b   |  20 lines

  1. /*
  2.  * One file structure is allocated
  3.  * for each open/creat/pipe call.
  4.  * Main use is to hold the read/write
  5.  * pointer associated with each open
  6.  * file.
  7.  */
  8. struct    file
  9. {
  10.     char    f_flag;
  11.     char    f_count;    /* reference count */
  12.     int    f_inode;    /* pointer to inode structure */
  13.     char    *f_offset[2];    /* read/write character pointer */
  14. } file[NFILE];
  15.  
  16. /* flags */
  17. #define    FREAD    01
  18. #define    FWRITE    02
  19. #define    FPIPE    04
  20.