[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] /dev/tty to CON:



Hello.

Some standard programs use open("/dev/tty") to write directly to the terminal, in case of redirections. This feature is especially used by the -fstack-protector function of GCC.

Of course this fails with TOS, but if I'm not wrong the special filename "CON:" is exactly the same.

Would it be wise to make a special case in open() inside the MiNTLib, and transparently replace /dev/tty to CON: when running on single TOS ?

The alternative is to patch all the programs using /dev/tty and expected to run on single TOS.

--
Vincent Rivière