summaryrefslogtreecommitdiff
path: root/lang/modula-3-socks/files/shutdown.c
blob: 828d25e9a1314e8f0be5c26d75bf7e0941ac20b0 (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_shutdown(int s, int how)
{
  int result;

  ENTER_CRITICAL;
  result = shutdown(s, how);
  EXIT_CRITICAL;
  return result;
}