[PATCH] dynarray: Use libc_hidden_proto only for !_ISOMAC

Florian Weimer fweimer@redhat.com
Sun Jun 25 14:25:00 GMT 2017


On 06/16/2017 03:26 PM, Zack Weinberg wrote:
> On Fri, Jun 16, 2017 at 7:24 AM, Florian Weimer <fweimer@redhat.com> wrote:
>> On 06/13/2017 11:16 AM, Florian Weimer wrote:
>>> With this change, it is possible to use dynarray from non-internal
>>> tests.
>>>
>>> 2017-06-13  Florian Weimer  <fweimer@redhat.com>
>>>
>>>       * malloc/dynarray.h: Use libc_hidden_proto only for !_ISOMAC.
> 
> I'm a little surprised it's possible to call these functions from
> outside libc, but the patch itself seems correct as long as this isn't
> an installed header.

They are exported as GLIBC_PRIVATE, so that we can use arrays from other
parts of glibc.

Thanks,
Florian



More information about the Libc-alpha mailing list