thread safe functions missing ... ?

Mikhail Kruk meshko at cs.brandeis.edu
Sat Sep 13 18:34:48 PDT 2003


>  Your gethostbyname() is _not_ thread-safe
> Your getpwuid() is _not_ thread-safe

both functions have never been thread safe on Unix. 
There is getpwuid_r in CURRENT.
There is a pr about gethostbyname not being thread safe:
http://www.freebsd.org/cgi/query-pr.cgi?pr=18824

I guess for now you'll need to protect them by a mutex manually.



More information about the freebsd-stable mailing list