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

Function tcflush

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

Source from the content-addressed store, hash-verified

250
251 #[pyfunction]
252 fn tcflush(fd: i32, queue: i32, vm: &VirtualMachine) -> PyResult<()> {
253 termios::tcflush(fd, queue).map_err(|e| termios_error(e, vm))?;
254 Ok(())
255 }
256
257 #[pyfunction]
258 fn tcflow(fd: i32, action: i32, vm: &VirtualMachine) -> PyResult<()> {

Callers

nothing calls this directly

Calls 1

termios_errorFunction · 0.85

Tested by

no test coverage detected