summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/syscall.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-09 15:10:56 -0400
committerAustin Foxley <austinf@cetoncorp.com>2009-07-09 12:36:57 -0700
commit1e652d1211c32066c502f96cd1e4aec374f0c249 (patch)
treebd475830301270c144d2c3584bcf6ed9889e594e /libc/sysdeps/linux/common/syscall.c
parentba82591be10020612165702d4ce64b44edbef034 (diff)
downloaduClibc-alpine-1e652d1211c32066c502f96cd1e4aec374f0c249.tar.bz2
uClibc-alpine-1e652d1211c32066c502f96cd1e4aec374f0c249.tar.xz
syscall(): create a common version based on INLINE_SYSCALL_NCS()
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/sysdeps/linux/common/syscall.c')
-rw-r--r--libc/sysdeps/linux/common/syscall.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/syscall.c b/libc/sysdeps/linux/common/syscall.c
new file mode 100644
index 000000000..61f798e2c
--- /dev/null
+++ b/libc/sysdeps/linux/common/syscall.c
@@ -0,0 +1,12 @@
+/*
+ * syscall() library function
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <sys/syscall.h>
+
+long syscall(long sysnum, long arg1, long arg2, long arg3, long arg4, long arg5, long arg6)
+{
+ return INLINE_SYSCALL_NCS(sysnum, 6, arg1, arg2, arg3, arg4, arg5, arg6);
+}