MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / tcflow

Function tcflow

components/libc/posix/io/termios/termios.c:217–220  ·  view source on GitHub ↗

* @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

Source from the content-addressed store, hash-verified

215 * If the ioctl operation fails, errno is set to indicate the error, and the function returns -1.
216 */
217int 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.

Callers

nothing calls this directly

Calls 1

ioctlFunction · 0.50

Tested by

no test coverage detected