Is gethostbyname_r() reentrant?
Petter Reinholdtsen
pere@hungry.com
Sun May 18 10:09:00 GMT 2003
[Roland McGrath]
> All the state such as the file descriptors for sockets live in the
> _res data structure. That is per-thread via macro magic or TLS, not
> a global variable as it might appear to be (and was originally in
> the days before threading support).
Hm, OK. Was this the case in glibc 2.1.3 as well? I do not work at
Opera any more, and do not have access to the FreePAD where I first
was able to detect this problem. And my current computer is way
faster then the last machine I was able to detect the problem on.
More information about the Libc-alpha
mailing list