summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-30 09:08:16 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-30 09:08:16 +0000
commit5162c13badc857368a13b6a281fd189af382ca60 (patch)
treee9995b06ea2db1cbcde74d83484c641902386b5b
parent43ba5b15722fa3c571e82af7e0fa7d1009bdf8aa (diff)
downloadATCD-5162c13badc857368a13b6a281fd189af382ca60.tar.gz
Added gettimeofday implementation for WinCE.
-rw-r--r--ace/OS.i18
1 files changed, 12 insertions, 6 deletions
diff --git a/ace/OS.i b/ace/OS.i
index 76a40c53bbb..474e5e51b4a 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -723,7 +723,7 @@ ACE_OS::isatty (ACE_HANDLE handle)
int fd = ::_open_osfhandle ((long) handle, 0);
ACE_OSCALL_RETURN (::_isatty ((int) fd), int, -1);
#else
- ACE_UNUSED_ARG (fd);
+ ACE_UNUSED_ARG (handle);
return 0;
#endif /* ACE_HAS_WINCE */
}
@@ -816,10 +816,11 @@ ACE_OS::gettimeofday (void)
timeval tv;
int result = 0;
#if defined (ACE_HAS_WINCE)
- // @@ Don't know how to convert absolute time to ACE time yet.
- ACE_UNUSED_ARG (result);
- ACE_UNUSED_ARG (tv);
- ACE_NOTSUP_RETURN (-1);
+ SYSTEMTIME tsys;
+ FILETIME tfile;
+ ::GetSystemTime (&tsys);
+ ::SystemTimeToFileTime (&tsys, &tfile);
+ return ACE_Time_Value (tfile);
#elif defined (ACE_WIN32)
// From Todd Montgomery...
struct _timeb tb;
@@ -6076,7 +6077,7 @@ ACE_OS::hostname (char name[], size_t maxnamelen)
#endif /* ACE_WIN32 */
#else /* ACE_HAS_WINCE */
// @@ Don'T know how to implement this (yet.) Can probably get around
- // this by peeking into Register set.
+ // this by peeking into the Register set.
ACE_UNUSED_ARG (name);
ACE_UNUSED_ARG (maxnamelen);
ACE_NOTSUP_RETURN (-1);
@@ -8705,3 +8706,8 @@ ACE_Thread_Adapter::entry_point (void)
{
return this->entry_point_;
}
+
+#if defined (ACE_HAS_WINCE)
+// Let's not deal with too many errors at a time.
+#error "WINCE HERE"
+#endif