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::SuspendOutput] → TCOOFF (0),
[FlowAction::ResumeOutput] → TCOON (1), [FlowAction::SuspendInput] →
TCIOFF (2, émet un STOP), [FlowAction::ResumeInput] → TCION (3, émet
un START).
§Errors
- [
Errno::ENOTTY] :fdn’est pas un terminal. - [
Errno::EBADF] :fdn’est pas un descripteur valide.