diff options
Diffstat (limited to 'src/misc/syscall.c')
-rw-r--r-- | src/misc/syscall.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/misc/syscall.c b/src/misc/syscall.c new file mode 100644 index 00000000..15355609 --- /dev/null +++ b/src/misc/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)); +} |