summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/e1/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/e1/syscalls.c')
-rw-r--r--libc/sysdeps/linux/e1/syscalls.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/e1/syscalls.c b/libc/sysdeps/linux/e1/syscalls.c
new file mode 100644
index 000000000..e58ad5f79
--- /dev/null
+++ b/libc/sysdeps/linux/e1/syscalls.c
@@ -0,0 +1,11 @@
+/* This file is lisenced under LGPL
+ * Copyright (C) 2002-2003, George Thanos <george.thanos@gdt.gr>
+ * Yannis Mitsos <yannis.mitsos@gdt.gr>
+ */
+
+#include <syscall.h>
+
+/* We now need a declaration of the `errno' variable. */
+extern int errno;
+# define __set_errno(val) ((errno) = (val))
+_syscall2( int, kprintf, char *, msg, int, len)