Skip to main content

syscall

Macro syscall 

Source
macro_rules! syscall {
    (break $e:expr) => { ... };
    ($e:expr, $f:ident($fd:expr)) => { ... };
    ($e:expr) => { ... };
}
Expand description

Executes a Unix system call and converts a -1 result to the last I/O error.

The break form retries interruptions and returns std::task::Poll::Pending for WouldBlock or EINPROGRESS, otherwise returning a ready result.