1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/lang/modula-3-socks/files/gethostbyaddr.c

15 lines
258 B
C
Raw Normal View History

#include "wrap.h"
#include <netdb.h>
struct hostent *
m3_gethostbyaddr(const char *addr, int len, int type)
{
struct hostent *result;
ENTER_CRITICAL;
MAKE_READABLE(addr);
result = gethostbyaddr(addr, len, type);
EXIT_CRITICAL;
return result;
}