summaryrefslogtreecommitdiff
path: root/package/sysklogd/0004-Remove-bogus-hand-written-klogctl-syscall-implementa.patch
blob: 548f1607181ff88e2feee291c3df728d7933fa06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From fe92a7a8197241f7d6b28ea3c8214bb6d2c7fda4 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Mon, 28 Nov 2016 23:10:55 +0100
Subject: [PATCH] Remove bogus hand-written klogctl() syscall implementation

The way the hand-written klogctl() syscall is written cannot compile, as
_syscall3() is just a function provided by the C library, so calling it
outside of a function doesn't build.

Since the musl C library provides a klogctl() function, we don't need
this hand-written system call anyway.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 klogd.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/klogd.c b/klogd.c
index 6505d96..9219671 100644
--- a/klogd.c
+++ b/klogd.c
@@ -274,13 +274,8 @@
 
 #define __LIBRARY__
 #include <linux/unistd.h>
-#if !defined(__GLIBC__)
-# define __NR_ksyslog __NR_syslog
-_syscall3(int,ksyslog,int, type, char *, buf, int, len);
-#else
 #include <sys/klog.h>
 #define ksyslog klogctl
-#endif
 
 #define LOG_BUFFER_SIZE 4096
 #define LOG_LINE_LENGTH 1000
-- 
2.7.4