xfs
[Top] [All Lists]

Re: [PATCH] renameat2: add system call number for i386

To: Theodore Ts'o <tytso@xxxxxxx>
Subject: Re: [PATCH] renameat2: add system call number for i386
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 16 Apr 2014 10:32:02 +1000
Cc: xfs@xxxxxxxxxxx, Miklos Szeredi <mszeredi@xxxxxxx>, Ext4 Developers List <linux-ext4@xxxxxxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1397344384-15302-1-git-send-email-tytso@xxxxxxx>
References: <1397344384-15302-1-git-send-email-tytso@xxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Sat, Apr 12, 2014 at 07:13:04PM -0400, Theodore Ts'o wrote:
> Signed-off-by: "Theodore Ts'o" <tytso@xxxxxxx>
> Cc: Miklos Szeredi <mszeredi@xxxxxxx>
> ---
>  src/renameat2.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/renameat2.c b/src/renameat2.c
> index 5145959..8613aa9 100644
> --- a/src/renameat2.c
> +++ b/src/renameat2.c
> @@ -14,6 +14,10 @@
>  #define SYS_renameat2 316
>  #endif
>  
> +#if !defined(SYS_renameat2) && defined(__i386__)
> +#define SYS_renameat2 353
> +#endif
> +
>  static int renameat2(int dfd1, const char *path1,
>                    int dfd2, const char *path2,
>                    unsigned int flags)

Yup, matches the kernel code.  Looks good.

Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx>

-- 
Dave Chinner
david@xxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>