X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffilesys%2Ffilesys.c;h=e16c4879e24c7f471f650b5346914387487f6e30;hb=b39736b0506a065e5b9980f7926d9c6c663f242f;hp=05df4cef911ce96547c4b9377b8338095b810de7;hpb=16d8d5756131bf5bc0850537d0f09d4848ffcdec;p=pintos-anon diff --git a/src/filesys/filesys.c b/src/filesys/filesys.c index 05df4ce..e16c487 100644 --- a/src/filesys/filesys.c +++ b/src/filesys/filesys.c @@ -197,7 +197,8 @@ filesys_create (const char *name, off_t initial_size) /* Opens a file named NAME and initializes FILE for usage with the file_*() functions declared in file.h. - Returns true if successful, false on failure. + Returns the new file if successful or a null pointer + otherwise. Fails if no file named NAME exists, or if an internal memory allocation fails. */ struct file *