aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/sys/sysvi386/dup2.c
blob: 6b72599fbb227325ed8c49a0d99bf369e12c0391 (plain)
1
2
3
4
5
6
7
#include <fcntl.h>

int
dup2 (int fd1, int fd2) {
	close (fd2);	/* ignore errors, if any */
	return (fcntl (fd1, F_DUPFD, fd2));
}