Re: [hatari-devel] Hatari Mac freeze with RS232

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

On 5/25/19 3:08 PM, Thorsten Otto wrote:
On Samstag, 25. Mai 2019 02:09:17 CEST Eero Tamminen wrote:
Current code does that change only for tty files, but for that
check it needs to call fileno() before isatty()...

Another solution might be to change the code just to use open()/close() etc
directly, without the stdio FILE*. I guess you have to do a fflush() anyway
after writing (or set the fileto unbuffered), so there is not much benefit
from using a FILE.

Benefit from using stdio is portability, primarily to Windows.


	- Eero



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/