tcflush(int fd, int queue_selector)
discards data written to the object referred to by fd but not transmitted, or data received but not read, depending on the value of
queue_selector:
TCIFLUSH
flushes data received but not read.
TCOFLUSH
flushes data written but not transmitted.
TCIOFLUSH
flushes both data received but not read, and data written but not transmitted.
本文深入探讨了tcflush函数的功能及其在不同情况下如何操作数据缓冲区,包括TCIFLUSH、TCOFLUSH和TCIOFLUSH三种模式。
1433

被折叠的 条评论
为什么被折叠?



