Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib don't claim that options are illegal, cf lib...



details:   https://anonhg.NetBSD.org/src/rev/2913351fa697
branches:  trunk
changeset: 509005:2913351fa697
user:      joda <joda%NetBSD.org@localhost>
date:      Tue Apr 24 09:07:43 2001 +0000

description:
don't claim that options are illegal, cf lib/12715

diffstat:

 lib/libc/stdlib/getopt.c      |  6 +++---
 lib/libc/stdlib/getopt_long.c |  8 ++++----
 lib/libc/stdlib/getsubopt.3   |  4 ++--
 3 files changed, 9 insertions(+), 9 deletions(-)

diffs (74 lines):

diff -r ef91d45733eb -r 2913351fa697 lib/libc/stdlib/getopt.c
--- a/lib/libc/stdlib/getopt.c  Tue Apr 24 08:03:44 2001 +0000
+++ b/lib/libc/stdlib/getopt.c  Tue Apr 24 09:07:43 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getopt.c,v 1.20 2001/02/19 22:43:21 cgd Exp $  */
+/*     $NetBSD: getopt.c,v 1.21 2001/04/24 09:07:43 joda Exp $ */
 
 /*
  * Copyright (c) 1987, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)getopt.c   8.3 (Berkeley) 4/27/95";
 #else
-__RCSID("$NetBSD: getopt.c,v 1.20 2001/02/19 22:43:21 cgd Exp $");
+__RCSID("$NetBSD: getopt.c,v 1.21 2001/04/24 09:07:43 joda Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -106,7 +106,7 @@
                        ++optind;
                if (opterr && *ostr != ':')
                        (void)fprintf(stderr,
-                           "%s: illegal option -- %c\n", getprogname(),
+                           "%s: unknown option -- %c\n", getprogname(),
                            optopt);
                return (BADCH);
        }
diff -r ef91d45733eb -r 2913351fa697 lib/libc/stdlib/getopt_long.c
--- a/lib/libc/stdlib/getopt_long.c     Tue Apr 24 08:03:44 2001 +0000
+++ b/lib/libc/stdlib/getopt_long.c     Tue Apr 24 09:07:43 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getopt_long.c,v 1.11 2001/02/12 23:59:17 cgd Exp $     */
+/*     $NetBSD: getopt_long.c,v 1.12 2001/04/24 09:07:43 joda Exp $    */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getopt_long.c,v 1.11 2001/02/12 23:59:17 cgd Exp $");
+__RCSID("$NetBSD: getopt_long.c,v 1.12 2001/04/24 09:07:43 joda Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -97,8 +97,8 @@
 static const char recargstring[] = "option requires an argument -- %s";
 static const char ambig[] = "ambiguous option -- %.*s";
 static const char noarg[] = "option doesn't take an argument -- %.*s";
-static const char illoptchar[] = "illegal option -- %c";
-static const char illoptstring[] = "illegal option -- %s";
+static const char illoptchar[] = "unknown option -- %c";
+static const char illoptstring[] = "unknown option -- %s";
 
 
 /*
diff -r ef91d45733eb -r 2913351fa697 lib/libc/stdlib/getsubopt.3
--- a/lib/libc/stdlib/getsubopt.3       Tue Apr 24 08:03:44 2001 +0000
+++ b/lib/libc/stdlib/getsubopt.3       Tue Apr 24 09:07:43 2001 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: getsubopt.3,v 1.4 1998/02/05 18:49:58 perry Exp $
+.\"    $NetBSD: getsubopt.3,v 1.5 2001/04/24 09:07:43 joda Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -131,7 +131,7 @@
                                break;
                        case \-1:
                                if (suboptarg)
-                                       error("illegal sub option %s",
+                                       error("unknown sub option %s",
                                          suboptarg);
                                else
                                        error("missing sub option");



Home | Main Index | Thread Index | Old Index