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

Re: termios, /dev/aux



>   HOWEVER: sz tries to open /dev/tty. Question #1: I would say that for us,
>   this should be /dev/aux, ok? open() calls unx2dos, which translates that
>   to AUX:. Then, it tries a call to Fattrib(), which of course fails.
>   -> I can't open() "AUX:". I guess that this is a bug :-)
> 
> Hm. Previous versions of zmodem just checked if stdin and stdout isatty().

Hm, I don't understand that. In which situation won't stdin be a tty? 

> That let you run zmodem both during a dial-up terminal session, and from
> a local session directed to anywhere else. I think this is the correct &
> most desirable behavior... I've been hacking up Bammi's old Zmodem sources
> along these lines, to eliminate the distinction between the "STANDALONE" and
> "REMOTE" versions. Zmodem shouldn't mess with tty speeds, parity, or
> whatever, it should just set cooked or raw mode on file descriptor 1 as
> needed. Some other program should have done the real conditioning of the
> line already.
> 
> (My opinions only, obviously...)
>   -- Howard
> 

Agreed. It was more of question of software portability -- I just wanted to
check how complicated it would be (in fact, I'm very happy with CoNnect's
builtin ZModem).

So the question still is: why can't I open() `AUX:' when MiNT is not present?

-- 
---------------------------------------------------
Julian F. Reschke, Hensenstr. 142, D-48161 Muenster
 eMail: reschke@math.uni-muenster.de jr@ms.maus.de
___________________________________________________