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/