Re: ircII & more fixes.

Linus Torvalds (torvalds@cs.Helsinki.FI)
Mon, 26 Feb 1996 14:36:11 +0200 (EET)

>
> 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



Feedback | Store | News | Support | Product Errata | About Us | Linux Info | Search | JumpWords
No Frames | Show Frames

Copyright © 1995-1997 Red Hat Software. Legal notices