From 73f6236bc09b3cadf0aa030e16396154421f3e30 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 1 Mar 1999 22:40:08 +0000 Subject: Patch from Eric Norum 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. --- c/src/lib/libc/libio.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'c/src/lib/libc/libio.c') 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 @@ -49,44 +49,12 @@ rtems_libio_t *rtems_libio_iops; 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 * -- cgit v1.2.3