From: Fred Roy <froy@gr.osf.org>
Subject: Re: ircII & more fixes.
Date: Mon, 26 Feb 96 11:19:54 +0100 [thread overview]
Message-ID: <199602261019.FAA05805@postman.osf.org> (raw)
In-Reply-To: <199602250408.FAA18555@father.ludd.luth.se>
>>>>> On Sun, 25 Feb 1996 05:08:56 +0100 (MET), Mikael Nykvist
>>>>> <viper@ludd.luth.se> says:
Mikael >The more patch is just a "quickhack" which
Mikael>replaces termio->termios, TCGETA->TCGETS,TCSETA->TCSETS...
Mikael> Howdy! As I promised one week ago, I should clean up my
Mikael> patches and make 'em availble.. Ofcourse, maybe the best
Mikael> solution still is a kernel solution...
>>>>> On the same day, David Mosberger-Tang <davidm@AZStarNet.com> replies:
David> No, since there is nothing wrong with the kernel, I don't think it
David> will change w.r.t. termio handling. Best thing to do is probably to
David> use termios and termios only. (See my earlier mail and Dave Miller's
David> follow up as to why the kernel isn't broken.)
Sorry to insist David, there is probably no need for kernel changes, but
perhaps some in system header files: if the modern (e.g. RedHat) Linux/Alpha
<sys/ioctl.h> still includes <termios.h>, it does not fit with a source which
includes both <sys/ioctl.h> and <termio.h> ... since with Linux/Alpha the uses of
<termio.h> and of <termios.h> are incompatible [cf. the `_IS_TERMIO' setting in
<termio.h> and its testing in <termios.h>]. So, for example, one could change
<sys/ioctl.h> as follow:
+ #ifdef __alpha__
+ #ifdef _IS_TERMIO
#include <termios.h>
+ #endif /* _IS_TERMIO */
+ #else /* ! __alpha__ */
#include <termios.h>
+ #endif /* __alpha__ */
But this does not solve anything unless <termio.h> is included *before*
<sys/ioctl.h>; so I suggest a harder fix in <sys/ioctl.h>:
+ #ifndef __alpha__
#include <termios.h>
+ #endif /* !__alpha__ */
(Anyway I agree with Mikael & David to forget as much as possible <termio.h>
and rewrite things using <termios.h> instead.)
fred
next prev parent reply other threads:[~1996-02-26 10:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-02-25 4:08 ircII & more fixes Mikael Nykvist
1996-02-26 10:19 ` Fred Roy [this message]
1996-02-26 12:36 ` Linus Torvalds
-- strict thread matches above, loose matches on Subject: below --
1996-02-25 6:40 David Mosberger-Tang
1996-02-26 15:18 David Mosberger-Tang
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox