MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / tcdrain

Function tcdrain

src/termios/tc.rs:158–160  ·  view source on GitHub ↗
(fd: Fd)

Source from the content-addressed store, hash-verified

156#[cfg(not(target_os = "espidf"))]
157#[inline]
158pub 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.

Callers 1

test_termios_drainFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 1

test_termios_drainFunction · 0.40