Source-Changes-HG archive

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

[src/trunk]: src/sbin/sysctl Combine multiple single-letter options.



details:   https://anonhg.NetBSD.org/src/rev/92406eb0b399
branches:  trunk
changeset: 552203:92406eb0b399
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Sep 21 15:23:55 2003 +0000

description:
Combine multiple single-letter options.

diffstat:

 sbin/sysctl/sysctl.8 |  17 ++++++-----------
 sbin/sysctl/sysctl.c |  14 +++++++-------
 2 files changed, 13 insertions(+), 18 deletions(-)

diffs (74 lines):

diff -r 5038830e216d -r 92406eb0b399 sbin/sysctl/sysctl.8
--- a/sbin/sysctl/sysctl.8      Sun Sep 21 15:21:03 2003 +0000
+++ b/sbin/sysctl/sysctl.8      Sun Sep 21 15:23:55 2003 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: sysctl.8,v 1.99 2003/09/20 17:02:17 grant Exp $
+.\"    $NetBSD: sysctl.8,v 1.100 2003/09/21 15:23:55 wiz Exp $
 .\"
 .\" Copyright (c) 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -37,25 +37,20 @@
 .Nd get or set kernel state
 .Sh SYNOPSIS
 .Nm sysctl
-.Op Fl n
-.Op Fl e
+.Op Fl en
 .Ar name ...
 .Nm sysctl
-.Op Fl n
-.Op Fl q
+.Op Fl nq
 .Fl w
 .Ar name Ns Li = Ns Ar value ...
 .Nm sysctl
-.Op Fl n
-.Op Fl e
+.Op Fl en
 .Fl a
 .Nm sysctl
-.Op Fl n
-.Op Fl e
+.Op Fl en
 .Fl A
 .Nm sysctl
-.Op Fl n
-.Op Fl q
+.Op Fl nq
 .Fl f
 .Ar file
 .Sh DESCRIPTION
diff -r 5038830e216d -r 92406eb0b399 sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c      Sun Sep 21 15:21:03 2003 +0000
+++ b/sbin/sysctl/sysctl.c      Sun Sep 21 15:23:55 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.c,v 1.72 2003/09/20 17:02:19 grant Exp $        */
+/*     $NetBSD: sysctl.c,v 1.73 2003/09/21 15:23:56 wiz Exp $  */
 
 /*
  * Copyright (c) 1993
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)sysctl.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: sysctl.c,v 1.72 2003/09/20 17:02:19 grant Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.73 2003/09/21 15:23:56 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -1266,10 +1266,10 @@
 
        (void)fprintf(stderr,
            "Usage:\t%s %s\n\t%s %s\n\t%s %s\n\t%s %s\n\t%s %s\n",
-           progname, "[-n] [-e] variable ...",
-           progname, "[-n] [-q] -w variable=value ...",
-           progname, "[-n] [-e] -a",
-           progname, "[-n] [-e] -A",
-           progname, "[-n] [-q] -f file");
+           progname, "[-en] variable ...",
+           progname, "[-nq] -w variable=value ...",
+           progname, "[-en] -a",
+           progname, "[-en] -A",
+           progname, "[-nq] -f file");
        exit(1);
 }



Home | Main Index | Thread Index | Old Index