fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / sys / sysvi386 / dup2.c
blob6b72599fbb227325ed8c49a0d99bf369e12c0391
1 #include <fcntl.h>
3 int
4 dup2 (int fd1, int fd2) {
5 close (fd2); /* ignore errors, if any */
6 return (fcntl (fd1, F_DUPFD, fd2));