Subject: Re: Fixing {get,put}wschar functions
To: Julio M. Merino Vidal <jmmv84@gmail.com>
From: Michael Lorenz <macallan@netbsd.org>
List: tech-kern
Date: 04/12/2006 11:29:56
--Signature_Wed__12_Apr_2006_11_29_56_-0400_kFkHWaC2VD3ALs9O
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Hello,
> I was improving the changes to make the get/putwschar functions not
> use void pointers as suggested by drochner@ when I noticed an ugly
> issue.
>=20
> With the previous code, you could only get/put characters from the
> screen you owned. I.e., if you opened /dev/ttyE0, you could only
> get/set its characters, no matter if it was active or not.
The ioctl() and mmap() methods should really, really know which device
node they're being called from. Stuff like colour maps, read/write
characters and so on should work on individual screens, not the whole
thing.
have fun
Michael
--Signature_Wed__12_Apr_2006_11_29_56_-0400_kFkHWaC2VD3ALs9O
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)
iQEVAwUBRD0c9MpnzkX8Yg2nAQI6Rgf/YuP7Ert9Gr+RpRlN+Ah644twm4bEBLi2
Ib1sy/5ToO92Bev0EqtW3+d4giEROhalx83RdbPH9qAkMdA/kfj2TpDzPMQKSIG5
f5yhpsKgqqAg9eCpSkmN/Uzm6Ef6ANzpZEDpMRDmIkMJvYhrl7+rfMwmf/P4bl8K
+mDz3v3DJtB5M8UDZ966PxeBADK1ja+pHPzxmdqbXP7Tzw+EDMhm2dNc7MNR/fwX
AExcTxOXX6iUloGZ0cXYLslPpgSuVSV6XdnlgpESrqYsqQYUGGJyjtwv4UlW8Vn7
i8cAPSceBiWSxzNsjXhMjOwD+r1p/K1aTwUflR+B0NZisxXfs/PJ1g==
=flPh
-----END PGP SIGNATURE-----
--Signature_Wed__12_Apr_2006_11_29_56_-0400_kFkHWaC2VD3ALs9O--