summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/dup2.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-12-10 12:35:29 +1100
committerChris Johns <chrisj@rtems.org>2013-12-10 12:35:29 +1100
commit6122cb6af67c88550fecaa786c1dfd3bc1ceb1d1 (patch)
treed35fe1e1d22d2f2844db1058bd60a6f38d8170f8 /cpukit/libcsupport/src/dup2.c
parentPR2159: Have the FIFO driver read follow POSIX standard. (diff)
downloadrtems-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 'cpukit/libcsupport/src/dup2.c')
-rw-r--r--cpukit/libcsupport/src/dup2.c2
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 );
}