MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / getdents

Function getdents

src/backend/linux_raw/fs/syscalls.rs:1282–1286  ·  view source on GitHub ↗
(fd: BorrowedFd<'_>, dirent: &mut [u8])

Source from the content-addressed store, hash-verified

1280#[cfg(feature = "alloc")]
1281#[inline]
1282pub(crate) fn getdents(fd: BorrowedFd<'_>, dirent: &mut [u8]) -> io::Result<usize> {
1283 let (dirent_addr_mut, dirent_len) = slice_mut(dirent);
1284
1285 unsafe { ret_usize(syscall!(__NR_getdents64, fd, dirent_addr_mut, dirent_len)) }
1286}
1287
1288#[inline]
1289pub(crate) fn getdents_uninit(

Callers 1

read_moreMethod · 0.85

Calls 2

slice_mutFunction · 0.85
ret_usizeFunction · 0.50

Tested by

no test coverage detected