diff options
author | Erik Andersen | 2000-04-13 18:49:43 +0000 |
---|---|---|
committer | Erik Andersen | 2000-04-13 18:49:43 +0000 |
commit | 9cf3bfa7c1bf3ad959c61711c9a5ac1969149300 (patch) | |
tree | 61d03a8d473f2d253c80f5bb3acc13d488351250 /util-linux | |
parent | b4f8606c05f8a256b515633e48df954ead1260ef (diff) | |
download | busybox-9cf3bfa7c1bf3ad959c61711c9a5ac1969149300.zip busybox-9cf3bfa7c1bf3ad959c61711c9a5ac1969149300.tar.gz |
More doc updates for BusyBox, with fixes to apps for bugs revealed
while trying to write docs . :-)
-Erik
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/fbset.c | 9 | ||||
-rw-r--r-- | util-linux/fdflush.c | 4 | ||||
-rw-r--r-- | util-linux/freeramdisk.c | 8 | ||||
-rw-r--r-- | util-linux/mount.c | 2 |
4 files changed, 10 insertions, 13 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c index 1f471da..4e5609e 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c @@ -104,9 +104,9 @@ struct cmdoptions_t { "-hsync", 1, CMD_HSYNC}, { "-vsync", 1, CMD_VSYNC}, { "-laced", 1, CMD_LACED}, { - "-double", 1, CMD_DOUBLE}, + "-double", 1, CMD_DOUBLE}, { + "--help", 0, CMD_HELP}, { #ifdef BB_FEATURE_FBSET_FANCY - { "--help", 0, CMD_HELP}, { "-all", 0, CMD_ALL}, { "-xres", 1, CMD_XRES}, { @@ -130,9 +130,8 @@ struct cmdoptions_t { "-bcast", 1, CMD_BCAST}, { "-rgba", 1, CMD_RGBA}, { "-step", 1, CMD_STEP}, { - "-move", 1, CMD_MOVE}, + "-move", 1, CMD_MOVE}, { #endif - { 0, 0, 0} }; @@ -217,7 +216,7 @@ static void showmode(struct fb_var_screeninfo *v) printf("\trgba %u/%u,%u/%u,%u/%u,%u/%u\n", v->red.length, v->red.offset, v->green.length, v->green.offset, v->blue.length, v->blue.offset, v->transp.length, v->transp.offset); - printf("endmode\n"); + printf("endmode\n\n"); } static void fbset_usage(void) diff --git a/util-linux/fdflush.c b/util-linux/fdflush.c index 201cea8..56ea224 100644 --- a/util-linux/fdflush.c +++ b/util-linux/fdflush.c @@ -33,8 +33,8 @@ extern int fdflush_main(int argc, char **argv) int value; int fd; - if (argc <= 1 || **(argv++) == '-') { - usage("fdflush device\n"); + if (argc <= 1 || **(++argv) == '-') { + usage("fdflush device\n\nForce floppy disk drive to detect disk change\n"); } fd = open(*argv, 0); diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c index 06937a7..9636dbd 100644 --- a/util-linux/freeramdisk.c +++ b/util-linux/freeramdisk.c @@ -34,7 +34,7 @@ static const char freeramdisk_usage[] = "freeramdisk DEVICE\n\n" - "Frees all memory used by the specified ramdisk.\n"; + "Free all memory used by the specified ramdisk.\n"; extern int freeramdisk_main(int argc, char **argv) @@ -42,7 +42,7 @@ freeramdisk_main(int argc, char **argv) char rname[256] = "/dev/ram"; int f; - if (argc > 2 || ( argv[1] && *argv[1] == '-')) { + if (argc < 2 || ( argv[1] && *argv[1] == '-')) { usage(freeramdisk_usage); } @@ -50,10 +50,10 @@ freeramdisk_main(int argc, char **argv) strcpy(rname, argv[1]); if ((f = open(rname, O_RDWR)) == -1) { - fatalError( "freeramdisk: cannot open %s: %s", rname, strerror(errno)); + fatalError( "freeramdisk: cannot open %s: %s\n", rname, strerror(errno)); } if (ioctl(f, BLKFLSBUF) < 0) { - fatalError( "freeramdisk: failed ioctl on %s: %s", rname, strerror(errno)); + fatalError( "freeramdisk: failed ioctl on %s: %s\n", rname, strerror(errno)); } /* Don't bother closing. Exit does * that, so we can save a few bytes */ diff --git a/util-linux/mount.c b/util-linux/mount.c index 329c077..972e506 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -83,8 +83,6 @@ static const char mount_usage[] = "\tmount [flags]\n" "\tsuid / nosuid:\tAllow set-user-id-root programs / disallow them.\n" "\tremount: Re-mount a currently-mounted filesystem, changing its flags.\n" "\tro / rw: Mount for read-only / read-write.\n" - "\t" - "There are EVEN MORE flags that are specific to each filesystem.\n" "You'll have to see the written documentation for those.\n"; |