summaryrefslogtreecommitdiff
path: root/lang/modula-3-socks/files/gethostbyname.c
blob: 715471ea86eb9e229bb2323e1d734a19c3b29abc (plain) (blame)
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;
}