aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-08-13 05:09:18 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-08-13 05:09:18 +0000
commit518d17145117caf0dffcc757905e62f603094bec (patch)
tree0c460ab4f47be867ba7e213ade6c1f06d2c951fb
parentac323a2d2e69bbb051c9cf81f22a10b2f38350b2 (diff)
downloadklibc-518d17145117caf0dffcc757905e62f603094bec.tar.gz
Add the klogctl ("syslog") system callklibc-0.30
-rw-r--r--SYSCALLS1
-rw-r--r--include/sys/klog.h12
-rw-r--r--klibc/SYSCALLS1
-rw-r--r--klibc/include/sys/klog.h12
-rw-r--r--klibc/syscommon.h1
-rw-r--r--syscommon.h1
6 files changed, 28 insertions, 0 deletions
diff --git a/SYSCALLS b/SYSCALLS
index ba30a3e1fb9cd..7e22ca1e004aa 100644
--- a/SYSCALLS
+++ b/SYSCALLS
@@ -144,3 +144,4 @@ void * create_module(const char *, size_t)
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 0000000000000..9744e5791801b
--- /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 ba30a3e1fb9cd..7e22ca1e004aa 100644
--- a/klibc/SYSCALLS
+++ b/klibc/SYSCALLS
@@ -144,3 +144,4 @@ void * create_module(const char *, size_t)
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 0000000000000..9744e5791801b
--- /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 46777db8b86cb..224e240e3831f 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 46777db8b86cb..224e240e3831f 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>