Skip to content

Commit

Permalink
Homogenize usage messages: make the 'usage' word all lowercase, as th…
Browse files Browse the repository at this point in the history
…is seems

to be the most common practice in our tree.
  • Loading branch information
jmmv committed Jan 5, 2004
1 parent fbf3e4f commit 76ebee2
Show file tree
Hide file tree
Showing 122 changed files with 362 additions and 362 deletions.
6 changes: 3 additions & 3 deletions bin/chio/chio.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: chio.c,v 1.23 2004/01/04 03:34:00 jschauma Exp $ */
/* $NetBSD: chio.c,v 1.24 2004/01/05 23:23:32 jmmv Exp $ */

/*-
* Copyright (c) 1996, 1998, 1999 The NetBSD Foundation, Inc.
Expand Down Expand Up @@ -46,7 +46,7 @@
__COPYRIGHT(
"@(#) Copyright (c) 1996, 1998, 1999\
The NetBSD Foundation, Inc. All rights reserved.");
__RCSID("$NetBSD: chio.c,v 1.23 2004/01/04 03:34:00 jschauma Exp $");
__RCSID("$NetBSD: chio.c,v 1.24 2004/01/05 23:23:32 jmmv Exp $");
#endif

#include <sys/param.h>
Expand Down Expand Up @@ -850,7 +850,7 @@ usage(void)
{
int i;

(void)fprintf(stderr, "Usage: %s command arg1 arg2 ...\n",
(void)fprintf(stderr, "usage: %s command arg1 arg2 ...\n",
getprogname());

(void)fprintf(stderr, "Where command (and args) are:\n");
Expand Down
10 changes: 5 additions & 5 deletions bin/csh/err.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: err.c,v 1.17 2003/08/07 09:05:05 agc Exp $ */
/* $NetBSD: err.c,v 1.18 2004/01/05 23:23:32 jmmv Exp $ */

/*-
* Copyright (c) 1980, 1991, 1993
Expand Down Expand Up @@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)err.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: err.c,v 1.17 2003/08/07 09:05:05 agc Exp $");
__RCSID("$NetBSD: err.c,v 1.18 2004/01/05 23:23:32 jmmv Exp $");
#endif
#endif /* not lint */

Expand Down Expand Up @@ -171,7 +171,7 @@ static const char *errorlist[] =
#define ERR_STRING 56
"%s",
#define ERR_JOBS 57
"Usage: jobs [ -l ]",
"usage: jobs [ -l ]",
#define ERR_JOBARGS 58
"Arguments should be jobs or process id's",
#define ERR_JOBCUR 59
Expand All @@ -195,7 +195,7 @@ static const char *errorlist[] =
#define ERR_BADDIR 68
"Bad directory",
#define ERR_DIRUS 69
"Usage: %s [-lvn]%s",
"usage: %s [-lvn]%s",
#define ERR_HFLAG 70
"No operand for -h flag",
#define ERR_NOTLOGIN 71
Expand All @@ -213,7 +213,7 @@ static const char *errorlist[] =
#define ERR_NOHOME 77
"No $home variable set",
#define ERR_HISTUS 78
"Usage: history [-rh] [# number of events]",
"usage: history [-rh] [# number of events]",
#define ERR_SPDOLLT 79
"$, ! or < not allowed with $# or $?",
#define ERR_NEWLINE 80
Expand Down
6 changes: 3 additions & 3 deletions bin/df/df.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: df.c,v 1.50 2003/12/07 22:42:36 perry Exp $ */
/* $NetBSD: df.c,v 1.51 2004/01/05 23:23:32 jmmv Exp $ */

/*
* Copyright (c) 1980, 1990, 1993, 1994
Expand Down Expand Up @@ -45,7 +45,7 @@ __COPYRIGHT(
#if 0
static char sccsid[] = "@(#)df.c 8.7 (Berkeley) 4/2/94";
#else
__RCSID("$NetBSD: df.c,v 1.50 2003/12/07 22:42:36 perry Exp $");
__RCSID("$NetBSD: df.c,v 1.51 2004/01/05 23:23:32 jmmv Exp $");
#endif
#endif /* not lint */

Expand Down Expand Up @@ -387,7 +387,7 @@ usage(void)
{

(void)fprintf(stderr,
"Usage: %s [-aghiklmnP] [-t type] [file | file_system ...]\n",
"usage: %s [-aghiklmnP] [-t type] [file | file_system ...]\n",
getprogname());
exit(1);
/* NOTREACHED */
Expand Down
6 changes: 3 additions & 3 deletions bin/ksh/c_ksh.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* $NetBSD: c_ksh.c,v 1.9 2003/08/25 13:23:59 wiz Exp $ */
/* $NetBSD: c_ksh.c,v 1.10 2004/01/05 23:23:32 jmmv Exp $ */

/*
* built-in Korn commands: c_*
*/
#include <sys/cdefs.h>

#ifndef lint
__RCSID("$NetBSD: c_ksh.c,v 1.9 2003/08/25 13:23:59 wiz Exp $");
__RCSID("$NetBSD: c_ksh.c,v 1.10 2004/01/05 23:23:32 jmmv Exp $");
#endif

#include "sh.h"
Expand Down Expand Up @@ -1225,7 +1225,7 @@ c_kill(wp)
}
if ((lflag && t) || (!wp[i] && !lflag)) {
shf_fprintf(shl_out,
"Usage: kill [ -s signame | -signum | -signame ] {pid|job}...\n\
"usage: kill [ -s signame | -signum | -signame ] {pid|job}...\n\
kill -l [exit_status]\n"
);
bi_errorf(null);
Expand Down
2 changes: 1 addition & 1 deletion bin/ksh/mkman
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ X"$1" = X-v ] ; then
shift
fi
if [ $# != 2 ] ; then
echo "Usage: $0 [-v] which-shell ksh.Man-file" 1>&2
echo "usage: $0 [-v] which-shell ksh.Man-file" 1>&2
exit 1;
fi
shell=$1
Expand Down
6 changes: 3 additions & 3 deletions bin/ln/ln.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: ln.c,v 1.27 2004/01/04 16:04:18 jschauma Exp $ */
/* $NetBSD: ln.c,v 1.28 2004/01/05 23:23:32 jmmv Exp $ */

/*
* Copyright (c) 1987, 1993, 1994
Expand Down Expand Up @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)ln.c 8.2 (Berkeley) 3/31/94";
#else
__RCSID("$NetBSD: ln.c,v 1.27 2004/01/04 16:04:18 jschauma Exp $");
__RCSID("$NetBSD: ln.c,v 1.28 2004/01/05 23:23:32 jmmv Exp $");
#endif
#endif /* not lint */

Expand Down Expand Up @@ -188,7 +188,7 @@ usage(void)
{

(void)fprintf(stderr,
"Usage:\t%s [-fhns] file1 file2\n\t%s [-fhnsv] file ... directory\n",
"usage:\t%s [-fhns] file1 file2\n\t%s [-fhnsv] file ... directory\n",
getprogname(), getprogname());
exit(1);
/* NOTREACHED */
Expand Down
10 changes: 5 additions & 5 deletions bin/pax/options.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: options.c,v 1.70 2004/01/05 17:27:46 jmmv Exp $ */
/* $NetBSD: options.c,v 1.71 2004/01/05 23:23:32 jmmv Exp $ */

/*-
* Copyright (c) 1992 Keith Muller.
Expand Down Expand Up @@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94";
#else
__RCSID("$NetBSD: options.c,v 1.70 2004/01/05 17:27:46 jmmv Exp $");
__RCSID("$NetBSD: options.c,v 1.71 2004/01/05 23:23:32 jmmv Exp $");
#endif
#endif /* not lint */

Expand Down Expand Up @@ -1946,7 +1946,7 @@ void
pax_usage(void)
{
fprintf(stderr,
"Usage: pax [-cdjnvzO] [-E limit] [-f archive] [-N dbdir] [-s replstr] ...\n"
"usage: pax [-cdjnvzO] [-E limit] [-f archive] [-N dbdir] [-s replstr] ...\n"
" [-U user] ... [-G group] ... [-T [from_date][,to_date]] ...\n"
" [pattern ...]\n");
fprintf(stderr,
Expand Down Expand Up @@ -1974,7 +1974,7 @@ pax_usage(void)
void
tar_usage(void)
{
(void)fputs("Usage: tar [-]{crtux}[-befhjlmopqvwzHLOPXZ014578] [archive] "
(void)fputs("usage: tar [-]{crtux}[-befhjlmopqvwzHLOPXZ014578] [archive] "
"[blocksize]\n"
" [-C directory] [-T file] [-s replstr] "
"[file ...]\n", stderr);
Expand All @@ -1991,7 +1991,7 @@ void
cpio_usage(void)
{

(void)fputs("Usage: cpio -o [-aABcLvzZ] [-C bytes] [-F archive] "
(void)fputs("usage: cpio -o [-aABcLvzZ] [-C bytes] [-F archive] "
"[-H format] [-O archive]\n"
" < name-list [> archive]\n"
" cpio -i [-bBcdfmrsStuvzZ6] [-C bytes] [-E file] "
Expand Down
6 changes: 3 additions & 3 deletions bin/sh/options.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: options.c,v 1.35 2003/08/07 09:05:36 agc Exp $ */
/* $NetBSD: options.c,v 1.36 2004/01/05 23:23:32 jmmv Exp $ */

/*-
* Copyright (c) 1991, 1993
Expand Down Expand Up @@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 5/4/95";
#else
__RCSID("$NetBSD: options.c,v 1.35 2003/08/07 09:05:36 agc Exp $");
__RCSID("$NetBSD: options.c,v 1.36 2004/01/05 23:23:32 jmmv Exp $");
#endif
#endif /* not lint */

Expand Down Expand Up @@ -378,7 +378,7 @@ getoptscmd(int argc, char **argv)
char **optbase;

if (argc < 3)
error("Usage: getopts optstring var [arg]");
error("usage: getopts optstring var [arg]");
else if (argc == 3)
optbase = shellparam.p;
else
Expand Down
4 changes: 2 additions & 2 deletions bin/systrace/systrace.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: systrace.c,v 1.25 2003/11/28 23:32:25 wiz Exp $ */
/* $NetBSD: systrace.c,v 1.26 2004/01/05 23:23:32 jmmv Exp $ */
/* $OpenBSD: systrace.c,v 1.32 2002/08/05 23:27:53 provos Exp $ */
/*
* Copyright 2002 Niels Provos <[email protected]>
Expand Down Expand Up @@ -418,7 +418,7 @@ static void
usage(void)
{
fprintf(stderr,
"Usage: systrace [-AaCitUu] [-c uid:gid] [-d policydir] [-f file]\n"
"usage: systrace [-AaCitUu] [-c uid:gid] [-d policydir] [-f file]\n"
"\t [-g gui] [-p pid] command ...\n");
exit(1);
}
Expand Down
6 changes: 3 additions & 3 deletions sbin/atactl/atactl.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: atactl.c,v 1.26 2003/12/30 19:31:06 thorpej Exp $ */
/* $NetBSD: atactl.c,v 1.27 2004/01/05 23:23:32 jmmv Exp $ */

/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
Expand Down Expand Up @@ -42,7 +42,7 @@
#include <sys/cdefs.h>

#ifndef lint
__RCSID("$NetBSD: atactl.c,v 1.26 2003/12/30 19:31:06 thorpej Exp $");
__RCSID("$NetBSD: atactl.c,v 1.27 2004/01/05 23:23:32 jmmv Exp $");
#endif


Expand Down Expand Up @@ -272,7 +272,7 @@ usage(void)
{
int i;

fprintf(stderr, "Usage: %s device command [arg [...]]\n",
fprintf(stderr, "usage: %s device command [arg [...]]\n",
getprogname());

fprintf(stderr, " Available device commands:\n");
Expand Down
6 changes: 3 additions & 3 deletions sbin/badsect/badsect.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: badsect.c,v 1.24 2003/08/07 10:04:11 agc Exp $ */
/* $NetBSD: badsect.c,v 1.25 2004/01/05 23:23:32 jmmv Exp $ */

/*
* Copyright (c) 1981, 1983, 1993
Expand Down Expand Up @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1981, 1983, 1993\n\
#if 0
static char sccsid[] = "@(#)badsect.c 8.2 (Berkeley) 5/4/95";
#else
__RCSID("$NetBSD: badsect.c,v 1.24 2003/08/07 10:04:11 agc Exp $");
__RCSID("$NetBSD: badsect.c,v 1.25 2004/01/05 23:23:32 jmmv Exp $");
#endif
#endif /* not lint */

Expand Down Expand Up @@ -108,7 +108,7 @@ main(argc, argv)
char name[MAXPATHLEN];

if (argc < 3) {
(void) fprintf(stderr, "Usage: %s bbdir blkno [ blkno ]\n",
(void) fprintf(stderr, "usage: %s bbdir blkno [ blkno ]\n",
getprogname());
exit(1);
}
Expand Down
4 changes: 2 additions & 2 deletions sbin/chkconfig/chkconfig.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: chkconfig.sh,v 1.2 2003/01/04 23:43:04 wiz Exp $
# $NetBSD: chkconfig.sh,v 1.3 2004/01/05 23:23:32 jmmv Exp $
#
# Copyright (c) 2001 Zembu Labs, Inc.
# All rights reserved.
Expand Down Expand Up @@ -134,7 +134,7 @@ usage()

_err=$1
echo "Error: ${_err}"
echo "Usage: $0 flag"
echo "usage: $0 flag"
echo " $0 flag [ on | off ] "
echo " $0 [-f] flag [ on | off ]"
exit 1
Expand Down
6 changes: 3 additions & 3 deletions sbin/disklabel/disklabel.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: disklabel.c,v 1.123 2003/12/11 05:11:50 dyoung Exp $ */
/* $NetBSD: disklabel.c,v 1.124 2004/01/05 23:23:32 jmmv Exp $ */

/*
* Copyright (c) 1987, 1993
Expand Down Expand Up @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\n\
static char sccsid[] = "@(#)disklabel.c 8.4 (Berkeley) 5/4/95";
/* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
#else
__RCSID("$NetBSD: disklabel.c,v 1.123 2003/12/11 05:11:50 dyoung Exp $");
__RCSID("$NetBSD: disklabel.c,v 1.124 2004/01/05 23:23:32 jmmv Exp $");
#endif
#endif /* not lint */

Expand Down Expand Up @@ -1878,7 +1878,7 @@ usage(void)
int i;

for (i = 0; usages[i].name; i++) {
(void) fputs(i ? "or " : "Usage: ", stderr);
(void) fputs(i ? "or " : "usage: ", stderr);
(void) fprintf(stderr, "%s %s", getprogname(), usages[i].name);
(void) fputs("\n\t", stderr);
(void) fprintf(stderr, "%s %s", getprogname(), usages[i].expn);
Expand Down
6 changes: 3 additions & 3 deletions sbin/dkctl/dkctl.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: dkctl.c,v 1.7 2003/06/23 11:53:37 agc Exp $ */
/* $NetBSD: dkctl.c,v 1.8 2004/01/05 23:23:32 jmmv Exp $ */

/*
* Copyright 2001 Wasabi Systems, Inc.
Expand Down Expand Up @@ -41,7 +41,7 @@
#include <sys/cdefs.h>

#ifndef lint
__RCSID("$NetBSD: dkctl.c,v 1.7 2003/06/23 11:53:37 agc Exp $");
__RCSID("$NetBSD: dkctl.c,v 1.8 2004/01/05 23:23:32 jmmv Exp $");
#endif


Expand Down Expand Up @@ -168,7 +168,7 @@ usage()
{
int i;

fprintf(stderr, "Usage: %s device command [arg [...]]\n",
fprintf(stderr, "usage: %s device command [arg [...]]\n",
getprogname());

fprintf(stderr, " Available commands:\n");
Expand Down
6 changes: 3 additions & 3 deletions sbin/fdisk/fdisk.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: fdisk.c,v 1.73 2003/11/21 21:47:42 lukem Exp $ */
/* $NetBSD: fdisk.c,v 1.74 2004/01/05 23:23:32 jmmv Exp $ */

/*
* Mach Operating System
Expand Down Expand Up @@ -35,7 +35,7 @@
#include <sys/cdefs.h>

#ifndef lint
__RCSID("$NetBSD: fdisk.c,v 1.73 2003/11/21 21:47:42 lukem Exp $");
__RCSID("$NetBSD: fdisk.c,v 1.74 2004/01/05 23:23:32 jmmv Exp $");
#endif /* not lint */

#include <sys/types.h>
Expand Down Expand Up @@ -559,7 +559,7 @@ usage(void)
{
int indent = 7 + (int)strlen(getprogname()) + 1;

(void)fprintf(stderr, "Usage: %s [-afiluvBS] "
(void)fprintf(stderr, "usage: %s [-afiluvBS] "
"[-b cylinders/heads/sectors] \\\n"
"%*s[-0123 | -E num "
"[-s id/start/size[/bootmenu]]] \\\n"
Expand Down
6 changes: 3 additions & 3 deletions sbin/fsck/fsck.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: fsck.c,v 1.31 2003/10/20 12:04:38 dsl Exp $ */
/* $NetBSD: fsck.c,v 1.32 2004/01/05 23:23:32 jmmv Exp $ */

/*
* Copyright (c) 1980, 1989, 1993, 1994
Expand Down Expand Up @@ -71,7 +71,7 @@

#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: fsck.c,v 1.31 2003/10/20 12:04:38 dsl Exp $");
__RCSID("$NetBSD: fsck.c,v 1.32 2004/01/05 23:23:32 jmmv Exp $");
#endif /* not lint */

#include <sys/param.h>
Expand Down Expand Up @@ -567,7 +567,7 @@ usage(void)
static const char common[] =
"[-dfnpqvy] [-T fstype:fsoptions] [-t fstype]";

(void)fprintf(stderr, "Usage: %s %s [special|node]...\n",
(void)fprintf(stderr, "usage: %s %s [special|node]...\n",
getprogname(), common);
exit(1);
}
Loading

0 comments on commit 76ebee2

Please sign in to comment.