From: Linus Torvalds <torvalds@cs.Helsinki.FI>
Subject: Re: ircII & more fixes.
Date: Mon, 26 Feb 1996 14:36:11 +0200 (EET) [thread overview]
Message-ID: <0986eace3b6a2ce0b4f285135165e5de.axp-list@archive.invalid> (raw)
In-Reply-To: <199602261019.FAA05805@postman.osf.org>
>
> 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
next prev parent reply other threads:[~1996-02-26 12:36 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
1996-02-26 12:36 ` Linus Torvalds [this message]
-- 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