(fd: BorrowedFd<'_>, dirent: &mut [u8])
| 1280 | #[cfg(feature = "alloc")] |
| 1281 | #[inline] |
| 1282 | pub(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] |
| 1289 | pub(crate) fn getdents_uninit( |