Correct use of .Nm. Remove unused #includes. Short usage() string, see man

page for details.
This commit is contained in:
Philippe Charnier 1998-07-15 06:30:38 +00:00
parent 27750b35a5
commit f6f3d50730
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37665
2 changed files with 12 additions and 31 deletions

View File

@ -23,7 +23,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $Id$
.\" $Id: newfs_msdos.8,v 1.1.1.1 1998/07/06 20:01:34 rnordier Exp $
.\"
.Dd July 6, 1998
.Dt NEWFS_MSDOS 8
@ -32,7 +32,7 @@
.Nm newfs_msdos
.Nd construct a new MS-DOS (FAT) file system
.Sh SYNOPSIS
.Nm
.Nm newfs_msdos
.Op Fl N
.Op Fl B Ar boot
.Op Fl F Ar FAT-type
@ -68,7 +68,7 @@ entry
to determine geometry, if required.
.Pp
The options are as follow:
.Bl -tag -width Fl
.Bl -tag -width indent
.It Fl N
Don't create a file system: just print out parameters.
.It Fl B Ar boot
@ -170,4 +170,4 @@ Create a standard 1.44M file system, with volume label "foo", on
.Sh DIAGNOSTICS
Exit status is 0 on success and 1 on error.
.Sh AUTHORS
.An Robert Nordier Aq rnordier@FreeBSD.ORG .
.An Robert Nordier Aq rnordier@FreeBSD.org .

View File

@ -27,7 +27,7 @@
#ifndef lint
static const char rcsid[] =
"$Id$";
"$Id: newfs_msdos.c,v 1.1.1.1 1998/07/06 20:01:34 rnordier Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -40,7 +40,6 @@ static const char rcsid[] =
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
@ -895,30 +894,12 @@ setstr(u_int8_t *dest, const char *src, size_t len)
static void
usage(void)
{
fprintf(stderr,
"usage: newfs_msdos [ -options ] special [disktype]\n");
fprintf(stderr, "where the options are:\n");
fprintf(stderr, "\t-N don't create file system: "
"just print out parameters\n");
fprintf(stderr, "\t-B get bootstrap from file\n");
fprintf(stderr, "\t-F FAT type (12, 16, or 32)\n");
fprintf(stderr, "\t-I volume ID\n");
fprintf(stderr, "\t-L volume label\n");
fprintf(stderr, "\t-O OEM string\n");
fprintf(stderr, "\t-S bytes/sector\n");
fprintf(stderr, "\t-a sectors/FAT\n");
fprintf(stderr, "\t-b block size\n");
fprintf(stderr, "\t-c sectors/cluster\n");
fprintf(stderr, "\t-e root directory entries\n");
fprintf(stderr, "\t-f standard format\n");
fprintf(stderr, "\t-h drive heads\n");
fprintf(stderr, "\t-i file system info sector\n");
fprintf(stderr, "\t-k backup boot sector\n");
fprintf(stderr, "\t-m media descriptor\n");
fprintf(stderr, "\t-n number of FATs\n");
fprintf(stderr, "\t-o hidden sectors\n");
fprintf(stderr, "\t-r reserved sectors\n");
fprintf(stderr, "\t-s file system size (sectors)\n");
fprintf(stderr, "\t-u sectors/track\n");
fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n",
"usage: newfs_msdos [-N] [-B boot] [-F FAT-type] [-I volid] [-L label]",
" [-O OEM] [-S sector-size] [-a FAT-size] [-b block-size]",
" [-c cluster-size] [-e dirents] [-f format] [-h heads]",
" [-i info] [-k backup] [-m media] [-n FATs] [-o hidden]",
" [-r reserved] [-s total] [-u track-size]",
" special [disktype]");
exit(1);
}