diff options
-rw-r--r-- | ace/OS.h | 3 | ||||
-rw-r--r-- | ace/OS.i | 7 |
2 files changed, 9 insertions, 1 deletions
@@ -2705,14 +2705,15 @@ public: // = A set of wrappers for operations on time. static time_t time (time_t *tloc); + static time_t mktime (struct tm *timeptr); static struct tm *localtime (const time_t *clock); static struct tm *localtime_r (const time_t *clock, struct tm *res); static struct tm *gmtime (const time_t *clock); static struct tm *gmtime_r (const time_t *clock, struct tm *res); static char *asctime (const struct tm *tm); + static char *asctime_r (const struct tm *tm, char *buf, int buflen); static char *ctime (const time_t *t); static char *ctime_r (const time_t *clock, char *buf, int buflen); - static char *asctime_r (const struct tm *tm, char *buf, int buflen); // = A set of wrappers for memory managment. static void *sbrk (int brk); @@ -5619,6 +5619,13 @@ ACE_OS::open (const char *filename, #endif /* ACE_WIN32 */ } +ACE_INLINE time_t +ACE_OS::mktime (struct tm *t) +{ + // ACE_TRACE ("ACE_OS::asctime"); + ACE_OSCALL_RETURN (::mktime (t), time_t, -1); +} + ACE_INLINE char * ACE_OS::ctime (const time_t *t) { |