summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_time.inl
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-06-28 15:41:21 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-06-28 15:41:21 +0200
commitfffe48a8fea850e331714bb526be5de12122307f (patch)
treeb57e996b4b654cd04ca6c9d30c574e4d463fdeb1 /ACE/ace/OS_NS_time.inl
parent6e2e9f862209e9dae3a282f2505e83d9dce2ac69 (diff)
downloadATCD-fffe48a8fea850e331714bb526be5de12122307f.tar.gz
Removed lot of ACE_OSCALL_RETURN calls, the macro expanded to only the method invocation itself
* ACE/ace/OS_NS_Thread.inl: * ACE/ace/OS_NS_arpa_inet.cpp: * ACE/ace/OS_NS_arpa_inet.inl: * ACE/ace/OS_NS_devctl.inl: * ACE/ace/OS_NS_dlfcn.inl: * ACE/ace/OS_NS_fcntl.cpp: * ACE/ace/OS_NS_fcntl.inl: * ACE/ace/OS_NS_poll.inl: * ACE/ace/OS_NS_regex.inl: * ACE/ace/OS_NS_signal.inl: * ACE/ace/OS_NS_stdio.inl: * ACE/ace/OS_NS_stdlib.inl: * ACE/ace/OS_NS_stropts.inl: * ACE/ace/OS_NS_sys_mman.inl: * ACE/ace/OS_NS_sys_msg.inl: * ACE/ace/OS_NS_sys_resource.inl: * ACE/ace/OS_NS_sys_shm.inl: * ACE/ace/OS_NS_sys_socket.inl: * ACE/ace/OS_NS_sys_stat.inl: * ACE/ace/OS_NS_sys_uio.inl: * ACE/ace/OS_NS_sys_utsname.cpp: * ACE/ace/OS_NS_sys_wait.inl: * ACE/ace/OS_NS_time.cpp: * ACE/ace/OS_NS_time.inl: * ACE/ace/OS_NS_unistd.cpp: * ACE/ace/OS_NS_unistd.inl: * ACE/ace/OS_NS_wchar.inl: * ACE/ace/OS_TLI.inl:
Diffstat (limited to 'ACE/ace/OS_NS_time.inl')
-rw-r--r--ACE/ace/OS_NS_time.inl22
1 files changed, 11 insertions, 11 deletions
diff --git a/ACE/ace/OS_NS_time.inl b/ACE/ace/OS_NS_time.inl
index 5f8a4128fbc..c5f676ae800 100644
--- a/ACE/ace/OS_NS_time.inl
+++ b/ACE/ace/OS_NS_time.inl
@@ -15,7 +15,7 @@ ACE_OS::asctime (const struct tm *t)
ACE_UNUSED_ARG (t);
ACE_NOTSUP_RETURN (0);
#else
- ACE_OSCALL_RETURN (ACE_STD_NAMESPACE::asctime (t), char *);
+ return ACE_STD_NAMESPACE::asctime (t);
#endif /* ACE_LACKS_ASCTIME */
}
@@ -31,9 +31,9 @@ ACE_OS::asctime_r (const struct tm *t, char *buf, int buflen)
return buf;
# else
# if defined (ACE_HAS_SIZET_PTR_ASCTIME_R_AND_CTIME_R)
- ACE_OSCALL_RETURN (::asctime_r (t, buf, reinterpret_cast<size_t*>(&buflen)), char *);
+ return ::asctime_r (t, buf, reinterpret_cast<size_t*>(&buflen));
# else
- ACE_OSCALL_RETURN (::asctime_r (t, buf, buflen), char *);
+ return ::asctime_r (t, buf, buflen);
# endif /* ACE_HAS_SIZET_PTR_ASCTIME_R_AND_CTIME_R */
# endif /* ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R */
#elif defined (ACE_HAS_TR24731_2005_CRT)
@@ -59,7 +59,7 @@ ACE_OS::clock_gettime (clockid_t clockid, struct timespec *ts)
{
ACE_OS_TRACE ("ACE_OS::clock_gettime");
#if defined (ACE_HAS_CLOCK_GETTIME)
- ACE_OSCALL_RETURN (::clock_gettime (clockid, ts), int);
+ return ::clock_gettime (clockid, ts);
#else
ACE_UNUSED_ARG (clockid);
ACE_UNUSED_ARG (ts);
@@ -72,9 +72,9 @@ ACE_OS::clock_settime (clockid_t clockid, const struct timespec *ts)
{
#if defined (ACE_HAS_CLOCK_SETTIME)
# if defined (ACE_HAS_NONCONST_CLOCK_SETTIME)
- ACE_OSCALL_RETURN (::clock_settime (clockid, const_cast<struct timespec *>(ts)), int);
+ return ::clock_settime (clockid, const_cast<struct timespec *>(ts));
# else
- ACE_OSCALL_RETURN (::clock_settime (clockid, ts), int);
+ return ::clock_settime (clockid, ts);
# endif /* ACE_HAS_NONCONST_CLOCK_SETTIME */
#else
ACE_UNUSED_ARG (clockid);
@@ -99,7 +99,7 @@ ACE_OS::ctime (const time_t *t)
buf,
ctime_buf_size);
#elif defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
- ACE_OSCALL_RETURN (::_wctime (t), wchar_t *);
+ return ::_wctime (t);
#else
# if defined (ACE_USES_WCHAR) /* Not Win32, else it would do the above */
char *narrow_time;
@@ -116,7 +116,7 @@ ACE_OS::ctime (const time_t *t)
wide_time = ACE_Ascii_To_Wide::convert (narrow_time);
return wide_time;
# else
- ACE_OSCALL_RETURN (::ctime (t), char *);
+ return ::ctime (t);
# endif /* ACE_USES_WCHAR */
# endif /* ACE_HAS_WINCE */
}
@@ -350,7 +350,7 @@ ACE_OS::gmtime (const time_t *t)
ACE_UNUSED_ARG (t);
ACE_NOTSUP_RETURN (0);
#else
- ACE_OSCALL_RETURN (::gmtime (t), struct tm *);
+ return ::gmtime (t);
#endif /* ACE_LACKS_GMTIME */
}
@@ -385,7 +385,7 @@ ACE_OS::localtime (const time_t *t)
ACE_UNUSED_ARG (t);
ACE_NOTSUP_RETURN (0);
#else
- ACE_OSCALL_RETURN (::localtime (t), struct tm *);
+ return ::localtime (t);
#endif /* ACE_LACKS_LOCALTIME */
}
@@ -446,7 +446,7 @@ ACE_OS::time (time_t *tloc)
*tloc = retv;
return retv;
#else
- ACE_OSCALL_RETURN (::time (tloc), time_t);
+ return ::time (tloc);
#endif /* ACE_LACKS_TIME */
}