diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-03-01 22:40:08 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-03-01 22:40:08 +0000 |
commit | 73f6236bc09b3cadf0aa030e16396154421f3e30 (patch) | |
tree | 30c344abe6e8091d860d583e0a1342af575ae791 /cpukit/libcsupport/src/libio.c | |
parent | Part of the automake VI patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>: (diff) | |
download | rtems-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 '')
-rw-r--r-- | cpukit/libcsupport/src/libio.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/cpukit/libcsupport/src/libio.c b/cpukit/libcsupport/src/libio.c index 88aea9b62f..59b7086a03 100644 --- a/cpukit/libcsupport/src/libio.c +++ b/cpukit/libcsupport/src/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. |