This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] Fix the plugin search in some file systems
- From: Ian Lance Taylor <iant at google dot com>
- To: Rafael Espindola <espindola at google dot com>
- Cc: binutils at sourceware dot org, Nick Clifton <nickc at redhat dot com>, TÃrÃk Edwin <edwintorok at gmail dot com>
- Date: Fri, 05 Jun 2009 07:33:24 -0700
- Subject: Re: [patch] Fix the plugin search in some file systems
- References: <38a0d8450906050428i285f2e03ne61ebdfc31919191@mail.gmail.com>
Rafael Espindola <espindola@google.com> writes:
> TÃrÃk reported that not all file systems support the d_type field in
> "struct dirent". Reiserfs for example always returns DT_UNKNOWN.
Some operating systems do not provide a d_type field at all. The
binutils should be highly portable. You should only check the d_type
field if a configure check shows that it is present.
Ian