Add the klogctl ("syslog") system call

diff --git a/SYSCALLS b/SYSCALLS
index ba30a3e..7e22ca1 100644
--- a/SYSCALLS
+++ b/SYSCALLS
@@ -144,3 +144,4 @@
 int delete_module(const char *)
 int query_module(const char *, int, void *, size_t, size_t)
 int reboot::__reboot(int, int, int, void *)
+int syslog::klogctl(int, char *, int)
diff --git a/include/sys/klog.h b/include/sys/klog.h
new file mode 100644
index 0000000..9744e57
--- /dev/null
+++ b/include/sys/klog.h
@@ -0,0 +1,12 @@
+/*
+ * sys/klog.h
+ */
+
+#ifndef _SYS_KLOG_H
+#define _SYS_KLOG_H
+
+#include <klibc/extern.h>
+
+__extern klogctl(int, char *, int);
+
+#endif /* _SYS_KLOG_H */
diff --git a/klibc/SYSCALLS b/klibc/SYSCALLS
index ba30a3e..7e22ca1 100644
--- a/klibc/SYSCALLS
+++ b/klibc/SYSCALLS
@@ -144,3 +144,4 @@
 int delete_module(const char *)
 int query_module(const char *, int, void *, size_t, size_t)
 int reboot::__reboot(int, int, int, void *)
+int syslog::klogctl(int, char *, int)
diff --git a/klibc/include/sys/klog.h b/klibc/include/sys/klog.h
new file mode 100644
index 0000000..9744e57
--- /dev/null
+++ b/klibc/include/sys/klog.h
@@ -0,0 +1,12 @@
+/*
+ * sys/klog.h
+ */
+
+#ifndef _SYS_KLOG_H
+#define _SYS_KLOG_H
+
+#include <klibc/extern.h>
+
+__extern klogctl(int, char *, int);
+
+#endif /* _SYS_KLOG_H */
diff --git a/klibc/syscommon.h b/klibc/syscommon.h
index 46777db..224e240 100644
--- a/klibc/syscommon.h
+++ b/klibc/syscommon.h
@@ -13,6 +13,7 @@
 #include <poll.h>
 #include <sched.h>
 #include <sys/dirent.h>
+#include <sys/klog.h>
 #include <sys/mman.h>
 #include <sys/module.h>
 #include <sys/resource.h>
diff --git a/syscommon.h b/syscommon.h
index 46777db..224e240 100644
--- a/syscommon.h
+++ b/syscommon.h
@@ -13,6 +13,7 @@
 #include <poll.h>
 #include <sched.h>
 #include <sys/dirent.h>
+#include <sys/klog.h>
 #include <sys/mman.h>
 #include <sys/module.h>
 #include <sys/resource.h>