Function cvt_r

pub fn cvt_r<T, F>(f: F) -> Result<T>
where
    T: IsMinusOne,
    F: FnMut() -> T,

-1 → look at errno → retry on EINTR. Otherwise Ok()-wrap the closure return value.