summaryrefslogtreecommitdiff
path: root/src/linux/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/syscall.c')
-rw-r--r--src/linux/syscall.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/linux/syscall.c b/src/linux/syscall.c
new file mode 100644
index 00000000..15355609
--- /dev/null
+++ b/src/linux/syscall.c
@@ -0,0 +1,19 @@
+#include "syscall.h"
+#include <stdarg.h>
+
+#undef syscall
+
+long syscall(long n, ...)
+{
+ va_list ap;
+ long a,b,c,d,e,f;
+ va_start(ap, n);
+ a=va_arg(ap, long);
+ b=va_arg(ap, long);
+ c=va_arg(ap, long);
+ d=va_arg(ap, long);
+ e=va_arg(ap, long);
+ f=va_arg(ap, long);
+ va_end(ap);
+ return __syscall_ret(__syscall(n,a,b,c,d,e,f));
+}