[PATCH] glob: Simplify the interface for the GLOB_ALTDIRFUNC callback gl_readdir

Florian Weimer fweimer@redhat.com
Thu Apr 7 15:53:00 GMT 2016


Previously, application code had to set up d_ino and d_namlen members
if the platform supported them, involving conditional compilation.
The changes cause glob to ignore d_ino in GLOB_ALTDIRFUNC mode, and
always rely on the string length instead of using d_namlen.  DT_UNKNOWN
is zero, so zero-initialization of struct dirent will set the d_type
member to a conservative value.

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-glob-Simplify-the-interface-for-the-GLOB_ALTDIRFUNC-.patch
Type: text/x-patch
Size: 6647 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160407/3b4f12ac/attachment.bin>


More information about the Libc-alpha mailing list