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/ioctl.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'c/src/lib/libc/ioctl.c') diff --git a/c/src/lib/libc/ioctl.c b/c/src/lib/libc/ioctl.c index 5ac530b6e0..0e8072588b 100644 --- a/c/src/lib/libc/ioctl.c +++ b/c/src/lib/libc/ioctl.c @@ -30,22 +30,6 @@ int ioctl( iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); - /* - * If this file descriptor is mapped to an external set of handlers, - * then pass the request on to them. - */ - - if ( iop->flags & LIBIO_FLAGS_HANDLER_MASK ) { - rtems_libio_ioctl_t fp; - - fp = rtems_libio_handlers[ - (iop->flags >> LIBIO_FLAGS_HANDLER_SHIFT) - 1].ioctl; - if ( fp == NULL ) - set_errno_and_return_minus_one( EBADF ); - - return (*fp)( fd, command, buffer ); - } - /* * Now process the ioctl(). */ -- cgit v1.2.3