summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-06-29 07:19:19 +0000
committerdg <dg@FreeBSD.org>1995-06-29 07:19:19 +0000
commitaf6f51995f3d342fd87ed31ea8750196ef87080c (patch)
tree4f9f4dc9b3680657f8968565f3af701ada29d9c6 /usr.sbin/config
parent3d799ae7f8ef311d5648a2ad8534fd7a2a662bbc (diff)
downloadFreeBSD-src-af6f51995f3d342fd87ed31ea8750196ef87080c.zip
FreeBSD-src-af6f51995f3d342fd87ed31ea8750196ef87080c.tar.gz
Killed TIMEZONE, DST, and HZ keywords. They have generated a config error
for more than a year now. They've been replaced with userland methods for changing (see adjkerntz).
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/config.h2
-rw-r--r--usr.sbin/config/config.y41
-rw-r--r--usr.sbin/config/lang.l3
-rw-r--r--usr.sbin/config/mkmakefile.c3
4 files changed, 1 insertions, 48 deletions
diff --git a/usr.sbin/config/config.h b/usr.sbin/config/config.h
index 190e1a2..c906e2b 100644
--- a/usr.sbin/config/config.h
+++ b/usr.sbin/config/config.h
@@ -210,8 +210,6 @@ int yyline;
struct file_list *ftab, *conf_list, **confp, *comp_list, **compp;
-int zone, hadtz;
-int dst;
int profiling;
int debugging;
diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y
index fb3ede0..221e388 100644
--- a/usr.sbin/config/config.y
+++ b/usr.sbin/config/config.y
@@ -20,11 +20,9 @@
%token DISK
%token DRIVE
%token DRQ
-%token DST
%token DUMPS
%token EQUALS
%token FLAGS
-%token HZ
%token IDENT
%token INTERLEAVE
%token IOMEM
@@ -51,7 +49,6 @@
%token SLAVE
%token SWAP
%token TARGET
-%token TIMEZONE
%token TTY
%token TRACE
%token UNIT
@@ -198,32 +195,6 @@ Config_spec:
= { ident = ns($2); } |
System_spec
|
- HZ NUMBER
- = { yyerror("HZ specification obsolete; delete"); } |
- TIMEZONE NUMBER
- = { zone = 60 * $2; check_tz(); } |
- TIMEZONE NUMBER DST NUMBER
- = { zone = 60 * $2; dst = $4; check_tz(); } |
- TIMEZONE NUMBER DST
- = { zone = 60 * $2; dst = 1; check_tz(); } |
- TIMEZONE FPNUMBER
- = { zone = $2; check_tz(); } |
- TIMEZONE FPNUMBER DST NUMBER
- = { zone = $2; dst = $4; check_tz(); } |
- TIMEZONE FPNUMBER DST
- = { zone = $2; dst = 1; check_tz(); } |
- TIMEZONE MINUS NUMBER
- = { zone = -60 * $3; check_tz(); } |
- TIMEZONE MINUS NUMBER DST NUMBER
- = { zone = -60 * $3; dst = $5; check_tz(); } |
- TIMEZONE MINUS NUMBER DST
- = { zone = -60 * $3; dst = 1; check_tz(); } |
- TIMEZONE MINUS FPNUMBER
- = { zone = -$3; check_tz(); } |
- TIMEZONE MINUS FPNUMBER DST NUMBER
- = { zone = -$3; dst = $5; check_tz(); } |
- TIMEZONE MINUS FPNUMBER DST
- = { zone = -$3; dst = 1; check_tz(); } |
MAXUSERS NUMBER
= { maxusers = $2; };
@@ -969,18 +940,6 @@ check_nexus(dev, num)
}
/*
- * Check the timezone to make certain it is sensible
- */
-
-check_tz()
-{
- if (zone != 0 || dst != 0)
- yyerror("timezone specification is no longer permitted");
- else
- hadtz = 1;
-}
-
-/*
* Check system specification and apply defaulting
* rules on root, argument, dump, and swap devices.
*/
diff --git a/usr.sbin/config/lang.l b/usr.sbin/config/lang.l
index e4c65a1..7d887b2 100644
--- a/usr.sbin/config/lang.l
+++ b/usr.sbin/config/lang.l
@@ -66,10 +66,8 @@ struct kt {
#if MACHINE_I386
{ "drq", DRQ },
#endif MACHINE_I386
- { "dst", DST },
{ "dumps", DUMPS },
{ "flags", FLAGS },
- { "hz", HZ },
{ "ident", IDENT },
{ "interleave", INTERLEAVE },
#if MACHINE_I386
@@ -107,7 +105,6 @@ struct kt {
#if MACHINE_I386
{ "tty", TTY },
#endif MACHINE_I386
- { "timezone", TIMEZONE },
{ "trace", TRACE },
{ "unit", UNIT },
{ "vector", VECTOR },
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c
index 14e06f5..0e0bdb6 100644
--- a/usr.sbin/config/mkmakefile.c
+++ b/usr.sbin/config/mkmakefile.c
@@ -184,8 +184,7 @@ makefile()
maxusers = up->u_min;
} else if (maxusers > up->u_max)
printf("warning: maxusers > %d (%d)\n", up->u_max, maxusers);
- fprintf(ofp, "PARAM=-DTIMEZONE=%d -DDST=%d -DMAXUSERS=%d\n",
- zone, dst, maxusers);
+ fprintf(ofp, "PARAM=-DMAXUSERS=%d\n", maxusers);
if (loadaddress != -1) {
fprintf(ofp, "LOAD_ADDRESS=%X\n", loadaddress);
}
OpenPOWER on IntegriCloud