aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2008-10-29 09:31:40 -0500
committerMichael Kerrisk <mtk.manpages@gmail.com>2008-10-29 14:54:27 -0500
commit2250b3eea518329452606abe0134c4908fd60a2d (patch)
tree226b8aa39de2c63906b919d0b79c43392ebd4402
parent17edb54cdc008a0c3409a9016cf4b3bfe852172b (diff)
downloadman-pages-2250b3eea518329452606abe0134c4908fd60a2d.tar.gz
readdir.3: Fix text relating to DT_UNKNOWN and 'd_type' support
(This mirrors the previous change to getdents.2) Some file systems provide partial support for 'dt_type', returning DT_UNKNOWN for cases they don't support. Update the discussion of 'd_type' and DT_UNKNOWN to support this. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/readdir.311
1 files changed, 6 insertions, 5 deletions
diff --git a/man3/readdir.3 b/man3/readdir.3
index 8d8e2774ca..f4f084f7f9 100644
--- a/man3/readdir.3
+++ b/man3/readdir.3
@@ -31,7 +31,7 @@
.\" Rework discussion of non-standard structure fields.
.\" 2008-09-11, mtk, Document readdir_r().
.\"
-.TH READDIR 3 2008-09-29 "" "Linux Programmer's Manual"
+.TH READDIR 3 2008-10-28 "" "Linux Programmer's Manual"
.SH NAME
readdir, readdir_r \- read a directory
.SH SYNOPSIS
@@ -199,12 +199,13 @@ If the file type could not be determined, the value
is returned in
.IR d_type .
-Curently,
+Currently,
.\" kernel 2.6.27
-only ext2, ext3, and ext4 support returning the file type in
+.\" The same sentence is in getdents.2
+only some file systems (among them: ext2, etx3, and ext4)
+have full support returning the file type in
.IR d_type .
-On other file systems,
-this field is always set to
+All applications must properly handle a return of
.BR DT_UNKNOWN .
Since POSIX.1 does not specify the size of the