summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-30 20:59:14 +0000
committerjxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-30 20:59:14 +0000
commit2af09aedf453b3d2fcf2c7bb4c85e3f261789cdf (patch)
treeaaa2933757e58384ce527acbd7f926279efdccea
parentf8a45d48707c1e537510e61c73b6e561da136abc (diff)
downloadATCD-2af09aedf453b3d2fcf2c7bb4c85e3f261789cdf.tar.gz
ADDed mktime.
-rw-r--r--ace/OS.h3
-rw-r--r--ace/OS.i7
2 files changed, 9 insertions, 1 deletions
diff --git a/ace/OS.h b/ace/OS.h
index d55b74788d0..6f4146d592b 100644
--- a/ace/OS.h
+++ b/ace/OS.h
@@ -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);
diff --git a/ace/OS.i b/ace/OS.i
index 10dac33bc75..a052976006a 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -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)
{