projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement keyboard device.
[pintos-anon]
/
src
/
filesys
/
file.c
diff --git
a/src/filesys/file.c
b/src/filesys/file.c
index 8969e179e093ec6c9fd540e995867cfb08ba198f..e1a70f31bb150cc6ffdf0aec62e4c976b27937c7 100644
(file)
--- a/
src/filesys/file.c
+++ b/
src/filesys/file.c
@@
-1,10
+1,10
@@
-#include "file.h"
-#include
"debug.h"
-#include
"lib.h"
-#include "
malloc
.h"
-#include "
directory
.h"
-#include "file
hdr
.h"
-#include "
filesys
.h"
+#include "file
sys/file
.h"
+#include
<debug.h>
+#include
<string.h>
+#include "
filesys/directory
.h"
+#include "
filesys/filehdr
.h"
+#include "file
sys/filesys
.h"
+#include "
threads/malloc
.h"
bool
file_open (struct file *file, disk_sector_t hdr_sector)
bool
file_open (struct file *file, disk_sector_t hdr_sector)
@@
-119,7
+119,6
@@
file_write_at (struct file *file, const void *buffer_, off_t size,
file_ofs += chunk_size;
bytes_written += chunk_size;
}
file_ofs += chunk_size;
bytes_written += chunk_size;
}
- free (file->bounce);
return bytes_written;
}
return bytes_written;
}