Commit 63d7651b76a3696b1ef46ec9c0b8a08686034988

Authored by pbrook
1 parent 9133e39b

Implement clock_nanosleep.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4613 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 11 additions and 0 deletions
linux-user/syscall.c
... ... @@ -5560,6 +5560,17 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
5560 5560 break;
5561 5561 }
5562 5562 #endif
  5563 +#ifdef TARGET_NR_clock_nanosleep
  5564 + case TARGET_NR_clock_nanosleep:
  5565 + {
  5566 + struct timespec ts;
  5567 + target_to_host_timespec(&ts, arg3);
  5568 + ret = get_errno(clock_nanosleep(arg1, arg2, &ts, arg4 ? &ts : NULL));
  5569 + if (arg4)
  5570 + host_to_target_timespec(arg4, &ts);
  5571 + break;
  5572 + }
  5573 +#endif
5563 5574  
5564 5575 #if defined(TARGET_NR_set_tid_address) && defined(__NR_set_tid_address)
5565 5576 case TARGET_NR_set_tid_address:
... ...