summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libcsupport/src/fcntl.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/libcsupport/src/fcntl.c')
-rw-r--r--c/src/exec/libcsupport/src/fcntl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/c/src/exec/libcsupport/src/fcntl.c b/c/src/exec/libcsupport/src/fcntl.c
index b327a447ac..a89306c9fc 100644
--- a/c/src/exec/libcsupport/src/fcntl.c
+++ b/c/src/exec/libcsupport/src/fcntl.c
@@ -34,6 +34,7 @@ int fcntl(
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
+ rtems_libio_check_is_open(iop);
/*
* If this is not a file system based entity, it is an error.