> 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.