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 /c/src/exec/libcsupport/src/lseek.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 'c/src/exec/libcsupport/src/lseek.c')
-rw-r--r-- | c/src/exec/libcsupport/src/lseek.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/c/src/exec/libcsupport/src/lseek.c b/c/src/exec/libcsupport/src/lseek.c index 3e586bbc31..6f37f3c294 100644 --- a/c/src/exec/libcsupport/src/lseek.c +++ b/c/src/exec/libcsupport/src/lseek.c @@ -29,22 +29,6 @@ off_t lseek( 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(). */ |