X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=includes%2Fstdio.h;fp=includes%2Fstdio.h;h=014052bda5f4451883f586f8c2e530248f67b00b;hp=4a029a01f493824aacf820c8b19246e9d037cc18;hb=9d770c7dd67207ded6d29e16e3458282cf865dda;hpb=65b97c0d355f87ddec19e391518cc7ecc849badc diff --git a/includes/stdio.h b/includes/stdio.h index 4a029a0..014052b 100644 --- a/includes/stdio.h +++ b/includes/stdio.h @@ -52,17 +52,18 @@ extern FILE * stderr; /* Remove the given file. Returns zero if successful, non-zero otherwise. - This implementation does detect if the filename corresponds to an open file, - and closes it before attempting the rename. + This implementation does detect if a file of that name is currently open, + and fails the remove in this case. This does not detect two distinct names + that merely result in the same file (e.g. "/home/user/foo" vs. "~/foo"). */ int remove( const char * filename ); /* Rename the given old file to the given new name. Returns zero if successful, non-zero otherwise. This implementation does detect if the old filename corresponds to an open - file, and closes it before attempting the rename. - If the already is a file with the new filename, behaviour is defined by the - OS. + file, and fails the rename in this case. + If there already is a file with the new filename, behaviour is defined by + the glue code (see functions/_PDCLIB/rename.c). */ int rename( const char * old, const char * new );