summaryrefslogtreecommitdiff
path: root/lang/modula-3-socks/files/connect.c
blob: 02c9f7878b325104fb40e4c6546641f9003948f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "wrap.h"
#include <sys/types.h>
#include <sys/socket.h>

int
m3_connect(int s, const struct sockaddr *name, int namelen)
{
  int result;

  ENTER_CRITICAL;
  MAKE_READABLE(name);
  result = connect(s, name, namelen);
  EXIT_CRITICAL;
  return result;
}