diff options
Diffstat (limited to '')
-rw-r--r-- | lang/modula-3-socks/files/gethostbyaddr.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/modula-3-socks/files/gethostbyaddr.c b/lang/modula-3-socks/files/gethostbyaddr.c new file mode 100644 index 000000000000..cf52f5117479 --- /dev/null +++ b/lang/modula-3-socks/files/gethostbyaddr.c @@ -0,0 +1,14 @@ +#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; +} |