Correct use of .Nm. Remove unused #includes. Short usage() string, see man
page for details.
This commit is contained in:
parent
27750b35a5
commit
f6f3d50730
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37665
@ -23,7 +23,7 @@
|
|||||||
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||||
.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
.\" 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
|
.Dd July 6, 1998
|
||||||
.Dt NEWFS_MSDOS 8
|
.Dt NEWFS_MSDOS 8
|
||||||
@ -32,7 +32,7 @@
|
|||||||
.Nm newfs_msdos
|
.Nm newfs_msdos
|
||||||
.Nd construct a new MS-DOS (FAT) file system
|
.Nd construct a new MS-DOS (FAT) file system
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm newfs_msdos
|
||||||
.Op Fl N
|
.Op Fl N
|
||||||
.Op Fl B Ar boot
|
.Op Fl B Ar boot
|
||||||
.Op Fl F Ar FAT-type
|
.Op Fl F Ar FAT-type
|
||||||
@ -68,7 +68,7 @@ entry
|
|||||||
to determine geometry, if required.
|
to determine geometry, if required.
|
||||||
.Pp
|
.Pp
|
||||||
The options are as follow:
|
The options are as follow:
|
||||||
.Bl -tag -width Fl
|
.Bl -tag -width indent
|
||||||
.It Fl N
|
.It Fl N
|
||||||
Don't create a file system: just print out parameters.
|
Don't create a file system: just print out parameters.
|
||||||
.It Fl B Ar boot
|
.It Fl B Ar boot
|
||||||
@ -170,4 +170,4 @@ Create a standard 1.44M file system, with volume label "foo", on
|
|||||||
.Sh DIAGNOSTICS
|
.Sh DIAGNOSTICS
|
||||||
Exit status is 0 on success and 1 on error.
|
Exit status is 0 on success and 1 on error.
|
||||||
.Sh AUTHORS
|
.Sh AUTHORS
|
||||||
.An Robert Nordier Aq rnordier@FreeBSD.ORG .
|
.An Robert Nordier Aq rnordier@FreeBSD.org .
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static const char rcsid[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -40,7 +40,6 @@ static const char rcsid[] =
|
|||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <limits.h>
|
|
||||||
#include <paths.h>
|
#include <paths.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -895,30 +894,12 @@ setstr(u_int8_t *dest, const char *src, size_t len)
|
|||||||
static void
|
static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n",
|
||||||
"usage: newfs_msdos [ -options ] special [disktype]\n");
|
"usage: newfs_msdos [-N] [-B boot] [-F FAT-type] [-I volid] [-L label]",
|
||||||
fprintf(stderr, "where the options are:\n");
|
" [-O OEM] [-S sector-size] [-a FAT-size] [-b block-size]",
|
||||||
fprintf(stderr, "\t-N don't create file system: "
|
" [-c cluster-size] [-e dirents] [-f format] [-h heads]",
|
||||||
"just print out parameters\n");
|
" [-i info] [-k backup] [-m media] [-n FATs] [-o hidden]",
|
||||||
fprintf(stderr, "\t-B get bootstrap from file\n");
|
" [-r reserved] [-s total] [-u track-size]",
|
||||||
fprintf(stderr, "\t-F FAT type (12, 16, or 32)\n");
|
" special [disktype]");
|
||||||
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");
|
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user