Re: cua* on kernel 2.1 and beyond

Richard B. Johnson (root@chaos.analogic.com)
Thu, 3 Dec 1998 16:38:13 -0500 (EST)


On Thu, 3 Dec 1998, Tymm Twillman wrote:

> ln -s /dev/ttyS0 /dev/cua0
>
> On Thu, 3 Dec 1998, Jim Woodward wrote:
>
> >
> > I think i read somewhere, that the cua* devices for serial
> > were going to be made obselite..
> >

The sim-link may not fix old software. The problem has been software
that just does an open("/dev/cua0", O_RDWR), this has to be changed
to open("/dev/xxx", O_RDWR|O_NDELAY) with a subsequent fcntl() to
reset this flag-bit. Otherwise, if carrier is not detected, the
open() will wait until it is. Since the code has to be modified,
might just as well change the device to the right one.

I recommend just `rm /dev/cua?` and see what breaks. You get to fix
things only once.

Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.1.128 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/