From owner-freebsd-hackers Thu Oct 19 16:37:42 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id QAA05707 for hackers-outgoing; Thu, 19 Oct 1995 16:37:42 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id QAA05682 for ; Thu, 19 Oct 1995 16:37:36 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id AAA11671; Fri, 20 Oct 1995 00:37:32 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id AAA28520; Fri, 20 Oct 1995 00:37:32 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id XAA05141; Thu, 19 Oct 1995 23:51:01 +0100 From: J Wunsch Message-Id: <199510192251.XAA05141@uriah.heep.sax.de> Subject: Re: New userconfig, more patches... To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Thu, 19 Oct 1995 23:51:01 +0100 (MET) Cc: hackers@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199510190950.TAA14955@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Oct 19, 95 07:20:41 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1725 Sender: owner-hackers@freebsd.org Precedence: bulk As Michael Smith wrote: > > Jordan, of course, is a masochist 8) Nonetheless, I offer a question to the > purists : how can this be done? The config.y and lang.l files are more > than a mere mortal can stand, at least in my weakened state 8) Without any warranties, blah, blah, blah: Index: config/config.y =================================================================== RCS file: /home/cvs/src/usr.sbin/config/config.y,v retrieving revision 1.11 diff -u -r1.11 config.y --- 1.11 1995/07/18 06:11:34 +++ config.y 1995/10/19 22:49:19 @@ -9,6 +9,7 @@ %token ANY %token ARGS %token AT +%token AUTO %token BIO %token BUS %token COMMA @@ -37,6 +38,7 @@ %token MINUS %token NET %token NEXUS +%token NONE %token ON %token OPTIONS %token MAKEOPTIONS @@ -607,6 +609,10 @@ = { cur.d_port = ns($2); } | PORT NUMBER = { cur.d_portn = $2; } | + PORT AUTO + = { cur.d_portn = -1; } | + PORT NONE + = { cur.d_portn = -2; } | TTY = { cur.d_mask = "tty"; } | BIO Index: config/lang.l =================================================================== RCS file: /home/cvs/src/usr.sbin/config/lang.l,v retrieving revision 1.7 diff -u -r1.7 lang.l --- 1.7 1995/07/17 23:38:15 +++ lang.l 1995/10/19 22:45:48 @@ -52,6 +52,7 @@ { "and", AND }, { "args", ARGS }, { "at", AT }, + { "auto", AUTO }, #if MACHINE_I386 { "bio", BIO }, { "bus", BUS }, @@ -86,6 +87,7 @@ { "net", NET }, #endif MACHINE_I386 { "nexus", NEXUS }, + { "none", NONE }, { "on", ON }, { "options", OPTIONS }, #if MACHINE_I386 -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)