But dlsym(RTLD_NEXT, "calloc") works, though - no need for dlopen. That's how test-runner looks up "malloc" and "free".<div><br><div class="gmail_quote">On Mon, Jul 23, 2012 at 1:02 PM, Daniel Stone <span dir="ltr"><<a href="mailto:daniel@fooishbar.org" target="_blank">daniel@fooishbar.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div class="im"><br>
On 23 July 2012 16:11, Kristian Høgsberg <<a href="mailto:hoegsberg@gmail.com">hoegsberg@gmail.com</a>> wrote:<br>
> On Mon, Jul 23, 2012 at 11:40:52AM +0300, Pekka Paalanen wrote:<br>
</div><div class="im">>> We don't have a realloc() wrapper yet, do we?<br>
>> Array uses realloc. We're missing calloc(), too, no?<br>
><br>
> Yea, we don't have those.<br>
<br>
</div>I came up against this a couple of weeks ago, and the patchset I just<br>
sent out has a realloc() wrapper. I'd really liked to have seen<br>
calloc in there, but unfortunately you can't (at least not AFAICT),<br>
because to get the symbol for the real calloc, you need to call<br>
dlopen, which calls calloc ...<br>
<br>
Cheers,<br>
Daniel<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</div></div></blockquote></div><br></div>