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

int
m3_socket(int domain, int type, int protocol)
{
  int result;

  ENTER_CRITICAL;
  result = socket(domain, type, protocol);
  EXIT_CRITICAL;
  return result;
}