summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/fcntl.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-12-10 23:31:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-12-10 23:31:54 +0000
commitcca44008d81209e9fa992157637d9de0384e0536 (patch)
treee13728c80e91a8cff28f98ca7d7e6dea2359e05f /cpukit/libcsupport/src/fcntl.c
parentRDBG headers files ignored if not configured (diff)
downloadrtems-cca44008d81209e9fa992157637d9de0384e0536.tar.bz2
Merged Eric Norum's select patch that was based on 4.0 and resolved
all conflicts.
Diffstat (limited to 'cpukit/libcsupport/src/fcntl.c')
-rw-r--r--cpukit/libcsupport/src/fcntl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libcsupport/src/fcntl.c b/cpukit/libcsupport/src/fcntl.c
index a538ec1cf9..b327a447ac 100644
--- a/cpukit/libcsupport/src/fcntl.c
+++ b/cpukit/libcsupport/src/fcntl.c
@@ -32,20 +32,20 @@ int fcntl(
va_start( ap, cmd );
+ rtems_libio_check_fd( fd );
+ iop = rtems_libio_iop( fd );
+
/*
* If this is not a file system based entity, it is an error.
*/
- if ( rtems_file_descriptor_type( fd ) )
+ if ( iop->flags & LIBIO_FLAGS_HANDLER_MASK )
set_errno_and_return_minus_one( EBADF );
/*
* Now process the fcntl().
*/
- iop = rtems_libio_iop( fd );
- rtems_libio_check_fd( fd );
-
/*
* This switch should contain all the cases from POSIX.
*/