From luoqi@chen.ml.org  Thu Jun 11 16:51:23 1998
Received: from chen.ml.org (luoqi.watermarkgroup.com [207.202.73.170])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA04199
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 11 Jun 1998 16:51:15 -0700 (PDT)
          (envelope-from luoqi@chen.ml.org)
Received: (from luoqi@localhost)
	by chen.ml.org (8.8.8/8.8.8) id TAA06717;
	Thu, 11 Jun 1998 19:50:56 -0400 (EDT)
	(envelope-from luoqi)
Message-Id: <199806112350.TAA06717@chen.ml.org>
Date: Thu, 11 Jun 1998 19:50:56 -0400 (EDT)
From: Luoqi Chen <luoqi@chen.ml.org>
Reply-To: luoqi@chen.ml.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: make /dev/vga a symbolic link to /dev/ttyv0 under DEVFS
X-Send-Pr-Version: 3.2

>Number:         6920
>Category:       kern
>Synopsis:       make /dev/vga a symbolic link to /dev/ttyv0 under DEVFS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 11 17:00:00 PDT 1998
>Closed-Date:    Sat Jun 13 11:44:53 PDT 1998
>Last-Modified:  Sat Jun 13 11:54:02 PDT 1998
>Originator:     Luoqi Chen
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	3.0-current as of 6/10 with option DEVFS

>Description:

	Some program (e.g. doscmd) expects /dev/vga to be a symbolic link
	to /dev/ttyv0.

>How-To-Repeat:


>Fix:
	
Index: syscons.c
===================================================================
RCS file: /fun/cvs/src/sys/i386/isa/syscons.c,v
retrieving revision 1.262
diff -u -r1.262 syscons.c
--- syscons.c	1998/06/07 17:11:02	1.262
+++ syscons.c	1998/06/11 23:42:48
@@ -131,6 +131,7 @@
 static  scr_stat    	*console[MAXCONS];
 #ifdef DEVFS
 static	void		*sc_devfs_token[MAXCONS];
+static	void		*sc_vga_devfs_token;
 static	void		*sc_mouse_devfs_token;
 static	void		*sc_console_devfs_token;
 #endif
@@ -800,6 +801,7 @@
     for (vc = 0; vc < MAXCONS; vc++)
         sc_devfs_token[vc] = devfs_add_devswf(&scdevsw, vc, DV_CHR,
 				UID_ROOT, GID_WHEEL, 0600, "ttyv%n", vc);
+    sc_vga_devfs_token = devfs_link(sc_devfs_token[0], "vga");
     sc_mouse_devfs_token = devfs_add_devswf(&scdevsw, SC_MOUSE, DV_CHR,
 				UID_ROOT, GID_WHEEL, 0600, "sysmouse");
     sc_console_devfs_token = devfs_add_devswf(&scdevsw, SC_CONSOLE, DV_CHR,
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sat Jun 13 11:44:53 PDT 1998 
State-Changed-Why:  
Committed to revision 1.263 of src/sys/i386/isa/syscons.c.  Thanks! 
>Unformatted:
