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

Function getdents_uninit

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

Source from the content-addressed store, hash-verified

1287
1288#[inline]
1289pub(crate) fn getdents_uninit(
1290 fd: BorrowedFd<'_>,
1291 dirent: &mut [MaybeUninit<u8>],
1292) -> io::Result<usize> {
1293 let (dirent_addr_mut, dirent_len) = slice_mut(dirent);
1294
1295 unsafe { ret_usize(syscall!(__NR_getdents64, fd, dirent_addr_mut, dirent_len)) }
1296}
1297
1298#[inline]
1299pub(crate) fn utimensat(

Callers

nothing calls this directly

Calls 2

slice_mutFunction · 0.85
ret_usizeFunction · 0.50

Tested by

no test coverage detected