From d4661f8c464105dfa87bc1f51b656752afe0cf8b Mon Sep 17 00:00:00 2001 From: dg Date: Thu, 29 Jun 1995 07:19:19 +0000 Subject: [PATCH] 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). --- usr.sbin/config/config.h | 2 -- usr.sbin/config/config.y | 41 ------------------------------------ usr.sbin/config/lang.l | 3 --- usr.sbin/config/mkmakefile.c | 3 +-- 4 files changed, 1 insertion(+), 48 deletions(-) diff --git a/usr.sbin/config/config.h b/usr.sbin/config/config.h index 190e1a20a1ad..c906e2b613bc 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 fb3ede0b8f24..221e388beeeb 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; }; @@ -968,18 +939,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 e4c65a1c0631..7d887b24796e 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 14e06f54ae84..0e0bdb681308 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); }