[PATCH 3/6] provide a generic io_syscall6
From: Christoph Hellwig
Date: Thu Jan 04 2018 - 03:03:51 EST
This allows to call a 6-argument syscall using the generic syscall()
function from libc. No arch-specific version is specified as it would
be a lot of effort for very little gain.
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
src/syscall.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/syscall.h b/src/syscall.h
index 3819519..e7ff81b 100644
--- a/src/syscall.h
+++ b/src/syscall.h
@@ -39,3 +39,12 @@
#warning "using generic syscall method"
#include "syscall-generic.h"
#endif
+
+#ifndef io_syscall6
+#define io_syscall6(type,fname,sname,type1,arg1,type2,arg2,type3,arg3, \
+ type4,arg4,type5,arg5,type6,arg6) \
+type fname (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5, \
+ type6 arg6) \
+_body_io_syscall(sname, (long)arg1, (long)arg2, (long)arg3, (long)arg4, \
+ (long)arg5, (long)arg5)
+#endif /* io_syscall6 */
--
2.14.2