summaryrefslogtreecommitdiff
path: root/lang/modula-3-socks/files/dup.c
blob: 188ff67fd6b36debc87bc908b7cf5fc4ee9b9ad1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "wrap.h"
#include <unistd.h>

int
m3_dup(int oldd)
{
  int result;

  ENTER_CRITICAL;
  result = dup(oldd);
  EXIT_CRITICAL;
  return result;
}