We still use the thread-unsafe gethostbyname() function in several places. We should be using gethostbyname_r or getaddrinfo() instead. lib/replace/getaddrinfo.c: return canon_name_from_hostent(gethostbyname(name), perr); lib/replace/getaddrinfo.c: hp = gethostbyname(node); lib/socket/socket_ip.c: he = gethostbyname2(name, PF_INET6); lib/util/system.c: return(gethostbyname(name)); lib/util/system.c: return(gethostbyname(name)); lib/util/system.c: return(gethostbyname(name)); lib/util/system.c: return(gethostbyname(query)); lib/util/system.c: return(gethostbyname(name));
Outside of third_party/ and */examples/ we now have: ctdb/ib/ibw_ctdb.c: struct hostent *he = gethostbyname(address); ctdb/ib/ibwrapper_test.c: struct hostent *he = gethostbyname(address); lib/replace/getaddrinfo.c: return canon_name_from_hostent(gethostbyname(name), perr); lib/replace/getaddrinfo.c: hp = gethostbyname(node);