(
dirfd: Fd,
path: P,
reuse: B,
)
| 100 | #[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] |
| 101 | #[inline] |
| 102 | pub fn readlinkat<P: path::Arg, Fd: AsFd, B: Into<Vec<u8>>>( |
| 103 | dirfd: Fd, |
| 104 | path: P, |
| 105 | reuse: B, |
| 106 | ) -> io::Result<CString> { |
| 107 | path.into_with_c_str(|path| _readlinkat(dirfd.as_fd(), path, reuse.into())) |
| 108 | } |
| 109 | |
| 110 | #[cfg(all(feature = "alloc", not(target_os = "redox")))] |
| 111 | #[allow(unsafe_code)] |