aboutsummaryrefslogtreecommitdiff
path: root/miscutils/makedevs.c
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-05-12 19:41:47 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-05-12 19:41:47 +0000
commit3a7ad24d94bc8ca3a532664af56e7d6a5bedc073 (patch)
tree37ef0fb8b142a4925b866c7caa5207b71b4ecae6 /miscutils/makedevs.c
parent22aaf5064548757d7cd32cd4b7d96c78852cdd0c (diff)
downloadbusybox-w32-3a7ad24d94bc8ca3a532664af56e7d6a5bedc073.tar.gz
busybox-w32-3a7ad24d94bc8ca3a532664af56e7d6a5bedc073.tar.bz2
busybox-w32-3a7ad24d94bc8ca3a532664af56e7d6a5bedc073.zip
Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP
which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik git-svn-id: svn://busybox.net/trunk/busybox@532 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'miscutils/makedevs.c')
-rw-r--r--miscutils/makedevs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index c8206e020..5072095b5 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -17,8 +17,9 @@
17#include <sys/stat.h> 17#include <sys/stat.h>
18 18
19static const char makedevs_usage[] = 19static const char makedevs_usage[] =
20 "makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]\n\n" 20 "makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]\n"
21 "Creates a range of block or character special files\n\n" 21#ifndef BB_FEATURE_TRIVIAL_HELP
22 "\nCreates a range of block or character special files\n\n"
22 "TYPEs include:\n" 23 "TYPEs include:\n"
23 "\tb:\tMake a block (buffered) device.\n" 24 "\tb:\tMake a block (buffered) device.\n"
24 "\tc or u:\tMake a character (un-buffered) device.\n" 25 "\tc or u:\tMake a character (un-buffered) device.\n"
@@ -28,7 +29,9 @@ static const char makedevs_usage[] =
28 "If 's' is the last argument, the base device is created as well.\n\n" 29 "If 's' is the last argument, the base device is created as well.\n\n"
29 "For example:\n" 30 "For example:\n"
30 "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n" 31 "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n"
31 "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8\n"; 32 "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8\n"
33#endif
34 ;
32 35
33int makedevs_main(int argc, char **argv) 36int makedevs_main(int argc, char **argv)
34{ 37{