projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add legacy sys/ttydefaults.h header
[oweals/musl.git]
/
src
/
misc
/
syscall.c
1
#include "syscall.h"
2
#include <stdarg.h>
3
4
#undef syscall
5
6
long syscall(long n, ...)
7
{
8
va_list ap;
9
long a,b,c,d,e,f;
10
va_start(ap, n);
11
a=va_arg(ap, long);
12
b=va_arg(ap, long);
13
c=va_arg(ap, long);
14
d=va_arg(ap, long);
15
e=va_arg(ap, long);
16
f=va_arg(ap, long);
17
va_end(ap);
18
return __syscall_ret(__syscall(n,a,b,c,d,e,f));
19
}