summaryrefslogtreecommitdiffstats
path: root/direntry.3
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2013-02-04 00:08:53 +0100
committermanuel <manuel@mausz.at>2013-02-04 00:08:53 +0100
commit69aec538b456402170dc723af417ba5c05389c32 (patch)
treee6f34c543f17c6392447ea337b2e2868212424d1 /direntry.3
downloadqmail-69aec538b456402170dc723af417ba5c05389c32.tar.gz
qmail-69aec538b456402170dc723af417ba5c05389c32.tar.bz2
qmail-69aec538b456402170dc723af417ba5c05389c32.zip
qmail 1.03 import
Diffstat (limited to 'direntry.3')
-rw-r--r--direntry.336
1 files changed, 36 insertions, 0 deletions
diff --git a/direntry.3 b/direntry.3
new file mode 100644
index 0000000..8928fbb
--- /dev/null
+++ b/direntry.3
@@ -0,0 +1,36 @@
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)