diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-07-06 23:10:29 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-07-06 23:10:29 +0000 |
commit | 03f4c27bd6b79dcc953f0ee0d8c158d7ebe9cad8 (patch) | |
tree | 74ffc325b43e1c1920c6e9c1cd30104231d97d61 | |
parent | 67536ffa437a54504f18492244df4e03ce636e7f (diff) | |
download | busybox-w32-03f4c27bd6b79dcc953f0ee0d8c158d7ebe9cad8.tar.gz busybox-w32-03f4c27bd6b79dcc953f0ee0d8c158d7ebe9cad8.tar.bz2 busybox-w32-03f4c27bd6b79dcc953f0ee0d8c158d7ebe9cad8.zip |
Turned some stuff into features that really are features, not apps.
-Erik
-rw-r--r-- | busybox.def.h | 11 | ||||
-rw-r--r-- | fbset.c | 2 | ||||
-rw-r--r-- | networking/ping.c | 8 | ||||
-rw-r--r-- | ping.c | 8 | ||||
-rw-r--r-- | sysklogd/syslogd.c | 10 | ||||
-rw-r--r-- | syslogd.c | 10 | ||||
-rw-r--r-- | util-linux/fbset.c | 2 |
7 files changed, 28 insertions, 23 deletions
diff --git a/busybox.def.h b/busybox.def.h index 81e5f1070..9b5a85b3e 100644 --- a/busybox.def.h +++ b/busybox.def.h | |||
@@ -44,7 +44,6 @@ | |||
44 | #define BB_INSMOD | 44 | #define BB_INSMOD |
45 | #define BB_KILL | 45 | #define BB_KILL |
46 | #define BB_KILLALL | 46 | #define BB_KILLALL |
47 | #define BB_KLOGD | ||
48 | #define BB_LENGTH | 47 | #define BB_LENGTH |
49 | #define BB_LN | 48 | #define BB_LN |
50 | #define BB_LOADACM | 49 | #define BB_LOADACM |
@@ -55,7 +54,7 @@ | |||
55 | #define BB_LS | 54 | #define BB_LS |
56 | #define BB_LSMOD | 55 | #define BB_LSMOD |
57 | #define BB_MAKEDEVS | 56 | #define BB_MAKEDEVS |
58 | //#define BB_MD5SUM | 57 | #define BB_MD5SUM |
59 | #define BB_MKDIR | 58 | #define BB_MKDIR |
60 | #define BB_MKFIFO | 59 | #define BB_MKFIFO |
61 | #define BB_MKFS_MINIX | 60 | #define BB_MKFS_MINIX |
@@ -159,7 +158,7 @@ | |||
159 | #define BB_FEATURE_LS_RECURSIVE | 158 | #define BB_FEATURE_LS_RECURSIVE |
160 | // | 159 | // |
161 | // Change ping implementation -- simplified, featureless, but really small. | 160 | // Change ping implementation -- simplified, featureless, but really small. |
162 | //#define BB_SIMPLE_PING | 161 | //#define BB_FEATURE_SIMPLE_PING |
163 | // | 162 | // |
164 | // Make init use a simplified /etc/inittab file (recommended). | 163 | // Make init use a simplified /etc/inittab file (recommended). |
165 | #define BB_FEATURE_USE_INITTAB | 164 | #define BB_FEATURE_USE_INITTAB |
@@ -178,6 +177,9 @@ | |||
178 | //Make sure nothing is printed to the console on boot | 177 | //Make sure nothing is printed to the console on boot |
179 | #define BB_FEATURE_EXTRA_QUIET | 178 | #define BB_FEATURE_EXTRA_QUIET |
180 | // | 179 | // |
180 | //Should syslogd also provide klogd support? | ||
181 | #define BB_FEATURE_KLOGD | ||
182 | // | ||
181 | //Simple tail implementation (2k vs 6k for the full one). Still | 183 | //Simple tail implementation (2k vs 6k for the full one). Still |
182 | //provides 'tail -f' support -- but for only one file at a time. | 184 | //provides 'tail -f' support -- but for only one file at a time. |
183 | #define BB_FEATURE_SIMPLE_TAIL | 185 | #define BB_FEATURE_SIMPLE_TAIL |
@@ -220,6 +222,9 @@ | |||
220 | //Turn on extra fbset options | 222 | //Turn on extra fbset options |
221 | //#define BB_FEATURE_FBSET_FANCY | 223 | //#define BB_FEATURE_FBSET_FANCY |
222 | // | 224 | // |
225 | //Turn on fbset readmode support | ||
226 | //#define BB_FEATURE_FBSET_READMODE | ||
227 | // | ||
223 | // You must enable one or both of these features | 228 | // You must enable one or both of these features |
224 | // Support installing modules from pre 2.1 kernels | 229 | // Support installing modules from pre 2.1 kernels |
225 | //#define BB_FEATURE_INSMOD_OLD_KERNEL | 230 | //#define BB_FEATURE_INSMOD_OLD_KERNEL |
@@ -140,7 +140,7 @@ struct cmdoptions_t { | |||
140 | static int readmode(struct fb_var_screeninfo *base, const char *fn, | 140 | static int readmode(struct fb_var_screeninfo *base, const char *fn, |
141 | const char *mode) | 141 | const char *mode) |
142 | { | 142 | { |
143 | #ifdef BB_FBSET_READMODE | 143 | #ifdef BB_FEATURE_FBSET_READMODE |
144 | FILE *f; | 144 | FILE *f; |
145 | char buf[256]; | 145 | char buf[256]; |
146 | char *p = buf; | 146 | char *p = buf; |
diff --git a/networking/ping.c b/networking/ping.c index 6386c0e42..b9e8d0fd2 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * $Id: ping.c,v 1.17 2000/06/19 18:51:53 andersen Exp $ | 3 | * $Id: ping.c,v 1.18 2000/07/06 23:10:29 andersen Exp $ |
4 | * Mini ping implementation for busybox | 4 | * Mini ping implementation for busybox |
5 | * | 5 | * |
6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> | 6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> |
@@ -173,7 +173,7 @@ static int in_cksum(unsigned short *buf, int sz) | |||
173 | } | 173 | } |
174 | 174 | ||
175 | /* simple version */ | 175 | /* simple version */ |
176 | #ifdef BB_SIMPLE_PING | 176 | #ifdef BB_FEATURE_SIMPLE_PING |
177 | static const char *ping_usage = "ping host\n" | 177 | static const char *ping_usage = "ping host\n" |
178 | #ifndef BB_FEATURE_TRIVIAL_HELP | 178 | #ifndef BB_FEATURE_TRIVIAL_HELP |
179 | "\nSend ICMP ECHO_REQUEST packets to network hosts\n" | 179 | "\nSend ICMP ECHO_REQUEST packets to network hosts\n" |
@@ -265,7 +265,7 @@ extern int ping_main(int argc, char **argv) | |||
265 | exit(TRUE); | 265 | exit(TRUE); |
266 | } | 266 | } |
267 | 267 | ||
268 | #else /* ! BB_SIMPLE_PING */ | 268 | #else /* ! BB_FEATURE_SIMPLE_PING */ |
269 | /* full(er) version */ | 269 | /* full(er) version */ |
270 | static const char *ping_usage = "ping [OPTION]... host\n" | 270 | static const char *ping_usage = "ping [OPTION]... host\n" |
271 | #ifndef BB_FEATURE_TRIVIAL_HELP | 271 | #ifndef BB_FEATURE_TRIVIAL_HELP |
@@ -561,7 +561,7 @@ extern int ping_main(int argc, char **argv) | |||
561 | ping(*argv); | 561 | ping(*argv); |
562 | return(TRUE); | 562 | return(TRUE); |
563 | } | 563 | } |
564 | #endif /* ! BB_SIMPLE_PING */ | 564 | #endif /* ! BB_FEATURE_SIMPLE_PING */ |
565 | 565 | ||
566 | /* | 566 | /* |
567 | * Copyright (c) 1989 The Regents of the University of California. | 567 | * Copyright (c) 1989 The Regents of the University of California. |
@@ -1,6 +1,6 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * $Id: ping.c,v 1.17 2000/06/19 18:51:53 andersen Exp $ | 3 | * $Id: ping.c,v 1.18 2000/07/06 23:10:29 andersen Exp $ |
4 | * Mini ping implementation for busybox | 4 | * Mini ping implementation for busybox |
5 | * | 5 | * |
6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> | 6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> |
@@ -173,7 +173,7 @@ static int in_cksum(unsigned short *buf, int sz) | |||
173 | } | 173 | } |
174 | 174 | ||
175 | /* simple version */ | 175 | /* simple version */ |
176 | #ifdef BB_SIMPLE_PING | 176 | #ifdef BB_FEATURE_SIMPLE_PING |
177 | static const char *ping_usage = "ping host\n" | 177 | static const char *ping_usage = "ping host\n" |
178 | #ifndef BB_FEATURE_TRIVIAL_HELP | 178 | #ifndef BB_FEATURE_TRIVIAL_HELP |
179 | "\nSend ICMP ECHO_REQUEST packets to network hosts\n" | 179 | "\nSend ICMP ECHO_REQUEST packets to network hosts\n" |
@@ -265,7 +265,7 @@ extern int ping_main(int argc, char **argv) | |||
265 | exit(TRUE); | 265 | exit(TRUE); |
266 | } | 266 | } |
267 | 267 | ||
268 | #else /* ! BB_SIMPLE_PING */ | 268 | #else /* ! BB_FEATURE_SIMPLE_PING */ |
269 | /* full(er) version */ | 269 | /* full(er) version */ |
270 | static const char *ping_usage = "ping [OPTION]... host\n" | 270 | static const char *ping_usage = "ping [OPTION]... host\n" |
271 | #ifndef BB_FEATURE_TRIVIAL_HELP | 271 | #ifndef BB_FEATURE_TRIVIAL_HELP |
@@ -561,7 +561,7 @@ extern int ping_main(int argc, char **argv) | |||
561 | ping(*argv); | 561 | ping(*argv); |
562 | return(TRUE); | 562 | return(TRUE); |
563 | } | 563 | } |
564 | #endif /* ! BB_SIMPLE_PING */ | 564 | #endif /* ! BB_FEATURE_SIMPLE_PING */ |
565 | 565 | ||
566 | /* | 566 | /* |
567 | * Copyright (c) 1989 The Regents of the University of California. | 567 | * Copyright (c) 1989 The Regents of the University of California. |
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index f4e7f459b..9ab228f21 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -85,7 +85,7 @@ static const char syslogd_usage[] = | |||
85 | "Options:\n" | 85 | "Options:\n" |
86 | "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n" | 86 | "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n" |
87 | "\t-n\t\tRun as a foreground process\n" | 87 | "\t-n\t\tRun as a foreground process\n" |
88 | #ifdef BB_KLOGD | 88 | #ifdef BB_FEATURE_KLOGD |
89 | "\t-K\t\tDo not start up the klogd process\n" | 89 | "\t-K\t\tDo not start up the klogd process\n" |
90 | #endif | 90 | #endif |
91 | "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n" | 91 | "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n" |
@@ -316,7 +316,7 @@ static void doSyslogd (void) | |||
316 | } | 316 | } |
317 | } | 317 | } |
318 | 318 | ||
319 | #ifdef BB_KLOGD | 319 | #ifdef BB_FEATURE_KLOGD |
320 | 320 | ||
321 | static void klogd_signal(int sig) | 321 | static void klogd_signal(int sig) |
322 | { | 322 | { |
@@ -407,7 +407,7 @@ extern int syslogd_main(int argc, char **argv) | |||
407 | int pid, klogd_pid; | 407 | int pid, klogd_pid; |
408 | int doFork = TRUE; | 408 | int doFork = TRUE; |
409 | 409 | ||
410 | #ifdef BB_KLOGD | 410 | #ifdef BB_FEATURE_KLOGD |
411 | int startKlogd = TRUE; | 411 | int startKlogd = TRUE; |
412 | #endif | 412 | #endif |
413 | int stopDoingThat = FALSE; | 413 | int stopDoingThat = FALSE; |
@@ -427,7 +427,7 @@ extern int syslogd_main(int argc, char **argv) | |||
427 | case 'n': | 427 | case 'n': |
428 | doFork = FALSE; | 428 | doFork = FALSE; |
429 | break; | 429 | break; |
430 | #ifdef BB_KLOGD | 430 | #ifdef BB_FEATURE_KLOGD |
431 | case 'K': | 431 | case 'K': |
432 | startKlogd = FALSE; | 432 | startKlogd = FALSE; |
433 | break; | 433 | break; |
@@ -456,7 +456,7 @@ extern int syslogd_main(int argc, char **argv) | |||
456 | 456 | ||
457 | umask(0); | 457 | umask(0); |
458 | 458 | ||
459 | #ifdef BB_KLOGD | 459 | #ifdef BB_FEATURE_KLOGD |
460 | /* Start up the klogd process */ | 460 | /* Start up the klogd process */ |
461 | if (startKlogd == TRUE) { | 461 | if (startKlogd == TRUE) { |
462 | klogd_pid = fork(); | 462 | klogd_pid = fork(); |
@@ -85,7 +85,7 @@ static const char syslogd_usage[] = | |||
85 | "Options:\n" | 85 | "Options:\n" |
86 | "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n" | 86 | "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n" |
87 | "\t-n\t\tRun as a foreground process\n" | 87 | "\t-n\t\tRun as a foreground process\n" |
88 | #ifdef BB_KLOGD | 88 | #ifdef BB_FEATURE_KLOGD |
89 | "\t-K\t\tDo not start up the klogd process\n" | 89 | "\t-K\t\tDo not start up the klogd process\n" |
90 | #endif | 90 | #endif |
91 | "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n" | 91 | "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n" |
@@ -316,7 +316,7 @@ static void doSyslogd (void) | |||
316 | } | 316 | } |
317 | } | 317 | } |
318 | 318 | ||
319 | #ifdef BB_KLOGD | 319 | #ifdef BB_FEATURE_KLOGD |
320 | 320 | ||
321 | static void klogd_signal(int sig) | 321 | static void klogd_signal(int sig) |
322 | { | 322 | { |
@@ -407,7 +407,7 @@ extern int syslogd_main(int argc, char **argv) | |||
407 | int pid, klogd_pid; | 407 | int pid, klogd_pid; |
408 | int doFork = TRUE; | 408 | int doFork = TRUE; |
409 | 409 | ||
410 | #ifdef BB_KLOGD | 410 | #ifdef BB_FEATURE_KLOGD |
411 | int startKlogd = TRUE; | 411 | int startKlogd = TRUE; |
412 | #endif | 412 | #endif |
413 | int stopDoingThat = FALSE; | 413 | int stopDoingThat = FALSE; |
@@ -427,7 +427,7 @@ extern int syslogd_main(int argc, char **argv) | |||
427 | case 'n': | 427 | case 'n': |
428 | doFork = FALSE; | 428 | doFork = FALSE; |
429 | break; | 429 | break; |
430 | #ifdef BB_KLOGD | 430 | #ifdef BB_FEATURE_KLOGD |
431 | case 'K': | 431 | case 'K': |
432 | startKlogd = FALSE; | 432 | startKlogd = FALSE; |
433 | break; | 433 | break; |
@@ -456,7 +456,7 @@ extern int syslogd_main(int argc, char **argv) | |||
456 | 456 | ||
457 | umask(0); | 457 | umask(0); |
458 | 458 | ||
459 | #ifdef BB_KLOGD | 459 | #ifdef BB_FEATURE_KLOGD |
460 | /* Start up the klogd process */ | 460 | /* Start up the klogd process */ |
461 | if (startKlogd == TRUE) { | 461 | if (startKlogd == TRUE) { |
462 | klogd_pid = fork(); | 462 | klogd_pid = fork(); |
diff --git a/util-linux/fbset.c b/util-linux/fbset.c index 6b6b84c04..3f36a7011 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c | |||
@@ -140,7 +140,7 @@ struct cmdoptions_t { | |||
140 | static int readmode(struct fb_var_screeninfo *base, const char *fn, | 140 | static int readmode(struct fb_var_screeninfo *base, const char *fn, |
141 | const char *mode) | 141 | const char *mode) |
142 | { | 142 | { |
143 | #ifdef BB_FBSET_READMODE | 143 | #ifdef BB_FEATURE_FBSET_READMODE |
144 | FILE *f; | 144 | FILE *f; |
145 | char buf[256]; | 145 | char buf[256]; |
146 | char *p = buf; | 146 | char *p = buf; |