mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Changed how errors are detected, as returned by Write(), Read() and
Seek(). Seek() is particularly challenging because the value it returns might be a valid file position and not an error. - Replaced numeric function return codes of 0 and -1 with macros OK, SEEK_ERROR/ERROR to clarify the respective purposes. - Changed how ftell() and fseek() are used, double-checking the return value and the errno code. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14923 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_rename.c,v 1.7 2005-04-24 08:46:37 obarthel Exp $
|
||||
* $Id: stdio_rename.c,v 1.8 2005-04-24 09:53:12 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -123,7 +123,7 @@ rename(const char *oldname,const char *newname)
|
||||
|
||||
if(CANNOT DeleteFile((STRPTR)newname))
|
||||
{
|
||||
SHOWMS("couldn't delete the file");
|
||||
SHOWMSG("couldn't delete the file");
|
||||
|
||||
__set_errno(__translate_io_error_to_errno(error));
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user