summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-10-18 13:08:22 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-10-18 13:08:22 +0000
commite6babd7e0884dc127c6f38e4453451ad13bda9a0 (patch)
tree040b93f0ab3251450f079a84ffee1341a342a9b0 /cpukit/libcsupport/src
parent2000-10-18 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-e6babd7e0884dc127c6f38e4453451ad13bda9a0.tar.bz2
2000-10-18 Joel Sherrill <joel@OARcorp.com>
* libc/fcntl.c: Do not require every filesystem to have an fcntl() handler. Most fcntl() operations can be performed with no filesystem support. * ChangeLog: Corrected comment.
Diffstat (limited to 'cpukit/libcsupport/src')
-rw-r--r--cpukit/libcsupport/src/fcntl.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/libcsupport/src/fcntl.c b/cpukit/libcsupport/src/fcntl.c
index 819b2f7778..72a03fa1c5 100644
--- a/cpukit/libcsupport/src/fcntl.c
+++ b/cpukit/libcsupport/src/fcntl.c
@@ -131,6 +131,12 @@ int fcntl(
ret = -1;
break;
}
+
+ /*
+ * If we got this far successfully, then we give the optional
+ * filesystem specific handler a chance to process this.
+ */
+
if (ret >= 0) {
if (iop->handlers->fcntl_h) {
int err = (*iop->handlers->fcntl_h)( cmd, iop );
@@ -139,10 +145,6 @@ int fcntl(
ret = -1;
}
}
- else {
- errno = ENOTSUP;
- ret = -1;
- }
}
return ret;
}