[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[myserver-commit] [3024] Return non-zero if the file was not opened corr
From: |
Giuseppe Scrivano |
Subject: |
[myserver-commit] [3024] Return non-zero if the file was not opened correctly. |
Date: |
Mon, 23 Mar 2009 17:38:42 +0000 |
Revision: 3024
http://svn.sv.gnu.org/viewvc/?view=rev&root=myserver&revision=3024
Author: gscrivano
Date: 2009-03-23 17:38:42 +0000 (Mon, 23 Mar 2009)
Log Message:
-----------
Return non-zero if the file was not opened correctly. Patch provided by Ivailo
Ilionov <address@hidden>.
Modified Paths:
--------------
trunk/myserver/src/base/file/file.cpp
Modified: trunk/myserver/src/base/file/file.cpp
===================================================================
--- trunk/myserver/src/base/file/file.cpp 2009-03-08 08:58:47 UTC (rev
3023)
+++ trunk/myserver/src/base/file/file.cpp 2009-03-23 17:38:42 UTC (rev
3024)
@@ -112,8 +112,7 @@
}
/*!
- *Open (or create if not exists) a file.
- *If the function have success the return value is nonzero.
+ *Open (or create if not exists) a file, but must explicitly use read and/or
write flags and open flag.
*\param nfilename Filename to open.
*\param opt Specify how open the file.
*openFile returns 0 if the call was successful, any other value on errors.
@@ -265,6 +264,8 @@
{
handle = (FileHandle)0;
filename.clear();
+
+ return 1;
}
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [myserver-commit] [3024] Return non-zero if the file was not opened correctly.,
Giuseppe Scrivano <=