Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 2000 15:28:50 +0100 (BST)
From:      George Reid <geeorgy@nevernet.net>
To:        ports@freebsd.org, sobomax@freebsd.org
Subject:   svgalib port bug
Message-ID:  <Pine.BSF.4.21.0010191525250.3120-100000@sobek.nevernet.net>

next in thread | raw e-mail | index | archive | help
Hey,
Thanks for porting svgalib to FreeBSD :)

One minor problem, though...the VT_SETMODE ioctl doesn't work. I had a
similar problem when I was porting vlock (which is as yet uncommitted
:P) to FreeBSD - the vt_mode structure must have a valid frsig member
(even though the kernel sources indicate it is unused). The ioctl will
fail without a valid frsig.

Patch (after existing patches):
--- vga.c.orig	Thu Oct 19 15:27:04 2000
+++ vga.c	Thu Oct 19 15:27:24 2000
@@ -1659,6 +1659,7 @@
     newvtmode.mode = VT_PROCESS;	/* handle VT changes */
     newvtmode.relsig = SVGALIB_RELEASE_SIG;	/* I didn't find SIGUSR1/2 anywhere */
     newvtmode.acqsig = SVGALIB_ACQUIRE_SIG;	/* in the kernel sources, so I guess */
+    newvtmode.frsig = SVGALIB_ACQUIRE_SIG;	/* needed, but unused */
     /* they are free */
     SETSIG(siga, SVGALIB_RELEASE_SIG, __svgalib_releasevt_signal);
     SETSIG(siga, SVGALIB_ACQUIRE_SIG, __svgalib_acquirevt_signal); 

(End patch)

G
---
"And then it comes to be that the soothing light
   at the end of your tunnel was just a freight
            train, comin' your way."

       George Reid * geeorgy@nevernet.net



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0010191525250.3120-100000>