source: trunk/libs/newlib/src/newlib/libc/sys/sysvi386/dup2.c

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 131 bytes
Line 
1#include <fcntl.h>
2
3int
4dup2 (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.