From: "Kirill A. Shutemov" <k.shutemov@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Syscall clock_gettime and clock_getres implementaion
Date: Thu, 1 Mar 2007 10:17:06 +0300 [thread overview]
Message-ID: <20070301071706.GA5943@localhost.localdomain> (raw)
[-- 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 --]
next reply other threads:[~2007-03-01 8:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-01 7:17 Kirill A. Shutemov [this message]
2007-03-07 11:14 ` [Qemu-devel] [PATCH] Syscall clock_gettime and clock_getres implementaion Kirill A. Shutemov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070301071706.GA5943@localhost.localdomain \
--to=k.shutemov@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.