summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/dup2.c
blob: f810424bfd747aa3845b06cdc84d2bc672ec986f (plain)
1
2
3
4
5
6
7
8
#include "asm/unistd_64.h" // for __NR_dup2

#include <syscall.h> // for __syscall_2, syscall

int dup2(int fildes, int fildes2)
{
	return syscall(dup2, fildes, fildes2);
}