* [Qemu-devel] [PATCH] Syscall clock_gettime and clock_getres implementaion
@ 2007-03-01 7:17 Kirill A. Shutemov
2007-03-07 11:14 ` Kirill A. Shutemov
0 siblings, 1 reply; 2+ messages in thread
From: Kirill A. Shutemov @ 2007-03-01 7:17 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1.1: Type: text/plain, Size: 24 bytes --]
Patch in the attachment
[-- Attachment #1.2: qemu-0.9.0-alt-syscalls-clock.patch --]
[-- Type: text/plain, Size: 1108 bytes --]
--- qemu-0.9.0.orig/linux-user/syscall.c 2007-02-28 22:44:24 +0300
+++ qemu-0.9.0/linux-user/syscall.c 2007-02-28 22:46:01 +0300
@@ -4163,6 +4163,28 @@
case TARGET_NR_getdomainname:
goto unimplemented_nowarn;
#endif
+#ifdef TARGET_NR_clock_gettime
+ case TARGET_NR_clock_gettime:
+ {
+ struct timespec ts;
+ ret = get_errno(clock_gettime(arg1, &ts));
+ if (!is_error(ret)) {
+ host_to_target_timespec(arg2, &ts);
+ }
+ break;
+ }
+#endif
+#ifdef TARGET_NR_clock_getres
+ case TARGET_NR_clock_getres:
+ {
+ struct timespec ts;
+ ret = get_errno(clock_getres(arg1, &ts));
+ if (!is_error(ret)) {
+ host_to_target_timespec(arg2, &ts);
+ }
+ break;
+ }
+#endif
default:
unimplemented:
gemu_log("qemu: Unsupported syscall: %d\n", num);
--- qemu-0.9.0.orig/Makefile.target 2007-02-28 22:53:44 +0300
+++ qemu-0.9.0/Makefile.target 2007-02-28 23:00:21 +0300
@@ -206,6 +206,7 @@
ifdef CONFIG_LINUX_USER
OBJS= main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o \
elfload.o linuxload.o
+LIBS+= -lrt
ifdef TARGET_HAS_BFLT
OBJS+= flatload.o
endif
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-07 11:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-01 7:17 [Qemu-devel] [PATCH] Syscall clock_gettime and clock_getres implementaion Kirill A. Shutemov
2007-03-07 11:14 ` Kirill A. Shutemov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).