projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9f9908
)
linux-user: implement clock_settime
author
Max Filippov
<jcmvbkbc@gmail.com>
Sun, 1 Apr 2018 20:13:49 +0000
(13:13 -0700)
committer
Max Filippov
<jcmvbkbc@gmail.com>
Sun, 1 Apr 2018 21:23:17 +0000
(14:23 -0700)
This fixes glibc testsuite test rt/tst-clock2.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
linux-user/syscall.c
patch
|
blob
|
history
diff --git
a/linux-user/syscall.c
b/linux-user/syscall.c
index 52e2f9c16479077ee4500f798195b52347118e10..924fd68efcddb7b193f94c15506ca7523785f432 100644
(file)
--- a/
linux-user/syscall.c
+++ b/
linux-user/syscall.c
@@
-11878,6
+11878,18
@@
abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
goto unimplemented_nowarn;
#endif
+#ifdef TARGET_NR_clock_settime
+ case TARGET_NR_clock_settime:
+ {
+ struct timespec ts;
+
+ ret = target_to_host_timespec(&ts, arg2);
+ if (!is_error(ret)) {
+ ret = get_errno(clock_settime(arg1, &ts));
+ }
+ break;
+ }
+#endif
#ifdef TARGET_NR_clock_gettime
case TARGET_NR_clock_gettime:
{