.Ft int
.Fn getdirentries "int fd" "char *buf" "int nbytes" "long *basep"
.Sh DESCRIPTION
-.Fn Getdirentries
+.Fn getdirentries
reads directory entries from the directory
referenced by the file descriptor
.Fa fd
A value of zero is returned when
the end of the directory has been reached.
.Pp
-.Fn Getdirentries
+.Fn getdirentries
writes the position of the block read into the location pointed to by
.Fa basep .
Alternatively, the current position pointer may be set and retrieved by
.Va errno
is set to indicate the error.
.Sh ERRORS
-.Fn Getdirentries
+.Fn getdirentries
will fail if:
.Bl -tag -width Er
.It Bq Er EBADF