* ircII & more fixes.
@ 1996-02-25 4:08 Mikael Nykvist
1996-02-26 10:19 ` Fred Roy
0 siblings, 1 reply; 5+ messages in thread
From: Mikael Nykvist @ 1996-02-25 4:08 UTC (permalink / raw)
Howdy!
As I promised one week ago, I should clean up my patches and
make 'em availble.. Ofcourse, maybe the best solution still
is a kernel solution...The ircII is a "cleaner" solution with
a if defiened (linux) && defined(__alpha__) in one of the
header files. The more patch is just a "quickhack" which
replaces termio->termios, TCGETA->TCGETS,TCSETA->TCSETS...
I didn't make an srpm/rpm for util-linux avaible due to the
fact that the "original" one at ftp.redhat.com *does not* compile
straight out of the box (atleast not on redhat-2.1/axp "release"),
and I didn't have time to fix thoose errors..
I've made the following availble at: nova.campus.luth.se
ircII:
/pub/linux/alpha/patches/ircII-2.8.2.patch
/pub/linux/alpha/SRPMS/ircii-2.8.2-5.src.rpm (Complete source+patch)
/pub/linux/alpha/SRPMS/ircii-2.8.2-5.src.comments:
Wrote a small patch for fixing the termio(s) problem.
Added a symlink for the manpage.
/pub/linux/alpha/RPMS/ircii-* (precompiled binaries)
more:
/pub/linux/alpha/patches/util-linux-2.5-axp.more.patch (Small "quickhack")
Enjoy! If you have any comments about the above stuff, plz mail me!
/Mikael
--
Mikael Nykvist, viper@ludd.luth.se
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ircII & more fixes.
@ 1996-02-25 6:40 David Mosberger-Tang
0 siblings, 0 replies; 5+ messages in thread
From: David Mosberger-Tang @ 1996-02-25 6:40 UTC (permalink / raw)
>>>>> On Sun, 25 Feb 1996 05:08:56 +0100 (MET), Mikael Nykvist <viper@ludd.luth.se> said:
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...
No, since there is nothing wrong with the kernel, I don't think it
will change w.r.t. termio handling. Best thing to do is probably to
use termios and termios only. (See my earlier mail and Dave Miller's
follow up as to why the kernel isn't broken.)
--david
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ircII & more fixes.
1996-02-25 4:08 Mikael Nykvist
@ 1996-02-26 10:19 ` Fred Roy
1996-02-26 12:36 ` Linus Torvalds
0 siblings, 1 reply; 5+ messages in thread
From: Fred Roy @ 1996-02-26 10:19 UTC (permalink / raw)
>>>>> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ircII & more fixes.
1996-02-26 10:19 ` Fred Roy
@ 1996-02-26 12:36 ` Linus Torvalds
0 siblings, 0 replies; 5+ messages in thread
From: Linus Torvalds @ 1996-02-26 12:36 UTC (permalink / raw)
>
> 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>
You're certainly right: the header files do need to be changed on the alpha. On
the x86 we don't see the problem, because the character defines are the same in
both termios and termio, but on the alpha there is a large difference in
whether you include <termio.h> or <termios.h>. Right now it works correctly
only for termios.
Linux/alpha probably needs something like this in sys/termio.h:
/*
* Get the termio structures
*/
#include <linux/termios.h>
/*
* undefine the termioS numbers
*/
#undef VINTR
#undef VQUIT
#undef VERASE
#undef VKILL
#undef VEOF
#undef VMIN
#undef VEOL
#undef VTIME
#undef VEOL2
#undef VSWTC
#undef VSTART
#undef VSTOP
#undef VLNEXT
#undef VDISCARD
#undef VWERASE
#undef VREPRINT
/*
* ..and use the broken termio numbers instead
*/
#define VINTR _VINTR
#define VQUIT _VQUIT
#define VERASE _VERASE
#define VKILL _VKILL
#define VEOF _VEOF
#define VMIN _VMIN
#define VEOL _VEOL
#define VTIME _VTIME
#define VEOL2 _VEOL2
#define VSWTC _VSWTC
Something like this should work. It's not pretty, but it's as pretty as it gets
(the whole termio stuff is ugly because of old historical unix reasons: if
everybody used only termios we wouldn't have these problems)
Linus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ircII & more fixes.
@ 1996-02-26 15:18 David Mosberger-Tang
0 siblings, 0 replies; 5+ messages in thread
From: David Mosberger-Tang @ 1996-02-26 15:18 UTC (permalink / raw)
>>>>> On Mon, 26 Feb 96 11:19:54 +0100, "Fred Roy" <froy@gr.osf.org> said:
>>>>> On Sun, 25 Feb 1996 05:08:56 +0100 (MET), Mikael Nykvist
>>>>> <viper@ludd.luth.se> says:
Fred> 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
David> think it will change w.r.t. termio handling. Best thing to
David> do is probably to use termios and termios only. (See my
David> earlier mail and Dave Miller's follow up as to why the kernel
David> isn't broken.)
Fred> Sorry to insist David, there is probably no need for kernel
Fred> changes, but perhaps some in system header files: if the
Fred> modern (e.g. RedHat) Linux/Alpha <sys/ioctl.h> still includes
Fred> <termios.h>, it does not fit with a source which includes both
Fred> <sys/ioctl.h> and <termio.h> ...
Oh, yes, include file changes will happen. That's what I'm working on
right now in GNU libc. I'm not planning on making any changes to the
existing 4.6.27-based libc (unless there is a compelling reason to do
so before GNU libc is ready). There is basically one include file
that still needs some work but after that, a first release of GNU libc
for the Alpha should be in the mail shortly. The termio vs. termios
problem due to sys/ioctl.h should be gone then. There will be many
other improvements as well (not the least a sqrt() that performs
decently and profiling that *really* works and ...).
--david
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1996-02-26 15:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-02-25 6:40 ircII & more fixes David Mosberger-Tang
-- strict thread matches above, loose matches on Subject: below --
1996-02-26 15:18 David Mosberger-Tang
1996-02-25 4:08 Mikael Nykvist
1996-02-26 10:19 ` Fred Roy
1996-02-26 12:36 ` Linus Torvalds
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox