Date: Thu, 11 Jun 1998 19:50:56 -0400 (EDT) From: Luoqi Chen <luoqi@chen.ml.org> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: kern/6920: make /dev/vga a symbolic link to /dev/ttyv0 under DEVFS Message-ID: <199806112350.TAA06717@chen.ml.org>
next in thread | raw e-mail | index | archive | help
>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: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jun 11 17:00:00 PDT 1998 >Last-Modified: >Originator: Luoqi Chen >Organization: >Release: FreeBSD 3.0-CURRENT i386 >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, >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806112350.TAA06717>