From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MUOFg-0001cs-Hb for qemu-devel@nongnu.org; Fri, 24 Jul 2009 13:08:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MUOFc-0001bb-S9 for qemu-devel@nongnu.org; Fri, 24 Jul 2009 13:08:12 -0400 Received: from [199.232.76.173] (port=33078 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MUOFc-0001b3-MV for qemu-devel@nongnu.org; Fri, 24 Jul 2009 13:08:08 -0400 Received: from cantor.suse.de ([195.135.220.2]:35496 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MUOFa-0000Q8-HQ for qemu-devel@nongnu.org; Fri, 24 Jul 2009 13:08:07 -0400 From: Ulrich Hecht Date: Fri, 24 Jul 2009 19:10:28 +0200 Message-Id: <1248455432-12959-4-git-send-email-uli@suse.de> In-Reply-To: <1248455432-12959-3-git-send-email-uli@suse.de> References: <1248455432-12959-1-git-send-email-uli@suse.de> <1248455432-12959-2-git-send-email-uli@suse.de> <1248455432-12959-3-git-send-email-uli@suse.de> Subject: [Qemu-devel] [PATCH 3/7] linux-user: enable getdents for > 32-bit systems List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: riku.voipio@iki.fi works perfectly fine with the example from getdents(2) and passes the LTP tests (tested with s390x on x86_64 emulation) Signed-off-by: Ulrich Hecht --- linux-user/syscall.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index d9c4af0..c9e0194 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -194,9 +194,7 @@ static int gettid(void) { return -ENOSYS; } #endif -#if TARGET_ABI_BITS == 32 _syscall3(int, sys_getdents, uint, fd, struct linux_dirent *, dirp, uint, count); -#endif #if defined(TARGET_NR_getdents64) && defined(__NR_getdents64) _syscall3(int, sys_getdents64, uint, fd, struct linux_dirent64 *, dirp, uint, count); #endif @@ -5791,9 +5789,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, break; #endif case TARGET_NR_getdents: -#if TARGET_ABI_BITS != 32 - goto unimplemented; -#elif TARGET_ABI_BITS == 32 && HOST_LONG_BITS == 64 +#if TARGET_ABI_BITS == 32 && HOST_LONG_BITS == 64 { struct target_dirent *target_dirp; struct linux_dirent *dirp; -- 1.6.2.1