Skip to contentSkip to conversation

renameat2: add system call number for i386

PATCH In review Theodore Ts'o 2 participants 2 messages Apr 12, 2014 – Apr 16, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 renameat2: add system call number for i386

---
 src/renameat2.c | 4 ++++
 1 file changed, 4 insertions(+)
src/renameat2.c +4 -0
index 5145959..8613aa9 100644
@@ -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)
Signature · 6 lines
1.9.0

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Theodore Ts'o
---
 src/renameat2.c | 4 ++++
 1 file changed, 4 insertions(+)
src/renameat2.c +0 -0
index 5145959..8613aa9 100644

src/renameat2.c line 23

Quoted 10 lines
src/renameat2.c +4 -0
@@ -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.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs