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
Copyright © 1995-1997 Red Hat Software. Legal notices