Skip site navigation (1)Skip section navigation (2)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Robert Clausecker <fuz@fuz.su>, Konstantin Belousov <kib@freebsd.org>
Cc:        Robert Clausecker <fuz@freebsd.org>, src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org, Faraz Vahedi <kfv@kfv.io>
Subject:   Re: git: 5f732742ad5b - main - libc: Add free_sized() and free_aligned_sized() as per C23
In-Reply-To: <aifdH5XKiyPjXguR@fuz.su>
References:  <6a25dc0b.4729a.7f7225a7@gitrepo.freebsd.org> <aidusnnCokFs58xX@kib.kiev.ua> <aifdH5XKiyPjXguR@fuz.su>

index | | previous in thread | raw e-mail

On 6/9/26 05:30, Robert Clausecker wrote:
> Hi Konstantin,
> 
> Am Tue, Jun 09, 2026 at 04:38:58AM +0300 schrieb Konstantin Belousov:
>> On Sun, Jun 07, 2026 at 09:00:59PM +0000, Robert Clausecker wrote:
>>> The branch main has been updated by fuz:
>>>
>>> URL: https://cgit.FreeBSD.org/src/commit/?id=5f732742ad5b3133a860a8969cf2bd13dc9ac358
>>>
>>> commit 5f732742ad5b3133a860a8969cf2bd13dc9ac358
>>> Author:     Faraz Vahedi <kfv@kfv.io>
>>> AuthorDate: 2026-05-16 18:36:17 +0000
>>> Commit:     Robert Clausecker <fuz@FreeBSD.org>
>>> CommitDate: 2026-06-07 20:59:19 +0000
>>>
>>>      libc: Add free_sized() and free_aligned_sized() as per C23
>>>      
>>
>>> +FBSD_1.9 {
>>> +	free_sized;
>>> +	free_aligned_sized;
>>
>>> +	__free_sized;
>>> +	__free_aligned_sized;
>>
>> Why these two symbols (from private C namespace) need to be exported?
>> And then, why they need to be exported in the public version?
>>
>>> +};
> 
> This is for consistency with the other libc allocator symbols, which are also
> exported.  I suppose this is useful if you e.g. wish to hook or replace the
> allocation machinery, giving you access to the originals where desired.

That's what RTLD_NEXT is for?

-- 
John Baldwin



home | help