summaryrefslogtreecommitdiff
path: root/src/unistd/dup.c
blob: badc0f868e180289172bc80768876d02237a4a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "stddef.h"
#include "sys/types.h"
#include <unistd.h>
#include "fcntl.h"

int dup(int fildes)
{
	return fcntl(fildes, F_DUPFD, 0);
}
/*
POSIX(1)
*/