* @brief Sets the input baud rate in a termios structure. * @param tio Pointer to a struct termios where the input baud rate will be set. * @param speed Input baud rate to be set. * @return Upon successful completion, returns 0; otherwise, returns -1 and sets errno to indicate the error. * * @note This function sets the input baud rate in the termios structure pointed to by tio. *
| 160 | * without making any changes to the termios structure. |
| 161 | */ |
| 162 | int cfsetispeed(struct termios *tio, speed_t speed) |
| 163 | { |
| 164 | return speed ? cfsetospeed(tio, speed) : 0; |
| 165 | } |
| 166 | |
| 167 | /** |
| 168 | * @brief Sends a break signal on a terminal. |