summaryrefslogtreecommitdiff
path: root/src/linux/klogctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/klogctl.c')
-rw-r--r--src/linux/klogctl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/linux/klogctl.c b/src/linux/klogctl.c
new file mode 100644
index 00000000..6c288aff
--- /dev/null
+++ b/src/linux/klogctl.c
@@ -0,0 +1,7 @@
+#define SYSCALL_STANDALONE
+#include "syscall.h"
+
+int klogctl (int type, char *buf, int len)
+{
+ return syscall3(__NR_syslog, type, (long)buf, len);
+}