[klibc] [PATCH 1/3] klibc: Add scandir() and alphasort() support.

Mike Waychison mikew at google.com
Tue Aug 2 14:34:28 PDT 2011


On Tue, Aug 2, 2011 at 2:07 PM, maximilian attems <max at stro.at> wrote:
> On Fri, 29 Jul 2011, Mike Waychison wrote:

>> +__extern int scandir(const char *dirp, struct dirent ***namelist,
>> +                  int (*filter)(const struct dirent *),
>> +                  int (*compar)(const struct dirent **,
>> +                                const struct dirent **));
>> +
>> +int alphasort(const struct dirent **a, const struct dirent **b);
>> +
>>  #endif                               /* _DIRENT_H */
>
> please no names in the header files, it breaks macros.

By "names", do you mean the argument names?  I'm happy to remove them,
though I don't quite understand why they would break macros.  Is the
worry that somebody would create a macro named "namelist" or "filter"
before including this guy?



More information about the klibc mailing list