* @brief Controls the terminal flow control. * @param fd File descriptor of the terminal device. * @param action Action to be taken for flow control (TCOOFF, TCOON, TCIOFF, or TCION). * @return Upon successful completion, returns 0; otherwise, returns -1 and sets errno to indicate the error. * * @note This function controls the flow of data on the terminal device specified by the fi
| 215 | * If the ioctl operation fails, errno is set to indicate the error, and the function returns -1. |
| 216 | */ |
| 217 | int tcflow(int fd, int action) |
| 218 | { |
| 219 | return ioctl(fd, TCXONC, (void*)(rt_ubase_t)action); |
| 220 | } |
| 221 | |
| 222 | /** |
| 223 | * @brief Waits until all output written to the terminal is transmitted. |