X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fuserprog.texi;h=38810e72f4c3bab38e960a6ab6d6cef0145b642f;hb=e097fdff5cd4b243a7d8fa6344985bbe2b27d69b;hp=dd3bf12b0a50ced384546a39dd1b0692fd443000;hpb=b9a4dcdda114dff1e03ca5f2e5be9821e80c2486;p=pintos-anon diff --git a/doc/userprog.texi b/doc/userprog.texi index dd3bf12..38810e7 100644 --- a/doc/userprog.texi +++ b/doc/userprog.texi @@ -191,14 +191,13 @@ directory. By default, the @file{Makefile} in this directory will compile the test programs we provide. You can edit the @file{Makefile} to compile your own test programs as well. -One thing you should realize immediately is that, until you use the -above operation to copy a test program to the emulated disk, Pintos -will be unable to do very much useful work. You will also find that -you won't be able to do interesting things until you copy a variety of -programs to the disk. A useful technique is to create a clean -reference disk and copy that over whenever you trash your -@file{fs.dsk} beyond a useful state, which may happen occasionally -while debugging. +One thing you should realize immediately is that, until you copy a +test program to the emulated disk, Pintos will be unable to do very +much useful work. You will also find that you won't be able to do +interesting things until you copy a variety of programs to the disk. +A useful technique is to create a clean reference disk and copy that +over whenever you trash your @file{fs.dsk} beyond a useful state, +which may happen occasionally while debugging. @node Virtual Memory Layout @section Virtual Memory Layout @@ -359,11 +358,12 @@ be disrupted). @item SYS_create @itemx bool create (const char *@var{file}, unsigned @var{initial_size}) Create a new file called @var{file} initially @var{initial_size} bytes -in size. Returns -1 if failed, 0 if OK. +in size. Returns true if successful, false otherwise. @item SYS_remove @itemx bool remove (const char *@var{file}) -Delete the file called @var{file}. Returns -1 if failed, 0 if OK. +Delete the file called @var{file}. Returns true if successful, false +otherwise. @item SYS_open @itemx int open (const char *@var{file})