Skip to main content

ioctl

Macro ioctl 

Source
macro_rules! ioctl {
    ($fd:expr, $kind:expr) => { ... };
    ($fd:expr, $kind:expr, $arg:expr) => { ... };
}
Expand description

A wrapper macro of ioctl. If the calling ioctl returned -1, it returns crate::error::Error corresponding to the errno.