Source code

Revision control

Copy as Markdown

Other Tools

use crate::ffi::CString;
use crate::{backend, io};
use backend::fd::AsFd;
/// `fcntl(fd, F_GETPATH)`
///
/// # References
/// - [Apple]
///
#[inline]
pub fn getpath<Fd: AsFd>(fd: Fd) -> io::Result<CString> {
backend::fs::syscalls::getpath(fd.as_fd())
}