diff options
author | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-04-30 20:59:14 +0000 |
---|---|---|
committer | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-04-30 20:59:14 +0000 |
commit | 2af09aedf453b3d2fcf2c7bb4c85e3f261789cdf (patch) | |
tree | aaa2933757e58384ce527acbd7f926279efdccea | |
parent | f8a45d48707c1e537510e61c73b6e561da136abc (diff) | |
download | ATCD-2af09aedf453b3d2fcf2c7bb4c85e3f261789cdf.tar.gz |
ADDed mktime.
-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) { |