aboutsummaryrefslogtreecommitdiff
path: root/sysklogd/klogd.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-05 03:14:39 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-05 03:14:39 +0000
commit01d0083a639d6b91298c62b9e67b803fe9b9a36d (patch)
tree87f705b9e4e4e48700ac61e9538c637ae2b395a7 /sysklogd/klogd.c
parentea8519ec8a9e6807e16ca3a138d22201d35b273b (diff)
downloadbusybox-w32-01d0083a639d6b91298c62b9e67b803fe9b9a36d.tar.gz
busybox-w32-01d0083a639d6b91298c62b9e67b803fe9b9a36d.tar.bz2
busybox-w32-01d0083a639d6b91298c62b9e67b803fe9b9a36d.zip
A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few
shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2250 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'sysklogd/klogd.c')
-rw-r--r--sysklogd/klogd.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index 95d4eea65..241a99175 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -40,20 +40,14 @@
40#include <ctype.h> 40#include <ctype.h>
41#include <sys/syslog.h> 41#include <sys/syslog.h>
42 42
43#if ! defined __GLIBC__ && ! defined __UCLIBC__ 43#if __GNU_LIBRARY__ < 5
44#include <sys/syscall.h> 44# ifdef __alpha__
45#include <linux/unistd.h> 45# define klogctl syslog
46 46# endif
47#ifndef __alpha__
48# define __NR_klogctl __NR_syslog
49static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
50#else /* __alpha__ */
51#define klogctl syslog
52#endif
53
54#else 47#else
55# include <sys/klog.h> 48# include <sys/klog.h>
56#endif 49#endif
50
57#include "busybox.h" 51#include "busybox.h"
58 52
59static void klogd_signal(int sig) 53static void klogd_signal(int sig)