From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K1iPl-0001Di-GE for qemu-devel@nongnu.org; Thu, 29 May 2008 09:43:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K1iPj-0001Cd-Ix for qemu-devel@nongnu.org; Thu, 29 May 2008 09:43:32 -0400 Received: from [199.232.76.173] (port=44725 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1iPj-0001CW-D5 for qemu-devel@nongnu.org; Thu, 29 May 2008 09:43:31 -0400 Received: from savannah.gnu.org ([199.232.41.3]:39272 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K1iPj-0006QG-5V for qemu-devel@nongnu.org; Thu, 29 May 2008 09:43:31 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1K1iPi-0004UM-21 for qemu-devel@nongnu.org; Thu, 29 May 2008 13:43:30 +0000 Received: from pbrook by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1K1iPh-0004UF-Pi for qemu-devel@nongnu.org; Thu, 29 May 2008 13:43:30 +0000 MIME-Version: 1.0 Errors-To: pbrook Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Paul Brook Message-Id: Date: Thu, 29 May 2008 13:43:29 +0000 Subject: [Qemu-devel] [4613] Implement clock_nanosleep. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 4613 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4613 Author: pbrook Date: 2008-05-29 13:43:29 +0000 (Thu, 29 May 2008) Log Message: ----------- Implement clock_nanosleep. Modified Paths: -------------- trunk/linux-user/syscall.c Modified: trunk/linux-user/syscall.c =================================================================== --- trunk/linux-user/syscall.c 2008-05-29 10:08:06 UTC (rev 4612) +++ trunk/linux-user/syscall.c 2008-05-29 13:43:29 UTC (rev 4613) @@ -5560,6 +5560,17 @@ break; } #endif +#ifdef TARGET_NR_clock_nanosleep + case TARGET_NR_clock_nanosleep: + { + struct timespec ts; + target_to_host_timespec(&ts, arg3); + ret = get_errno(clock_nanosleep(arg1, arg2, &ts, arg4 ? &ts : NULL)); + if (arg4) + host_to_target_timespec(arg4, &ts); + break; + } +#endif #if defined(TARGET_NR_set_tid_address) && defined(__NR_set_tid_address) case TARGET_NR_set_tid_address: