jberry 2003/02/22 20:36:55 Modified: c/src/xercesc/util/Platforms/FreeBSD FreeBSDPlatformUtils.cpp Log: Minor bug fixes to FreeBSD port Revision Changes Path 1.8 +8 -10 xml-xerces/c/src/xercesc/util/Platforms/FreeBSD/FreeBSDPlatformUtils.cpp Index: FreeBSDPlatformUtils.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/FreeBSD/FreeBSDPlatformUtils.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- FreeBSDPlatformUtils.cpp 12 Dec 2002 16:28:48 -0000 1.7 +++ FreeBSDPlatformUtils.cpp 23 Feb 2003 04:36:55 -0000 1.8 @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.8 2003/02/23 04:36:55 jberry + * Minor bug fixes to FreeBSD port + * * Revision 1.7 2002/12/12 16:28:48 peiyongz * MsgCatalogLoader added. * @@ -333,7 +336,7 @@ if (nfd == -1) ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotDupHandle); - return (FileHandle) fdopen(dup(0), "r"); + return (FileHandle) fdopen(nfd, "r"); } unsigned int @@ -375,15 +378,10 @@ bytesWritten = fwrite(tmpFlush, sizeof(XMLByte), toWrite, (FILE*)theFile); if(ferror((FILE*)theFile)) - { -#if 0 - ThrowXML(XMLPlatformUtilsException, - XMLExcepts::File_CouldNotWriteToFile); -#else - ThrowXML(XMLPlatformUtilsException, - XMLExcepts::File_CouldNotReadFromFile); -#endif - } + { + ThrowXML(XMLPlatformUtilsException, + XMLExcepts::File_CouldNotWriteToFile); + } if (bytesWritten < (size_t) toWrite) //incomplete write {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]