From 6122cb6af67c88550fecaa786c1dfd3bc1ceb1d1 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Tue, 10 Dec 2013 12:35:29 +1100 Subject: 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. --- cpukit/libcsupport/include/rtems/libio_.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/libcsupport/include/rtems') 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 @@ -41,6 +41,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 */ -- cgit v1.2.3