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

int
m3_dup2(int oldd, int newd)
{
  int result;

  ENTER_CRITICAL;
  result = dup2(oldd, newd);
  EXIT_CRITICAL;
  return result;
}