summaryrefslogtreecommitdiff
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
committerMike Frysinger <vapier@gentoo.org>2009-07-09 15:11:46 -0400
commitc06402cccc4c6278d762900e6a205394638d9c22 (patch)
tree646c8fa6c7ca9f3d748d448b6f4c18bc5971c8ae /libc/sysdeps/linux/common/syscall.c
parent763bbf9e9a27426c9be8322dca5ddf2cb4dbc464 (diff)
syscall(): create a common version based on INLINE_SYSCALL_NCS()
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
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);
+}