Couple of questions, btw, this works fine on other unix's
1) Why do cfsetispeed/cfsetospeed not set the appropriate fields in
the termios struct?
2) Why doesn't tcgetattr fill out the baud rate fields?
Thanks, Bruce.
// These lines do not set Termios_p.c_ispeed/c_ospeed !!!
cfsetispeed( &Termios_p, B9600 );
cfsetospeed( &Termios_p, B9600 );
// These do !!!
Termios_p.c_ispeed = B9600;
Termios_p.c_ospeed = B9600;
if (tcsetattr(fd, TCSAFLUSH, &Termios_p) < 0) {
return -1;
}
/* check to be sure tcsetattr worked -- completely */
struct termios Tp;
tcgetattr( fd, &Tp );
Termios_p.c_i/ospeed elements are not set in Tp ??
bedge.vcf < 1K Download |