[musl] realloci(): A realloc() variant that works in-place

Thorsten Glaser tg@mirbsd.de
Fri Oct 31 12:16:39 GMT 2025


Alejandro Colomar dixit:

>A discussion within the C++ std-proposals@ mailing list triggered the
>discussion about the need for a realloc() variant that works in-place,
>that is, that doesn't move the address of the memory, and thus that
>doesn't invalidate existing pointers derived from it.

How is that supposed to work if you want to grow the
allocation?

This seems like increasing burden on the implementation
for everyone, just for niche corner use cases.

bye,
//mirabilos
-- 
15:41⎜<Lo-lan-do:#fusionforge> Somebody write a testsuite for helloworld :-)


More information about the Libc-alpha mailing list