summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-14 17:56:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-14 17:56:54 +0000
commit8a5186d531531aa26f72feee82017fd35c50e6c8 (patch)
treecdee8aeddc446ca257c0c54b11884d62cc55ae37 /cpukit/libcsupport
parent2007-05-14 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-8a5186d531531aa26f72feee82017fd35c50e6c8.tar.bz2
2007-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/Makefile.am, libcsupport/src/unixlibc.c: Split off dummry rtems_io_register_name for use on unix. * libcsupport/src/unixlibc_io.c: New file.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/Makefile.am2
-rw-r--r--cpukit/libcsupport/src/unixlibc.c23
-rw-r--r--cpukit/libcsupport/src/unixlibc_io.c35
3 files changed, 38 insertions, 22 deletions
diff --git a/cpukit/libcsupport/Makefile.am b/cpukit/libcsupport/Makefile.am
index 207e8e40fe..589e75fbb1 100644
--- a/cpukit/libcsupport/Makefile.am
+++ b/cpukit/libcsupport/Makefile.am
@@ -88,7 +88,7 @@ libcsupport_a_SOURCES = src/gxx_wrappers.c src/printk.c $(BSD_LIBC_C_FILES) \
$(ASSOCIATION_C_FILES)
if UNIX
-libcsupport_a_SOURCES += src/unixlibc.c src/hosterr.c
+libcsupport_a_SOURCES += src/unixlibc.c src/unixlibc_io.c src/hosterr.c
else
libcsupport_a_SOURCES += $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \
$(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \
diff --git a/cpukit/libcsupport/src/unixlibc.c b/cpukit/libcsupport/src/unixlibc.c
index 79cc5e19c1..f1bf162f24 100644
--- a/cpukit/libcsupport/src/unixlibc.c
+++ b/cpukit/libcsupport/src/unixlibc.c
@@ -1,39 +1,20 @@
/*
- * $Id$
* UNIX Port C Library Support
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
+ * $Id$
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
-#include <rtems.h>
-
-rtems_status_code rtems_io_register_name(
- const char *device_name,
- rtems_device_major_number major,
- rtems_device_minor_number minor
-)
-{
- return 0; /* not supported */
-}
-
-rtems_status_code rtems_io_lookup_name(
- const char *name,
- rtems_driver_name_t *device_info
-)
-{
- return 0; /* not supported */
-}
-
#if defined(RTEMS_UNIXLIB)
void libc_init(int reentrant)
diff --git a/cpukit/libcsupport/src/unixlibc_io.c b/cpukit/libcsupport/src/unixlibc_io.c
new file mode 100644
index 0000000000..eb6afa8bee
--- /dev/null
+++ b/cpukit/libcsupport/src/unixlibc_io.c
@@ -0,0 +1,35 @@
+/*
+ * UNIX Port C Library Support -- IO Manager Stubs
+ *
+ * COPYRIGHT (c) 1989-2007.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <rtems.h>
+
+rtems_status_code rtems_io_register_name(
+ const char *device_name,
+ rtems_device_major_number major,
+ rtems_device_minor_number minor
+)
+{
+ return 0; /* not supported */
+}
+
+rtems_status_code rtems_io_lookup_name(
+ const char *name,
+ rtems_driver_name_t *device_info
+)
+{
+ return 0; /* not supported */
+}