projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Research V6 development
[unix-history]
/
usr
/
sys
/
file.h
diff --git
a/usr/sys/file.h
b/usr/sys/file.h
index
7c0bc4c
..
9c44ab3
100644
(file)
--- a/
usr/sys/file.h
+++ b/
usr/sys/file.h
@@
-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 */