diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-11-21 22:57:33 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-11-21 22:57:33 +0000 |
commit | 085a62241a2b9be4c9bd71d300f675c499376ea4 (patch) | |
tree | bab59e383dbef6431b65f570e5057c424405a6e6 /sbin | |
parent | aa5041bef1ff06259db3a1da70c75d0d858c877f (diff) |
- standard SYNOPSIS
- sort OPTIONS
- s/Dq/Sq when quoting single characters
- sync usage()
- simplify macros
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ncheck_ffs/ncheck_ffs.8 | 38 | ||||
-rw-r--r-- | sbin/ncheck_ffs/ncheck_ffs.c | 6 |
2 files changed, 22 insertions, 22 deletions
diff --git a/sbin/ncheck_ffs/ncheck_ffs.8 b/sbin/ncheck_ffs/ncheck_ffs.8 index 516c2a7a584..a980afcfba1 100644 --- a/sbin/ncheck_ffs/ncheck_ffs.8 +++ b/sbin/ncheck_ffs/ncheck_ffs.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ncheck_ffs.8,v 1.19 2003/06/04 16:24:44 deraadt Exp $ +.\" $OpenBSD: ncheck_ffs.8,v 1.20 2003/11/21 22:57:32 jmc Exp $ .\" .\" Copyright (c) 1995, 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com> .\" All rights reserved. @@ -31,33 +31,32 @@ .Nd generate names from inode-numbers .Sh SYNOPSIS .Nm ncheck_ffs +.Op Fl ams .Op Fl f Ar format .Op Fl i Ar number Op Ar ... -.Op Fl ams .Ar filesystem .Sh DESCRIPTION .Nm generates a list of filenames and inode numbers for the given file system. Names of directories are followed by a -.Dq \&. . +.Sq \&. . .Pp The options are as follows: .Bl -tag -width Ds +.It Fl a +Print the file names +.Sq \&. +and +.Sq .. , +which are ordinarily skipped. .It Fl f Ar format Use a custom output format when printing inode information. Characters from .Ar format are printed for each inode with the following escape sequences: +.Pp .Bl -tag -width Ds -offset indent -compact -.It Cm \eI -Print the inode number. -.It Cm \eP -Print the pathname to the file using the current inode number. -.It Cm \ee -Print an -.Aq escape -character. .It Cm \ea Print a .Aq bell @@ -66,14 +65,22 @@ character. Print a .Aq backspace character. +.It Cm \ee +Print an +.Aq escape +character. .It Cm \ef Print a .Aq form-feed character. +.It Cm \eI +Print the inode number. .It Cm \en Print a .Aq new-line character. +.It Cm \eP +Print the pathname to the file using the current inode number. .It Cm \er Print a .Aq carriage return @@ -105,12 +112,6 @@ The device name is not printed on the first line of output when the option is specified. .It Fl i Ar number Op Ar ... Report only those files whose inode numbers are as listed. -.It Fl a -Print the file names -.Dq \&. -and -.Dq \&.\&. , -which are ordinarily skipped. .It Fl m Give more verbose information on inodes. .It Fl s @@ -128,7 +129,6 @@ The report is not sorted. The .Nm command was designed to be similar in functionality to the corresponding -command in -.Tn "SunOS 4.1.3" . +command in SunOS 4.1.3. .Sh AUTHORS .An Thorsten Lockert Aq tholo@sigmasoft.com diff --git a/sbin/ncheck_ffs/ncheck_ffs.c b/sbin/ncheck_ffs/ncheck_ffs.c index 73d6b27bbc3..aa6cd1b8147 100644 --- a/sbin/ncheck_ffs/ncheck_ffs.c +++ b/sbin/ncheck_ffs/ncheck_ffs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncheck_ffs.c,v 1.21 2003/09/25 07:50:22 deraadt Exp $ */ +/* $OpenBSD: ncheck_ffs.c,v 1.22 2003/11/21 22:57:32 jmc Exp $ */ /*- * Copyright (c) 1995, 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com> @@ -26,7 +26,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: ncheck_ffs.c,v 1.21 2003/09/25 07:50:22 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: ncheck_ffs.c,v 1.22 2003/11/21 22:57:32 jmc Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -424,7 +424,7 @@ usage(void) { extern char *__progname; - fprintf(stderr, "usage: %s [-f format] [-i numbers] [-ams] filesystem\n", + fprintf(stderr, "usage: %s [-ams] [-f format] [-i number [...]] filesystem\n", __progname); exit(3); } |