This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
BZ 6894: Enhance d_namlen description
- From: Andreas Jaeger <aj at suse dot com>
- To: libc-alpha <libc-alpha at sourceware dot org>
- Date: Sun, 08 Apr 2012 16:55:56 +0200
- Subject: BZ 6894: Enhance d_namlen description
d_namlen is not really marked as optional, let's explain this,
Ok to commit?
Andreas
2012-04-08 Andreas Jaeger <aj@suse.de>
[BZ #6894]
* manual/filesys.texi (Directory Entries): Mention that d_namlen
is an optional BSD extension.
diff --git a/manual/filesys.texi b/manual/filesys.texi
index 04f4376..b9c6fee 100644
--- a/manual/filesys.texi
+++ b/manual/filesys.texi
@@ -247,9 +247,11 @@ systems, for most files this the same as the
@code{st_ino} member that
@code{stat} will return for the file. @xref{File Attributes}.
@item unsigned char d_namlen
-This is the length of the file name, not including the terminating null
-character. Its type is @code{unsigned char} because that is the integer
-type of the appropriate size
+This is the length of the file name, not including the terminating
+null character. Its type is @code{unsigned char} because that is the
+integer type of the appropriate size. This member is a BSD extension.
+The symbol @code{_DIRENT_HAVE_D_NAMLEN} is defined if this member is
+available.
@item unsigned char d_type
This is the type of the file, possibly unknown. The following constants
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126