Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dup2.c « sysvi386 « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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));
}