Lines Matching refs:cntrl
482 struct termios cntrl;
484 (void)tcgetattr(FD, &cntrl);
485 (void)cfsetospeed(&cntrl, spd);
486 (void)cfsetispeed(&cntrl, spd);
487 cntrl.c_cflag &= ~(CSIZE|PARENB);
488 cntrl.c_cflag |= CS8;
490 cntrl.c_cflag |= CLOCAL;
492 cntrl.c_cflag |= CRTSCTS;
493 cntrl.c_iflag &= ~(ISTRIP|ICRNL);
494 cntrl.c_oflag &= ~OPOST;
495 cntrl.c_lflag &= ~(ICANON|ISIG|IEXTEN|ECHO);
496 cntrl.c_cc[VMIN] = 1;
497 cntrl.c_cc[VTIME] = 0;
499 cntrl.c_iflag |= IXOFF;
500 return tcsetattr(FD, TCSAFLUSH, &cntrl);