[PATCH v4 04/13] support: Add <support/readdir.h>
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Mon Sep 9 13:19:53 GMT 2024
On 09/09/24 09:56, Florian Weimer wrote:
> * Adhemerval Zanella Netto:
>
>> On 30/08/24 16:52, Florian Weimer wrote:
>>> It allows to read directories using the six readdir variants
>>> without writing type-specific code or using skeleton files
>>> that are compiled four times.
>>>
>>> The readdir_r subtest for support_readdir_expect_error revealed
>>> bug 32124.
>>
>> Should we just build this for SHARED? Or maybe just support SUPPORT_READDIR,
>> and SUPPORT_READDIR64 such scenario?
>
> There is no SHARED build, only libsupport_nonshared.a. To me, using
> dlopen seems the simplest approach because the compat symbol has the
> same version everywhere if it actually exists.
>
> We cannot use a weak symbol because we do not support weak versions.
Yeah, I am aware. I am just thinking if there is a better way to warn a
possible issue if these interface are used on static tests. It should be
ok for now.
More information about the Libc-alpha
mailing list