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 th...@ascentialsoftware.com on 2003/12/30 06:18:40 UTC

XMLPlatformUtils support for large file on Solaris

I am using the following XMLPlatformUtils call to write XML documents
directly to disk.

XMLPlatformUtils::openFileToWrite(utf16FileName);

XMLPlatformUtils::writeBufferToFile(_fileHandle,
                                        _bufferedBytes,
                                        (XMLByte*)_fileBuffer);
XMLPlatformUtils::closeFile(_fileHandle);

It seems that those calls cannot be used for files bigger than 2 Gig. I
check the XercesC source code, Solaris platform util implementation, it
seems that a regular open is used to open the file while on Solaris, things
like open64 (or something like that) must be used for large file support (I
think).

Can anybody confirm? If it is confirmed, is there anywhere an alternative to
the default XMLPlatformUtils that will support large files?

Thanks.

Thomas


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