xfs
[Top] [All Lists]

[PATCH] renameat2: add system call number for i386

To: xfs@xxxxxxxxxxx
Subject: [PATCH] renameat2: add system call number for i386
From: Theodore Ts'o <tytso@xxxxxxx>
Date: Sat, 12 Apr 2014 19:13:04 -0400
Cc: Ext4 Developers List <linux-ext4@xxxxxxxxxxxxxxx>, Theodore Ts'o <tytso@xxxxxxx>, Miklos Szeredi <mszeredi@xxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=thunk.org; s=mail; t=1397344390; bh=kjBwXz3xp1NshErwbL250DOl9L7M3/UBQaN8Q6WPfoE=; h=From:To:Cc:Subject:Date:From; b=WpNg5mPn1T9Ci0L4Z6F+IB+WeZE8KlXXuaBpypxSJ1qKjH5E1qgZus0TzUj6a/oLg KFdRx/u4LLCSgNMcDAMbk9LmVmZ/bbCVosvoEhWKahUNJJp6Cx6O1lL7HSd4WaofY+ YgUrH9G7tDLbMGvTj5DekT7kLtqqWU7r/L24duAU=
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)
-- 
1.9.0

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