From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199602161546.IAA28412@koala.azstarnet.com> Date: Fri, 16 Feb 1996 11:14:24 -0500 (EST) From: Erik Troan Subject: Re: midi player? & more In-Reply-To: <199602161447.JAA23929@postman.osf.org> On Fri, 16 Feb 1996, Fred Roy wrote: > I did not know that `more' was broken on Red Hat's Linux/Alpha (because > I am still using BLADE_0.3...), but I noticed that BLADE's /bin/more was > looking much to `less'. Anyway I've made some changes inside the source > code for `more' which makes it work on Linux/Alpha (i.e. on BLADE_0.3, > at least). Perhaps I just reivented the wheel... Well, more on Red Hat is less, as it is on Blade. > Then I noticed that ioctl() was called with (sometimes) a pointer to a > `struct termio' as 3rd argument, while (on Linux/Alpha/BLADE_0.3) > the Vxx array indexes differed beetween termio.c_cc[] and termios.c_cc[] > ... and in system headers VMIN * & co are overriden to suit the > `struct termio' variants only when is included ... and it's > not the case in more.c. > > So I've changed in my more.c file all occurences of c_cc[Vxx] by > c_cc[_Vxx] (Vxx in {VKILL, VERASE, VTIME, VMIN}) and now it seems ok. > > I don't kwnow if the various <*/termio*.h> and headers have > been changed for Linux/Alpha till the BLADE_0.3 release; if not, would > some housekeeping be a good idea ? You may have just saved me a lot of trouble... David MT should be able to give a yay or nay to this patch. Erik ------------------------------------------------------------------------------- Always hoped that I'd be an apostle. Knew that I would make it if I tried. Then when we retire we can write the gospels so they'll all talk about us when we die. - "The Last Supper" from Jesus Christ Superstar | Erik Troan = http://sunsite.unc.edu/ewt/ = ewt@sunsite.unc.edu |