(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.2 and 1.6

version 1.2, 2001/04/11 19:53:22 version 1.6, 2001/06/03 17:05:03
Line 1 
Line 1 
 //BEGIN_LICENSE  //%/////////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM
 // //
Line 17 
Line 17 
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 // DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
 // //
 //END_LICENSE  //==============================================================================
 //BEGIN_HISTORY  
 // //
 // Author: Michael E. Brasher  // Author: Mike Brasher (mbrasher@bmc.com)
 // //
 // $Log$  // Modified By:
 // Revision 1.2  2001/04/11 19:53:22  mike  
 // More porting  
 // //
 // Revision 1.1  2001/04/11 00:23:44  mike  //%/////////////////////////////////////////////////////////////////////////////
 // new files  
 //  
 //  
 //END_HISTORY  
  
 #include "System.h" #include "System.h"
  
Line 38 
Line 31 
  
 #include <windows.h> #include <windows.h>
 #include <sys/types.h> #include <sys/types.h>
   #include <time.h>
 #include <sys/timeb.h> #include <sys/timeb.h>
 #include <io.h> #include <io.h>
 #include <direct.h> #include <direct.h>
Line 59 
Line 53 
     milliseconds = long((largeInt.QuadPart % (10000 * 1000)) / 10);     milliseconds = long((largeInt.QuadPart % (10000 * 1000)) / 10);
 } }
  
   String System::getCurrentASCIITime()
   {
       char tmpbuf[128];
       _strtime( tmpbuf );
       String time = tmpbuf;
       _strdate( tmpbuf );
       time.append("-");
       time.append(tmpbuf);
       return time;
   }
   
 void System::sleep(Uint32 seconds) void System::sleep(Uint32 seconds)
 { {
     Sleep(seconds * 1000);     Sleep(seconds * 1000);
Line 130 
Line 135 
     return rename(oldPath, newPath) == 0;     return rename(oldPath, newPath) == 0;
 } }
  
   DynamicLibraryHandle System::loadDynamicLibrary(const char* fileName)
   {
       return DynamicLibraryHandle(LoadLibrary(fileName));
   }
   
   DynamicSymbolHandle System::loadDynamicSymbol(
       DynamicLibraryHandle libraryHandle,
       const char* symbolName)
   {
       return DynamicSymbolHandle(GetProcAddress(
           (HINSTANCE)libraryHandle, symbolName));
   }
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.6

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2