1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "wrap.h" #include <netdb.h> struct hostent * m3_gethostbyname(const char *name) { struct hostent *result; ENTER_CRITICAL; MAKE_READABLE(name); result = gethostbyname(name); EXIT_CRITICAL; return result; }