qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Ulrich Hecht <uli@suse.de>
To: qemu-devel@nongnu.org
Cc: riku.voipio@iki.fi
Subject: [Qemu-devel] [PATCH 3/7] linux-user: enable getdents for > 32-bit systems
Date: Fri, 24 Jul 2009 19:10:28 +0200	[thread overview]
Message-ID: <1248455432-12959-4-git-send-email-uli@suse.de> (raw)
In-Reply-To: <1248455432-12959-3-git-send-email-uli@suse.de>

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 <uli@suse.de>
---
 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

  reply	other threads:[~2009-07-24 17:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-24 17:10 [Qemu-devel] [PATCH 0/7] linux-user syscall fixes Ulrich Hecht
2009-07-24 17:10 ` [Qemu-devel] [PATCH 1/7] linux-user: dup3, fallocate syscalls Ulrich Hecht
2009-07-24 17:10   ` [Qemu-devel] [PATCH 2/7] linux-user: fcntl fixes for LTP Ulrich Hecht
2009-07-24 17:10     ` Ulrich Hecht [this message]
2009-07-24 17:10       ` [Qemu-devel] [PATCH 4/7] linux-user: define a couple of syscalls for non-uid16 targets Ulrich Hecht
2009-07-24 17:10         ` [Qemu-devel] [PATCH 5/7] linux-user: getpriority errno fix Ulrich Hecht
2009-07-24 17:10           ` [Qemu-devel] [PATCH 6/7] linux-user: fadvise64 implementation Ulrich Hecht
2009-07-24 17:10             ` [Qemu-devel] [PATCH 7/7] linux-user: zero fstat buffer to initialize nsec fields Ulrich Hecht
2009-07-25 22:37   ` [Qemu-devel] [PATCH 1/7] linux-user: dup3, fallocate syscalls Jan-Simon Möller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1248455432-12959-4-git-send-email-uli@suse.de \
    --to=uli@suse.de \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).