Function lrs::syscall::getdents

Retrieves entries in a opened directory.

Syntax

fn getdents(fd: i32, buf: &mut [u8]) -> i32

Arguments

NameDescription
fd

An open directory file descriptor.

buf

The buffer in which the entries will be stored.

Return value

Returns the number of bytes read or an error value.

See also