Retrieves entries in a opened directory.
fn getdents(fd: i32, buf: &mut [u8]) -> i32
An open directory file descriptor.
The buffer in which the entries will be stored.
Returns the number of bytes read or an error value.
getdents(2)