You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2006/12/28 10:35:28 UTC

svn commit: r490683 - /xerces/c/branches/xerces-2.7/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp

Author: amassari
Date: Thu Dec 28 01:35:24 2006
New Revision: 490683

URL: http://svn.apache.org/viewvc?view=rev&rev=490683
Log:
Rollback changes

Modified:
    xerces/c/branches/xerces-2.7/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp

Modified: xerces/c/branches/xerces-2.7/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp
URL: http://svn.apache.org/viewvc/xerces/c/branches/xerces-2.7/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp?view=diff&rev=490683&r1=490682&r2=490683
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp (original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/util/Platforms/Solaris/SolarisPlatformUtils.cpp Thu Dec 28 01:35:24 2006
@@ -216,10 +216,7 @@
 FileHandle XMLPlatformUtils::openFile(const char* const fileName
                                       , MemoryManager* const manager)
 {
-    int f = open( fileName , O_RDONLY | O_LARGEFILE);
-    if(f==-1)
-	return 0;
-    return (FileHandle)f;
+    return (FileHandle) open( fileName , O_RDONLY | O_LARGEFILE);
 }
 
 FileHandle XMLPlatformUtils::openFile(const XMLCh* const fileName
@@ -227,7 +224,7 @@
 {
     const char* tmpFileName = XMLString::transcode(fileName, manager);
     ArrayJanitor<char> janText((char*)tmpFileName, manager);
-    return openFile( tmpFileName, manager); 
+    return (FileHandle) open( tmpFileName , O_RDONLY | O_LARGEFILE); 
 }
 
 FileHandle XMLPlatformUtils::openFileToWrite(const XMLCh* const fileName
@@ -235,16 +232,13 @@
 {
     const char* tmpFileName = XMLString::transcode(fileName, manager);
     ArrayJanitor<char> janText((char*)tmpFileName, manager);
-    return openFile( tmpFileName, manager);
+    return (FileHandle)open( tmpFileName , O_WRONLY | O_CREAT | O_TRUNC | O_LARGEFILE, 0666);
 }
 
 FileHandle XMLPlatformUtils::openFileToWrite(const char* const fileName
                                              , MemoryManager* const manager)
 {
-    int f=open( fileName , O_WRONLY | O_CREAT | O_TRUNC | O_LARGEFILE, 0666);
-    if(f==-1)
-	return 0;
-    return (FileHandle)f;
+    return (FileHandle)open( fileName , O_WRONLY | O_CREAT | O_TRUNC | O_LARGEFILE, 0666);
 }
 
 unsigned int



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