source:
trunk/libs/newlib/src/newlib/libc/sys/sysvi386/dup2.c
Last change on this file was 444, checked in by , 6 years ago | |
---|---|
File size: 131 bytes |
Rev | Line | |
---|---|---|
[444] | 1 | #include <fcntl.h> |
2 | ||
3 | int | |
4 | dup2 (int fd1, int fd2) { | |
5 | close (fd2); /* ignore errors, if any */ | |
6 | return (fcntl (fd1, F_DUPFD, fd2)); | |
7 | } |
Note: See TracBrowser
for help on using the repository browser.