blob: 059e2921b911dda217288394c130a054d8a8fa21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <errno.h>
#include <sys/klog.h>
#include <bits/ensure.h>
#include <mlibc/linux-sysdeps.hpp>
int klogctl(int type, char *bufp, int len) {
MLIBC_CHECK_OR_ENOSYS(mlibc::sys_klogctl, -1);
int out;
if (int e = mlibc::sys_klogctl(type, bufp, len, &out); e) {
errno = e;
return -1;
}
return out;
}
|