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

Diff for /pegasus/src/Pegasus/Common/FileSystem.cpp between version 1.85 and 1.86

version 1.85, 2008/12/16 18:55:59 version 1.86, 2012/07/30 09:23:47
Line 30 
Line 30 
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #include <iostream> #include <iostream>
 //#include <cstdio>  
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/System.h> #include <Pegasus/Common/System.h>
 #include <Pegasus/Common/AutoPtr.h> #include <Pegasus/Common/AutoPtr.h>
Line 41 
Line 40 
 #include <pwd.h> #include <pwd.h>
 #endif #endif
 #include <Pegasus/Common/Tracer.h> #include <Pegasus/Common/Tracer.h>
   
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 // Clone the path as a C String but discard trailing slash if any: // Clone the path as a C String but discard trailing slash if any:
Line 467 
Line 467 
 { {
 #if defined(PEGASUS_OS_TYPE_WINDOWS) #if defined(PEGASUS_OS_TYPE_WINDOWS)
     return String(".dll");     return String(".dll");
 #elif defined(PEGASUS_PLATFORM_HPUX_PARISC_ACC)  #elif defined(PEGASUS_PLATFORM_HPUX_PARISC_ACC) || \
       defined (PEGASUS_PLATFORM_HPUX_PARISC_GNU)
     return String(".sl");     return String(".sl");
 #elif defined(PEGASUS_OS_DARWIN) #elif defined(PEGASUS_OS_DARWIN)
     return String(".dylib");     return String(".dylib");
Line 580 
Line 581 
 void FileSystem::syncWithDirectoryUpdates(PEGASUS_STD(fstream)& fs) void FileSystem::syncWithDirectoryUpdates(PEGASUS_STD(fstream)& fs)
 { {
 #if defined(PEGASUS_OS_HPUX) #if defined(PEGASUS_OS_HPUX)
     #if defined (PEGASUS_PLATFORM_HPUX_IA64_GNU) || \
       defined (PEGASUS_PLATFORM_HPUX_PARISC_GNU)
       // Writes the data from the iostream buffers to the OS buffers
       fs.flush();
       // Writes the data from the OS buffers to the disk
       fs.rdbuf()->pubsync();
       #else
     // Writes the data from the iostream buffers to the OS buffers     // Writes the data from the iostream buffers to the OS buffers
     fs.flush();     fs.flush();
     // Writes the data from the OS buffers to the disk     // Writes the data from the OS buffers to the disk
     fsync(fs.rdbuf()->fd());     fsync(fs.rdbuf()->fd());
 #endif #endif
   #endif
 } }
  
 Boolean FileSystem::glob( Boolean FileSystem::glob(


Legend:
Removed from v.1.85  
changed lines
  Added in v.1.86

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2