summaryrefslogtreecommitdiff
path: root/firmware/libc/include/sys/timeb.h
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-05-14 22:01:07 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-05-14 22:01:07 +0000
commit5d987d61cf5ecb99efe25d8547b7631dfe96d7de (patch)
tree5a9951d2d06bffce0644d4ba2e93e102f1f27aaf /firmware/libc/include/sys/timeb.h
parent84b7747069bae8849111c2d8dd3c69c182b7ec38 (diff)
downloadrockbox-5d987d61cf5ecb99efe25d8547b7631dfe96d7de.zip
rockbox-5d987d61cf5ecb99efe25d8547b7631dfe96d7de.tar.gz
rockbox-5d987d61cf5ecb99efe25d8547b7631dfe96d7de.tar.bz2
rockbox-5d987d61cf5ecb99efe25d8547b7631dfe96d7de.tar.xz
Move include/sys along with libc/, so hosted (sim/RaaA) builds use the proper files for their OS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26030 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/libc/include/sys/timeb.h')
-rw-r--r--firmware/libc/include/sys/timeb.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/firmware/libc/include/sys/timeb.h b/firmware/libc/include/sys/timeb.h
new file mode 100644
index 0000000..4e97ec8
--- /dev/null
+++ b/firmware/libc/include/sys/timeb.h
@@ -0,0 +1,38 @@
+/* timeb.h -- An implementation of the standard Unix <sys/timeb.h> file.
+ Written by Ian Lance Taylor <ian@cygnus.com>
+ Public domain; no rights reserved.
+
+ <sys/timeb.h> declares the structure used by the ftime function, as
+ well as the ftime function itself. Newlib does not provide an
+ implementation of ftime. */
+
+#ifndef _SYS_TIMEB_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define _SYS_TIMEB_H
+
+#include <_ansi.h>
+
+#ifndef __time_t_defined
+typedef _TIME_T_ time_t;
+#define __time_t_defined
+#endif
+
+struct timeb
+{
+ time_t time;
+ unsigned short millitm;
+ short timezone;
+ short dstflag;
+};
+
+extern int ftime _PARAMS ((struct timeb *));
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* ! defined (_SYS_TIMEB_H) */