summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
authorLassebq <lassebq.mine@gmail.com>2024-03-30 21:17:18 +0200
committerLassebq <lassebq.mine@gmail.com>2024-03-30 21:17:18 +0200
commitd99236e9166d873139fb1c14e33556aea91e17bd (patch)
tree7ff4f5c4e4bd2b2121063da753fd136080d45f79 /libgcompat
parent395f6a4683f4695f8667a323c272afd369964f0f (diff)
downloadgcompat-d99236e9166d873139fb1c14e33556aea91e17bd.tar.gz
gcompat-d99236e9166d873139fb1c14e33556aea91e17bd.tar.bz2
gcompat-d99236e9166d873139fb1c14e33556aea91e17bd.tar.xz
gcompat-d99236e9166d873139fb1c14e33556aea91e17bd.zip
fenv: return -1 if caller tries to enable exception traps
Diffstat (limited to 'libgcompat')
-rw-r--r--libgcompat/fenv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libgcompat/fenv.c b/libgcompat/fenv.c
index b761f89..07dbec1 100644
--- a/libgcompat/fenv.c
+++ b/libgcompat/fenv.c
@@ -3,7 +3,10 @@ int fedisableexcept(int excepts) {
}
int feenableexcept(int excepts) {
- return 0;
+ if(excepts != 0) {
+ return -1;
+ }
+ return 0;
}
int fegetexcept(void) {