Research V6 development
[unix-history] / usr / sys / file.h
index 7c0bc4c..9c44ab3 100644 (file)
@@ -1,8 +1,16 @@
-struct file {
+/*
+ * One file structure is allocated
+ * for each open/creat/pipe call.
+ * Main use is to hold the read/write
+ * pointer associated with each open
+ * file.
+ */
+struct file
+{
        char    f_flag;
        char    f_flag;
-       char    f_count;
-       int     f_inode;
-       char    *f_offset[2];
+       char    f_count;        /* reference count */
+       int     f_inode;        /* pointer to inode structure */
+       char    *f_offset[2];   /* read/write character pointer */
 } file[NFILE];
 
 /* flags */
 } file[NFILE];
 
 /* flags */