From 50f6679b996d41382b5645ec467f398a594d9615 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 24 Mar 2007 00:56:57 +0000 Subject: [PATCH] Clarify that create and remove work on files, not on file descriptors. Thanks to Godmar Back for pointing out the need. --- doc/userprog.texi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/userprog.texi b/doc/userprog.texi index 8524219..75bc8e5 100644 --- a/doc/userprog.texi +++ b/doc/userprog.texi @@ -655,11 +655,15 @@ of the rest. @deftypefn {System Call} bool create (const char *@var{file}, unsigned @var{initial_size}) Creates a new file called @var{file} initially @var{initial_size} bytes in size. Returns true if successful, false otherwise. +Opening the new file is a separate operation using the @code{open} +system call. @end deftypefn @deftypefn {System Call} bool remove (const char *@var{file}) Deletes the file called @var{file}. Returns true if successful, false otherwise. +A file may be removed regardless of whether it is open or closed +(@pxref{Removing an Open File}, for more information). @end deftypefn @deftypefn {System Call} int open (const char *@var{file}) -- 2.30.2