diff options
author | Frans Kaashoek <[email protected]> | 2012-08-22 20:20:17 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2012-08-22 20:20:17 -0400 |
commit | 432acbaf9e8817e16026bfcaaa8bca0ba7c8a6f8 (patch) | |
tree | 0b107cc92179b5b936d36174ff5af87e8fd3eec8 /file.c | |
parent | 4ce832ddd280a4cea36e16115ddeaea74213314e (diff) | |
parent | 9d59eb015141697da616a4b98ac27cf4269cd780 (diff) | |
download | xv6-labs-432acbaf9e8817e16026bfcaaa8bca0ba7c8a6f8.tar.gz xv6-labs-432acbaf9e8817e16026bfcaaa8bca0ba7c8a6f8.tar.bz2 xv6-labs-432acbaf9e8817e16026bfcaaa8bca0ba7c8a6f8.zip |
Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +// +// File descriptors +// + #include "types.h" #include "defs.h" #include "param.h" @@ -87,7 +91,7 @@ filestat(struct file *f, struct stat *st) return -1; } -// Read from file f. Addr is kernel address. +// Read from file f. int fileread(struct file *f, char *addr, int n) { @@ -108,7 +112,7 @@ fileread(struct file *f, char *addr, int n) } //PAGEBREAK! -// Write to file f. Addr is kernel address. +// Write to file f. int filewrite(struct file *f, char *addr, int n) { |