public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug manual/6895] New: dirent d_type does indicate symlinks
@ 2008-09-17 2:16 siward at wanadoo dot nl
0 siblings, 0 replies; only message in thread
From: siward at wanadoo dot nl @ 2008-09-17 2:16 UTC (permalink / raw)
To: glibc-bugs
Hi again everyone,
In manual, in description of struct dirent,
in description of member d_type,
several possible symbolic constants for various types are mentioned,
but there is not one for symlinks,
which gives impression that struct dirent doesn't have that info,
so user would have to use an extra lstat().
However, i find that for symlinks, whether dangling or not,
d_type member has value 10 .
Looking in /usr/include/dirent.h, i find
DT_LNK = 10
I also find there
DT_WHT = 14
but i have no idea what it represents.
(these are enclosed in an #ifdef __USE_BSD ,
but since i did not explicitly define that myself,
i presume that gets defined by GNU_SOURCE or USE_GNU)
So it would be nice if someone would add that info.
--
Summary: dirent d_type does indicate symlinks
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: manual
AssignedTo: roland at gnu dot org
ReportedBy: siward at wanadoo dot nl
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6895
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-17 2:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-17 2:16 [Bug manual/6895] New: dirent d_type does indicate symlinks siward at wanadoo dot nl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).