Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2014-10-22 23:03:02 +0400
committerYaakov Selkowitz <yselkowi@redhat.com>2014-10-22 23:03:02 +0400
commitd6aa3abb4faf78264d317e2ce48415fd41ea13ee (patch)
tree2c01d97b3b0e5e8b4a5696337191689606f22ecd /winsup/cygwin/times.cc
parent06fb98f4b5bd861d78995e934f718037f5914051 (diff)
* 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.cc8
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)