summaryrefslogtreecommitdiff
path: root/src/unistd/dup2.c
blob: 89d0cb8d060a6693e68e43c95702233ce91e9d64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stddef.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <limits.h>
#include <errno.h>
#include "_syscall.h"

int dup2(int fildes, int fildes2)
{
	SYSCALL(dup2, int, -1, fildes, fildes2, 0, 0, 0, 0);
}

/*
POSIX(1)
*/