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 Neil Graham <ne...@ca.ibm.com> on 2004/01/07 01:05:53 UTC

Re: XMLPlatformUtils support for large file on Solaris




Hi Thomas,

If it's possible for you to build directly from our CVS repository, I've
just put in a fix that I think resolves this problem.  Since we're using
open instead of fopen, I believe it's necessary to or in O_LARGEFILE to the
open call; but I have no sufficiently large files to test this.

Thanks!
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  905-413-3519, T/L 969-3519
E-mail:  neilg@ca.ibm.com




                                                                                                                                              
                      thomas.cherel@ascentials                                                                                                
                      oftware.com                     To:       xerces-c-dev@xml.apache.org                                                   
                                                      cc:                                                                                     
                      12/30/2003 12:18 AM             Subject:  XMLPlatformUtils support for large file on Solaris                            
                      Please respond to                                                                                                       
                      xerces-c-dev                                                                                                            
                                                                                                                                              
                                                                                                                                              




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





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