Callout devices

Richard B. Johnson (root@chaos.analogic.com)
Mon, 11 Mar 2002 13:50:00 -0500 (EST)


I ended up deleting the name of the person who asked...
/dev/cua0....4 devices have been obsolete for some time.
One is supposed to open a serial device as:

if((fd = open(modem, O_RDWR|O_NDELAY, 0)) == FAIL)
ERRORS;
if((flags = fcntl(fd, F_GETFL, 0)) == FAIL)
ERRORS;
flags &= ~O_NDELAY;
if(fcntl(fd, F_SETFL, flags) == FAIL)
ERRORS;

This allows one to set whatever terminal parameters are necessary
for the modem line, typically "raw", no interpretation, no
echo, and hardware flow-control.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).

Bill Gates? Who?

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