You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ne...@apache.org on 2004/01/07 01:02:44 UTC
cvs commit: xml-xerces/c/src/xercesc/util/Platforms/Solaris SolarisPlatformUtils.cpp
neilg 2004/01/06 16:02:44
Modified: c/src/xercesc/util/Platforms/Solaris
SolarisPlatformUtils.cpp
Log:
fix for bug 25660
Revision Changes Path
1.23 +5 -5 xml-xerces/c/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp
Index: SolarisPlatformUtils.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- SolarisPlatformUtils.cpp 24 Dec 2003 15:24:14 -0000 1.22
+++ SolarisPlatformUtils.cpp 7 Jan 2004 00:02:44 -0000 1.23
@@ -251,7 +251,7 @@
FileHandle XMLPlatformUtils::openFile(const char* const fileName
, MemoryManager* const manager)
{
- int retVal = open( fileName , O_RDONLY );
+ int retVal = open( fileName , O_RDONLY | O_LARGEFILE);
if (retVal == -1)
return 0;
@@ -263,7 +263,7 @@
{
const char* tmpFileName = XMLString::transcode(fileName, manager);
ArrayJanitor<char> janText((char*)tmpFileName, manager);
- int retVal = open( tmpFileName , O_RDONLY );
+ int retVal = open( tmpFileName , O_RDONLY | O_LARGEFILE);
if (retVal == -1)
return 0;
@@ -275,13 +275,13 @@
{
const char* tmpFileName = XMLString::transcode(fileName, manager);
ArrayJanitor<char> janText((char*)tmpFileName, manager);
- return (FileHandle)open( tmpFileName , O_WRONLY | O_CREAT );
+ return (FileHandle)open( tmpFileName , O_WRONLY | O_CREAT | O_LARGEFILE, 0666);
}
FileHandle XMLPlatformUtils::openFileToWrite(const char* const fileName
, MemoryManager* const manager)
{
- return (FileHandle)open( fileName , O_WRONLY | O_CREAT );
+ return (FileHandle)open( fileName , O_WRONLY | O_CREAT | O_LARGEFILE, 0666);
}
unsigned int
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org