summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/libio.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-01 22:40:08 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-01 22:40:08 +0000
commit73f6236bc09b3cadf0aa030e16396154421f3e30 (patch)
tree30c344abe6e8091d860d583e0a1342af575ae791 /c/src/lib/libc/libio.c
parentPart of the automake VI patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>: (diff)
downloadrtems-73f6236bc09b3cadf0aa030e16396154421f3e30.tar.bz2
Patch from Eric Norum <eric@skatter.usask.ca> to eliminate external
IO handlers scheme that was implemented originally just to support sockets. The file system IO switch is more general and works fine.
Diffstat (limited to 'c/src/lib/libc/libio.c')
-rw-r--r--c/src/lib/libc/libio.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/c/src/lib/libc/libio.c b/c/src/lib/libc/libio.c
index 88aea9b62f..59b7086a03 100644
--- a/c/src/lib/libc/libio.c
+++ b/c/src/lib/libc/libio.c
@@ -50,44 +50,12 @@ rtems_libio_t *rtems_libio_last_iop;
rtems_libio_t *rtems_libio_iop_freelist;
/*
- * External I/O Handlers Table
- *
- * Space for all possible handlers is preallocated
- * to speed up dispatch to external handlers.
- */
-
-rtems_libio_handler_t rtems_libio_handlers[15];
-
-/*
* Default mode for all files.
*/
mode_t rtems_filesystem_umask;
/*
- * rtems_register_libio_handler
- *
- * This function registers an external IO handler set. This lets
- * other subsystems have their own versions of many of the system
- * calls. For example, the networking code registers handlers which
- * map the system calls for read() and write() to socket calls.
- *
- */
-
-void rtems_register_libio_handler(
- int handler_flag,
- const rtems_libio_handler_t *handler
-)
-{
- int handler_index = (handler_flag >> LIBIO_FLAGS_HANDLER_SHIFT) - 1;
-
- if ((handler_index < 0) || (handler_index >= 15))
- rtems_fatal_error_occurred( RTEMS_INVALID_NUMBER );
-
- rtems_libio_handlers[handler_index] = *handler;
-}
-
-/*
* rtems_libio_init
*
* Called by BSP startup code to initialize the libio subsystem.