* @brief Sets the input and output baud rates in a termios structure. * @param tio Pointer to a struct termios where the input and output baud rates will be set. * @param speed Baud rate to be set for both input and output. * @return Upon successful completion, returns 0; otherwise, returns -1 and sets errno to indicate the error. * * @note This function is a wrapper for the cfsetos
| 268 | * The function returns the result of cfsetospeed(), which sets the baud rate for both input and output. |
| 269 | */ |
| 270 | int cfsetspeed(struct termios *tio, speed_t speed) |
| 271 | { |
| 272 | return cfsetospeed(tio, speed); |
| 273 | } |
nothing calls this directly
no test coverage detected