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

Diff for /pegasus/src/Pegasus/Common/SystemWindows.cpp between version 1.20 and 1.21

version 1.20, 2002/03/07 22:58:45 version 1.21, 2002/03/19 22:56:00
Line 33 
Line 33 
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 #include <windows.h> #include <windows.h>
   #include <fcntl.h>
 #include <sys/types.h> #include <sys/types.h>
 #include <time.h> #include <time.h>
 #include <sys/timeb.h> #include <sys/timeb.h>
Line 249 
Line 250 
     return _getpid();     return _getpid();
 } }
  
   Boolean System::truncateFile(
       const char* path,
       size_t newSize)
   {
       int fd = open(path, O_RDWR);
   
       if (fd == -1)
           return false;
   
       if (chsize(fd, newSize) != 0)
           return false;
   
       close(fd);
       return true;
   }
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2