Sync usage string with man page.
This commit is contained in:
parent
9dd6fd23cd
commit
fbe2a70d6b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=30172
@ -1,4 +1,4 @@
|
||||
.\" $Id$
|
||||
.\" $Id: pciconf.8,v 1.2 1997/02/22 16:09:06 peter Exp $
|
||||
.\" Copyright (c) 1997
|
||||
.\" Stefan Esser <se@freebsd.org>. All rights reserved.
|
||||
.\"
|
||||
@ -41,7 +41,7 @@
|
||||
.Ar reg value
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Em pciconf
|
||||
.Nm
|
||||
command provides a command line interface to the functionality provided by
|
||||
.Pa /dev/pci Ns 's
|
||||
.Xr ioctl 2
|
||||
@ -93,7 +93,7 @@ The
|
||||
.Fl l
|
||||
option is the only one available to non-root users.
|
||||
All other invocations of
|
||||
.Nm pciconf
|
||||
.Nm
|
||||
require a
|
||||
.Ar selector
|
||||
of the form
|
||||
@ -102,14 +102,14 @@ of the form
|
||||
.Li \&: Ns Va function ) .
|
||||
A final colon may be appended and
|
||||
will be ignored; this is so that the first column in the output of
|
||||
.Nm pciconf
|
||||
.Nm
|
||||
.Fl l
|
||||
can be used without modification. All numbers are base 10.
|
||||
.Pp
|
||||
With the
|
||||
.Fl a
|
||||
flag,
|
||||
.Nm pciconf
|
||||
.Nm
|
||||
determines whether any driver has been assigned to the device
|
||||
identified by
|
||||
.Ar selector .
|
||||
@ -147,7 +147,7 @@ write a longword (four bytes).
|
||||
.Xr modload 8
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Nm pciconf
|
||||
.Nm
|
||||
command appeared first in
|
||||
.Fx 2.2 .
|
||||
The
|
||||
@ -159,7 +159,10 @@ LKM support in
|
||||
.Sh AUTHORS
|
||||
The
|
||||
.Nm
|
||||
facility was written by Stefan Esser and Garrett Wollman.
|
||||
facility was written by
|
||||
.An Stefan Esser
|
||||
and
|
||||
.An Garrett Wollman .
|
||||
.Sh BUGS
|
||||
The
|
||||
.Fl b
|
||||
|
@ -25,10 +25,13 @@
|
||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $ANA: pciconf.c,v 1.1.1.1 1996/09/25 21:12:57 wollman Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/fcntl.h>
|
||||
|
||||
@ -51,11 +54,13 @@ static void chkattached(const char *, int);
|
||||
static exitstatus = 0;
|
||||
|
||||
static void
|
||||
usage(const char *argv0) {
|
||||
fprintf(stderr, "usage:\n\t%s -l\n"
|
||||
"\t%s -a sel\n"
|
||||
"\t%s [-r|-w] [-bh] sel addr [value]\n",
|
||||
argv0, argv0, argv0);
|
||||
usage()
|
||||
{
|
||||
fprintf(stderr, "%s\n%s\n%s\n%s\n",
|
||||
"usage: pciconf -l",
|
||||
" pciconf -a sel",
|
||||
" pciconf -r [-b | -h] sel addr",
|
||||
" pciconf -w [-b | -h] sel addr [value]");
|
||||
exit (1);
|
||||
}
|
||||
|
||||
@ -95,7 +100,7 @@ main(int argc, char **argv)
|
||||
break;
|
||||
|
||||
default:
|
||||
usage(argv[0]);
|
||||
usage();
|
||||
}
|
||||
}
|
||||
|
||||
@ -103,7 +108,7 @@ main(int argc, char **argv)
|
||||
|| (writemode && optind + 3 != argc)
|
||||
|| (readmode && optind + 2 != argc)
|
||||
|| (attachedmode && optind + 1 != argc))
|
||||
usage(argv[0]);
|
||||
usage();
|
||||
|
||||
if (listmode) {
|
||||
list_devs();
|
||||
@ -117,7 +122,7 @@ main(int argc, char **argv)
|
||||
writeit(argv[optind], argv[optind + 1], argv[optind + 2],
|
||||
byte ? 1 : isshort ? 2 : 4);
|
||||
} else {
|
||||
usage(argv[0]);
|
||||
usage();
|
||||
}
|
||||
|
||||
return exitstatus;
|
||||
|
Loading…
Reference in New Issue
Block a user