You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/07/26 02:22:21 UTC

DO NOT REPLY [Bug 11189] New: - Tru64 utilities missing implementation of new functions.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11189>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11189

Tru64 utilities missing implementation of new functions.

           Summary: Tru64 utilities missing implementation of new functions.
           Product: Xerces-C++
           Version: Nightly build (please specify the date)
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Utilities
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: David_N_Bertoni@lotus.com


This bug is for Xerces 2.0, but there is no version number for 2.0, so I 
selected Nightly build.

The implementation of XMLPlatformUtilities is missing implementations of member 
functions for Tru64.  Here's a patch, which was taken from the AIX 
implementation:

cvs -z9 diff Tru64PlatformUtils.cpp (in directory V:\xml-
xerces\c\src\xercesc\util\Platforms\Tru64\)
Index: Tru64PlatformUtils.cpp
===================================================================
RCS file: /home/cvspublic/xml-
xerces/c/src/xercesc/util/Platforms/Tru64/Tru64PlatformUtils.cpp,v
retrieving revision 1.2
diff -r1.2 Tru64PlatformUtils.cpp
274a275,286
> FileHandle XMLPlatformUtils::openFileToWrite(const XMLCh* const fileName)
> {
>     const char* tmpFileName = XMLString::transcode(fileName);
>     ArrayJanitor<char> janText((char*)tmpFileName);
>     return fopen( tmpFileName , "wb" );
> }
> 
> FileHandle XMLPlatformUtils::openFileToWrite(const char* const fileName)
> {
>     return fopen( fileName , "wb" );
> }
> 
288a301,335
> }
> 
> void
> XMLPlatformUtils::writeBufferToFile( FileHandle     const  theFile
>                                    , long                  toWrite
>                                    , const XMLByte* const  
toFlush)                                   
> {
>     if (!theFile        ||
>         (toWrite <= 0 ) ||
>         !toFlush         )
>         return;
> 
>     const XMLByte* tmpFlush = (const XMLByte*) toFlush;
>     size_t bytesWritten = 0;
> 
>     while (true)
>     {
>         bytesWritten=fwrite(tmpFlush, sizeof(XMLByte), toWrite, (FILE*)
theFile);
> 
>         if(ferror((FILE*)theFile))
>         {
>             ThrowXML(XMLPlatformUtilsException, 
XMLExcepts::File_CouldNotWriteToFile);
>         }
> 
>         if (bytesWritten < toWrite) //incomplete write
>         {
>             tmpFlush+=bytesWritten;
>             toWrite-=bytesWritten;
>             bytesWritten=0;
>         }
>         else
>             return;
>     }
> 
>     return;

*****CVS exited normally with code 1*****

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org