[Fontconfig] How necessary is 'scandir'?

Akira TAGOH akira at tagoh.org
Tue Feb 10 02:36:53 PST 2015

On Tue, Feb 10, 2015 at 7:15 PM, aixtools <aixtools at gmail.com> wrote:

> sys/dir.h:extern int scandir(const char *, struct dirent ***, int (*)(),
> int (*)());

That isn't a reliable enough. if the arguments for filter and sorter
callback functions is different to what we expects, that will crashes then.
I've attached a patch that behaves similarly with the hand-made
scandir-like function. please test if it works on AIX.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20150210/1481f7b3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-a-build-fail-on-some-non-POSIX-platforms.patch
Type: text/x-patch
Size: 3370 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20150210/1481f7b3/attachment.bin>

More information about the Fontconfig mailing list