summaryrefslogtreecommitdiff
path: root/lang/modula-3-socks/files/listen.c
blob: 33e28e87a242a311bafd9c2ed279303fe44094ba (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_listen(int s, int backlog)
{
  int result;

  ENTER_CRITICAL;
  result = listen(s, backlog);
  EXIT_CRITICAL;
  return result;
}