From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujqxt-0001nL-FK for qemu-devel@nongnu.org; Tue, 04 Jun 2013 09:07:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ujqxl-0006qI-V2 for qemu-devel@nongnu.org; Tue, 04 Jun 2013 09:07:53 -0400 Received: from mail-qc0-x22b.google.com ([2607:f8b0:400d:c01::22b]:59430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujqxl-0006qB-Qu for qemu-devel@nongnu.org; Tue, 04 Jun 2013 09:07:45 -0400 Received: by mail-qc0-f171.google.com with SMTP id n1so105700qcx.30 for ; Tue, 04 Jun 2013 06:07:45 -0700 (PDT) Sender: Richard Henderson Message-ID: <51ADE69D.7050008@twiddle.net> Date: Tue, 04 Jun 2013 06:07:41 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1370344377-27445-1-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1370344377-27445-1-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] linux-user: Allow getdents to be provided by getdents64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Riku Voipio , Claudio Fontana , qemu-devel@nongnu.org, patches@linaro.org, Laurent Vivier On 06/04/2013 04:12 AM, Peter Maydell wrote: > Newer architectures may only implement the getdents64 syscall, not > getdents. Provide an implementation of getdents in terms of getdents64 > so that we can run getdents-using targets on a getdents64-only host. > > Signed-off-by: Peter Maydell > Message-id: 1370193044-24535-1-git-send-email-peter.maydell@linaro.org > --- > Changes v1->v2: > * memmove() call moved to before we write inode/offset/reclen > * wrapped a stray long line that snuck in somehow Reviewed-by: Richard Henderson r~