From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25923 invoked by alias); 17 Sep 2008 02:16:12 -0000 Received: (qmail 25547 invoked by uid 48); 17 Sep 2008 02:14:56 -0000 Date: Wed, 17 Sep 2008 02:16:00 -0000 From: "siward at wanadoo dot nl" To: glibc-bugs@sources.redhat.com Message-ID: <20080917021455.6895.siward@wanadoo.nl> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug manual/6895] New: dirent d_type does indicate symlinks X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2008-09/txt/msg00045.txt.bz2 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.