musl/src/misc/syscall.c
Rich Felker b9bb8f67bb cleanup src/linux and src/misc trees, etc.
previously, it was pretty much random which one of these trees a given
function appeared in. they have now been organized into:

src/linux: non-POSIX linux syscalls (possibly shard with other nixen)
src/legacy: various obsolete/legacy functions, mostly wrappers
src/misc: still mostly uncategorized; some misc POSIX, some nonstd
src/crypt: crypt hash functions

further cleanup will be done later.
2012-09-07 00:48:25 -04:00

19 lines
326 B
C

#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));
}