xref: /third_party/rust/crates/rustix/src/fs/getpath.rs
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/rust/crates/rustix/src/fs/
1b8a62b91Sopenharmony_ciuse crate::ffi::CString;
2b8a62b91Sopenharmony_ciuse crate::{backend, io};
3b8a62b91Sopenharmony_ciuse backend::fd::AsFd;
4b8a62b91Sopenharmony_ci
5b8a62b91Sopenharmony_ci/// `fcntl(fd, F_GETPATH)`
6b8a62b91Sopenharmony_ci///
7b8a62b91Sopenharmony_ci/// # References
8b8a62b91Sopenharmony_ci///  - [Apple]
9b8a62b91Sopenharmony_ci///
10b8a62b91Sopenharmony_ci/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html
11b8a62b91Sopenharmony_ci#[inline]
12b8a62b91Sopenharmony_cipub fn getpath<Fd: AsFd>(fd: Fd) -> io::Result<CString> {
13b8a62b91Sopenharmony_ci    backend::fs::syscalls::getpath(fd.as_fd())
14b8a62b91Sopenharmony_ci}
15

Indexes created Thu Nov 07 10:32:03 CST 2024