diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 6 | ||||
-rw-r--r-- | include/busybox.h | 5 | ||||
-rw-r--r-- | include/usage.h | 23 |
3 files changed, 26 insertions, 8 deletions
diff --git a/include/applets.h b/include/applets.h index 36817fef7..b3fb291d7 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -191,6 +191,9 @@ | |||
191 | #ifdef BB_KILLALL | 191 | #ifdef BB_KILLALL |
192 | APPLET(killall, kill_main, _BB_DIR_USR_BIN) | 192 | APPLET(killall, kill_main, _BB_DIR_USR_BIN) |
193 | #endif | 193 | #endif |
194 | #ifdef BB_KLOGD | ||
195 | APPLET(klogd, klogd_main, _BB_DIR_SBIN) | ||
196 | #endif | ||
194 | #ifdef BB_LENGTH | 197 | #ifdef BB_LENGTH |
195 | APPLET(length, length_main, _BB_DIR_USR_BIN) | 198 | APPLET(length, length_main, _BB_DIR_USR_BIN) |
196 | #endif | 199 | #endif |
@@ -215,6 +218,9 @@ | |||
215 | #ifdef BB_LOGNAME | 218 | #ifdef BB_LOGNAME |
216 | APPLET(logname, logname_main, _BB_DIR_USR_BIN) | 219 | APPLET(logname, logname_main, _BB_DIR_USR_BIN) |
217 | #endif | 220 | #endif |
221 | #ifdef BB_LOGREAD | ||
222 | APPLET(logread, logread_main, _BB_DIR_SBIN) | ||
223 | #endif | ||
218 | #ifdef BB_LS | 224 | #ifdef BB_LS |
219 | APPLET(ls, ls_main, _BB_DIR_BIN) | 225 | APPLET(ls, ls_main, _BB_DIR_BIN) |
220 | #endif | 226 | #endif |
diff --git a/include/busybox.h b/include/busybox.h index d9362b58b..abf62410f 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
@@ -205,6 +205,11 @@ int nfsmount(const char *spec, const char *node, int *flags, | |||
205 | #define RB_POWER_OFF 0x4321fedc | 205 | #define RB_POWER_OFF 0x4321fedc |
206 | #endif | 206 | #endif |
207 | 207 | ||
208 | #if defined(BB_KLOGD) || defined(BB_LOGGER) | ||
209 | void syslog_msg_with_name(const char *name, int facility, int pri, const char *msg); | ||
210 | void syslog_msg(int facility, int pri, const char *msg); | ||
211 | #endif | ||
212 | |||
208 | /* Include our own copy of struct sysinfo to avoid binary compatability | 213 | /* Include our own copy of struct sysinfo to avoid binary compatability |
209 | * problems with Linux 2.4, which changed things. Grumble, grumble. */ | 214 | * problems with Linux 2.4, which changed things. Grumble, grumble. */ |
210 | struct sysinfo { | 215 | struct sysinfo { |
diff --git a/include/usage.h b/include/usage.h index 8ba86d569..f241d3a04 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -468,6 +468,13 @@ | |||
468 | "Options:\n" \ | 468 | "Options:\n" \ |
469 | "\t-l\tList all signal names and numbers." | 469 | "\t-l\tList all signal names and numbers." |
470 | 470 | ||
471 | #define klogd_trivial_usage \ | ||
472 | "-n" | ||
473 | #define klogd_full_usage \ | ||
474 | "Kernel logger.\n"\ | ||
475 | "Options:\n"\ | ||
476 | "\t-n\tRun as a foreground process." | ||
477 | |||
471 | #define length_trivial_usage \ | 478 | #define length_trivial_usage \ |
472 | "STRING" | 479 | "STRING" |
473 | #define length_full_usage \ | 480 | #define length_full_usage \ |
@@ -513,6 +520,12 @@ | |||
513 | #define logname_full_usage \ | 520 | #define logname_full_usage \ |
514 | "Print the name of the current user." | 521 | "Print the name of the current user." |
515 | 522 | ||
523 | #define logread_trivial_usage \ | ||
524 | "" | ||
525 | |||
526 | #define logread_full_usage \ | ||
527 | "Shows the messages from syslogd (using circular buffer)." | ||
528 | |||
516 | #ifdef BB_FEATURE_LS_TIMESTAMPS | 529 | #ifdef BB_FEATURE_LS_TIMESTAMPS |
517 | #define USAGE_LS_TIMESTAMPS(a) a | 530 | #define USAGE_LS_TIMESTAMPS(a) a |
518 | #else | 531 | #else |
@@ -913,11 +926,6 @@ | |||
913 | "Write all buffered filesystem blocks to disk." | 926 | "Write all buffered filesystem blocks to disk." |
914 | 927 | ||
915 | 928 | ||
916 | #ifdef BB_FEATURE_KLOGD | ||
917 | #define USAGE_KLOGD(a) a | ||
918 | #else | ||
919 | #define USAGE_KLOGD(a) | ||
920 | #endif | ||
921 | #ifdef BB_FEATURE_REMOTE_LOG | 929 | #ifdef BB_FEATURE_REMOTE_LOG |
922 | #define USAGE_REMOTE_LOG(a) a | 930 | #define USAGE_REMOTE_LOG(a) a |
923 | #else | 931 | #else |
@@ -926,12 +934,11 @@ | |||
926 | #define syslogd_trivial_usage \ | 934 | #define syslogd_trivial_usage \ |
927 | "[OPTION]..." | 935 | "[OPTION]..." |
928 | #define syslogd_full_usage \ | 936 | #define syslogd_full_usage \ |
929 | "Linux system and kernel (provides klogd) logging utility.\n" \ | 937 | "Linux system and kernel logging utility.\n" \ |
930 | "Note that this version of syslogd/klogd ignores /etc/syslog.conf.\n\n" \ | 938 | "Note that this version of syslogd ignores /etc/syslog.conf.\n\n" \ |
931 | "Options:\n" \ | 939 | "Options:\n" \ |
932 | "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n" \ | 940 | "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n" \ |
933 | "\t-n\t\tRun as a foreground process\n" \ | 941 | "\t-n\t\tRun as a foreground process\n" \ |
934 | USAGE_KLOGD("\t-K\t\tDo not start up the klogd process\n") \ | ||
935 | "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)" \ | 942 | "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)" \ |
936 | USAGE_REMOTE_LOG( \ | 943 | USAGE_REMOTE_LOG( \ |
937 | "\n\t-R HOST[:PORT]\tLog to IP or hostname on PORT (default PORT=514/UDP)\n" \ | 944 | "\n\t-R HOST[:PORT]\tLog to IP or hostname on PORT (default PORT=514/UDP)\n" \ |