termios_p->c_ispeed = speed;
libc_hidden_def (cfsetospeed)/* Set the input baud rate stored in *TERMIOS_P to SPEED.   Although for Linux there is no difference between input and output   speed, the numerical 0 is a special case for the input baud rate.  It   should set the input baud rate to the output baud rate.  */intcfsetispeed (termios_p, speed)     struct termios *termios_p;     speed_t speed;{  if ((speed & ~CBAUD) != 0      && (speed < B57600 || speed > __MAX_BAUD))    {      __set_errno (EINVAL);      return -1;    }  if (speed == 0)    termios_p->c_iflag |= IBAUD0;  else    {      termios_p->c_iflag &= ~IBAUD0;      termios_p->c_cflag &= ~(CBAUD | CBAUDEX);      termios_p->c_cflag |= speed;    }  return 0;}