Received: from [140.186.70.92] (port=34939 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpeaS-00072q-Ag for qemu-devel@nongnu.org; Wed, 16 Feb 2011 05:26:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpeaO-0007Jf-8a for qemu-devel@nongnu.org; Wed, 16 Feb 2011 05:26:17 -0500 Received: from afflict.kos.to ([92.243.29.197]:54647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpeaO-0007IV-1r for qemu-devel@nongnu.org; Wed, 16 Feb 2011 05:26:16 -0500 Date: Wed, 16 Feb 2011 12:26:15 +0200 From: Riku Voipio Subject: Re: [Qemu-devel] [PATCH 1/2] linux-user: add rmdir() strace Message-ID: <20110216102615.GB6394@afflict.kos.to> References: <1297800644-30773-1-git-send-email-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1297800644-30773-1-git-send-email-laurent@vivier.eu> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: qemu-devel@nongnu.org On Tue, Feb 15, 2011 at 09:10:43PM +0100, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier > --- > linux-user/strace.c | 12 ++++++++++++ > linux-user/strace.list | 3 +++ > 2 files changed, 15 insertions(+), 0 deletions(-) Applied to que. > diff --git a/linux-user/strace.c b/linux-user/strace.c > index 1836666..05277c0 100644 > --- a/linux-user/strace.c > +++ b/linux-user/strace.c > @@ -876,6 +876,18 @@ print_mkdirat(const struct syscallname *name, > } > #endif > > +#ifdef TARGET_NR_rmdir > +static void > +print_rmdir(const struct syscallname *name, > + abi_long arg0, abi_long arg1, abi_long arg2, > + abi_long arg3, abi_long arg4, abi_long arg5) > +{ > + print_syscall_prologue(name); > + print_string(arg0, 0); > + print_syscall_epilogue(name); > +} > +#endif > + > #ifdef TARGET_NR_mknod > static void > print_mknod(const struct syscallname *name, > diff --git a/linux-user/strace.list b/linux-user/strace.list > index d7be0e7..563a67f 100644 > --- a/linux-user/strace.list > +++ b/linux-user/strace.list > @@ -495,6 +495,9 @@ > #ifdef TARGET_NR_mkdirat > { TARGET_NR_mkdirat, "mkdirat" , NULL, print_mkdirat, NULL }, > #endif > +#ifdef TARGET_NR_rmdir > +{ TARGET_NR_rmdir, "rmdir" , NULL, print_rmdir, NULL }, > +#endif > #ifdef TARGET_NR_mknod > { TARGET_NR_mknod, "mknod" , NULL, print_mknod, NULL }, > #endif > -- > 1.7.1 >