summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2009-06-03 21:42:16 +0000
committerbeck <beck@openbsd.org>2009-06-03 21:42:16 +0000
commit9d0fcf29606258c9650e7fe6ae91d07f8334fe2f (patch)
tree839f590d7319f37bd62c02be385f27258ba52731 /usr.sbin/config
parentInitial stab at a driver for the Tech Source Raptor GFX built around the (diff)
downloadwireguard-openbsd-9d0fcf29606258c9650e7fe6ae91d07f8334fe2f.tar.xz
wireguard-openbsd-9d0fcf29606258c9650e7fe6ae91d07f8334fe2f.zip
change "cachepct" to "bufcachepercent" so it is the same
as the variable and the similar sysctl ok deraadt@
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/cmd.c9
-rw-r--r--usr.sbin/config/config.86
2 files changed, 8 insertions, 7 deletions
diff --git a/usr.sbin/config/cmd.c b/usr.sbin/config/cmd.c
index 46726a7800a..d4a078d9352 100644
--- a/usr.sbin/config/cmd.c
+++ b/usr.sbin/config/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.15 2008/11/22 11:18:53 maja Exp $ */
+/* $OpenBSD: cmd.c,v 1.16 2009/06/03 21:42:16 beck Exp $ */
/*
* Copyright (c) 1999-2001 Mats O Jansson. All rights reserved.
@@ -25,7 +25,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: cmd.c,v 1.15 2008/11/22 11:18:53 maja Exp $";
+static char rcsid[] = "$OpenBSD: cmd.c,v 1.16 2009/06/03 21:42:16 beck Exp $";
#endif
#include <sys/types.h>
@@ -60,7 +60,8 @@ cmd_table_t cmd_table[] = {
{"exit", Xexit, "", "Exit, without saving changes"},
{"quit", Xquit, "", "Quit, saving current changes"},
{"timezone", Xtimezone, "[mins [dst]]", "Show/change timezone"},
- {"cachepct", Xbufcachepct, "[number]", "Show/change BUFCACHEPERCENT"},
+ {"bufcachepercent", Xbufcachepct, "[number]",
+ "Show/change BUFCACHEPERCENT"},
{"nkmempg", Xnkmempg, "[number]", "Show/change NKMEMPAGES"},
{"shmseg", Xshmseg, "[number]", "Show/change SHMSEG"},
{"shmmaxpgs", Xshmmaxpgs,"[number]", "Show/change SHMMAXPGS"},
@@ -75,7 +76,7 @@ Xhelp(cmd_t *cmd)
/* Hmm, print out cmd_table here... */
for (i = 0; cmd_table[i].cmd != NULL; i++)
- printf("\t%-12s%-20s%s\n", cmd_table[i].cmd,
+ printf("\t%-16s%-20s%s\n", cmd_table[i].cmd,
cmd_table[i].opt, cmd_table[i].help);
return (CMD_CONT);
}
diff --git a/usr.sbin/config/config.8 b/usr.sbin/config/config.8
index 8379f833573..6e60e7e918f 100644
--- a/usr.sbin/config/config.8
+++ b/usr.sbin/config/config.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: config.8,v 1.52 2009/03/23 16:57:05 jmc Exp $
+.\" $OpenBSD: config.8,v 1.53 2009/06/03 21:42:16 beck Exp $
.\" $NetBSD: config.8,v 1.10 1996/08/31 20:58:16 mycroft Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" from: @(#)config.8 8.2 (Berkeley) 4/19/94
.\"
-.Dd $Mdocdate: March 23 2009 $
+.Dd $Mdocdate: June 3 2009 $
.Dt CONFIG 8
.Os
.Sh NAME
@@ -298,7 +298,7 @@ Add a device through copying another.
.It Ic base Ar 8 | 10 | 16
Change the base of numbers displayed and entered,
e.g. I/O addresses in a VAXen are octal.
-.It Ic cachepct Op Ar number
+.It Ic bufcachepercent Op Ar number
Change the BUFCACHEPERCENT value.
Without arguments, displays its current value.
.It Ic change Ar devno | dev