Thomas Speck wrote:
>
> tio.c_cflag = baud | CLOCAL;
How about adding CREAD?
Ciao, ET.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read
On Fri, 22 Jun 2001, Thomas Speck wrote:
>
> Hi !
> I have a problem with reading from a serial port using select() under
> 2.4.5. What I am doing is basically the following:
>
> fd_set readfds;
> struct timeval timeout;
> int s;
>
> serialfd = open("/dev/ttyS0", O_RDWR );
>
> init_serial(B9
Hi !
I have a problem with reading from a serial port using select() under
2.4.5. What I am doing is basically the following:
fd_set readfds;
struct timeval timeout;
int s;
serialfd = open("/dev/ttyS0", O_RDWR );
init_serial(B9600);
timeout.tv_sec = 2; /* ! */
timeout.tv_usec = 0;
FD_ZERO(&r
3 matches
Mail list logo