projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of unnecessary barrier. Improve comment.
[pintos-anon]
/
src
/
tests
/
userprog
/
insult.c
diff --git
a/src/tests/userprog/insult.c
b/src/tests/userprog/insult.c
index c0064c3f6501401abfbc9af631b903d7d1b9a2dd..442a3ec353766f49caa04b4e87940399799f3801 100644
(file)
--- a/
src/tests/userprog/insult.c
+++ b/
src/tests/userprog/insult.c
@@
-309,6
+309,11
@@
main (int argc, char *argv[])
usage (-1, "Can't have more than one output file");
if (++i >= argc)
usage (-1, "Missing value for -f");
usage (-1, "Can't have more than one output file");
if (++i >= argc)
usage (-1, "Missing value for -f");
+
+ /* Because files have fixed length in the basic Pintos
+ file system, the 0 argument means that this option
+ will not be useful until project 4 is
+ implemented. */
create (argv[i], 0);
handle = open (argv[i]);
if (handle < 0)
create (argv[i], 0);
handle = open (argv[i]);
if (handle < 0)