diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2014-10-22 19:03:02 +0000 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2014-10-22 19:03:02 +0000 |
commit | d6aa3abb4faf78264d317e2ce48415fd41ea13ee (patch) | |
tree | 2c01d97b3b0e5e8b4a5696337191689606f22ecd /winsup/cygwin/times.cc | |
parent | 06fb98f4b5bd861d78995e934f718037f5914051 (diff) | |
download | cygnal-d6aa3abb4faf78264d317e2ce48415fd41ea13ee.tar.gz cygnal-d6aa3abb4faf78264d317e2ce48415fd41ea13ee.tar.bz2 cygnal-d6aa3abb4faf78264d317e2ce48415fd41ea13ee.zip |
* common.din (stime): Export.
* times.cc (stime): New function.
* include/cygwin/time.h (stime): Declare.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r-- | winsup/cygwin/times.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index cbff13c77..bd8f1cf0e 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -139,6 +139,14 @@ settimeofday (const struct timeval *tv, const struct timezone *tz) return res; } +/* stime: SVr4 */ +extern "C" int +stime (const time_t *t) +{ + struct timeval tv = { *t, 0 }; + return settimeofday(&tv, NULL); +} + /* timezone: standards? */ extern "C" char * timezone (void) |