summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/include/rtems/libio_.h
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/include/rtems/libio_.h
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 '')
-rw-r--r--cpukit/libcsupport/include/rtems/libio_.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h
index 885656616f..bf01cd5659 100644
--- a/cpukit/libcsupport/include/rtems/libio_.h
+++ b/cpukit/libcsupport/include/rtems/libio_.h
@@ -42,6 +42,13 @@ extern "C" {
#define RTEMS_FILESYSTEM_SYMLOOP_MAX 32
/*
+ * Not defined in newlib so provide here. Users should use dup2 and
+ * not this non-portable fcntl command. Provided here to allow the
+ * RTEMS implementation to work.
+ */
+#define F_DUP2FD 20
+
+/*
* Semaphore to protect the io table
*/