(fd: Fd)
| 156 | #[cfg(not(target_os = "espidf"))] |
| 157 | #[inline] |
| 158 | pub fn tcdrain<Fd: AsFd>(fd: Fd) -> io::Result<()> { |
| 159 | backend::termios::syscalls::tcdrain(fd.as_fd()) |
| 160 | } |
| 161 | |
| 162 | /// `tcflush(fd, queue_selector)`—Wait until all pending output has been |
| 163 | /// written. |