diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-04-29 09:33:07 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2016-05-12 09:44:15 +0200 |
commit | 5ae82aa4bf45cdaafeb1c25e09897eabff210de9 (patch) | |
tree | da2f2c82722a20c91358a37c089bce85c797d0c7 /NEWS | |
parent | 05cc5bbd3cf037daee848c11792a6471de01298d (diff) | |
download | glibc-5ae82aa4bf45cdaafeb1c25e09897eabff210de9.zip glibc-5ae82aa4bf45cdaafeb1c25e09897eabff210de9.tar.gz glibc-5ae82aa4bf45cdaafeb1c25e09897eabff210de9.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 'NEWS')
0 files changed, 0 insertions, 0 deletions