summaryrefslogtreecommitdiff
path: root/ace/OS_NS_time.inl
diff options
context:
space:
mode:
authorjtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-04-11 18:47:50 +0000
committerjtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-04-11 18:47:50 +0000
commitb51a8191c587376e0a7c5b4ab0ac05cd94f994a8 (patch)
tree67fd6e991e07c0110ca3d92aaff35cd1771215d5 /ace/OS_NS_time.inl
parent0f5e79c8fa06b445124d2a3ca499197e748901be (diff)
downloadATCD-b51a8191c587376e0a7c5b4ab0ac05cd94f994a8.tar.gz
ChangeLogTag: Mon Apr 11 11:39:11 2005 J.T. Conklin <jtc@acorntoolworks.com>
Diffstat (limited to 'ace/OS_NS_time.inl')
-rw-r--r--ace/OS_NS_time.inl12
1 files changed, 12 insertions, 0 deletions
diff --git a/ace/OS_NS_time.inl b/ace/OS_NS_time.inl
index 0d2a6686afb..087d722f188 100644
--- a/ace/OS_NS_time.inl
+++ b/ace/OS_NS_time.inl
@@ -77,6 +77,18 @@ ACE_OS::clock_gettime (clockid_t clockid, struct timespec *ts)
#endif /* ACE_HAS_CLOCK_GETTIME */
}
+ACE_INLINE int
+ACE_OS::clock_settime (clockid_t clockid, const struct timespec *ts)
+{
+#if defined (ACE_HAS_CLOCK_SETTIME)
+ ACE_OSCALL_RETURN (::clock_settime (clockid, ts), int, -1);
+#else
+ ACE_UNUSED_ARG (clockid);
+ ACE_UNUSED_ARG (ts);
+ ACE_NOTSUP_RETURN (-1);
+#endif
+}
+
// Magic number declaration and definition for ctime and ctime_r ()
static const int ctime_buf_size = 26;