1 From fe92a7a8197241f7d6b28ea3c8214bb6d2c7fda4 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Mon, 28 Nov 2016 23:10:55 +0100
4 Subject: [PATCH] Remove bogus hand-written klogctl() syscall implementation
6 The way the hand-written klogctl() syscall is written cannot compile, as
7 _syscall3() is just a function provided by the C library, so calling it
8 outside of a function doesn't build.
10 Since the musl C library provides a klogctl() function, we don't need
11 this hand-written system call anyway.
13 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
16 1 file changed, 5 deletions(-)
18 diff --git a/klogd.c b/klogd.c
19 index 6505d96..9219671 100644
25 #include <linux/unistd.h>
26 -#if !defined(__GLIBC__)
27 -# define __NR_ksyslog __NR_syslog
28 -_syscall3(int,ksyslog,int, type, char *, buf, int, len);
31 #define ksyslog klogctl
34 #define LOG_BUFFER_SIZE 4096
35 #define LOG_LINE_LENGTH 1000