diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-05 03:14:39 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-05 03:14:39 +0000 |
commit | e76c3b08e105147e3cef7e8d38d65da2fac6b2e1 (patch) | |
tree | 87f705b9e4e4e48700ac61e9538c637ae2b395a7 /util-linux/dmesg.c | |
parent | 3c0364f3911ec9f43e1c8c96ec2c8e30b1b52c47 (diff) | |
download | busybox-w32-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.tar.gz busybox-w32-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.tar.bz2 busybox-w32-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.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
Diffstat (limited to 'util-linux/dmesg.c')
-rw-r--r-- | util-linux/dmesg.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c index 2c85ed3e9..73de6d1ae 100644 --- a/util-linux/dmesg.c +++ b/util-linux/dmesg.c | |||
@@ -20,18 +20,13 @@ | |||
20 | #include <getopt.h> | 20 | #include <getopt.h> |
21 | 21 | ||
22 | #if __GNU_LIBRARY__ < 5 | 22 | #if __GNU_LIBRARY__ < 5 |
23 | #include <sys/syscall.h> | 23 | # ifdef __alpha__ |
24 | #include <linux/unistd.h> | 24 | # define klogctl syslog |
25 | #ifndef __alpha__ | 25 | # endif |
26 | # define __NR_klogctl __NR_syslog | ||
27 | static inline _syscall3(int, klogctl, int, type, char *, b, int, len); | ||
28 | #else /* __alpha__ */ | ||
29 | #define klogctl syslog | ||
30 | #endif | ||
31 | |||
32 | #else | 26 | #else |
33 | # include <sys/klog.h> | 27 | # include <sys/klog.h> |
34 | #endif | 28 | #endif |
29 | |||
35 | #include "busybox.h" | 30 | #include "busybox.h" |
36 | 31 | ||
37 | int dmesg_main(int argc, char **argv) | 32 | int dmesg_main(int argc, char **argv) |