Deleted Added
full compact
33c33
< .\" $FreeBSD: head/lib/libc/gen/directory.3 50476 1999-08-28 00:22:10Z peter $
---
> .\" $FreeBSD: head/lib/libc/gen/directory.3 53872 1999-11-29 06:12:22Z wes $
40a41
> .Nm readdir_r ,
53a55,56
> .Ft int
> .Fn readdir_r "DIR *dirp" "struct dirent *entry" "struct dirent **result"
92a96,111
> .Fn readdir_r
> provides the same functionality as
> .Fn readdir ,
> but the caller must provide a directory
> .Fa entry
> buffer to store the results in. If the read succeeds,
> .Fa result
> is pointed at the
> .Fa entry ;
> upon reaching the end of the directory
> .Fa result
> is set to
> .Dv NULL .
> .Fn readdir_r
> returns 0 on success or an error number to indicate failure.
> .Pp