summaryrefslogtreecommitdiff
path: root/bin/ls
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2001-09-06 13:29:09 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2001-09-06 13:29:09 +0000
commite9adfbcaf16f3287027630e6f8926cbf5195af9f (patch)
treeb20ad65ef5726147335786dc24cc1d1a00d5c7f3 /bin/ls
parent99d09c2c5ce8a0c313c2a485a4a6a8ed24e805c5 (diff)
o) __progname aria;
millert@ ok.
Diffstat (limited to 'bin/ls')
-rw-r--r--bin/ls/extern.h4
-rw-r--r--bin/ls/util.c7
2 files changed, 7 insertions, 4 deletions
diff --git a/bin/ls/extern.h b/bin/ls/extern.h
index 3e7764be8fe..e11314382f3 100644
--- a/bin/ls/extern.h
+++ b/bin/ls/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.6 2000/07/19 19:27:36 mickey Exp $ */
+/* $OpenBSD: extern.h,v 1.7 2001/09/06 13:29:08 mpech Exp $ */
/* $NetBSD: extern.h,v 1.5 1995/03/21 09:06:24 cgd Exp $ */
/*-
@@ -36,6 +36,8 @@
* @(#)extern.h 8.1 (Berkeley) 5/31/93
*/
+extern char *__progname;
+
int acccmp __P((const FTSENT *, const FTSENT *));
int revacccmp __P((const FTSENT *, const FTSENT *));
int modcmp __P((const FTSENT *, const FTSENT *));
diff --git a/bin/ls/util.c b/bin/ls/util.c
index e31dba906fd..33c7ef15d3d 100644
--- a/bin/ls/util.c
+++ b/bin/ls/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.6 1999/05/05 07:06:01 deraadt Exp $ */
+/* $OpenBSD: util.c,v 1.7 2001/09/06 13:29:08 mpech Exp $ */
/* $NetBSD: util.c,v 1.12 1995/09/07 06:43:02 jtc Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)util.c 8.5 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: util.c,v 1.6 1999/05/05 07:06:01 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: util.c,v 1.7 2001/09/06 13:29:08 mpech Exp $";
#endif
#endif /* not lint */
@@ -72,6 +72,7 @@ void
usage()
{
(void)fprintf(stderr,
- "usage: ls [-1ACFLRSTWacdfiklmnopqrstux] [file ...]\n");
+ "usage: %s [-1ACFLRSTWacdfiklmnopqrstux] [file ...]\n",
+ __progname);
exit(1);
}