diff options
author | Chris Johns <chrisj@rtems.org> | 2013-12-10 12:35:29 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-12-10 12:35:29 +1100 |
commit | 6122cb6af67c88550fecaa786c1dfd3bc1ceb1d1 (patch) | |
tree | d35fe1e1d22d2f2844db1058bd60a6f38d8170f8 /cpukit/libcsupport/src/dup2.c | |
parent | PR2159: Have the FIFO driver read follow POSIX standard. (diff) | |
download | rtems-6122cb6af67c88550fecaa786c1dfd3bc1ceb1d1.tar.bz2 |
PR2158: Add support for dup2.
Split the dub call into dup and dup2 in fcntl.c. This requires
a private command which is placed in the internal libio header.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libcsupport/src/dup2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/dup2.c b/cpukit/libcsupport/src/dup2.c index 37c93a7398..ac6f0a1b62 100644 --- a/cpukit/libcsupport/src/dup2.c +++ b/cpukit/libcsupport/src/dup2.c @@ -54,5 +54,5 @@ int dup2( * This fcntl handles everything else. */ - return fcntl( fildes, F_DUPFD, fildes2 ); + return fcntl( fildes, F_DUP2FD, fildes2 ); } |