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:
authorJim Wilson <jimw@sifive.com>2017-12-26 23:27:52 +0300
committerJim Wilson <jimw@sifive.com>2017-12-26 23:27:52 +0300
commit28d5b98038dd18797375f4ff6a11fecd59809b22 (patch)
treef6ea701cdba714aa1f0be37ee9d881a7a9939c5b /libgloss/riscv/sys_ftime.c
parent347b08391132d61702f9004d7b74f742a49907f6 (diff)
RISC-V: Moved syscalls to separate files to fix aliasing problems.
Diffstat (limited to 'libgloss/riscv/sys_ftime.c')
-rw-r--r--libgloss/riscv/sys_ftime.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libgloss/riscv/sys_ftime.c b/libgloss/riscv/sys_ftime.c
new file mode 100644
index 000000000..5705592be
--- /dev/null
+++ b/libgloss/riscv/sys_ftime.c
@@ -0,0 +1,10 @@
+#include <machine/syscall.h>
+#include <sys/timeb.h>
+
+/* Get the current time. Only relatively correct. */
+int
+_ftime(struct timeb *tp)
+{
+ tp->time = tp->millitm = 0;
+ return 0;
+}