Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 1995 23:51:01 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        msmith@atrad.adelaide.edu.au (Michael Smith)
Cc:        hackers@freebsd.org
Subject:   Re: New userconfig, more patches...
Message-ID:  <199510192251.XAA05141@uriah.heep.sax.de>
In-Reply-To: <199510190950.TAA14955@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Oct 19, 95 07:20:41 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510192251.XAA05141>