summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-19 22:59:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-03-19 22:59:20 +0000
commitc0a3642981b441d255e9b866ab783b62bedc6c57 (patch)
tree45d3a74ce3a7d97343f2a2727218ff77b35a969c
parentd8ff79366bb0f4646436e4c298e4f5505a51c007 (diff)
downloadrtems-c0a3642981b441d255e9b866ab783b62bedc6c57.tar.bz2
A cleanup patch on fcntl.c from Eric Norum <eric@skatter.usask.ca> for
2 lines of code that did not get included when Joel tried to manually add a rejected patch.
-rw-r--r--c/src/exec/libcsupport/src/fcntl.c2
-rw-r--r--c/src/lib/libc/fcntl.c2
-rw-r--r--cpukit/libcsupport/src/fcntl.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/c/src/exec/libcsupport/src/fcntl.c b/c/src/exec/libcsupport/src/fcntl.c
index 3a65a74574..9b89711fcc 100644
--- a/c/src/exec/libcsupport/src/fcntl.c
+++ b/c/src/exec/libcsupport/src/fcntl.c
@@ -126,6 +126,8 @@ int fcntl(
break;
default:
+ errno = EINVAL;
+ ret = -1;
break;
}
if ((ret >= 0) && iop->handlers->fcntl) {
diff --git a/c/src/lib/libc/fcntl.c b/c/src/lib/libc/fcntl.c
index 3a65a74574..9b89711fcc 100644
--- a/c/src/lib/libc/fcntl.c
+++ b/c/src/lib/libc/fcntl.c
@@ -126,6 +126,8 @@ int fcntl(
break;
default:
+ errno = EINVAL;
+ ret = -1;
break;
}
if ((ret >= 0) && iop->handlers->fcntl) {
diff --git a/cpukit/libcsupport/src/fcntl.c b/cpukit/libcsupport/src/fcntl.c
index 3a65a74574..9b89711fcc 100644
--- a/cpukit/libcsupport/src/fcntl.c
+++ b/cpukit/libcsupport/src/fcntl.c
@@ -126,6 +126,8 @@ int fcntl(
break;
default:
+ errno = EINVAL;
+ ret = -1;
break;
}
if ((ret >= 0) && iop->handlers->fcntl) {