(file) Return to System.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/System.cpp between version 1.46 and 1.47.4.1

version 1.46, 2006/12/13 09:47:39 version 1.47.4.1, 2007/02/15 16:23:30
Line 42 
Line 42 
 #include "Socket.h" #include "Socket.h"
 #include "Network.h" #include "Network.h"
 #include <Pegasus/Common/PegasusVersion.h> #include <Pegasus/Common/PegasusVersion.h>
   #include <Pegasus/Common/FileSystem.h>
  
 #if defined(PEGASUS_OS_TYPE_WINDOWS) #if defined(PEGASUS_OS_TYPE_WINDOWS)
 # include "SystemWindows.cpp" # include "SystemWindows.cpp"
Line 64 
Line 65 
 Boolean System::copyFile(const char* fromPath, const char* toPath) Boolean System::copyFile(const char* fromPath, const char* toPath)
 { {
     ifstream is(fromPath PEGASUS_IOS_BINARY);     ifstream is(fromPath PEGASUS_IOS_BINARY);
     ofstream os(toPath PEGASUS_IOS_BINARY);      fstream os(toPath, ios::out  PEGASUS_OR_IOS_BINARY);
  
     char c;     char c;
  
Line 74 
Line 75 
             return false;             return false;
     }     }
  
       FileSystem::syncWithDirectoryUpdates(os);
     return is.eof();     return is.eof();
 } }
  
Line 594 
Line 596 
         // localhost ?         // localhost ?
         if (String::equalNoCase(hostName,String("localhost"))) return true;         if (String::equalNoCase(hostName,String("localhost"))) return true;
         char localHostName[PEGASUS_MAXHOSTNAMELEN];         char localHostName[PEGASUS_MAXHOSTNAMELEN];
         CString cstringLocalHostName = System::getHostName().getCString());          CString cstringLocalHostName = System::getHostName().getCString();
         strcpy(localHostName, (const char*) cstringLocalHostName);         strcpy(localHostName, (const char*) cstringLocalHostName);
         // given hostname equals what system returns as local hostname ?         // given hostname equals what system returns as local hostname ?
         if (String::equalNoCase(hostName,localHostName)) return true;         if (String::equalNoCase(hostName,localHostName)) return true;


Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47.4.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2