GAI_a question

Josef Spillner 2005@kuarepoti-dju.net
Mon Jul 24 15:54:00 GMT 2006


[Resend of what mistakenly went to libc-ports some time ago...]

Hello,

in case one uses getaddrinfo_a() with the SIGEV_THREAD notification, which 
parameter is passed to the thread creation function in sigval_t?
It is neither the gaicb nor the sigev.sival_ptr value, although from looking 
at the sources I assume it should be the latter.
(But I set it to NULL and got a non-NULL value.)

An example is attached, which uses global_req* to remember the request, which 
is bad of course and should be using sigval_t or an equivalent for the 
SIGEV_SIGNAL variant (accessible via siginfo_t* only I assume?).

The concept PDF on that topic is vastly outdated as it seems.

Josef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gai_a.c
Type: text/x-csrc
Size: 3046 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20060724/c849fc09/attachment.bin>


More information about the Libc-alpha mailing list