summaryrefslogtreecommitdiff
path: root/ace/os_include/time.h
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-07-20 14:32:29 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-07-20 14:32:29 +0000
commit313d763c57f0116ae8a4d516a339356e20578e19 (patch)
tree2f3d376496d8634487d22da4494ba47b13cedee8 /ace/os_include/time.h
parent5cb0ff6546c403f37cca5ec8228c1c4c6b08b300 (diff)
downloadATCD-OS-h_refactor.tar.gz
This commit was manufactured by cvs2svn to create branchOS-h_refactor
'OS-h_refactor'.
Diffstat (limited to 'ace/os_include/time.h')
-rw-r--r--ace/os_include/time.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/ace/os_include/time.h b/ace/os_include/time.h
new file mode 100644
index 00000000000..c3e36288c58
--- /dev/null
+++ b/ace/os_include/time.h
@@ -0,0 +1,65 @@
+/* -*- C++ -*- */
+
+//=============================================================================
+/**
+ * @file time.h
+ *
+ * $Id$
+ *
+ * @author Douglas C. Schmidt (schmidt@cs.wustl.edu)
+ * @author etc
+ */
+//=============================================================================
+
+#ifndef ACE_OS_INCLUDE_TIME_H
+# define ACE_OS_INCLUDE_TIME_H
+# include "ace/pre.h"
+
+# include "ace/config-all.h"
+
+# if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+# endif /* ACE_LACKS_PRAGMA_ONCE */
+
+# if !defined (ACE_LACKS_TIME_H)
+# include /**/ <time.h>
+# endif /* ACE_LACKS_TIME_H */
+
+# if defined (ACE_NEEDS_SYS_TIMES_H)
+ include /**/ <sys/times.h>
+# endif /* ACE_NEEDS_SYS_TIMES_H) */
+
+# if defined (ACE_NEEDS_SYS_TIME_H)
+# include /**/ <sys/time.h>
+# endif /* ACE_NEEDS_SYS_TIME_H */
+
+# if defined (ACE_USES_STD_NAMESPACE_FOR_STDC_LIB) && \
+ (ACE_USES_STD_NAMESPACE_FOR_STDC_LIB != 0)
+using std::time_t;
+using std::tm;
+# if defined (ACE_WIN32)
+using std::_timezone;
+# else
+using std::timezone;
+# endif
+using std::difftime;
+# endif /* ACE_USES_STD_NAMESPACE_FOR_STDC_LIB */
+
+# if !defined (ACE_HAS_CLOCK_GETTIME) && !(defined (_CLOCKID_T_) || defined (_CLOCKID_T))
+typedef int clockid_t;
+# if !defined (CLOCK_REALTIME)
+# define CLOCK_REALTIME 0
+# endif /* CLOCK_REALTIME */
+# endif /* ! ACE_HAS_CLOCK_GETTIME && ! _CLOCKID_T_ */
+
+// does this belong here?
+# if defined (ACE_HAS_BROKEN_CTIME)
+# undef ctime
+# endif /* ACE_HAS_BROKEN_CTIME */
+
+# if defined (ACE_LACKS_STRPTIME_PROTOTYPE) && !defined (_XOPEN_SOURCE)
+extern "C" char *strptime (const char *s, const char *fmt, struct tm *tp);
+# endif /* ACE_LACKS_STRPTIME_PROTOTYPE */
+
+#endif /* ACE_OS_INCLUDE_TIME_H */
+