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.
This commit is contained in:
Joel Sherrill
1999-03-01 22:40:08 +00:00
parent e069cdc3f1
commit 73f6236bc0
68 changed files with 218 additions and 887 deletions

View File

@@ -28,22 +28,6 @@ off_t lseek(
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_lseek_t fp;
fp = rtems_libio_handlers[
(iop->flags >> LIBIO_FLAGS_HANDLER_SHIFT) - 1].lseek;
if ( fp == NULL )
set_errno_and_return_minus_one( EBADF );
return (*fp)( fd, offset, whence );
}
/*
* Now process the lseek().
*/