Lines Matching +full:bare +full:- +full:fs
20 /// This is a lower-level interface than `std::fs::ReadDir`. Notable differences:
40 ) -> Result<Self> { in open()
51 ) -> Result<Self> { in openat()
56 /// Converts from a descriptor-based object, closing the descriptor on success or failure.
58 pub fn from<F: IntoRawFd>(fd: F) -> Result<Self> { in from()
64 pub fn from_fd(fd: RawFd) -> Result<Self> { in from_fd()
76 pub fn iter(&mut self) -> Iter { in iter()
82 // https://www.gnu.org/software/libc/manual/html_node/Reading_002fClosing-Directory.html,
86 // `Dir` is safe to pass from one thread to another, as it's not reference-counted.
90 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
107 fn next(dir: &mut Dir) -> Option<Result<Entry>> { in next()
112 // fixed-sized buffers (and libc's dirent seems to be sized so this is appropriate). in next()
138 fn next(&mut self) -> Option<Self::Item> { in next()
156 fn next(&mut self) -> Option<Self::Item> { in next()
164 fn as_raw_fd(&self) -> RawFd { in as_raw_fd()
184 /// fn ls_upper(dirname: &str) -> impl Iterator<Item=String> {
189 fn into_iter(self) -> Self::IntoIter { in into_iter()
194 /// A directory entry, similar to `std::fs::DirEntry`.
216 /// Unix-domain socket
225 pub fn ino(&self) -> u64 { in ino()
242 /// Returns the bare file name of this directory entry without any other leading path component.
243 pub fn file_name(&self) -> &ffi::CStr { in file_name()
252 pub fn file_type(&self) -> Option<Type> { in file_type()