Handwaving RFC: hypothetical recalloc() API
H. Peter Anvin
hpa@zytor.com
Mon May 4 18:08:04 GMT 2026
On 2026-05-04 11:01, DJ Delorie wrote:
> "H. Peter Anvin" <hpa@zytor.com> writes:
>> int recalloc(void * restrict * restrict old, size_t alignment,
>> size_t * restrict n, size_t size);
>
> I wonder, at what point does such an interface become esoteric enough
> that it's better to implement something application-specific through
> mmap() than try to showhorn everyone's requirements into a single
> function...
>
Except it's not esoteric at all. This is a very common thing to want to do.
-hpa
More information about the Libc-alpha
mailing list