diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-04-29 09:33:07 +0200 |
---|---|---|
committer | Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com> | 2016-05-24 11:35:59 -0300 |
commit | 75cf90eb20d98270ea3903baefb75647ae61fd3f (patch) | |
tree | 96195b9d71ead0f24174d761b472418a5dd9673c /elf/multiload.c | |
parent | 1029487ab3b2ef65ec9364cb15c44ee9c571224f (diff) | |
download | glibc-75cf90eb20d98270ea3903baefb75647ae61fd3f.zip glibc-75cf90eb20d98270ea3903baefb75647ae61fd3f.tar.gz glibc-75cf90eb20d98270ea3903baefb75647ae61fd3f.tar.bz2 |
glob: Simplify the interface for the GLOB_ALTDIRFUNC callback gl_readdir
Previously, application code had to set up the d_namlen member if
the target supported it, involving conditional compilation. After
this change, glob will use the length of the string in d_name instead
of d_namlen to determine the file name length. All glibc targets
provide the d_type and d_ino members, and setting them as needed for
gl_readdir is straightforward.
Changing the behavior with regards to d_ino is left to a future
cleanup.
(cherry picked from commit 137fe72eca6923a00381a3ca9f0e7672c1f85e3f)
Diffstat (limited to 'elf/multiload.c')
0 files changed, 0 insertions, 0 deletions