From mint-bounce@lists.fishpool.fi Mon Apr 19 09:14:46 2010 Message-ID: <4BCC5679.506@freesbee.fr> Date: Mon, 19 Apr 2010 15:11:21 +0200 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: mint@lists.fishpool.fi Subject: [MiNT] /dev/tty to CON: Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id o3JDEeFZ012279 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