about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-04-29 09:33:07 +0200
committerAurelien Jarno <aurelien@aurel32.net>2016-05-11 14:54:57 +0200
commitd14837f6edd39d5c79c4cda7f7775c8f5e0ca20a (patch)
treed8959f403551af948a7a2b58888757ddbb9c71cb /nptl
parentf95984beb2d3d61c71c14c10cdc5ab8fda321dec (diff)
downloadglibc-d14837f6edd39d5c79c4cda7f7775c8f5e0ca20a.tar.gz
glibc-d14837f6edd39d5c79c4cda7f7775c8f5e0ca20a.tar.xz
glibc-d14837f6edd39d5c79c4cda7f7775c8f5e0ca20a.zip
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 'nptl')
0 files changed, 0 insertions, 0 deletions