5 #include <netinet/in.h>
7 struct hostent *gethostbyaddr(const void *a, socklen_t l, int af)
9 static struct hostent h;
10 static long buf[512/sizeof(long)];
12 if (gethostbyaddr_r(a, l, af, &h,
13 (void *)buf, sizeof buf, &res, &h_errno)) return 0;