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

Function tcsendbreak

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

Source from the content-addressed store, hash-verified

238
239 #[pyfunction]
240 fn tcsendbreak(fd: i32, duration: i32, vm: &VirtualMachine) -> PyResult<()> {
241 termios::tcsendbreak(fd, duration).map_err(|e| termios_error(e, vm))?;
242 Ok(())
243 }
244
245 #[pyfunction]
246 fn tcdrain(fd: i32, vm: &VirtualMachine) -> PyResult<()> {

Callers

nothing calls this directly

Calls 1

termios_errorFunction · 0.85

Tested by

no test coverage detected