X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fuserprog%2Finsult.c;h=442a3ec353766f49caa04b4e87940399799f3801;hb=5780c9f434cca090f88463b7f0199d49b4ded288;hp=c0064c3f6501401abfbc9af631b903d7d1b9a2dd;hpb=6e9b520f984cd185ee72ddc1fefc94bf2a4e31f2;p=pintos-anon diff --git a/src/tests/userprog/insult.c b/src/tests/userprog/insult.c index c0064c3..442a3ec 100644 --- 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"); + + /* 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)