mirror of
https://github.com/mii443/qemu.git
synced 2025-08-24 16:09:37 +00:00
linux-user: implement clock_settime
This fixes glibc testsuite test rt/tst-clock2. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
@ -11878,6 +11878,18 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
|
|||||||
goto unimplemented_nowarn;
|
goto unimplemented_nowarn;
|
||||||
#endif
|
#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
|
#ifdef TARGET_NR_clock_gettime
|
||||||
case TARGET_NR_clock_gettime:
|
case TARGET_NR_clock_gettime:
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user