提交 12e3340c 编写于 作者: M Max Filippov

linux-user: implement clock_settime

This fixes glibc testsuite test rt/tst-clock2.
Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
上级 b9f9908e
......@@ -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:
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册