summaryrefslogtreecommitdiff
path: root/minix/lib/libc/sys/dup.c
blob: 207fa20a11ceaf26d9ce1e1b34fa81bf02073cee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <sys/cdefs.h>
#include "namespace.h"
#include <lib.h>

#include <fcntl.h>
#include <unistd.h>

int dup(fd)
int fd;
{
  return(fcntl(fd, F_DUPFD, 0));
}