debian/rules: Use `git' potty wrapper.
[qmail] / direntry.3
CommitLineData
2117e02e
MW
1.TH direntry 3
2.SH NAME
3direntry \- read directory entries
4.SH SYNTAX
5.B #include <direntry.h>
6
7DIR *\fBopendir\fP(\fIfn\fR);
8
9struct direntry *\fBreaddir\fP(\fIdir\fP);
10
11void \fBclosedir\fP(\fIdir\fP);
12
13DIR *\fIdir\fR;
14.br
15char *\fIfn\fR;
16.SH DESCRIPTION
17The point of
18.B direntry.h
19is to provide a uniform interface to BSD's
20.B sys/dir.h
21and POSIX's
22.BR dirent.h .
23
24The
25.B readdir
26interface is highly unsatisfactory.
27It does not distinguish between I/O errors and end-of-directory.
28It uses
29.BR malloc .
30The return type for
31.B closedir
32varies: some implementations return the
33.B close
34return value.
35.SH "SEE ALSO"
36readdir(3)