Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/rustix/src/fs/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 384 B image not shown  

Quelle  getpath.rs   Sprache: unbekannt

 
use crate::ffi::CString;
use crate::{backend, io};
use backend::fd::AsFd;

/// `fcntl(fd, F_GETPATH)`
///
/// # References
///  - [Apple]
///
/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html
#[inline]
pub fn getpath<Fd: AsFd>(fd: Fd) -> io::Result<CString> {
    backend::fs::syscalls::getpath(fd.as_fd())
}

[ Dauer der Verarbeitung: 0.19 Sekunden  (vorverarbeitet)  ]