(path: P, reuse: B)
| 112 | #[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] |
| 113 | #[inline] |
| 114 | pub fn readlink<P: path::Arg, B: Into<Vec<u8>>>(path: P, reuse: B) -> io::Result<CString> { |
| 115 | path.into_with_c_str(|path| _readlink(path, reuse.into())) |
| 116 | } |
| 117 | |
| 118 | #[cfg(feature = "alloc")] |
| 119 | fn _readlink(path: &CStr, mut buffer: Vec<u8>) -> io::Result<CString> { |