aboutsummaryrefslogtreecommitdiff
path: root/system/include/libc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-03 19:59:05 +0200
committerAlon Zakai <alonzakai@gmail.com>2011-10-03 19:59:05 +0200
commita9f082c2d60417730d11d2c0dc9da7e6e5ed2e00 (patch)
treebaf6d9b2d17814be17d45f90d09b74f47ebb9248 /system/include/libc
parent95420a111d0ba2154ce9953b2506f7e402b97d7b (diff)
fix test_time
Diffstat (limited to 'system/include/libc')
-rw-r--r--system/include/libc/machine/time.h4
-rw-r--r--system/include/libc/time.h9
2 files changed, 11 insertions, 2 deletions
diff --git a/system/include/libc/machine/time.h b/system/include/libc/machine/time.h
index a296857d..54de2700 100644
--- a/system/include/libc/machine/time.h
+++ b/system/include/libc/machine/time.h
@@ -2,10 +2,10 @@
#define _MACHTIME_H_
#if defined(__rtems__)
-#define _CLOCKS_PER_SEC_ sysconf(_SC_CLK_TCK)
+/* XXX Emscripten #define _CLOCKS_PER_SEC_ sysconf(_SC_CLK_TCK) */
#else /* !__rtems__ */
#if defined(__arm__) || defined(__thumb__)
-#define _CLOCKS_PER_SEC_ 100
+/* XXX Emscripten #define _CLOCKS_PER_SEC_ 100 */
#endif
#endif /* !__rtems__ */
diff --git a/system/include/libc/time.h b/system/include/libc/time.h
index bc07d30f..019dd872 100644
--- a/system/include/libc/time.h
+++ b/system/include/libc/time.h
@@ -41,6 +41,9 @@ struct tm
int tm_wday;
int tm_yday;
int tm_isdst;
+ /* XXX Emscripten */
+ int tm_gmtoff;
+ char *tm_zone;
};
clock_t _EXFUN(clock, (void));
@@ -253,6 +256,12 @@ int _EXFUN(clock_getenable_attr, (clockid_t clock_id, int *attr));
#endif /* _POSIX_CPUTIME or _POSIX_THREAD_CPUTIME */
+/* XXX Emscripten */
+
+int _EXFUN(stime, (time_t *t));
+time_t _EXFUN(timegm, (struct tm *t));
+int _EXFUN(dysize, (int year));
+
#ifdef __cplusplus
}
#endif