diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 6fcda32692..f79a2a9f7e 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2007-05-14 Joel Sherrill + + * 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. + 2007-05-11 Joel Sherrill * score/src/coremsgseize.c: A blocking sender's message size was 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_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_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 */ +}