From 39bcf7417ea39806e4817a9ce72cfc20c060c4bf Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 25 May 2016 14:23:48 +0200 Subject: Fix semaphore post overflow status Close #2720. --- cpukit/posix/src/semaphoretranslatereturncode.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cpukit/posix/src/semaphoretranslatereturncode.c') diff --git a/cpukit/posix/src/semaphoretranslatereturncode.c b/cpukit/posix/src/semaphoretranslatereturncode.c index d7b99eaf67..04b293d349 100644 --- a/cpukit/posix/src/semaphoretranslatereturncode.c +++ b/cpukit/posix/src/semaphoretranslatereturncode.c @@ -27,8 +27,5 @@ const int _POSIX_Semaphore_Return_codes[CORE_SEMAPHORE_STATUS_LAST + 1] = { EAGAIN, /* CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT */ EINVAL, /* CORE_SEMAPHORE_WAS_DELETED */ ETIMEDOUT, /* CORE_SEMAPHORE_TIMEOUT */ - /* The next error can not occur since we set the maximum - * count to the largest value the count can hold. - */ - ENOSYS, /* CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED */ + EOVERFLOW /* CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED */ }; -- cgit v1.2.3