Skip to main content

tcflow

Function tcflow 

Source
pub fn tcflow(fd: BorrowedFd<'_>, action: FlowAction) -> Result<(), Errno>
Expand description

tcflow (TCXONC) — suspend ou reprend le flux d’entrée ou de sortie de fd.

Le mapping FlowAction → argument entier se fait par un match exhaustif (ADR-021 conv. 3) : FlowAction::SuspendOutputTCOOFF (0), FlowAction::ResumeOutputTCOON (1), FlowAction::SuspendInputTCIOFF (2, émet un STOP), FlowAction::ResumeInputTCION (3, émet un START).

§Errors