MCPcopy Index your code
hub / github.com/RustPython/RustPython / tcdrain

Function tcdrain

crates/stdlib/src/termios.rs:246–249  ·  view source on GitHub ↗
(fd: i32, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

244
245 #[pyfunction]
246 fn tcdrain(fd: i32, vm: &VirtualMachine) -> PyResult<()> {
247 termios::tcdrain(fd).map_err(|e| termios_error(e, vm))?;
248 Ok(())
249 }
250
251 #[pyfunction]
252 fn tcflush(fd: i32, queue: i32, vm: &VirtualMachine) -> PyResult<()> {

Callers

nothing calls this directly

Calls 1

termios_errorFunction · 0.85

Tested by

no test coverage detected